@contrast/assess 1.58.1 → 1.58.2
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.
|
@@ -288,10 +288,13 @@ module.exports = function(core) {
|
|
|
288
288
|
source: data._objInfo ? (data._history.size > 1 ? 'A' : 'O') : 'P',
|
|
289
289
|
target: 'R',
|
|
290
290
|
});
|
|
291
|
-
if (!event) return null;
|
|
292
291
|
|
|
293
|
-
|
|
294
|
-
|
|
292
|
+
if (event) {
|
|
293
|
+
const { extern } = tracker.track(result, event);
|
|
294
|
+
return extern;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
return result;
|
|
295
298
|
}
|
|
296
299
|
});
|
|
297
300
|
},
|
|
@@ -26,7 +26,7 @@ module.exports = function (core) {
|
|
|
26
26
|
require('./install/hapi')(core);
|
|
27
27
|
require('./install/koa')(core);
|
|
28
28
|
require('./install/restify')(core);
|
|
29
|
-
require('./install/body-
|
|
29
|
+
require('./install/body-parser')(core);
|
|
30
30
|
require('./install/busboy')(core);
|
|
31
31
|
require('./install/cookie-parser1')(core);
|
|
32
32
|
require('./install/formidable1')(core);
|
|
@@ -97,7 +97,7 @@ module.exports = function init(core) {
|
|
|
97
97
|
core.assess.dataflow.sources.bodyParser1Instrumentation = {
|
|
98
98
|
install() {
|
|
99
99
|
depHooks.resolve(
|
|
100
|
-
{ name: 'body-parser', version: '>=1 <
|
|
100
|
+
{ name: 'body-parser', version: '>=1 <3' },
|
|
101
101
|
/** @param {import('body-parser').BodyParser} bodyParser */
|
|
102
102
|
(bodyParser) => {
|
|
103
103
|
bodyParser = patcher.patch(bodyParser, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/assess",
|
|
3
|
-
"version": "1.58.
|
|
3
|
+
"version": "1.58.2",
|
|
4
4
|
"description": "Contrast service providing framework-agnostic Assess support",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
@@ -20,17 +20,17 @@
|
|
|
20
20
|
"test": "bash ../scripts/test.sh"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@contrast/common": "1.34.
|
|
24
|
-
"@contrast/config": "1.49.
|
|
25
|
-
"@contrast/core": "1.54.
|
|
26
|
-
"@contrast/dep-hooks": "1.23.
|
|
23
|
+
"@contrast/common": "1.34.2",
|
|
24
|
+
"@contrast/config": "1.49.2",
|
|
25
|
+
"@contrast/core": "1.54.2",
|
|
26
|
+
"@contrast/dep-hooks": "1.23.2",
|
|
27
27
|
"@contrast/distringuish": "^5.1.0",
|
|
28
|
-
"@contrast/instrumentation": "1.33.
|
|
29
|
-
"@contrast/logger": "1.27.
|
|
30
|
-
"@contrast/patcher": "1.26.
|
|
31
|
-
"@contrast/rewriter": "1.30.
|
|
32
|
-
"@contrast/route-coverage": "1.45.
|
|
33
|
-
"@contrast/scopes": "1.24.
|
|
28
|
+
"@contrast/instrumentation": "1.33.2",
|
|
29
|
+
"@contrast/logger": "1.27.2",
|
|
30
|
+
"@contrast/patcher": "1.26.2",
|
|
31
|
+
"@contrast/rewriter": "1.30.2",
|
|
32
|
+
"@contrast/route-coverage": "1.45.2",
|
|
33
|
+
"@contrast/scopes": "1.24.2",
|
|
34
34
|
"semver": "^7.6.0"
|
|
35
35
|
}
|
|
36
36
|
}
|