@contrast/config 1.45.0 → 1.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.
- package/lib/index.d.ts +2 -0
- package/lib/options.js +22 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
package/lib/options.js
CHANGED
|
@@ -500,6 +500,13 @@ Example - \`/opt/Contrast/contrast.log\` creates a log in the \`/opt/Contrast\`
|
|
|
500
500
|
fn: toAbsolutePath,
|
|
501
501
|
desc: "Set the directory in which to cache rewritten source code files. Defaults to `.contrast/` in the application's current working directory.",
|
|
502
502
|
},
|
|
503
|
+
{
|
|
504
|
+
name: 'agent.node.rewrite.minify',
|
|
505
|
+
arg: '[false]',
|
|
506
|
+
default: true,
|
|
507
|
+
fn: castBoolean,
|
|
508
|
+
desc: 'Set to `false` to disable minification of rewritten source code files.'
|
|
509
|
+
},
|
|
503
510
|
{
|
|
504
511
|
name: 'agent.node.source_maps.enable',
|
|
505
512
|
arg: '[false]',
|
|
@@ -589,6 +596,21 @@ Example - \`/opt/Contrast/contrast.log\` creates a log in the \`/opt/Contrast\`
|
|
|
589
596
|
default: 0.05,
|
|
590
597
|
desc: 'A value p within the range [0, 1]. Each request will share same probability p of being sampled.',
|
|
591
598
|
},
|
|
599
|
+
{
|
|
600
|
+
name: 'assess.probabilistic_sampling.event_detail',
|
|
601
|
+
arg: '<level>',
|
|
602
|
+
default: 'FULL',
|
|
603
|
+
fn: (value) => {
|
|
604
|
+
if (!value) return undefined;
|
|
605
|
+
value = String(value).toUpperCase();
|
|
606
|
+
const valids = new Set(['FULL', 'MINIMAL']);
|
|
607
|
+
if (valids.has(value)) {
|
|
608
|
+
return value;
|
|
609
|
+
}
|
|
610
|
+
throw new Error(`Invalid option assess.probabilistic_sampling.event_detail: value must be one of ${Array.from(valids)}`);
|
|
611
|
+
},
|
|
612
|
+
desc: 'Control the values captured by Assess vulnerability events. FULL captures more context by stringifying all values involved in dataflow activity which can add performance overhead. MINIMAL can improve performance by only capturing type name for non-string event values. FULL is the default.',
|
|
613
|
+
},
|
|
592
614
|
{
|
|
593
615
|
name: 'assess.probabilistic_sampling.route_monitor.enable',
|
|
594
616
|
arg: '[true]',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.46.0",
|
|
4
4
|
"description": "An API for discovering Contrast agent configuration data",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@contrast/common": "1.32.0",
|
|
24
|
-
"@contrast/core": "1.
|
|
24
|
+
"@contrast/core": "1.51.0",
|
|
25
25
|
"yaml": "^2.2.2"
|
|
26
26
|
}
|
|
27
27
|
}
|