@appsignal/nodejs
Advanced tools
Comparing version 0.6.1 to 0.7.0
@@ -19,2 +19,3 @@ /** | ||
stop(): boolean; | ||
diagnose(): string; | ||
} |
@@ -45,3 +45,6 @@ "use strict"; | ||
} | ||
diagnose() { | ||
return JSON.parse(extension_1.extension.diagnoseRaw()); | ||
} | ||
} | ||
exports.Agent = Agent; |
@@ -11,3 +11,3 @@ import { AppsignalOptions } from "./types/options"; | ||
export declare class Configuration { | ||
private _data; | ||
data: Partial<AppsignalOptions>; | ||
constructor(options: Partial<AppsignalOptions>); | ||
@@ -14,0 +14,0 @@ /** |
@@ -19,4 +19,4 @@ "use strict"; | ||
writePrivateConstants(); | ||
this._data = Object.assign(Object.assign({ debug: false, log: "file", logPath: "/tmp/appsignal.log", endpoint: "https://push.appsignal.com", environment: process.env.NODE_ENV || "development" }, this._loadFromEnvironment()), options); | ||
this._write(this._data); | ||
this.data = Object.assign(Object.assign({ debug: false, log: "file", logPath: "/tmp/appsignal.log", caFilePath: path_1.default.join(__dirname, "../cert/cacert.pem"), endpoint: "https://push.appsignal.com", environment: process.env.NODE_ENV || "development" }, this._loadFromEnvironment()), options); | ||
this._write(this.data); | ||
} | ||
@@ -27,3 +27,3 @@ /** | ||
get debug() { | ||
return this._data.debug || false; | ||
return this.data.debug || false; | ||
} | ||
@@ -30,0 +30,0 @@ /** |
export declare const ENV_TO_KEY_MAPPING: { | ||
APPSIGNAL_ACTIVE: string; | ||
APPSIGNAL_PUSH_API_KEY: string; | ||
APPSIGNAL_APP_NAME: string; | ||
APPSIGNAL_APP_ENV: string; | ||
APPSIGNAL_CA_FILE_PATH: string; | ||
APPSIGNAL_PUSH_API_ENDPOINT: string; | ||
APPSIGNAL_HOSTNAME: string; | ||
APPSIGNAL_SEND_PARAMS: string; | ||
APPSIGNAL_FILTER_PARAMETERS: string; | ||
APPSIGNAL_FILTER_SESSION_DATA: string; | ||
APPSIGNAL_DEBUG: string; | ||
APPSIGNAL_DNS_SERVERS: string; | ||
APPSIGNAL_LOG: string; | ||
APPSIGNAL_LOG_PATH: string; | ||
APPSIGNAL_IGNORE_ACTIONS: string; | ||
APPSIGNAL_IGNORE_ERRORS: string; | ||
APPSIGNAL_IGNORE_NAMESPACES: string; | ||
APPSIGNAL_HTTP_PROXY: string; | ||
APPSIGNAL_RUNNING_IN_CONTAINER: string; | ||
APPSIGNAL_WORKING_DIR_PATH: string; | ||
APPSIGNAL_WORKING_DIRECTORY_PATH: string; | ||
APPSIGNAL_ENABLE_HOST_METRICS: string; | ||
APPSIGNAL_ENABLE_MINUTELY_PROBES: string; | ||
APPSIGNAL_SKIP_SESSION_DATA: string; | ||
APPSIGNAL_FILES_WORLD_ACCESSIBLE: string; | ||
APPSIGNAL_REQUEST_HEADERS: string; | ||
APP_REVISION: string; | ||
[key: string]: string; | ||
}; | ||
export declare const PRIVATE_ENV_MAPPING: { | ||
_APPSIGNAL_ACTIVE: string; | ||
_APPSIGNAL_ENVIRONMENT: string; | ||
_APPSIGNAL_DEBUG_LOGGING: string; | ||
_APPSIGNAL_TRANSACTION_DEBUG_MODE: string; | ||
_APPSIGNAL_LOG: string; | ||
_APPSIGNAL_LOG_FILE_PATH: string; | ||
_APPSIGNAL_PUSH_API_ENDPOINT: string; | ||
_APPSIGNAL_PUSH_API_KEY: string; | ||
_APPSIGNAL_APP_NAME: string; | ||
_APPSIGNAL_HTTP_PROXY: string; | ||
_APPSIGNAL_IGNORE_ACTIONS: string; | ||
_APPSIGNAL_IGNORE_ERRORS: string; | ||
_APPSIGNAL_IGNORE_NAMESPACES: string; | ||
_APPSIGNAL_RUNNING_IN_CONTAINER: string; | ||
_APPSIGNAL_WORKING_DIR_PATH: string; | ||
_APPSIGNAL_WORKING_DIRECTORY_PATH: string; | ||
_APPSIGNAL_ENABLE_HOST_METRICS: string; | ||
_APPSIGNAL_HOSTNAME: string; | ||
_APPSIGNAL_CA_FILE_PATH: string; | ||
_APPSIGNAL_DNS_SERVERS: string; | ||
_APPSIGNAL_FILES_WORLD_ACCESSIBLE: string; | ||
_APP_REVISION: string; | ||
[key: string]: string; | ||
}; | ||
export declare const JS_TO_RUBY_MAPPING: { | ||
[key: string]: string; | ||
}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.PRIVATE_ENV_MAPPING = exports.ENV_TO_KEY_MAPPING = void 0; | ||
exports.JS_TO_RUBY_MAPPING = exports.PRIVATE_ENV_MAPPING = exports.ENV_TO_KEY_MAPPING = void 0; | ||
exports.ENV_TO_KEY_MAPPING = { | ||
@@ -57,1 +57,23 @@ APPSIGNAL_ACTIVE: "active", | ||
}; | ||
exports.JS_TO_RUBY_MAPPING = { | ||
active: "active", | ||
environment: "env", | ||
debug: "debug", | ||
log: "log", | ||
logPath: "log_path", | ||
endpoint: "endpoint", | ||
apiKey: "push_api_key", | ||
name: "name", | ||
ignoreActions: "ignore_actions", | ||
ignoreErrors: "ignore_errors", | ||
ignoreNamespaces: "ignore_namespaces", | ||
runningInContainer: "running_in_container", | ||
workingDirPath: "working_dir_path", | ||
workingDirectoryPath: "working_directory_path", | ||
enableHostMetrics: "enable_host_metrics", | ||
hostname: "hostname", | ||
caFilePath: "ca_file_path", | ||
dnsServers: "dns_servers", | ||
filesWorldAccessible: "files_world_accessible", | ||
revision: "revision" | ||
}; |
"use strict"; | ||
/// <reference path="../vendor.d.ts" /> | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.EXPERIMENTAL = exports.Appsignal = void 0; | ||
/** | ||
@@ -5,0 +6,0 @@ * AppSignal for Node.js |
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { | ||
Object.defineProperty(o, "default", { enumerable: true, value: v }); | ||
}) : function(o, v) { | ||
o["default"] = v; | ||
}); | ||
var __importStar = (this && this.__importStar) || function (mod) { | ||
if (mod && mod.__esModule) return mod; | ||
var result = {}; | ||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); | ||
__setModuleDefault(result, mod); | ||
return result; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.httpPlugin = __importStar(require("./http")); | ||
exports.httpsPlugin = __importStar(require("./https")); | ||
exports.httpsPlugin = exports.httpPlugin = void 0; | ||
const tslib_1 = require("tslib"); | ||
exports.httpPlugin = tslib_1.__importStar(require("./http")); | ||
exports.httpsPlugin = tslib_1.__importStar(require("./https")); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.DataMap = exports.DataArray = void 0; | ||
var dataarray_1 = require("./dataarray"); | ||
@@ -4,0 +5,0 @@ Object.defineProperty(exports, "DataArray", { enumerable: true, get: function () { return dataarray_1.DataArray; } }); |
@@ -29,2 +29,3 @@ export declare type AppsignalOptions = { | ||
environment: string; | ||
[key: string]: string | string[] | boolean; | ||
}; |
@@ -1,1 +0,2 @@ | ||
export declare const VERSION = "0.6.1"; | ||
export declare const VERSION = "0.7.0"; | ||
export declare const AGENT_VERSION = "c8f8185"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.VERSION = void 0; | ||
exports.AGENT_VERSION = exports.VERSION = void 0; | ||
// Do not touch this file, auto-generated by scripts/create-versionfile | ||
exports.VERSION = "0.6.1"; | ||
exports.VERSION = "0.7.0"; | ||
exports.AGENT_VERSION = "c8f8185"; |
{ | ||
"name": "@appsignal/nodejs", | ||
"version": "0.6.1", | ||
"version": "0.7.0", | ||
"main": "dist/index", | ||
"types": "dist/index", | ||
"license": "MIT", | ||
"bin": { | ||
"appsignal-diagnose": "./bin/diagnose" | ||
}, | ||
"dependencies": { | ||
"@appsignal/core": "^1.0.7", | ||
"@appsignal/core": "^1.0.9", | ||
"@appsignal/types": "^1.0.0", | ||
@@ -13,10 +16,10 @@ "require-in-the-middle": "^5.0.3", | ||
"shimmer": "^1.2.1", | ||
"tslib": "^1.12.0" | ||
"tslib": "^2.0.1" | ||
}, | ||
"optionalDependencies": { | ||
"@appsignal/nodejs-ext": "^0.6.1" | ||
"@appsignal/nodejs-ext": "^0.7.0" | ||
}, | ||
"scripts": { | ||
"build": "tsc -p tsconfig.json", | ||
"build:watch": "yarn versionfile && tsc -p tsconfig.json -w --preserveWatchOutput", | ||
"build:watch": "npm run versionfile && tsc -p tsconfig.json -w --preserveWatchOutput", | ||
"clean": "rimraf dist coverage", | ||
@@ -28,3 +31,3 @@ "link:npm": "npm link", | ||
"versionfile": "node scripts/create-versionfile.js", | ||
"version": "yarn versionfile" | ||
"version": "npm run versionfile" | ||
}, | ||
@@ -37,3 +40,3 @@ "engines": { | ||
}, | ||
"gitHead": "28fb7d1c3458d77a3804c385d349b1b7fa2e0198" | ||
"gitHead": "a67c186b2855477400f4c70987684f4e23e02762" | ||
} |
@@ -5,5 +5,9 @@ #!/usr/bin/env node | ||
const pkg = require("../package.json") | ||
const { | ||
AGENT_VERSION | ||
} = require("../../nodejs-ext/scripts/extension/constants") | ||
const data = `// Do not touch this file, auto-generated by scripts/create-versionfile | ||
export const VERSION = "${pkg.version}"\n` | ||
export const VERSION = "${pkg.version}" | ||
export const AGENT_VERSION = "${AGENT_VERSION}"\n` | ||
@@ -10,0 +14,0 @@ fs.writeFile(`${process.cwd()}/src/version.ts`, data, "utf8", err => { |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
89274
82
2480
1
11
+ Added@appsignal/nodejs-ext@0.7.0(transitive)
- Removed@appsignal/nodejs-ext@0.6.1(transitive)
- Removedtslib@1.14.1(transitive)
Updated@appsignal/core@^1.0.9
Updatedtslib@^2.0.1