@contrast/agentify
Advanced tools
Comparing version 1.41.0 to 1.42.0
@@ -30,3 +30,3 @@ /* | ||
const dir = path.join(process.cwd(), heap_dump.path); | ||
const dir = path.resolve(process.cwd(), heap_dump.path); | ||
const ext = '.heapsnapshot'; | ||
@@ -33,0 +33,0 @@ |
@@ -33,3 +33,3 @@ 'use strict'; | ||
snapshotPath = 'contrast_heap_dumps'; | ||
dirname = path.join(process.cwd(), snapshotPath); | ||
dirname = path.resolve(process.cwd(), snapshotPath); | ||
@@ -36,0 +36,0 @@ core = {}; |
@@ -20,3 +20,3 @@ /* | ||
const Module = require('node:module'); | ||
const { rewriteIsDeadzoned } = require('./rewrite-is-deadzoned'); | ||
const { rewriteIsDeadzoned } = require('@contrast/rewriter/lib/rewrite-is-deadzoned'); | ||
@@ -30,4 +30,4 @@ /** | ||
module.exports = function init(core) { | ||
const js = Module._extensions['.js']; | ||
const { _compile } = Module.prototype; | ||
let js; | ||
let _compile; | ||
@@ -38,2 +38,7 @@ core.rewriteHooks = { | ||
// don't define this prior to install(), since it will interfere with other | ||
// components that also need to instrument it e.g. dep-hooks. | ||
_compile = Module.prototype._compile; | ||
js = Module._extensions['.js']; | ||
/** | ||
@@ -99,4 +104,4 @@ * @see https://github.com/nodejs/node/blob/main/lib/internal/modules/cjs/loader.js | ||
uninstall() { | ||
Module.prototype._compile = _compile; | ||
Module._extensions['.js'] = js; | ||
_compile && (Module.prototype._compile = _compile); | ||
js && (Module._extensions['.js'] = js); | ||
} | ||
@@ -103,0 +108,0 @@ }; |
{ | ||
"name": "@contrast/agentify", | ||
"version": "1.41.0", | ||
"version": "1.42.0", | ||
"description": "Configures Contrast agent services and instrumentation within an application", | ||
@@ -21,16 +21,16 @@ "license": "SEE LICENSE IN LICENSE", | ||
"@contrast/common": "1.29.0", | ||
"@contrast/config": "1.39.0", | ||
"@contrast/core": "1.44.0", | ||
"@contrast/deadzones": "1.16.0", | ||
"@contrast/dep-hooks": "1.13.0", | ||
"@contrast/esm-hooks": "2.18.0", | ||
"@contrast/config": "1.40.0", | ||
"@contrast/core": "1.45.0", | ||
"@contrast/deadzones": "1.17.0", | ||
"@contrast/dep-hooks": "1.14.0", | ||
"@contrast/esm-hooks": "2.19.0", | ||
"@contrast/find-package-json": "^1.1.0", | ||
"@contrast/instrumentation": "1.23.0", | ||
"@contrast/logger": "1.17.0", | ||
"@contrast/metrics": "1.21.0", | ||
"@contrast/patcher": "1.16.0", | ||
"@contrast/instrumentation": "1.24.0", | ||
"@contrast/logger": "1.18.0", | ||
"@contrast/metrics": "1.22.0", | ||
"@contrast/patcher": "1.17.0", | ||
"@contrast/perf": "1.3.0", | ||
"@contrast/reporter": "1.40.0", | ||
"@contrast/rewriter": "1.20.0", | ||
"@contrast/scopes": "1.14.0", | ||
"@contrast/reporter": "1.41.0", | ||
"@contrast/rewriter": "1.21.0", | ||
"@contrast/scopes": "1.15.0", | ||
"on-finished": "^2.4.1", | ||
@@ -37,0 +37,0 @@ "semver": "^7.6.0" |
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
27
64300
19
1630
+ Added@contrast/config@1.40.0(transitive)
+ Added@contrast/core@1.45.0(transitive)
+ Added@contrast/deadzones@1.17.0(transitive)
+ Added@contrast/dep-hooks@1.14.0(transitive)
+ Added@contrast/esm-hooks@2.19.0(transitive)
+ Added@contrast/instrumentation@1.24.0(transitive)
+ Added@contrast/logger@1.18.0(transitive)
+ Added@contrast/metrics@1.22.0(transitive)
+ Added@contrast/patcher@1.17.0(transitive)
+ Added@contrast/reporter@1.41.0(transitive)
+ Added@contrast/rewriter@1.21.0(transitive)
+ Added@contrast/scopes@1.15.0(transitive)
- Removed@contrast/config@1.39.0(transitive)
- Removed@contrast/core@1.44.0(transitive)
- Removed@contrast/deadzones@1.16.0(transitive)
- Removed@contrast/dep-hooks@1.13.0(transitive)
- Removed@contrast/esm-hooks@2.18.0(transitive)
- Removed@contrast/instrumentation@1.23.0(transitive)
- Removed@contrast/logger@1.17.0(transitive)
- Removed@contrast/metrics@1.21.0(transitive)
- Removed@contrast/patcher@1.16.0(transitive)
- Removed@contrast/reporter@1.40.0(transitive)
- Removed@contrast/rewriter@1.20.0(transitive)
- Removed@contrast/scopes@1.14.0(transitive)
Updated@contrast/config@1.40.0
Updated@contrast/core@1.45.0
Updated@contrast/deadzones@1.17.0
Updated@contrast/dep-hooks@1.14.0
Updated@contrast/esm-hooks@2.19.0
Updated@contrast/logger@1.18.0
Updated@contrast/metrics@1.22.0
Updated@contrast/patcher@1.17.0
Updated@contrast/reporter@1.41.0
Updated@contrast/rewriter@1.21.0
Updated@contrast/scopes@1.15.0