@contrast/agent-bundle 5.39.0 → 5.40.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/lib/start-agent.js +50 -40
  2. package/node_modules/@contrast/agent/package.json +10 -10
  3. package/node_modules/@contrast/agentify/lib/sources.js +1 -0
  4. package/node_modules/@contrast/agentify/package.json +14 -14
  5. package/node_modules/@contrast/architecture-components/package.json +5 -5
  6. package/node_modules/@contrast/assess/lib/crypto-analysis/install/math.js +1 -0
  7. package/node_modules/@contrast/assess/lib/dataflow/propagation/install/string/replace.js +6 -3
  8. package/node_modules/@contrast/assess/lib/dataflow/sources/index.js +1 -1
  9. package/node_modules/@contrast/assess/lib/dataflow/sources/install/{body-parser1.js → body-parser.js} +1 -1
  10. package/node_modules/@contrast/assess/package.json +11 -11
  11. package/node_modules/@contrast/common/lib/constants.d.ts +16 -0
  12. package/node_modules/@contrast/common/lib/constants.js +22 -1
  13. package/node_modules/@contrast/common/lib/index.d.ts +1 -0
  14. package/node_modules/@contrast/common/lib/index.js +12 -2
  15. package/node_modules/@contrast/common/package.json +1 -1
  16. package/node_modules/@contrast/config/lib/index.d.ts +1 -0
  17. package/node_modules/@contrast/config/package.json +3 -3
  18. package/node_modules/@contrast/core/package.json +5 -5
  19. package/node_modules/@contrast/deadzones/package.json +5 -5
  20. package/node_modules/@contrast/dep-hooks/package.json +3 -3
  21. package/node_modules/@contrast/esm-hooks/package.json +6 -6
  22. package/node_modules/@contrast/instrumentation/package.json +5 -5
  23. package/node_modules/@contrast/library-analysis/lib/install/library-reporting/dep.json +155 -150
  24. package/node_modules/@contrast/library-analysis/lib/install/library-reporting/index.js +9 -2
  25. package/node_modules/@contrast/library-analysis/lib/install/library-reporting/utils.js +54 -43
  26. package/node_modules/@contrast/library-analysis/package.json +4 -4
  27. package/node_modules/@contrast/logger/package.json +3 -3
  28. package/node_modules/@contrast/metrics/package.json +6 -6
  29. package/node_modules/@contrast/patcher/package.json +2 -2
  30. package/node_modules/@contrast/protect/lib/input-analysis/index.js +1 -1
  31. package/node_modules/@contrast/protect/lib/input-analysis/install/{body-parser1.js → body-parser.js} +1 -1
  32. package/node_modules/@contrast/protect/package.json +11 -11
  33. package/node_modules/@contrast/reporter/lib/reporters/contrast-ui/endpoints/routes-observed.js +2 -1
  34. package/node_modules/@contrast/reporter/package.json +6 -6
  35. package/node_modules/@contrast/rewriter/package.json +5 -5
  36. package/node_modules/@contrast/route-coverage/lib/index.d.ts +2 -0
  37. package/node_modules/@contrast/route-coverage/lib/index.js +14 -8
  38. package/node_modules/@contrast/route-coverage/lib/install/express/express5.js +491 -202
  39. package/node_modules/@contrast/route-coverage/package.json +9 -9
  40. package/node_modules/@contrast/scopes/package.json +5 -5
  41. package/node_modules/@contrast/telemetry/package.json +5 -5
  42. package/node_modules/@types/node/README.md +1 -1
  43. package/node_modules/@types/node/buffer.d.ts +5 -0
  44. package/node_modules/@types/node/dns/promises.d.ts +11 -10
  45. package/node_modules/@types/node/dns.d.ts +18 -19
  46. package/node_modules/@types/node/package.json +2 -2
  47. package/node_modules/@types/node/stream/web.d.ts +4 -0
  48. package/node_modules/@types/node/test.d.ts +1905 -2009
  49. package/package.json +2 -2
  50. package/node_modules/@contrast/route-coverage/lib/install/http.js +0 -44
  51. package/node_modules/path-to-regexp/LICENSE +0 -21
  52. package/node_modules/path-to-regexp/Readme.md +0 -216
  53. package/node_modules/path-to-regexp/dist/index.d.ts +0 -136
  54. package/node_modules/path-to-regexp/dist/index.js +0 -403
  55. package/node_modules/path-to-regexp/dist/index.js.map +0 -1
  56. package/node_modules/path-to-regexp/package.json +0 -62
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/route-coverage",
3
- "version": "1.45.0",
3
+ "version": "1.45.2",
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)",
@@ -20,14 +20,14 @@
20
20
  "test": "bash ../scripts/test.sh"
