@contrast/config 1.5.0 → 1.5.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.
Files changed (2) hide show
  1. package/lib/options.js +49 -0
  2. package/package.json +3 -3
package/lib/options.js CHANGED
@@ -177,6 +177,25 @@ const api = [
177
177
  ];
178
178
 
179
179
  const agent = [
180
+ {
181
+ name: 'agent.diagnostics.enable',
182
+ arg: '[false]',
183
+ default: true,
184
+ fn: castBoolean,
185
+ desc: 'If true the agent will try to create both diagnostic files at startup',
186
+ },
187
+ {
188
+ name: 'agent.diagnostics.quiet',
189
+ arg: '[true]',
190
+ default: false,
191
+ fn: castBoolean,
192
+ desc: 'If true the agent will print all diagnostic results to stdout as well',
193
+ },
194
+ {
195
+ name: 'agent.diagnostics.report_path',
196
+ arg: '<path>',
197
+ desc: 'path indicating where to report all diagnostics results',
198
+ },
180
199
  {
181
200
  name: 'agent.reporters.file',
182
201
  arg: '<path>',
@@ -306,6 +325,21 @@ const agent = [
306
325
  desc: "set location to look for the app's package.json",
307
326
  default: process.cwd(),
308
327
  },
328
+ {
329
+ name: 'agent.node.library_usage.reporting.interval',
330
+ arg: '<num>',
331
+ fn: parseNum,
332
+ default: 1,
333
+ desc: 'frequency of collecting code events for library usage in milliseconds, defaults to 1 ms',
334
+ },
335
+ {
336
+ name: 'agent.node.library_usage.reporting.enable',
337
+ arg: '[false]',
338
+ // setting this falsee for now, until feature is complete
339
+ default: true,
340
+ fn: castBoolean,
341
+ desc: 'add enhanced library usage features (i.e. scanning for composition of dependencies, reporting usage)',
342
+ },
309
343
  {
310
344
  name: 'agent.stack_trace_limit',
311
345
  arg: '<limit>',
@@ -399,6 +433,21 @@ const assess = [
399
433
  fn: castBoolean,
400
434
  desc: 'if false, disable assess for this agent'
401
435
  },
436
+ {
437
+ name: 'assess.stactraces',
438
+ arg: '<level>',
439
+ default: 'ALL',
440
+ fn: uppercase,
441
+ enum: ['ALL', 'SOME', 'NONE'],
442
+ desc: 'Select the level of collected stacktraces. ALL - for all asses events, SOME - for Source and Sink events, NONE - no stacktraces collected'
443
+ },
444
+ {
445
+ name: 'assess.max_propagation_events',
446
+ arg: '<limit>',
447
+ default: 250,
448
+ fn: parseNum,
449
+ desc: 'set limit for maximum number of propagation events created per request',
450
+ },
402
451
  ];
403
452
 
404
453
  const server = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/config",
3
- "version": "1.5.0",
3
+ "version": "1.5.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)",
@@ -17,7 +17,7 @@
17
17
  "test": "../scripts/test.sh"
18
18
  },
19
19
  "dependencies": {
20
- "@contrast/common": "1.3.0",
20
+ "@contrast/common": "1.3.1",
21
21
  "yaml": "^2.0.1"
22
22
  }
23
- }
23
+ }