@contrast/assess 1.58.0 → 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.
@@ -52,6 +52,7 @@ module.exports = function (core) {
52
52
  if (!getSinkContext(ruleId)) return;
53
53
 
54
54
  const event = eventFactory.createCryptoAnalysisEvent({
55
+ args: [],
55
56
  context: 'Math.random()',
56
57
  methodName: 'random',
57
58
  moduleName: 'global.Math',
@@ -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
- const { extern } = tracker.track(result, event);
294
- return extern;
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-parser1')(core);
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 <2' },
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.0",
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.0",
24
- "@contrast/config": "1.49.0",
25
- "@contrast/core": "1.54.0",
26
- "@contrast/dep-hooks": "1.23.0",
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.0",
29
- "@contrast/logger": "1.27.0",
30
- "@contrast/patcher": "1.26.0",
31
- "@contrast/rewriter": "1.30.0",
32
- "@contrast/route-coverage": "1.45.0",
33
- "@contrast/scopes": "1.24.0",
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
  }