@contrast/agent-bundle 5.45.1 → 5.46.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 (56) hide show
  1. package/node_modules/@contrast/agent/package.json +10 -10
  2. package/node_modules/@contrast/agentify/package.json +14 -14
  3. package/node_modules/@contrast/architecture-components/package.json +4 -4
  4. package/node_modules/@contrast/assess/lib/dataflow/sources/handler.js +21 -24
  5. package/node_modules/@contrast/assess/lib/get-source-context.js +10 -21
  6. package/node_modules/@contrast/assess/lib/index.js +1 -1
  7. package/node_modules/@contrast/assess/lib/make-source-context.js +5 -10
  8. package/node_modules/@contrast/assess/lib/policy.js +400 -0
  9. package/node_modules/@contrast/assess/lib/response-scanning/handlers/index.js +10 -14
  10. package/node_modules/@contrast/assess/lib/session-configuration/handlers.js +1 -1
  11. package/node_modules/@contrast/assess/package.json +11 -11
  12. package/node_modules/@contrast/config/lib/options.js +8 -0
  13. package/node_modules/@contrast/config/package.json +2 -2
  14. package/node_modules/@contrast/core/package.json +4 -4
  15. package/node_modules/@contrast/deadzones/package.json +4 -4
  16. package/node_modules/@contrast/dep-hooks/package.json +3 -3
  17. package/node_modules/@contrast/esm-hooks/package.json +5 -5
  18. package/node_modules/@contrast/instrumentation/package.json +4 -4
  19. package/node_modules/@contrast/library-analysis/lib/install/library-reporting/dep.json +127 -127
  20. package/node_modules/@contrast/library-analysis/package.json +3 -3
  21. package/node_modules/@contrast/logger/package.json +2 -2
  22. package/node_modules/@contrast/metrics/package.json +5 -5
  23. package/node_modules/@contrast/patcher/package.json +2 -2
  24. package/node_modules/@contrast/protect/lib/input-analysis/handlers.js +1 -12
  25. package/node_modules/@contrast/protect/package.json +10 -10
  26. package/node_modules/@contrast/reporter/package.json +5 -5
  27. package/node_modules/@contrast/rewriter/package.json +4 -4
  28. package/node_modules/@contrast/route-coverage/package.json +7 -7
  29. package/node_modules/@contrast/scopes/package.json +5 -5
  30. package/node_modules/@contrast/sec-obs/package.json +8 -8
  31. package/node_modules/@contrast/sources/package.json +2 -2
  32. package/node_modules/@contrast/telemetry/package.json +4 -4
  33. package/node_modules/@types/node/README.md +1 -1
  34. package/node_modules/@types/node/assert/strict.d.ts +105 -2
  35. package/node_modules/@types/node/assert.d.ts +119 -95
  36. package/node_modules/@types/node/crypto.d.ts +117 -7
  37. package/node_modules/@types/node/events.d.ts +79 -33
  38. package/node_modules/@types/node/fs.d.ts +224 -0
  39. package/node_modules/@types/node/http.d.ts +28 -3
  40. package/node_modules/@types/node/package.json +3 -3
  41. package/node_modules/@types/node/test.d.ts +2 -23
  42. package/node_modules/@types/node/url.d.ts +6 -1
  43. package/node_modules/@types/node/util.d.ts +5 -0
  44. package/node_modules/@types/node/web-globals/events.d.ts +3 -0
  45. package/node_modules/@types/node/worker_threads.d.ts +33 -47
  46. package/node_modules/@types/node/zlib.d.ts +6 -0
  47. package/node_modules/undici-types/agent.d.ts +0 -4
  48. package/node_modules/undici-types/client.d.ts +0 -2
  49. package/node_modules/undici-types/dispatcher.d.ts +0 -6
  50. package/node_modules/undici-types/h2c-client.d.ts +0 -2
  51. package/node_modules/undici-types/index.d.ts +3 -1
  52. package/node_modules/undici-types/mock-interceptor.d.ts +0 -1
  53. package/node_modules/undici-types/package.json +1 -1
  54. package/node_modules/undici-types/snapshot-agent.d.ts +107 -0
  55. package/package.json +2 -2
  56. package/node_modules/@contrast/assess/lib/get-policy.js +0 -336
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/library-analysis",
3
- "version": "1.47.1",
3
+ "version": "1.48.0",
4
4
  "description": "Handles library reporting and library usage analysis",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -22,9 +22,9 @@
22
22
  "dependencies": {
23
23
  "@contrast/code-events": "^4.0.2",
24
24
  "@contrast/common": "1.37.0",
25
- "@contrast/config": "1.52.1",
25
+ "@contrast/config": "1.53.0",
26
26
  "@contrast/find-package-json": "^1.1.0",
27
- "@contrast/logger": "1.30.1",
27
+ "@contrast/logger": "1.31.0",
28
28
  "semver": "^7.6.0"
29
29
  }
