@contrast/config 1.52.1 → 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 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
@@ -692,6 +692,20 @@ Example - \`label1, label2, label3\``,
692
692
  fn: parseNum,
693
693
  desc: 'Set the maximum number of untrusted data flow propagations to observe per request.',
694
694
  },
695
+ {
696
+ name: 'assess.rules.disabled_rules',
697
+ arg: '<list,of,rules>',
698
+ default: '',
699
+ fn: split,
700
+ desc: 'Define a list of Protect rules to disable in the agent. The rules must be formatted as a comma-delimited list.',
701
+ },
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
+ },
695
709
  {
696
710
  name: 'assess.safe_positives.enable',
697
711
  arg: '[false]',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/config",
3
- "version": "1.52.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.37.0",
24
- "@contrast/core": "1.57.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
  }