Comparing version 2.15.1 to 2.16.0
@@ -9,2 +9,7 @@ const assert = require('assert'); | ||
const libs = { | ||
Math, | ||
crypto | ||
}; | ||
module.exports = opts => { | ||
@@ -20,4 +25,9 @@ Joi.assert(opts, Joi.object().keys({ | ||
original = { | ||
randomBytes: crypto.randomBytes, | ||
randomFillSync: crypto.randomFillSync | ||
crypto: { | ||
randomBytes: crypto.randomBytes, | ||
randomFillSync: crypto.randomFillSync | ||
}, | ||
Math: { | ||
random: Math.random | ||
} | ||
}; | ||
@@ -52,7 +62,11 @@ const executionCounts = {}; | ||
}; | ||
Math.random = () => crypto.randomBytes(8).readUInt32LE() / 0xffffffff; | ||
}, | ||
release: () => { | ||
assert(original !== null); | ||
Object.entries(original).forEach(([k, v]) => { | ||
crypto[k] = v; | ||
Object.entries(original).forEach(([lib, v]) => { | ||
Object.entries(v).forEach(([method, org]) => { | ||
libs[lib][method] = org; | ||
}); | ||
}); | ||
@@ -64,2 +78,2 @@ original = null; | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tb2R1bGVzL3JhbmRvbS1zZWVkZXIuanMiXSwibmFtZXMiOlsiYXNzZXJ0IiwicmVxdWlyZSIsImNyeXB0byIsImdldCIsIkpvaSIsIm1vZHVsZSIsImV4cG9ydHMiLCJvcHRzIiwib2JqZWN0Iiwia2V5cyIsInNlZWQiLCJzdHJpbmciLCJyZXNlZWQiLCJib29sZWFuIiwib3JpZ2luYWwiLCJpbmplY3QiLCJyYW5kb21CeXRlcyIsInJhbmRvbUZpbGxTeW5jIiwiZXhlY3V0aW9uQ291bnRzIiwic2l6ZSIsImNiIiwic3RhY2siLCJFcnJvciIsInNwbGl0Iiwic3ViU3RhY2siLCJzbGljZSIsImZpbmRJbmRleCIsImUiLCJpbmRleE9mIiwic3RhY2tPcmlnaW4iLCJvcmlnaW5GaWxlIiwibWF0Y2giLCJrZXkiLCJyZXN1bH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ob3JpZ2luYWwpLmZvckVhY2goKFtrLCB2XSkgPT4ge1xuICAgICAgICBjcnlwdG9ba10gPSB2O1xuICAgICAgfSk7XG4gICAgICBvcmlnaW5hbCA9IG51bGw7XG4gICAgfSxcbiAgICBpc0luamVjdGVkOiAoKSA9PiBvcmlnaW5hbCAhPT0gbnVsbFxuICB9O1xufTtcbiJdfQ== | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9tb2R1bGVzL3JhbmRvbS1zZWVkZXIuanMiXSwibmFtZXMiOlsiYXNzZXJ0IiwicmVxdWlyZSIsImNyeXB0byIsImdldCIsIkpvaSIsImxpYnMiLCJNYXRoIiwibW9kdWxlIiwiZXhwb3J0cyIsIm9wdHMiLCJvYmplY3QiLCJrZXlzIiwic2VlZCIsInN0cmluZyIsInJlc2VlZCIsImJvb2xlYW4iLCJvcmlnaW5hbCIsImluamVjdCIsInJhbmRvbUJ5dGVzIiwicmFuZG9tRmlsbFN5bmMiLCJyYW5kb20iLCJleGVjdXRpb25Db3VudHMiLCJzaXplIiwiY2IiLCJzdGFjayIsIkVycm9yIiwic3BsaXQiLCJzdWJTdGFjayIsInNsaWNlIiwiZmluZEluZGV4IiwiZSIsImluZGV4T2YiLCJzdGFja09yaWdpbiIsIm9yaWdpbkZpbGUiLCJtYXRjaCIsImtleSIsInJlc3VsdCIsImNyZWF0ZUhhc2giLCJ1cGRhdGUiLCJTdHJpbmciLCJkaWdlc3QiLCJsZW5ndGgiLCJCdWZmZXIiLCJjb25jYXQiLCJidWZmZXIiLCJvZmZzZXQiLCJvIiwicyIsImJ5dGVMZW5ndGgiLCJlcnIiLCJyZXMiLCJjb3B5IiwicmVhZFVJbnQzMkxFIiwicmVsZWFzZSIsIk9iamVjdCIsImVudHJpZXMiLCJmb3JFYWNoIiwibGliIiwidiIsIm1ldGhvZCIsIm9yZyIsImlzSW5qZWN0ZWQiXSwibWFwcGluZ3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mlsbFN5bmMgPSAoYnVmZmVyLCBvZmZzZXQsIHNpemUpID0+IHtcbiAgICAgICAgY29uc3QgbyA9IG9mZnNldCB8fCAwO1xuICAgICAgICBjb25zdCBzID0gc2l6ZSB8fCBidWZmZXIuYnl0ZUxlbmd0aDtcbiAgICAgICAgY3J5cHRvLnJhbmRvbUJ5dGVzKHMsIChlcnIsIHJlcykgPT4ge1xuICAgICAgICAgIHJlcy5jb3B5KGJ1ZmZlciwgbywgMCwgcyk7XG4gICAgICAgIH0pO1xuICAgICAgICByZXR1cm4gYnVmZmVyO1xuICAgICAgfTtcbiAgICAgIE1hdGgucmFuZG9tID0gKCkgPT4gY3J5cHRvLnJhbmRvbUJ5dGVzKDgpLnJlYWRVSW50MzJMRSgpIC8gMHhmZmZmZmZmZjtcbiAgICB9LFxuICAgIHJlbGVhc2U6ICgpID0+IHtcbiAgICAgIGFzc2VydChvcmlnaW5hbCAhPT0gbnVsbCk7XG4gICAgICBPYmplY3QuZW50cmllcyhvcmlnaW5hbCkuZm9yRWFjaCgoW2xpYiwgdl0pID0+IHtcbiAgICAgICAgT2JqZWN0LmVudHJpZXModikuZm9yRWFjaCgoW21ldGhvZCwgb3JnXSkgPT4ge1xuICAgICAgICAgIGxpYnNbbGliXVttZXRob2RdID0gb3JnO1xuICAgICAgICB9KTtcbiAgICAgIH0pO1xuICAgICAgb3JpZ2luYWwgPSBudWxsO1xuICAgIH0sXG4gICAgaXNJbmplY3RlZDogKCkgPT4gb3JpZ2luYWwgIT09IG51bGxcbiAgfTtcbn07XG4iXX0= |
{ | ||
"name": "node-tdd", | ||
"version": "2.15.1", | ||
"version": "2.16.0", | ||
"description": "Drop in extension for mocha to abstract commonly used test setups", | ||
@@ -47,4 +47,4 @@ "main": "lib/index.js", | ||
"@babel/register": "7.10.4", | ||
"@blackflux/eslint-plugin-rules": "1.3.30", | ||
"@blackflux/robo-config-plugin": "3.5.0", | ||
"@blackflux/eslint-plugin-rules": "1.3.31", | ||
"@blackflux/robo-config-plugin": "3.5.1", | ||
"aws-sdk": "2.713.0", | ||
@@ -117,3 +117,3 @@ "aws-sdk-wrap": "4.4.9", | ||
"nock": "13.0.2", | ||
"smart-fs": "1.11.14", | ||
"smart-fs": "1.11.15", | ||
"timekeeper": "2.2.0", | ||
@@ -120,0 +120,0 @@ "tmp": "0.2.1", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
127168
768
+ Addedsmart-fs@1.11.15(transitive)
- Removedsmart-fs@1.11.14(transitive)
Updatedsmart-fs@1.11.15