@contrast/agent 5.30.0 → 5.31.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/start-agent.js +4 -3
- package/package.json +11 -10
package/lib/start-agent.js
CHANGED
|
@@ -17,8 +17,9 @@
|
|
|
17
17
|
|
|
18
18
|
const process = require('process');
|
|
19
19
|
const { isMainThread, threadId } = require('worker_threads');
|
|
20
|
-
const _agentify = require('@contrast/agentify');
|
|
21
20
|
const { safeConsoleError, safeConsoleWarn } = require('@contrast/common');
|
|
21
|
+
const { Core } = require('@contrast/core/lib/ioc/core');
|
|
22
|
+
const _agentify = require('@contrast/agentify');
|
|
22
23
|
|
|
23
24
|
const {
|
|
24
25
|
name: agentName,
|
|
@@ -30,7 +31,7 @@ const {
|
|
|
30
31
|
} = require('../package.json');
|
|
31
32
|
|
|
32
33
|
function initCore() {
|
|
33
|
-
const core = {
|
|
34
|
+
const core = new Core({
|
|
34
35
|
agentName,
|
|
35
36
|
agentVersion,
|
|
36
37
|
nodeEngines,
|
|
@@ -49,7 +50,7 @@ function initCore() {
|
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
52
|
}
|
|
52
|
-
};
|
|
53
|
+
});
|
|
53
54
|
|
|
54
55
|
if (process.env.CSI_EXPOSE_CORE) {
|
|
55
56
|
global[Symbol.for('contrast:core')] = core;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/agent",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.31.0",
|
|
4
4
|
"description": "Assess and Protect agents for Node.js",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
@@ -24,14 +24,15 @@
|
|
|
24
24
|
"test": "../scripts/test.sh"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@contrast/agentify": "1.
|
|
28
|
-
"@contrast/architecture-components": "1.
|
|
29
|
-
"@contrast/assess": "1.
|
|
30
|
-
"@contrast/common": "1.
|
|
31
|
-
"@contrast/
|
|
32
|
-
"@contrast/
|
|
33
|
-
"@contrast/
|
|
34
|
-
"@contrast/
|
|
35
|
-
"@contrast/
|
|
27
|
+
"@contrast/agentify": "1.45.0",
|
|
28
|
+
"@contrast/architecture-components": "1.36.0",
|
|
29
|
+
"@contrast/assess": "1.50.0",
|
|
30
|
+
"@contrast/common": "1.32.0",
|
|
31
|
+
"@contrast/core": "1.48.0",
|
|
32
|
+
"@contrast/library-analysis": "1.38.0",
|
|
33
|
+
"@contrast/protect": "1.57.0",
|
|
34
|
+
"@contrast/route-coverage": "1.38.0",
|
|
35
|
+
"@contrast/sec-obs": "1.1.0",
|
|
36
|
+
"@contrast/telemetry": "1.23.0"
|
|
36
37
|
}
|
|
37
38
|
}
|