@contrast/agent 5.61.0 → 5.62.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.
Files changed (2) hide show
  1. package/lib/start-agent.js +5 -1
  2. package/package.json +14 -13
@@ -46,7 +46,8 @@ function initCore() {
46
46
  !core.config.preinstrument &&
47
47
  !core.config.getEffectiveValue('assess.enable') &&
48
48
  !core.config.getEffectiveValue('protect.enable') &&
49
- !core.config.getEffectiveValue('observe.enable')
49
+ !core.config.getEffectiveValue('observe.enable') &&
50
+ !core.config.getEffectiveValue('shield.enable')
50
51
  ) {
51
52
  throw new Error('Neither Assess nor Protect nor Observability are enabled. Check local configuration and UI settings');
52
53
  }
@@ -65,6 +66,7 @@ function loadFeatures(core) {
65
66
  require('@contrast/library-analysis')(core);
66
67
  require('@contrast/route-coverage')(core);
67
68
  require('@contrast/assess')(core);
69
+ core.initComponentSync(require('@contrast/cve-shield'));
68
70
  require('@contrast/protect')(core);
69
71
  require('@contrast/sec-obs')(core);
70
72
  }
@@ -94,10 +96,12 @@ function startAgent({ type = 'cjs' } = {}) {
94
96
  'contrastMethods',
95
97
  'deadzones',
96
98
  'scopes',
99
+ 'otel',
97
100
  'secObs',
98
101
  'sources',
99
102
  'routeCoverage',
100
103
  'assess',
104
+ 'cveShield',
101
105
  'protect',
102
106
  'depHooks',
103
107
  'libraryAnalysis',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/agent",
3
- "version": "5.61.0",
3
+ "version": "5.62.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)",
@@ -21,22 +21,23 @@
21
21
  },
22
22
  "main": "./lib/index.js",
23
23
  "engines": {
24
- "npm": ">=6.13.7 <7 || >= 8.3.1",
25
- "node": ">=18.7.0 <19 || >=20.9.0 <21 || >= 22.5.1 <23 || >= 24.0.1 <25"
24
+ "npm": ">=8.5.5",
25
+ "node": ">=18.7.0 <19 || >=20.9.0 <21 || >=22.5.1 <23 || >=24.0.1 <25"
26
26
  },
27
27
  "scripts": {
28
28
  "test": "bash ../scripts/test.sh"
29
29
  },
30
30
  "dependencies": {
31
- "@contrast/agentify": "1.69.0",
32
- "@contrast/assess": "1.77.0",
33
- "@contrast/cli": "1.65.0",
34
- "@contrast/common": "1.41.1",
35
- "@contrast/core": "1.65.0",
36
- "@contrast/library-analysis": "1.55.0",
37
- "@contrast/protect": "1.79.0",
38
- "@contrast/route-coverage": "1.59.0",
39
- "@contrast/sec-obs": "1.10.0",
40
- "@contrast/telemetry": "1.40.0"
31
+ "@contrast/agentify": "1.70.0",
32
+ "@contrast/assess": "1.78.0",
33
+ "@contrast/cli": "1.66.0",
34
+ "@contrast/common": "1.42.0",
35
+ "@contrast/core": "1.66.0",
36
+ "@contrast/cve-shield": "1.1.0",
37
+ "@contrast/library-analysis": "1.56.0",
38
+ "@contrast/protect": "1.80.0",
39
+ "@contrast/route-coverage": "1.60.0",
40
+ "@contrast/sec-obs": "1.11.0",
41
+ "@contrast/telemetry": "1.41.0"
41
42
  }
42
43
  }