@contrast/config 1.53.0 → 1.54.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/common.js +1 -0
- package/lib/options.js +7 -1
- package/package.json +3 -3
package/lib/common.js
CHANGED
|
@@ -106,6 +106,7 @@ const mappings = {
|
|
|
106
106
|
}
|
|
107
107
|
},
|
|
108
108
|
'assess.probabilistic_sampling.window_ms': (remoteData) => remoteData.assess?.sampling?.window_ms,
|
|
109
|
+
'assess.report_middleware_routes': (remoteData) => remoteData.assess?.report_middleware_routes,
|
|
109
110
|
'assess.stacktraces': (remoteData) => remoteData.assess?.report_stacktraces,
|
|
110
111
|
'agent.logger.level': coerceLowerCase('logger.level'),
|
|
111
112
|
'agent.logger.path': (remoteData) => remoteData.logger?.path,
|
package/lib/options.js
CHANGED
|
@@ -699,7 +699,13 @@ Example - \`label1, label2, label3\``,
|
|
|
699
699
|
fn: split,
|
|
700
700
|
desc: 'Define a list of Protect rules to disable in the agent. The rules must be formatted as a comma-delimited list.',
|
|
701
701
|
},
|
|
702
|
-
|
|
702
|
+
{
|
|
703
|
+
name: 'assess.report_middleware_routes',
|
|
704
|
+
arg: '[false]',
|
|
705
|
+
default: false,
|
|
706
|
+
fn: castBoolean,
|
|
707
|
+
desc: 'Set to `true` to report both discovered and observed routes for middleware to the Contrast backend.',
|
|
708
|
+
},
|
|
703
709
|
{
|
|
704
710
|
name: 'assess.safe_positives.enable',
|
|
705
711
|
arg: '[false]',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/config",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.54.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)",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"test": "bash ../scripts/test.sh"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@contrast/common": "1.
|
|
24
|
-
"@contrast/core": "1.
|
|
23
|
+
"@contrast/common": "1.38.0",
|
|
24
|
+
"@contrast/core": "1.59.0",
|
|
25
25
|
"deepmerge": "^4.3.1",
|
|
26
26
|
"yaml": "^2.2.2"
|
|
27
27
|
}
|