30
30
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/logger",
3
- "version": "1.30.1",
3
+ "version": "1.31.0",
4
4
  "description": "Centralized logging for Contrast agent services",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -22,7 +22,7 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@contrast/common": "1.37.0",
25
- "@contrast/config": "1.52.1",
25
+ "@contrast/config": "1.53.0",
26
26
  "pino": "^8.15.0"
27
27
  }
28
28
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/metrics",
3
- "version": "1.34.1",
3
+ "version": "1.35.0",
4
4
  "description": "Records and logs route latency",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -22,9 +22,9 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@contrast/common": "1.37.0",
25
- "@contrast/config": "1.52.1",
26
- "@contrast/dep-hooks": "1.26.1",
27
- "@contrast/logger": "1.30.1",
28
- "@contrast/patcher": "1.29.1"
25
+ "@contrast/config": "1.53.0",
26
+ "@contrast/dep-hooks": "1.27.0",
27
+ "@contrast/logger": "1.31.0",
28
+ "@contrast/patcher": "1.30.0"
29
29
  }
30
30
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/patcher",
3
- "version": "1.29.1",
3
+ "version": "1.30.0",
4
4
  "description": "Advanced monkey patching--registers hooks to run in and around functions",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -20,6 +20,6 @@
20
20
  "test": "bash ../scripts/test.sh"
21
21
  },
22
22
  "dependencies": {
23
- "@contrast/logger": "1.30.1"
23
+ "@contrast/logger": "1.31.0"
24
24
  }
25
25
  }
@@ -665,7 +665,6 @@ module.exports = Core.makeComponent({
665
665
  // Detecting probes
666
666
  const rulesMask = sourceContext.policy.getRulesMask();
667
667
  if (rulesMask == 0 || !config.protect.probe_analysis.enable) return;
668
- const probeReports = [];
669
668
  const { resultsMap } = sourceContext;
670
669
  const probesRules = [Rule.CMD_INJECTION, Rule.PATH_TRAVERSAL, Rule.SQL_INJECTION, Rule.XXE];
671
670
  const probes = {};
@@ -734,7 +733,6 @@ module.exports = Core.makeComponent({
734
733
  }) || [];
735
734
  alibResult.forEach(result => {
736
735
  results.push({ value, ...result });
737
- probeReports.push({ value, ...result });
738
736
  valueToResultByRuleId[value] = resultByRuleId;
739
737
  });
740
738
  });
@@ -756,16 +754,7 @@ module.exports = Core.makeComponent({
756
754
  probes[key] = probe;
757
755
  });
758
756
 
759
- Object.values(probes).forEach(probe => {
760
- if (!resultsMap[probe.ruleId]) {
761
- resultsMap[probe.ruleId] = [];
762
- }
763
-
764
- resultsMap[probe.ruleId].push(probe);
765
- probeReports.push(probe);
766
- });
767
-
768
- for (const result of probeReports) {
757
+ for (const result of Object.values(probes)) {
769
758
  core.protect.reportFinding({ result });
770
759
  }
771
760
  };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/protect",
3
- "version": "1.68.0",
3
+ "version": "1.69.0",
4
4
  "description": "Contrast service providing framework-agnostic Protect support",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -22,15 +22,15 @@
