@contrast/config 1.19.0 → 1.20.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
@@ -75,6 +75,8 @@ const mappings = {
75
75
  'agent.security_logger.syslog.severity_blocked': (remoteData) => remoteData.security_logger?.syslog?.severity_blocked?.toLowerCase(),
76
76
  'agent.security_logger.syslog.severity_probed': (remoteData) => remoteData.security_logger?.syslog?.severity_probed?.toLowerCase(),
77
77
  // application settings
78
+ 'assess.enable': (remoteData) => remoteData.assess?.enable,
79
+ 'protect.enable': (remoteData) => remoteData.protect?.enable,
78
80
  'protect.rules.cmd-injection.mode': protectModeReader(CMD_INJECTION),
79
81
  'protect.rules.cmd-injection-command-backdoors.mode': protectModeReader(CMD_INJECTION_COMMAND_BACKDOORS),
80
82
  'protect.rules.cmd-injection-semantic-chained-commands.mode': protectModeReader(CMD_INJECTION_SEMANTIC_CHAINED_COMMANDS),
package/lib/index.js CHANGED
@@ -15,8 +15,8 @@
15
15
 
16
16
  'use strict';
17
17
 
18
- const Config = require('./config');
19
18
  const { ConfigSource } = require('./common');
19
+ const Config = require('./config');
20
20
 
21
21
  module.exports = function (core = {}) {
22
22
  return core.config = new Config(core);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/config",
3
- "version": "1.19.0",
3
+ "version": "1.20.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)",