@contrast/config 1.27.1 → 1.28.1

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/config.js CHANGED
@@ -92,7 +92,7 @@ module.exports = class Config {
92
92
  _initEnv() {
93
93
  const { env } = process;
94
94
 
95
- if (env.pm2_env?.includes?.(CONTRAST_PREFIX)) {
95
+ if (env.pm2_env?.includes(CONTRAST_PREFIX)) {
96
96
  let parsedEnv;
97
97
 
98
98
  try {
package/lib/index.d.ts CHANGED
@@ -108,13 +108,6 @@ export interface Config {
108
108
  file?: string | number;
109
109
  };
110
110
 
111
- effective_config: {
112
- reporting: {
113
- /** Default: `true` */
114
- enable: boolean;
115
- };
116
- };
117
-
118
111
  polling: {
119
112
  /** Default: `30000` */
120
113
  app_activity_ms: number;
package/lib/options.js CHANGED
@@ -213,14 +213,6 @@ const options = [
213
213
  arg: '<path>',
214
214
  desc: 'path indicating where to report all agent findings',
215
215
  },
216
- // agent.effective_config
217
- {
218
- name: 'agent.effective_config.reporting.enable',
219
- arg: '[false]',
220
- default: true,
221
- fn: castBoolean,
222
- desc: 'Defaults to `true`. Controls whether configuration setting reports are sent to the Contrast web interface.',
223
- },
224
216
  // agent.heap_dump
225
217
  {
226
218
  name: 'agent.heap_dump.enable',
@@ -658,8 +650,8 @@ Example - \`label1, label2, label3\``,
658
650
  desc: "override the reported server version (if different from 'version' field in the application's package.json)",
659
651
  },
660
652
  ].map((opt) => Object.assign(opt, {
661
- env: `CONTRAST__${opt.name.toUpperCase().replace(/\./g, '__')
662
- .replace(/-/g, '_')}`
653
+ env: `CONTRAST__${opt.name.toUpperCase().replaceAll('.', '__')
654
+ .replaceAll('-', '_')}`
663
655
  }));
664
656
 
665
657
  module.exports = options;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/config",
3
- "version": "1.27.1",
3
+ "version": "1.28.1",
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)",
@@ -11,13 +11,13 @@
11
11
  "types": "lib/index.d.ts",
12
12
  "engines": {
13
13
  "npm": ">=6.13.7 <7 || >= 8.3.1",
14
- "node": ">= 14.18.0"
14
+ "node": ">= 16.9.1"
15
15
  },
16
16
  "scripts": {
17
17
  "test": "../scripts/test.sh"
18
18
  },
19
19
  "dependencies": {
20
- "@contrast/common": "1.20.1",
20
+ "@contrast/common": "1.21.1",
21
21
  "yaml": "^2.2.2"
22
22
  }
23
23
  }