22
22
  "dependencies": {
23
23
  "@contrast/agent-lib": "^9.1.0",
24
24
  "@contrast/common": "1.37.0",
25
- "@contrast/config": "1.52.1",
26
- "@contrast/core": "1.57.1",
27
- "@contrast/dep-hooks": "1.26.1",
28
- "@contrast/esm-hooks": "2.32.0",
29
- "@contrast/instrumentation": "1.36.1",
30
- "@contrast/logger": "1.30.1",
31
- "@contrast/patcher": "1.29.1",
32
- "@contrast/rewriter": "1.34.0",
33
- "@contrast/scopes": "1.27.1",
25
+ "@contrast/config": "1.53.0",
26
+ "@contrast/core": "1.58.0",
27
+ "@contrast/dep-hooks": "1.27.0",
28
+ "@contrast/esm-hooks": "2.33.0",
29
+ "@contrast/instrumentation": "1.37.0",
30
+ "@contrast/logger": "1.31.0",
31
+ "@contrast/patcher": "1.30.0",
32
+ "@contrast/rewriter": "1.35.0",
33
+ "@contrast/scopes": "1.28.0",
34
34
  "async-hook-domain": "^4.0.1",
35
35
  "ipaddr.js": "^2.0.1",
36
36
  "on-finished": "^2.4.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/reporter",
3
- "version": "1.55.1",
3
+ "version": "1.56.0",
4
4
  "description": "Subscribes to agent messages and reports them",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -22,11 +22,11 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@contrast/common": "1.37.0",
25
- "@contrast/config": "1.52.1",
26
- "@contrast/core": "1.57.1",
27
- "@contrast/logger": "1.30.1",
25
+ "@contrast/config": "1.53.0",
26
+ "@contrast/core": "1.58.0",
27
+ "@contrast/logger": "1.31.0",
28
28
  "@contrast/perf": "1.4.0",
29
- "@contrast/scopes": "1.27.1",
29
+ "@contrast/scopes": "1.28.0",
30
30
  "axios": "^1.12.2",
31
31
  "crc-32": "^1.2.2",
32
32
  "safe-stable-stringify": "^2.4.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/rewriter",
3
- "version": "1.34.0",
3
+ "version": "1.35.0",
4
4
  "description": "A transpilation tool mainly used for instrumentation",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -22,9 +22,9 @@
22
22
  "dependencies": {
23
23
  "@contrast/agent-swc-plugin": "3.2.0",
24
24
  "@contrast/common": "1.37.0",
25
- "@contrast/config": "1.52.1",
26
- "@contrast/core": "1.57.1",
27
- "@contrast/logger": "1.30.1",
25
+ "@contrast/config": "1.53.0",
26
+ "@contrast/core": "1.58.0",
27
+ "@contrast/logger": "1.31.0",
28
28
  "@swc/core": "1.13.3"
29
29
  }
30
30
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/route-coverage",
3
- "version": "1.49.1",
3
+ "version": "1.50.0",
4
4
  "description": "Handles route discovery and observation",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -21,13 +21,13 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@contrast/common": "1.37.0",
24
- "@contrast/config": "1.52.1",
25
- "@contrast/core": "1.57.1",
26
- "@contrast/dep-hooks": "1.26.1",
24
+ "@contrast/config": "1.53.0",
25
+ "@contrast/core": "1.58.0",
26
+ "@contrast/dep-hooks": "1.27.0",
27
27
  "@contrast/fn-inspect": "^5.0.2",
28
- "@contrast/logger": "1.30.1",
29
- "@contrast/patcher": "1.29.1",
30
- "@contrast/scopes": "1.27.1",
28
+ "@contrast/logger": "1.31.0",
29
+ "@contrast/patcher": "1.30.0",
30
+ "@contrast/scopes": "1.28.0",
31
31
  "semver": "^7.6.0"
32
32
  }
33
33
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/scopes",
3
- "version": "1.27.1",
3
+ "version": "1.28.0",
4
4
  "description": "Handles AsyncLocalStorage scopes",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -20,9 +20,9 @@
20
20
  "test": "bash ../scripts/test.sh"
21
21
  },
22
22
  "dependencies": {
23
- "@contrast/core": "1.57.1",
24
- "@contrast/dep-hooks": "1.26.1",
25
- "@contrast/logger": "1.30.1",
26
- "@contrast/patcher": "1.29.1"
23
+ "@contrast/core": "1.58.0",
24
+ "@contrast/dep-hooks": "1.27.0",
25
+ "@contrast/logger": "1.31.0",
26
+ "@contrast/patcher": "1.30.0"
27
27
  }
28
28
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/sec-obs",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "Contrast service providing framework-agnostic Observability support",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -18,13 +18,13 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@contrast/common": "1.37.0",
21
- "@contrast/config": "1.52.1",
22
- "@contrast/core": "1.57.1",
23
- "@contrast/dep-hooks": "1.26.1",
24
- "@contrast/logger": "1.30.1",
25
- "@contrast/patcher": "1.29.1",
26
- "@contrast/rewriter": "1.34.0",
27
- "@contrast/scopes": "1.27.1",
21
+ "@contrast/config": "1.53.0",
22
+ "@contrast/core": "1.58.0",
23
+ "@contrast/dep-hooks": "1.27.0",
24
+ "@contrast/logger": "1.31.0",
25
+ "@contrast/patcher": "1.30.0",
26
+ "@contrast/rewriter": "1.35.0",
27
+ "@contrast/scopes": "1.28.0",
28
28
  "@opentelemetry/api": "^1.9.0",
29
29
  "@opentelemetry/exporter-metrics-otlp-http": "^0.57.1",
30
30
  "@opentelemetry/exporter-trace-otlp-http": "^0.57.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/sources",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Instruments to have incoming messages run in async-local request scope.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -10,7 +10,7 @@
10
10
  "license": "ISC",
11
11
  "dependencies": {
12
12
  "@contrast/common": "1.37.0",
13
- "@contrast/core": "1.57.1",
13
+ "@contrast/core": "1.58.0",
14
14
  "on-finished": "^2.4.1"
15
15
  }
16
16
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/telemetry",
3
- "version": "1.32.1",
3
+ "version": "1.33.0",
4
4
  "description": "Telemetry reporting for the Contrast Node.js agent.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -20,9 +20,9 @@
