1.27.1 • Published 17 days ago

@contrast/config v1.27.1

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
-
Last release
17 days ago

@contrast/config

Note: This package needs help.

  • Needlessly dependent on commander, lodash, and json-stable-stringify
  • Can be simplified
  • Could benefit from schema-based approach for defaults

Overview

This is legacy code ported from node-agent repo.

To discover and log configuration data, try

node -e "console.log(new (require('.').Config)())"

Usage

An agent should use a single instance of a config. On instantiation, the config will detect both yaml file and environment variable sources and build out full config object. The object will have defaults set for values not having been set by file or env vars.

const { AgentConfig } = require('@contrast/config');
const config = new AgentConfig();

// do stuff with config
if (config.protect.enable) {

}

New V5 Options

  • agent.stack_trace_filters

    This allows agent stackframes to be filtered via configuration Default: agent-,@contrast,node-agent

1.27.1

17 days ago

1.27.0

27 days ago

1.26.2

1 month ago

1.26.1

2 months ago

1.26.0

2 months ago

1.25.0

3 months ago

1.24.0

3 months ago

1.23.1

3 months ago

1.23.0

4 months ago

1.22.0

5 months ago

1.15.0

9 months ago

1.14.0

9 months ago

1.13.0

10 months ago

1.12.0

10 months ago

1.19.0

7 months ago

1.18.1

7 months ago

1.18.0

7 months ago

1.17.0

8 months ago

1.16.0

8 months ago

1.21.0

6 months ago

1.20.0

7 months ago

1.9.0

1 year ago

1.8.1

1 year ago

1.8.0

1 year ago

1.7.0

1 year ago

1.11.0

11 months ago

1.10.0

12 months ago

1.6.1

1 year ago

1.6.0

1 year ago

1.5.2

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.0

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

2 years ago

1.2.0

2 years ago

1.3.0

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago