@contrast/agent 4.37.1 → 4.38.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/bin/VERSION +1 -1
- package/bin/contrast-service-darwin-arm64 +0 -0
- package/bin/contrast-service-darwin-x64 +0 -0
- package/bin/contrast-service-linux-arm64 +0 -0
- package/bin/contrast-service-linux-x64 +0 -0
- package/bin/contrast-service-win32-x64.exe +0 -0
- package/lib/core/config/options.js +2 -2
- package/lib/library-usage.js +4 -4
- package/node_modules/@colors/colors/package.json +1 -5
- package/node_modules/@dabh/diagnostics/package.json +1 -5
- package/node_modules/async/package.json +0 -4
- package/node_modules/color/package.json +1 -5
- package/node_modules/color-convert/package.json +1 -5
- package/node_modules/color-name/package.json +1 -5
- package/node_modules/color-string/package.json +1 -5
- package/node_modules/colorspace/package.json +1 -5
- package/node_modules/enabled/package.json +1 -5
- package/node_modules/fecha/package.json +1 -5
- package/node_modules/file-stream-rotator/package.json +1 -5
- package/node_modules/fn.name/package.json +1 -5
- package/node_modules/inherits/package.json +1 -5
- package/node_modules/is-arrayish/package.json +1 -5
- package/node_modules/is-stream/package.json +1 -5
- package/node_modules/kuler/package.json +1 -5
- package/node_modules/logform/package.json +1 -5
- package/node_modules/moment/package.json +1 -5
- package/node_modules/ms/package.json +1 -5
- package/node_modules/object-hash/package.json +1 -5
- package/node_modules/one-time/package.json +1 -5
- package/node_modules/safe-buffer/package.json +1 -5
- package/node_modules/safe-stable-stringify/package.json +1 -5
- package/node_modules/simple-swizzle/package.json +1 -5
- package/node_modules/stack-trace/package.json +1 -5
- package/node_modules/string_decoder/package.json +1 -5
- package/node_modules/text-hex/package.json +1 -5
- package/node_modules/triple-beam/package.json +1 -5
- package/node_modules/util-deprecate/package.json +1 -5
- package/node_modules/winston/node_modules/readable-stream/package.json +1 -5
- package/node_modules/winston/node_modules/winston-transport/package.json +1 -5
- package/node_modules/winston/package.json +1 -5
- package/node_modules/winston-daily-rotate-file/package.json +1 -5
- package/node_modules/winston-transport/node_modules/readable-stream/package.json +1 -5
- package/node_modules/winston-transport/package.json +1 -5
- package/package.json +3 -4
- package/changelog.config.js +0 -56
package/bin/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.28.
|
|
1
|
+
2.28.34
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -384,8 +384,8 @@ const agent = [
|
|
|
384
384
|
name: 'agent.node.library_usage.reporting.interval',
|
|
385
385
|
arg: '<num>',
|
|
386
386
|
fn: parseNum,
|
|
387
|
-
default:
|
|
388
|
-
desc: 'frequency of collecting code events for library usage in milliseconds, defaults to
|
|
387
|
+
default: 100,
|
|
388
|
+
desc: 'frequency of collecting code events for library usage in milliseconds, defaults to 100 ms',
|
|
389
389
|
},
|
|
390
390
|
{
|
|
391
391
|
name: 'agent.node.library_usage.reporting.enable',
|
package/lib/library-usage.js
CHANGED
|
@@ -16,7 +16,7 @@ Copyright: 2024 Contrast Security, Inc
|
|
|
16
16
|
|
|
17
17
|
const path = require('path');
|
|
18
18
|
const semver = require('semver');
|
|
19
|
-
const { setCodeEventListener } = require('@contrast/
|
|
19
|
+
const { setCodeEventListener } = require('@contrast/code-events');
|
|
20
20
|
const agentEmitter = require('./agent-emitter');
|
|
21
21
|
const logger = require('./core/logger')('contrast:library-usage');
|
|
22
22
|
const LibraryUsage = require('./reporter/models/app-update/library-usage');
|
|
@@ -26,9 +26,9 @@ const type = semver.gte(process.version, '20.0.0') ? 'Function' : 'LazyCompile';
|
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* start listening for v8 code events
|
|
29
|
-
* @param {number}
|
|
29
|
+
* @param {number} interval how often to get code events
|
|
30
30
|
*/
|
|
31
|
-
module.exports.listen = function(
|
|
31
|
+
module.exports.listen = function(interval = 100) {
|
|
32
32
|
const handler = (codeEvent) => {
|
|
33
33
|
try {
|
|
34
34
|
if (
|
|
@@ -49,5 +49,5 @@ module.exports.listen = function(evalInterval = 1) {
|
|
|
49
49
|
}
|
|
50
50
|
};
|
|
51
51
|
|
|
52
|
-
setCodeEventListener(handler,
|
|
52
|
+
setCodeEventListener(handler, { interval });
|
|
53
53
|
};
|
|
@@ -42,8 +42,4 @@
|
|
|
42
42
|
"eslint": "^5.2.0",
|
|
43
43
|
"eslint-config-google": "^0.11.0"
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
,"_resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz"
|
|
47
|
-
,"_integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ=="
|
|
48
|
-
,"_from": "@colors/colors@1.5.0"
|
|
49
|
-
}
|
|
45
|
+
}
|
|
@@ -61,8 +61,4 @@
|
|
|
61
61
|
"directories": {
|
|
62
62
|
"test": "test"
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
,"_resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.3.tgz"
|
|
66
|
-
,"_integrity": "sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA=="
|
|
67
|
-
,"_from": "@dabh/diagnostics@2.0.3"
|
|
68
|
-
}
|
|
64
|
+
}
|
|
@@ -37,8 +37,4 @@
|
|
|
37
37
|
"mocha": "9.0.2",
|
|
38
38
|
"xo": "0.12.1"
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
,"_resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz"
|
|
42
|
-
,"_integrity": "sha512-aBl7dZI9ENN6fUGC7mWpMTPNHmWUSNan9tuWN6ahh5ZLNk9baLJOnSMlrQkHcrfFgz2/RigjUVAjdx36VcemKA=="
|
|
43
|
-
,"_from": "color@3.2.1"
|
|
44
|
-
}
|
|
40
|
+
}
|
|
@@ -43,8 +43,4 @@
|
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"color-name": "1.1.3"
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
,"_resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz"
|
|
48
|
-
,"_integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg=="
|
|
49
|
-
,"_from": "color-convert@1.9.3"
|
|
50
|
-
}
|
|
46
|
+
}
|
|
@@ -22,8 +22,4 @@
|
|
|
22
22
|
"url": "https://github.com/dfcreative/color-name/issues"
|
|
23
23
|
},
|
|
24
24
|
"homepage": "https://github.com/dfcreative/color-name"
|
|
25
|
-
|
|
26
|
-
,"_resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz"
|
|
27
|
-
,"_integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
|
|
28
|
-
,"_from": "color-name@1.1.3"
|
|
29
|
-
}
|
|
25
|
+
}
|
|
@@ -36,8 +36,4 @@
|
|
|
36
36
|
"rgb",
|
|
37
37
|
"css"
|
|
38
38
|
]
|
|
39
|
-
|
|
40
|
-
,"_resolved": "https://registry.npmjs.org/color-string/-/color-string-1.9.0.tgz"
|
|
41
|
-
,"_integrity": "sha512-9Mrz2AQLefkH1UvASKj6v6hj/7eWgjnT/cVsR8CumieLoT+g900exWeNogqtweI8dxloXN9BDQTYro1oWu/5CQ=="
|
|
42
|
-
,"_from": "color-string@1.9.0"
|
|
43
|
-
}
|
|
39
|
+
}
|
|
@@ -34,8 +34,4 @@
|
|
|
34
34
|
"mocha": "5.2.x",
|
|
35
35
|
"pre-commit": "1.2.x"
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
,"_resolved": "https://registry.npmjs.org/colorspace/-/colorspace-1.1.4.tgz"
|
|
39
|
-
,"_integrity": "sha512-BgvKJiuVu1igBUF2kEjRCZXol6wiiGbY5ipL/oVPwm0BL9sIpMIzM8IK7vwuxIIzOXMV3Ey5w+vxhm0rR/TN8w=="
|
|
40
|
-
,"_from": "colorspace@1.1.4"
|
|
41
|
-
}
|
|
37
|
+
}
|
|
@@ -30,8 +30,4 @@
|
|
|
30
30
|
"mocha": "5.2.x",
|
|
31
31
|
"pre-commit": "1.2.x"
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
,"_resolved": "https://registry.npmjs.org/enabled/-/enabled-2.0.0.tgz"
|
|
35
|
-
,"_integrity": "sha512-AKrN98kuwOzMIdAizXGI86UFBoo26CL21UM763y1h/GMSJ4/OHU9k2YlsmBpyScFo/wbLzWQJBMCW4+IO3/+OQ=="
|
|
36
|
-
,"_from": "enabled@2.0.0"
|
|
37
|
-
}
|
|
33
|
+
}
|
|
@@ -52,8 +52,4 @@
|
|
|
52
52
|
"src"
|
|
53
53
|
],
|
|
54
54
|
"types": "lib/fecha.d.ts"
|
|
55
|
-
|
|
56
|
-
,"_resolved": "https://registry.npmjs.org/fecha/-/fecha-4.2.3.tgz"
|
|
57
|
-
,"_integrity": "sha512-OP2IUU6HeYKJi3i0z4A19kHMQoLVs4Hc+DPqqxI2h/DPZHTm/vjsfC6P0b4jCMy14XizLBqvndQ+UilD7707Jw=="
|
|
58
|
-
,"_from": "fecha@4.2.3"
|
|
59
|
-
}
|
|
55
|
+
}
|
|
@@ -27,8 +27,4 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"moment": "^2.29.1"
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
,"_resolved": "https://registry.npmjs.org/file-stream-rotator/-/file-stream-rotator-0.6.1.tgz"
|
|
32
|
-
,"_integrity": "sha512-u+dBid4PvZw17PmDeRcNOtCP9CCK/9lRN2w+r1xIS7yOL9JFrIBKTvrYsxT4P0pGtThYTn++QS5ChHaUov3+zQ=="
|
|
33
|
-
,"_from": "file-stream-rotator@0.6.1"
|
|
34
|
-
}
|
|
30
|
+
}
|
|
@@ -34,8 +34,4 @@
|
|
|
34
34
|
"pre-commit": "1.x.x"
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://github.com/3rd-Eden/fn.name"
|
|
37
|
-
|
|
38
|
-
,"_resolved": "https://registry.npmjs.org/fn.name/-/fn.name-1.1.0.tgz"
|
|
39
|
-
,"_integrity": "sha512-GRnmB5gPyJpAhTQdSZTSp9uaPSvl09KoYcMQtsB9rQoOmzs9dH6ffeccH+Z+cv6P68Hu5bC6JjRh4Ah/mHSNRw=="
|
|
40
|
-
,"_from": "fn.name@1.1.0"
|
|
41
|
-
}
|
|
37
|
+
}
|
|
@@ -26,8 +26,4 @@
|
|
|
26
26
|
"inherits.js",
|
|
27
27
|
"inherits_browser.js"
|
|
28
28
|
]
|
|
29
|
-
|
|
30
|
-
,"_resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz"
|
|
31
|
-
,"_integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
|
32
|
-
,"_from": "inherits@2.0.4"
|
|
33
|
-
}
|
|
29
|
+
}
|
|
@@ -42,8 +42,4 @@
|
|
|
42
42
|
"git": {
|
|
43
43
|
"pre-commit": "lint-staged"
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
,"_resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz"
|
|
47
|
-
,"_integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ=="
|
|
48
|
-
,"_from": "is-arrayish@0.3.2"
|
|
49
|
-
}
|
|
45
|
+
}
|
|
@@ -38,8 +38,4 @@
|
|
|
38
38
|
"tsd": "^0.7.2",
|
|
39
39
|
"xo": "^0.24.0"
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
,"_resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.0.tgz"
|
|
43
|
-
,"_integrity": "sha512-XCoy+WlUr7d1+Z8GgSuXmpuUFC9fOhRXglJMx+dwLKTkL44Cjd4W1Z5P+BQZpr+cR93aGP4S/s7Ftw6Nd/kiEw=="
|
|
44
|
-
,"_from": "is-stream@2.0.0"
|
|
45
|
-
}
|
|
41
|
+
}
|
|
@@ -31,8 +31,4 @@
|
|
|
31
31
|
"assume": "^2.0.1",
|
|
32
32
|
"mocha": "^5.1.1"
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
,"_resolved": "https://registry.npmjs.org/kuler/-/kuler-2.0.0.tgz"
|
|
36
|
-
,"_integrity": "sha512-Xq9nH7KlWZmXAtodXDDRE7vs6DU1gTU8zYDHDiWLSip45Egwq3plLHzPn27NgvzL2r1LMPC1vdqh98sQxtqj4A=="
|
|
37
|
-
,"_from": "kuler@2.0.0"
|
|
38
|
-
}
|
|
34
|
+
}
|
|
@@ -46,8 +46,4 @@
|
|
|
46
46
|
"rimraf": "^3.0.2"
|
|
47
47
|
},
|
|
48
48
|
"types": "./index.d.ts"
|
|
49
|
-
|
|
50
|
-
,"_resolved": "https://registry.npmjs.org/logform/-/logform-2.4.0.tgz"
|
|
51
|
-
,"_integrity": "sha512-CPSJw4ftjf517EhXZGGvTHHkYobo7ZCc0kvwUoOYcjfR2UVrI66RHj8MCrfAdEitdmFqbu2BYdYs8FHHZSb6iw=="
|
|
52
|
-
,"_from": "logform@2.4.0"
|
|
53
|
-
}
|
|
49
|
+
}
|
|
@@ -109,8 +109,4 @@
|
|
|
109
109
|
"locale/*.js"
|
|
110
110
|
]
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
,"_resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz"
|
|
114
|
-
,"_integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w=="
|
|
115
|
-
,"_from": "moment@2.29.4"
|
|
116
|
-
}
|
|
112
|
+
}
|
|
@@ -34,8 +34,4 @@
|
|
|
34
34
|
"lint-staged": "5.0.0",
|
|
35
35
|
"mocha": "4.0.1"
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
,"_resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz"
|
|
39
|
-
,"_integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="
|
|
40
|
-
,"_from": "ms@2.1.2"
|
|
41
|
-
}
|
|
37
|
+
}
|
|
@@ -50,8 +50,4 @@
|
|
|
50
50
|
},
|
|
51
51
|
"main": "./index.js",
|
|
52
52
|
"browser": "./dist/object_hash.js"
|
|
53
|
-
|
|
54
|
-
,"_resolved": "https://registry.npmjs.org/object-hash/-/object-hash-2.2.0.tgz"
|
|
55
|
-
,"_integrity": "sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw=="
|
|
56
|
-
,"_from": "object-hash@2.2.0"
|
|
57
|
-
}
|
|
53
|
+
}
|
|
@@ -31,8 +31,4 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"fn.name": "1.x.x"
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
,"_resolved": "https://registry.npmjs.org/one-time/-/one-time-1.0.0.tgz"
|
|
36
|
-
,"_integrity": "sha512-5DXOiRKwuSEcQ/l0kGCF6Q3jcADFv5tSmRaJck/OqkVFcOzutB134KRSfF0xDrL39MNnqxbHBbUUcjZIhTgb2g=="
|
|
37
|
-
,"_from": "one-time@1.0.0"
|
|
38
|
-
}
|
|
34
|
+
}
|
|
@@ -34,8 +34,4 @@
|
|
|
34
34
|
"scripts": {
|
|
35
35
|
"test": "standard && tape test/*.js"
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
,"_resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz"
|
|
39
|
-
,"_integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g=="
|
|
40
|
-
,"_from": "safe-buffer@5.1.2"
|
|
41
|
-
}
|
|
37
|
+
}
|
|
@@ -62,8 +62,4 @@
|
|
|
62
62
|
"url": "https://github.com/BridgeAR/safe-stable-stringify/issues"
|
|
63
63
|
},
|
|
64
64
|
"homepage": "https://github.com/BridgeAR/safe-stable-stringify#readme"
|
|
65
|
-
|
|
66
|
-
,"_resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-2.3.1.tgz"
|
|
67
|
-
,"_integrity": "sha512-kYBSfT+troD9cDA85VDnHZ1rpHC50O0g1e6WlGHVCz/g+JS+9WKLj+XwFYyR8UbrZN8ll9HUpDAAddY58MGisg=="
|
|
68
|
-
,"_from": "safe-stable-stringify@2.3.1"
|
|
69
|
-
}
|
|
65
|
+
}
|
|
@@ -28,8 +28,4 @@
|
|
|
28
28
|
"browserify"
|
|
29
29
|
],
|
|
30
30
|
"license": "MIT"
|
|
31
|
-
|
|
32
|
-
,"_resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz"
|
|
33
|
-
,"_integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg=="
|
|
34
|
-
,"_from": "string_decoder@1.1.1"
|
|
35
|
-
}
|
|
31
|
+
}
|
|
@@ -27,8 +27,4 @@
|
|
|
27
27
|
"mocha": "5.2.x",
|
|
28
28
|
"pre-commit": "1.2.x"
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
,"_resolved": "https://registry.npmjs.org/text-hex/-/text-hex-1.0.0.tgz"
|
|
32
|
-
,"_integrity": "sha512-uuVGNWzgJ4yhRaNSiubPY7OjISw4sw4E5Uv0wbjp+OzcbmVU/rsT8ujgcXJhn9ypzsgr5vlzpPqP+MBBKcGvbg=="
|
|
33
|
-
,"_from": "text-hex@1.0.0"
|
|
34
|
-
}
|
|
30
|
+
}
|
|
@@ -33,8 +33,4 @@
|
|
|
33
33
|
"mocha": "^5.1.1",
|
|
34
34
|
"nyc": "^11.7.1"
|
|
35
35
|
}
|
|
36
|
-
|
|
37
|
-
,"_resolved": "https://registry.npmjs.org/triple-beam/-/triple-beam-1.3.0.tgz"
|
|
38
|
-
,"_integrity": "sha512-XrHUvV5HpdLmIj4uVMxHggLbFSZYIn7HEWsqePZcI50pco+MPqJ50wMGY794X7AOOhxOBAjbkqfAbEe/QMp2Lw=="
|
|
39
|
-
,"_from": "triple-beam@1.3.0"
|
|
40
|
-
}
|
|
36
|
+
}
|
|
@@ -24,8 +24,4 @@
|
|
|
24
24
|
"url": "https://github.com/TooTallNate/util-deprecate/issues"
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/TooTallNate/util-deprecate"
|
|
27
|
-
|
|
28
|
-
,"_resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz"
|
|
29
|
-
,"_integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8="
|
|
30
|
-
,"_from": "util-deprecate@1.0.2"
|
|
31
|
-
}
|
|
27
|
+
}
|
|
@@ -65,8 +65,4 @@
|
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
67
|
"license": "MIT"
|
|
68
|
-
|
|
69
|
-
,"_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz"
|
|
70
|
-
,"_integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA=="
|
|
71
|
-
,"_from": "readable-stream@3.6.0"
|
|
72
|
-
}
|
|
68
|
+
}
|
|
@@ -49,8 +49,4 @@
|
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">= 6.4.0"
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
,"_resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.5.0.tgz"
|
|
54
|
-
,"_integrity": "sha512-YpZzcUzBedhlTAfJg6vJDlyEai/IFMIVcaEZZyl3UXIl4gmqRpU7AE89AHLkbzLUsv0NVmw7ts+iztqKxxPW1Q=="
|
|
55
|
-
,"_from": "winston-transport@4.5.0"
|
|
56
|
-
}
|
|
52
|
+
}
|
|
@@ -71,8 +71,4 @@
|
|
|
71
71
|
"node": ">= 12.0.0"
|
|
72
72
|
},
|
|
73
73
|
"license": "MIT"
|
|
74
|
-
|
|
75
|
-
,"_resolved": "https://registry.npmjs.org/winston/-/winston-3.7.2.tgz"
|
|
76
|
-
,"_integrity": "sha512-QziIqtojHBoyzUOdQvQiar1DH0Xp9nF1A1y7NVy2DGEsz82SBDtOalS0ulTRGVT14xPX3WRWkCsdcJKqNflKng=="
|
|
77
|
-
,"_from": "winston@3.7.2"
|
|
78
|
-
}
|
|
74
|
+
}
|
|
@@ -48,8 +48,4 @@
|
|
|
48
48
|
"triple-beam": "^1.3.0",
|
|
49
49
|
"winston-transport": "^4.4.0"
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
,"_resolved": "https://registry.npmjs.org/winston-daily-rotate-file/-/winston-daily-rotate-file-4.7.1.tgz"
|
|
53
|
-
,"_integrity": "sha512-7LGPiYGBPNyGHLn9z33i96zx/bd71pjBn9tqQzO3I4Tayv94WPmBNwKC7CO1wPHdP9uvu+Md/1nr6VSH9h0iaA=="
|
|
54
|
-
,"_from": "winston-daily-rotate-file@4.7.1"
|
|
55
|
-
}
|
|
51
|
+
}
|
|
@@ -65,8 +65,4 @@
|
|
|
65
65
|
]
|
|
66
66
|
},
|
|
67
67
|
"license": "MIT"
|
|
68
|
-
|
|
69
|
-
,"_resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz"
|
|
70
|
-
,"_integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA=="
|
|
71
|
-
,"_from": "readable-stream@3.6.2"
|
|
72
|
-
}
|
|
68
|
+
}
|
|
@@ -49,8 +49,4 @@
|
|
|
49
49
|
"engines": {
|
|
50
50
|
"node": ">= 6.4.0"
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
,"_resolved": "https://registry.npmjs.org/winston-transport/-/winston-transport-4.5.0.tgz"
|
|
54
|
-
,"_integrity": "sha512-YpZzcUzBedhlTAfJg6vJDlyEai/IFMIVcaEZZyl3UXIl4gmqRpU7AE89AHLkbzLUsv0NVmw7ts+iztqKxxPW1Q=="
|
|
55
|
-
,"_from": "winston-transport@4.5.0"
|
|
56
|
-
}
|
|
52
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/agent",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.38.1",
|
|
4
4
|
"description": "Node.js security instrumentation by Contrast Security",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"security",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"test:membrane-memory": "mocha --expose-gc test-special/*.test.js",
|
|
41
41
|
"findCircularDeps": "madge -c .",
|
|
42
42
|
"docker-pkg": "docker build -t node-agent .",
|
|
43
|
-
"extract-licenses": "node scripts/extract-licenses",
|
|
44
43
|
"fix": "eslint . --fix",
|
|
45
44
|
"prepare": "husky install || exit 0",
|
|
46
45
|
"preversion": "npm run test:gh-ci",
|
|
@@ -81,6 +80,7 @@
|
|
|
81
80
|
"@babel/types": "^7.12.1",
|
|
82
81
|
"@contrast/agent-lib": "^4.3.0",
|
|
83
82
|
"@contrast/cls-hooked": "^4.3.1",
|
|
83
|
+
"@contrast/code-events": "^2.0.2",
|
|
84
84
|
"@contrast/distringuish": "^4.4.0",
|
|
85
85
|
"@contrast/flat": "^4.1.1",
|
|
86
86
|
"@contrast/fn-inspect": "^3.4.0",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"@contrast/synchronous-source-maps": "^1.1.0",
|
|
90
90
|
"amqp-connection-manager": "^3.2.2",
|
|
91
91
|
"amqplib": "^0.8.0",
|
|
92
|
-
"axios": "^1.6.
|
|
92
|
+
"axios": "^1.6.8",
|
|
93
93
|
"big-integer": "^1.6.36",
|
|
94
94
|
"builtin-modules": "^3.2.0",
|
|
95
95
|
"commander": "^8.3.0",
|
|
@@ -175,7 +175,6 @@
|
|
|
175
175
|
"nock": "^12.0.3",
|
|
176
176
|
"node-fetch": "^2.6.7",
|
|
177
177
|
"node-serialize": "file:test/mock/node-serialize",
|
|
178
|
-
"npm-license-crawler": "^0.2.1",
|
|
179
178
|
"nyc": "^15.1.0",
|
|
180
179
|
"pg": "file:test/mock/pg",
|
|
181
180
|
"pino": "^6.7.0",
|
package/changelog.config.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
Copyright: 2024 Contrast Security, Inc
|
|
3
|
-
Contact: support@contrastsecurity.com
|
|
4
|
-
License: Commercial
|
|
5
|
-
|
|
6
|
-
NOTICE: This Software and the patented inventions embodied within may only be
|
|
7
|
-
used as part of Contrast Security’s commercial offerings. Even though it is
|
|
8
|
-
made available through public repositories, use of this Software is subject to
|
|
9
|
-
the applicable End User Licensing Agreement found at
|
|
10
|
-
https://www.contrastsecurity.com/enduser-terms-0317a or as otherwise agreed
|
|
11
|
-
between Contrast Security and the End User. The Software may not be reverse
|
|
12
|
-
engineered, modified, repackaged, sold, redistributed or otherwise used in a
|
|
13
|
-
way not consistent with the End User License Agreement.
|
|
14
|
-
*/
|
|
15
|
-
'use strict';
|
|
16
|
-
|
|
17
|
-
module.exports = {
|
|
18
|
-
jira: {
|
|
19
|
-
baseUrl: `https://${process.env.JIRA_HOST}`,
|
|
20
|
-
ticketIDPattern: /(NODE-?\s?[0-9]{4})/i,
|
|
21
|
-
excludeIssueTypes: ['Sub-task', 'Release'],
|
|
22
|
-
api: {
|
|
23
|
-
host: process.env.JIRA_HOST,
|
|
24
|
-
email: process.env.JIRA_EMAIL,
|
|
25
|
-
token: process.env.JIRA_TOKEN
|
|
26
|
-
}
|
|
27
|
-
},
|
|
28
|
-
hideEmptyBlocks: true,
|
|
29
|
-
template: `## <%= process.env.VERSION -%>
|
|
30
|
-
|
|
31
|
-
<% blockTickets = tickets.all.filter((t) => !t.reverted); -%>
|
|
32
|
-
<% if (blockTickets.length > 0 || !options.hideEmptyBlocks) { -%>
|
|
33
|
-
### Jira Tickets
|
|
34
|
-
---------------------
|
|
35
|
-
<% blockTickets.forEach(ticket => { -%>
|
|
36
|
-
* [<%= ticket.fields.issuetype.name %>] - <%- ticket.fields.summary %>
|
|
37
|
-
[<%= ticket.key %>](<%= jira.baseUrl + '/browse/' + ticket.key %>)
|
|
38
|
-
<% }); -%>
|
|
39
|
-
<% if (!blockTickets.length) {%> ~ None ~ <% } %>
|
|
40
|
-
<% } -%>
|
|
41
|
-
<% blockNoTickets = commits.noTickets; -%>
|
|
42
|
-
<% if (blockNoTickets.length > 0 || !options.hideEmptyBlocks) { -%>
|
|
43
|
-
|
|
44
|
-
### Other Commits
|
|
45
|
-
---------------------
|
|
46
|
-
<% blockNoTickets.forEach(commit => { -%>
|
|
47
|
-
* <%= commit.slackUser ? '@'+commit.slackUser.name : commit.authorName %> - <<%= commit.revision.substr(0, 7) %>> - <%= commit.summary %>
|
|
48
|
-
<% }); -%>
|
|
49
|
-
<% if (!blockNoTickets.length) {%> ~ None ~ <% } %>
|
|
50
|
-
<% } -%>
|
|
51
|
-
<% blockPendingByOwner = tickets.pendingByOwner; -%>
|
|
52
|
-
<% if (blockPendingByOwner.length > 0 || !options.hideEmptyBlocks) { -%>
|
|
53
|
-
<% } -%>
|
|
54
|
-
--------------------
|
|
55
|
-
`
|
|
56
|
-
};
|