20
20
  },
21
21
  "dependencies": {
22
22
  "@contrast/common": "1.37.0",
23
- "@contrast/config": "1.52.1",
24
- "@contrast/core": "1.57.1",
25
- "@contrast/logger": "1.30.1",
23
+ "@contrast/config": "1.53.0",
24
+ "@contrast/core": "1.58.0",
25
+ "@contrast/logger": "1.31.0",
26
26
  "axios": "^1.12.2",
27
27
  "getmac": "^6.3.0"
28
28
  }
@@ -8,7 +8,7 @@ This package contains type definitions for node (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Thu, 18 Sep 2025 00:04:03 GMT
11
+ * Last updated: Thu, 02 Oct 2025 02:06:47 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -1,8 +1,111 @@
1
+ /**
2
+ * In strict assertion mode, non-strict methods behave like their corresponding
3
+ * strict methods. For example, `assert.deepEqual()` will behave like
4
+ * `assert.deepStrictEqual()`.
5
+ *
6
+ * In strict assertion mode, error messages for objects display a diff. In legacy
7
+ * assertion mode, error messages for objects display the objects, often truncated.
8
+ *
9
+ * To use strict assertion mode:
10
+ *
11
+ * ```js
12
+ * import { strict as assert } from 'node:assert';
13
+ * ```
14
+ *
15
+ * ```js
16
+ * import assert from 'node:assert/strict';
17
+ * ```
18
+ *
19
+ * Example error diff:
20
+ *
21
+ * ```js
22
+ * import { strict as assert } from 'node:assert';
23
+ *
24
+ * assert.deepEqual([[[1, 2, 3]], 4, 5], [[[1, 2, '3']], 4, 5]);
25
+ * // AssertionError: Expected inputs to be strictly deep-equal:
26
+ * // + actual - expected ... Lines skipped
27
+ * //
28
+ * // [
29
+ * // [
30
+ * // ...
31
+ * // 2,
32
+ * // + 3
33
+ * // - '3'
34
+ * // ],
35
+ * // ...
36
+ * // 5
37
+ * // ]
38
+ * ```
39
+ *
40
+ * To deactivate the colors, use the `NO_COLOR` or `NODE_DISABLE_COLORS`
41
+ * environment variables. This will also deactivate the colors in the REPL. For
42
+ * more on color support in terminal environments, read the tty
43
+ * [`getColorDepth()`](https://nodejs.org/docs/latest-v24.x/api/tty.html#writestreamgetcolordepthenv) documentation.
44
+ * @since v15.0.0
45
+ * @see [source](https://github.com/nodejs/node/blob/v24.x/lib/assert/strict.js)
46
+ */
1
47
  declare module "assert/strict" {
2
- import { strict } from "node:assert";
48
+ import {
49
+ Assert,
50
+ AssertionError,
51
+ AssertionErrorOptions,
52
+ AssertOptions,
53
+ AssertPredicate,
54
+ AssertStrict,
55
+ CallTracker,
56
+ CallTrackerCall,
57
+ CallTrackerReportInformation,
58
+ deepStrictEqual,
59
+ doesNotMatch,
60
+ doesNotReject,
61
+ doesNotThrow,
62
+ fail,
63
+ ifError,
64
+ match,
65
+ notDeepStrictEqual,
66
+ notStrictEqual,
67
+ ok,
68
+ partialDeepStrictEqual,
69
+ rejects,
70
+ strictEqual,
71
+ throws,
72
+ } from "node:assert";
73
+ function strict(value: unknown, message?: string | Error): asserts value;
74
+ namespace strict {
75
+ export {
76
+ Assert,
77
+ AssertionError,
78
+ AssertionErrorOptions,
79
+ AssertOptions,
80
+ AssertPredicate,
81
+ AssertStrict,
82
+ CallTracker,
83
+ CallTrackerCall,
84
+ CallTrackerReportInformation,
85
+ deepStrictEqual,
86
+ deepStrictEqual as deepEqual,
87
+ doesNotMatch,
88
+ doesNotReject,
89
+ doesNotThrow,
90
+ fail,
91
+ ifError,
92
+ match,
93
+ notDeepStrictEqual,
94
+ notDeepStrictEqual as notDeepEqual,
95
+ notStrictEqual,
96
+ notStrictEqual as notEqual,
97
+ ok,
98
+ partialDeepStrictEqual,
99
+ rejects,
100
+ strict,
101
+ strictEqual,
102
+ strictEqual as equal,
103
+ throws,
104
+ };
105
+ }
3
106
  export = strict;
4
107
  }
5
108
  declare module "node:assert/strict" {
6
- import { strict } from "node:assert";
109
+ import strict = require("assert/strict");
7
110
  export = strict;
8
111
  }