@contrast/protect 1.79.0 → 1.81.0
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/index.js
CHANGED
|
@@ -32,7 +32,7 @@ const {
|
|
|
32
32
|
StringPrototypeMatch,
|
|
33
33
|
}
|
|
34
34
|
} = require('@contrast/common');
|
|
35
|
-
const { Core } = require('@contrast/core
|
|
35
|
+
const { Core } = require('@contrast/core');
|
|
36
36
|
|
|
37
37
|
//
|
|
38
38
|
// these rules are not implemented by agent-lib, but are being considered for
|
|
@@ -40,6 +40,9 @@ module.exports = function(core) {
|
|
|
40
40
|
sourceContext.parsedCdsKeyParams = true;
|
|
41
41
|
|
|
42
42
|
const params = req?.params?.length ? req.params : [];
|
|
43
|
+
|
|
44
|
+
if (req?.data) params.push(req.data);
|
|
45
|
+
|
|
43
46
|
const queries = Array.isArray(req?.query)
|
|
44
47
|
? req.query
|
|
45
48
|
: req?.query ? [req.query] : [];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/protect",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.81.0",
|
|
4
4
|
"description": "Contrast service providing framework-agnostic Protect support",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
@@ -13,28 +13,28 @@
|
|
|
13
13
|
"main": "lib/index.js",
|
|
14
14
|
"types": "lib/index.d.ts",
|
|
15
15
|
"engines": {
|
|
16
|
-
"npm": ">=
|
|
17
|
-
"node": ">=
|
|
16
|
+
"npm": ">=8.5.5",
|
|
17
|
+
"node": ">=18.7.0"
|
|
18
18
|
},
|
|
19
19
|
"scripts": {
|
|
20
20
|
"test": "bash ../scripts/test.sh"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@contrast/agent-lib": "9.2.0",
|
|
24
|
-
"@contrast/common": "1.
|
|
25
|
-
"@contrast/config": "1.
|
|
26
|
-
"@contrast/core": "1.
|
|
27
|
-
"@contrast/dep-hooks": "1.
|
|
28
|
-
"@contrast/esm-hooks": "2.
|
|
29
|
-
"@contrast/instrumentation": "1.
|
|
30
|
-
"@contrast/logger": "1.
|
|
31
|
-
"@contrast/patcher": "1.
|
|
32
|
-
"@contrast/rewriter": "1.
|
|
33
|
-
"@contrast/scopes": "1.
|
|
34
|
-
"@contrast/stack-trace-factory": "1.
|
|
24
|
+
"@contrast/common": "1.42.0",
|
|
25
|
+
"@contrast/config": "1.62.0",
|
|
26
|
+
"@contrast/core": "1.67.0",
|
|
27
|
+
"@contrast/dep-hooks": "1.36.0",
|
|
28
|
+
"@contrast/esm-hooks": "2.42.0",
|
|
29
|
+
"@contrast/instrumentation": "1.46.0",
|
|
30
|
+
"@contrast/logger": "1.40.0",
|
|
31
|
+
"@contrast/patcher": "1.39.0",
|
|
32
|
+
"@contrast/rewriter": "1.44.0",
|
|
33
|
+
"@contrast/scopes": "1.37.0",
|
|
34
|
+
"@contrast/stack-trace-factory": "1.8.0",
|
|
35
35
|
"async-hook-domain": "4.0.1",
|
|
36
|
-
"ipaddr.js": "2.0
|
|
36
|
+
"ipaddr.js": "2.4.0",
|
|
37
37
|
"on-finished": "2.4.1",
|
|
38
|
-
"semver": "7.
|
|
38
|
+
"semver": "7.8.5"
|
|
39
39
|
}
|
|
40
40
|
}
|