@contrast/agentify 1.25.0 → 1.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/utils.js +1 -1
- package/package.json +14 -14
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* engineered, modified, repackaged, sold, redistributed or otherwise used in a
|
|
13
13
|
* way not consistent with the End User License Agreement.
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
/*eslint node/no-unsupported-features/es-syntax: ["error", {version: >=10.0.0}]*/
|
|
16
16
|
'use strict';
|
|
17
17
|
|
|
18
18
|
const Module = require('module');
|
package/lib/utils.js
CHANGED
|
@@ -19,7 +19,6 @@ const path = require('path');
|
|
|
19
19
|
const process = require('process');
|
|
20
20
|
const semver = require('semver');
|
|
21
21
|
const { IntentionalError } = require('@contrast/common');
|
|
22
|
-
const { findPackageJsonSync } = require('@contrast/find-package-json');
|
|
23
22
|
const {
|
|
24
23
|
engines: {
|
|
25
24
|
node: nodeEngines,
|
|
@@ -89,6 +88,7 @@ function assertSupportedPreloadUsage() {
|
|
|
89
88
|
// if absolute path is provided read the package name to check if it's our agent
|
|
90
89
|
if (path.isAbsolute(preloadTarget)) {
|
|
91
90
|
try {
|
|
91
|
+
const { findPackageJsonSync } = require('@contrast/find-package-json');
|
|
92
92
|
const { name } = require(findPackageJsonSync({ cwd: path.dirname(preloadTarget) }));
|
|
93
93
|
if (name !== '@contrast/agent') continue;
|
|
94
94
|
preloadTarget = name;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/agentify",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0",
|
|
4
4
|
"description": "Configures Contrast agent services and instrumentation within an application",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
@@ -11,25 +11,25 @@
|
|
|
11
11
|
"types": "lib/index.d.ts",
|
|
12
12
|
"engines": {
|
|
13
13
|
"npm": ">=6.13.7 <7 || >= 8.3.1",
|
|
14
|
-
"node": ">=
|
|
14
|
+
"node": ">= 16.9.1"
|
|
15
15
|
},
|
|
16
16
|
"scripts": {
|
|
17
17
|
"test": "../scripts/test.sh"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@contrast/common": "1.21.
|
|
21
|
-
"@contrast/config": "1.28.
|
|
22
|
-
"@contrast/core": "1.32.
|
|
23
|
-
"@contrast/deadzones": "1.2.
|
|
24
|
-
"@contrast/dep-hooks": "1.3.
|
|
25
|
-
"@contrast/esm-hooks": "2.6.
|
|
20
|
+
"@contrast/common": "1.21.1",
|
|
21
|
+
"@contrast/config": "1.28.1",
|
|
22
|
+
"@contrast/core": "1.32.1",
|
|
23
|
+
"@contrast/deadzones": "1.2.1",
|
|
24
|
+
"@contrast/dep-hooks": "1.3.3",
|
|
25
|
+
"@contrast/esm-hooks": "2.6.1",
|
|
26
26
|
"@contrast/find-package-json": "^1.1.0",
|
|
27
|
-
"@contrast/instrumentation": "1.
|
|
28
|
-
"@contrast/logger": "1.8.
|
|
29
|
-
"@contrast/metrics": "1.8.
|
|
30
|
-
"@contrast/patcher": "1.7.
|
|
31
|
-
"@contrast/reporter": "1.27.
|
|
32
|
-
"@contrast/rewriter": "1.8.
|
|
27
|
+
"@contrast/instrumentation": "1.9.0",
|
|
28
|
+
"@contrast/logger": "1.8.3",
|
|
29
|
+
"@contrast/metrics": "1.8.1",
|
|
30
|
+
"@contrast/patcher": "1.7.3",
|
|
31
|
+
"@contrast/reporter": "1.27.1",
|
|
32
|
+
"@contrast/rewriter": "1.8.1",
|
|
33
33
|
"@contrast/scopes": "1.4.1",
|
|
34
34
|
"semver": "^7.6.0"
|
|
35
35
|
}
|