21
21
  },
22
22
  "dependencies": {
23
- "@contrast/common": "1.34.0",
24
- "@contrast/config": "1.49.0",
25
- "@contrast/dep-hooks": "1.23.0",
23
+ "@contrast/common": "1.34.2",
24
+ "@contrast/config": "1.49.2",
25
+ "@contrast/core": "1.54.2",
26
+ "@contrast/dep-hooks": "1.23.2",
26
27
  "@contrast/fn-inspect": "^4.3.0",
27
- "@contrast/logger": "1.27.0",
28
- "@contrast/patcher": "1.26.0",
29
- "@contrast/scopes": "1.24.0",
30
- "semver": "^7.6.0",
31
- "path-to-regexp": "^8.2.0"
28
+ "@contrast/logger": "1.27.2",
29
+ "@contrast/patcher": "1.26.2",
30
+ "@contrast/scopes": "1.24.2",
31
+ "semver": "^7.6.0"
32
32
  }
33
33
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/scopes",
3
- "version": "1.24.0",
3
+ "version": "1.24.2",
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.54.0",
24
- "@contrast/dep-hooks": "1.23.0",
25
- "@contrast/logger": "1.27.0",
26
- "@contrast/patcher": "1.26.0"
23
+ "@contrast/core": "1.54.2",
24
+ "@contrast/dep-hooks": "1.23.2",
25
+ "@contrast/logger": "1.27.2",
26
+ "@contrast/patcher": "1.26.2"
27
27
  }
28
28
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/telemetry",
3
- "version": "1.29.0",
3
+ "version": "1.29.2",
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)",
@@ -19,10 +19,10 @@
19
19
  "test": "bash ../scripts/test.sh"
20
20
  },
