@contrast/agent 3.11.2 → 3.11.6
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/README.md +11 -1
- package/bin/VERSION +1 -1
- package/bin/linux/contrast-service +0 -0
- package/bin/mac/contrast-service +0 -0
- package/bin/windows/contrast-service.exe +0 -0
- package/lib.asar +0 -0
- package/node_modules/unix-dgram/build/Makefile +1 -1
- package/node_modules/unix-dgram/build/config.gypi +1 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -35,7 +35,6 @@ $ npm install @contrast/agent
|
|
|
35
35
|
|
|
36
36
|
## Usage
|
|
37
37
|
|
|
38
|
-
|
|
39
38
|
### Using [CommonJS (CJS)](https://nodejs.org/docs/latest-v12.x/api/modules.html) Modules
|
|
40
39
|
|
|
41
40
|
CommonJS is the original Node.js module system. CJS modules are loaded with the
|
|
@@ -80,6 +79,17 @@ instrumenting an application that uses CJS, ESM, or a combination of both.
|
|
|
80
79
|
|
|
81
80
|
The agent expects that the `contrast_security.yaml` configuration file exists in
|
|
82
81
|
the application's root directory (where the `package.json` file usually resides).
|
|
82
|
+
|
|
83
|
+
If you need to specify a different location for the configuration file you can
|
|
84
|
+
use either the `-c` or `--configFile` command-line arguments or provide the
|
|
85
|
+
`CONTRAST_CONFIG_PATH` environment variable:
|
|
86
|
+
|
|
87
|
+
```
|
|
88
|
+
node -r @contrast/agent app-main.js -c /path/to/config.yml
|
|
89
|
+
node -r @contrast/agent app-main.js --configFile /path/to/config.yml
|
|
90
|
+
CONTRAST_CONFIG_PATH=/path/to/config.yml node -r @contrast/agent app-main.js
|
|
91
|
+
```
|
|
92
|
+
|
|
83
93
|
The minimum required `contrast_security.yaml` setup should look something like
|
|
84
94
|
this:
|
|
85
95
|
|
package/bin/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.22.0
|
|
Binary file
|
package/bin/mac/contrast-service
CHANGED
|
Binary file
|
|
Binary file
|
package/lib.asar
CHANGED
|
Binary file
|
|
@@ -309,7 +309,7 @@ endif
|
|
|
309
309
|
|
|
310
310
|
quiet_cmd_regen_makefile = ACTION Regenerating $@
|
|
311
311
|
cmd_regen_makefile = cd $(srcdir); /opt/hostedtoolcache/node/12.22.1/x64/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py -fmake --ignore-environment "-Dlibrary=shared_library" "-Dvisibility=default" "-Dnode_root_dir=/home/runner/.cache/node-gyp/12.22.1" "-Dnode_gyp_dir=/opt/hostedtoolcache/node/12.22.1/x64/lib/node_modules/npm/node_modules/node-gyp" "-Dnode_lib_file=/home/runner/.cache/node-gyp/12.22.1/<(target_arch)/node.lib" "-Dmodule_root_dir=/home/runner/work/node-agent/node-agent/target/node_modules/unix-dgram" "-Dnode_engine=v8" "--depth=." "-Goutput_dir=." "--generator-output=build" -I/home/runner/work/node-agent/node-agent/target/node_modules/unix-dgram/build/config.gypi -I/opt/hostedtoolcache/node/12.22.1/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi -I/home/runner/.cache/node-gyp/12.22.1/include/node/common.gypi "--toplevel-dir=." binding.gyp
|
|
312
|
-
Makefile: $(srcdir)/
|
|
312
|
+
Makefile: $(srcdir)/../../../../../../../../opt/hostedtoolcache/node/12.22.1/x64/lib/node_modules/npm/node_modules/node-gyp/addon.gypi $(srcdir)/build/config.gypi $(srcdir)/../../../../../../.cache/node-gyp/12.22.1/include/node/common.gypi $(srcdir)/binding.gyp
|
|
313
313
|
$(call do_cmd,regen_makefile)
|
|
314
314
|
|
|
315
315
|
# "all" is a concatenation of the "all" targets from all the included
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/agent",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.6",
|
|
4
4
|
"description": "Node.js security instrumentation by Contrast Security",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"security",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"docker-pkg": "docker build -t node-agent .",
|
|
38
38
|
"extract-licenses": "node scripts/extract-licenses",
|
|
39
39
|
"fix": "eslint . --fix",
|
|
40
|
-
"prepare": "husky install ||
|
|
40
|
+
"prepare": "husky install || exit 0",
|
|
41
41
|
"preversion": "npm run test:gh-ci"
|
|
42
42
|
},
|
|
43
43
|
"lint-staged": {
|
|
@@ -182,7 +182,8 @@
|
|
|
182
182
|
"test": "test"
|
|
183
183
|
},
|
|
184
184
|
"engines": {
|
|
185
|
-
"node": ">=10.13.0 <11 || >=12.13.0 <13 || >=14.15.0 <15"
|
|
185
|
+
"node": ">=10.13.0 <11 || >=12.13.0 <13 || >=14.15.0 <15",
|
|
186
|
+
"npm": ">=6.13.7 <7 || >=7.11.0"
|
|
186
187
|
},
|
|
187
188
|
"bundleDependencies": [
|
|
188
189
|
"winston",
|