21
21
  "dependencies": {
22
- "@contrast/common": "1.34.0",
23
- "@contrast/config": "1.49.0",
24
- "@contrast/core": "1.54.0",
25
- "@contrast/logger": "1.27.0",
22
+ "@contrast/common": "1.34.2",
23
+ "@contrast/config": "1.49.2",
24
+ "@contrast/core": "1.54.2",
25
+ "@contrast/logger": "1.27.2",
26
26
  "axios": "^1.7.4",
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: Mon, 30 Jun 2025 21:02:16 GMT
11
+ * Last updated: Wed, 09 Jul 2025 00:04:35 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -1701,6 +1701,8 @@ declare module "buffer" {
1701
1701
  * @return A reference to `buf`.
1702
1702
  */
1703
1703
  fill(value: string | Uint8Array | number, offset?: number, end?: number, encoding?: BufferEncoding): this;
1704
+ fill(value: string | Uint8Array | number, offset: number, encoding: BufferEncoding): this;
1705
+ fill(value: string | Uint8Array | number, encoding: BufferEncoding): this;
1704
1706
  /**
1705
1707
  * If `value` is:
1706
1708
  *
@@ -1770,6 +1772,7 @@ declare module "buffer" {
1770
1772
  * @return The index of the first occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1771
1773
  */
1772
1774
  indexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1775
+ indexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
1773
1776
  /**
1774
1777
  * Identical to `buf.indexOf()`, except the last occurrence of `value` is found
1775
1778
  * rather than the first occurrence.
@@ -1838,6 +1841,7 @@ declare module "buffer" {
1838
1841
  * @return The index of the last occurrence of `value` in `buf`, or `-1` if `buf` does not contain `value`.
1839
1842
  */
1840
1843
  lastIndexOf(value: string | number | Uint8Array, byteOffset?: number, encoding?: BufferEncoding): number;
1844
+ lastIndexOf(value: string | number | Uint8Array, encoding: BufferEncoding): number;
1841
1845
  /**
1842
1846
  * Equivalent to `buf.indexOf() !== -1`.
1843
1847
  *
@@ -1868,6 +1872,7 @@ declare module "buffer" {
1868
1872
  * @return `true` if `value` was found in `buf`, `false` otherwise.
1869
1873
  */
1870
1874
  includes(value: string | number | Buffer, byteOffset?: number, encoding?: BufferEncoding): boolean;
1875
+ includes(value: string | number | Buffer, encoding: BufferEncoding): boolean;
1871
1876
  }
1872
1877
  var Buffer: BufferConstructor;
1873
1878
  /**
@@ -127,24 +127,25 @@ declare module "dns/promises" {
127
127
  * @param [rrtype='A'] Resource record type.
128
128
  */
129
129
  function resolve(hostname: string): Promise<string[]>;
130
- function resolve(hostname: string, rrtype: "A"): Promise<string[]>;
131
- function resolve(hostname: string, rrtype: "AAAA"): Promise<string[]>;
130
+ function resolve(hostname: string, rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
132
131
  function resolve(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
133
132
  function resolve(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>;
134
- function resolve(hostname: string, rrtype: "CNAME"): Promise<string[]>;
135
133
  function resolve(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
136
134
  function resolve(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
137
- function resolve(hostname: string, rrtype: "NS"): Promise<string[]>;
138
- function resolve(hostname: string, rrtype: "PTR"): Promise<string[]>;
139
135
  function resolve(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
140
136
  function resolve(hostname: string, rrtype: "SRV"): Promise<SrvRecord[]>;
141
137
  function resolve(hostname: string, rrtype: "TLSA"): Promise<TlsaRecord[]>;
142
138
  function resolve(hostname: string, rrtype: "TXT"): Promise<string[][]>;
143
- function resolve(
144
- hostname: string,
145
- rrtype: string,
146
- ): Promise<
147
- string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | TlsaRecord[] | string[][] | AnyRecord[]
139
+ function resolve(hostname: string, rrtype: string): Promise<
140
+ | string[]
141
+ | CaaRecord[]
142
+ | MxRecord[]
143
+ | NaptrRecord[]
144
+ | SoaRecord
145
+ | SrvRecord[]
146
+ | TlsaRecord[]
147
+ | string[][]
148
+ | AnyRecord[]
148
149
  >;
149
150
  /**
150
151
  * Uses the DNS protocol to resolve IPv4 addresses (`A` records) for the `hostname`. On success, the `Promise` is resolved with an array of IPv4
@@ -250,6 +250,9 @@ declare module "dns" {
250
250
  contactemail?: string | undefined;
251
251
  contactphone?: string | undefined;
252
252
  }
253
+ export interface AnyCaaRecord extends CaaRecord {
254
+ type: "CAA";
255
+ }
253
256
  export interface MxRecord {
254
257
  priority: number;
255
258
  exchange: string;
@@ -317,6 +320,7 @@ declare module "dns" {
317
320
  export type AnyRecord =
318
321
  | AnyARecord
319
322
  | AnyAaaaRecord
323
+ | AnyCaaRecord
320
324
  | AnyCnameRecord
321
325
  | AnyMxRecord
322
326
  | AnyNaptrRecord
@@ -345,12 +349,7 @@ declare module "dns" {
345
349
  ): void;
346
350
  export function resolve(
347
351
  hostname: string,
348
- rrtype: "A",
349
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
350
- ): void;
351
- export function resolve(
352
- hostname: string,
353
- rrtype: "AAAA",
352
+ rrtype: "A" | "AAAA" | "CNAME" | "NS" | "PTR",
354
353
  callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
355
354
  ): void;
356
355
  export function resolve(
@@ -360,8 +359,8 @@ declare module "dns" {
360
359
  ): void;
361
360
  export function resolve(
362
361
  hostname: string,
363
- rrtype: "CNAME",
364
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
362
+ rrtype: "CAA",
363
+ callback: (err: NodeJS.ErrnoException | null, address: CaaRecord[]) => void,
365
364
  ): void;
366
365
  export function resolve(
367
366
  hostname: string,
@@ -373,16 +372,6 @@ declare module "dns" {
373
372
  rrtype: "NAPTR",
374
373
  callback: (err: NodeJS.ErrnoException | null, addresses: NaptrRecord[]) => void,
375
374
  ): void;
376
- export function resolve(
377
- hostname: string,
378
- rrtype: "NS",
379
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
380
- ): void;
381
- export function resolve(
382
- hostname: string,
383
- rrtype: "PTR",
384
- callback: (err: NodeJS.ErrnoException | null, addresses: string[]) => void,
385
- ): void;
386
375
  export function resolve(
387
376
  hostname: string,
388
377
  rrtype: "SOA",
@@ -410,6 +399,7 @@ declare module "dns" {
410
399
  err: NodeJS.ErrnoException | null,
411
400
  addresses:
412
401
  | string[]
402
+ | CaaRecord[]
413
403
  | MxRecord[]
414
404
  | NaptrRecord[]
415
405
  | SoaRecord
@@ -422,6 +412,7 @@ declare module "dns" {
422
412
  export namespace resolve {
423
413
  function __promisify__(hostname: string, rrtype?: "A" | "AAAA" | "CNAME" | "NS" | "PTR"): Promise<string[]>;
424
414
  function __promisify__(hostname: string, rrtype: "ANY"): Promise<AnyRecord[]>;
415
+ function __promisify__(hostname: string, rrtype: "CAA"): Promise<CaaRecord[]>;
425
416
  function __promisify__(hostname: string, rrtype: "MX"): Promise<MxRecord[]>;
426
417
  function __promisify__(hostname: string, rrtype: "NAPTR"): Promise<NaptrRecord[]>;
427
418
  function __promisify__(hostname: string, rrtype: "SOA"): Promise<SoaRecord>;
@@ -432,7 +423,15 @@ declare module "dns" {
432
423
  hostname: string,
433
424
  rrtype: string,
434
425
  ): Promise<
435
- string[] | MxRecord[] | NaptrRecord[] | SoaRecord | SrvRecord[] | TlsaRecord[] | string[][] | AnyRecord[]
426
+ | string[]
427
+ | CaaRecord[]
428
+ | MxRecord[]
429
+ | NaptrRecord[]
430
+ | SoaRecord
431
+ | SrvRecord[]
432
+ | TlsaRecord[]
433
+ | string[][]
434
+ | AnyRecord[]
436
435
  >;
437
436
  }
438
437
  /**
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "24.0.8",
3
+ "version": "24.0.12",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -235,6 +235,6 @@
235
235
  "undici-types": "~7.8.0"
236
236
  },
237
237
  "peerDependencies": {},
238
- "typesPublisherContentHash": "1e3a4fce413086aece8ef67c1fd4c8f1a71c724acfc3aff74142b267ba4df295",
238
+ "typesPublisherContentHash": "8e4c85a4e3eaa197d6a1deb2bcccfbcd34ad8ba2f260d598e3576078dbf913d1",
239
239
  "typeScriptVersion": "5.1"
240
240
  }
@@ -143,6 +143,9 @@ declare module "stream/web" {
143
143
  interface TransformerTransformCallback<I, O> {
144
144
  (chunk: I, controller: TransformStreamDefaultController<O>): void | PromiseLike<void>;
145
145
  }
146
+ interface TransformerCancelCallback {
147
+ (reason: any): void | PromiseLike<void>;
148
+ }
146
149
  interface UnderlyingByteSource {
147
150
  autoAllocateChunkSize?: number;
148
151
  cancel?: ReadableStreamErrorCallback;
@@ -261,6 +264,7 @@ declare module "stream/web" {
261
264
  readableType?: undefined;
262
265
  start?: TransformerStartCallback<O>;
263
266
  transform?: TransformerTransformCallback<I, O>;
267
+ cancel?: TransformerCancelCallback;
264
268
  writableType?: undefined;
265
269
  }
266
270
  interface TransformStream<I = any, O = any> {