Comparing version 3.5.4 to 4.0.0
@@ -14,8 +14,7 @@ import assert from 'assert'; | ||
const key = properties[i]; | ||
const value = LRU.prototype[key]; | ||
if (typeof value !== 'function') { | ||
// eslint-disable-next-line no-continue | ||
continue; | ||
} | ||
result.push({ obj, key, value }); | ||
try { | ||
const value = LRU.prototype[key]; | ||
assert(typeof value === 'function'); | ||
result.push({ obj, key, value }); | ||
} catch (e) { /* ignored */ } | ||
} | ||
@@ -36,9 +35,7 @@ return result; | ||
fns.forEach(({ obj, key, value }) => { | ||
try { | ||
// eslint-disable-next-line no-param-reassign,func-names | ||
obj[key] = function (...args) { | ||
caches.push(this); | ||
return value.call(this, ...args); | ||
}; | ||
} catch (e) { /* ignored */ } | ||
// eslint-disable-next-line no-param-reassign,func-names | ||
obj[key] = function (...args) { | ||
caches.push(this); | ||
return value.call(this, ...args); | ||
}; | ||
}); | ||
@@ -50,6 +47,4 @@ injected = true; | ||
fns.forEach(({ obj, key, value }) => { | ||
try { | ||
// eslint-disable-next-line no-param-reassign | ||
obj[key] = value; | ||
} catch (e) { /* ignored */ } | ||
// eslint-disable-next-line no-param-reassign | ||
obj[key] = value; | ||
}); | ||
@@ -56,0 +51,0 @@ caches.splice(0).forEach((c) => c.clear()); |
import assert from 'assert'; | ||
import path from 'path'; | ||
import { fileURLToPath } from 'url'; | ||
import fs from 'smart-fs'; | ||
import callsites from 'callsites'; | ||
import get from 'lodash.get'; | ||
import { fileURLToPath } from 'url'; | ||
import minimist from 'minimist'; | ||
@@ -8,0 +8,0 @@ import tmp from 'tmp'; |
{ | ||
"name": "node-tdd", | ||
"type": "module", | ||
"version": "3.5.4", | ||
"version": "4.0.0", | ||
"description": "Drop in extension for mocha to abstract commonly used test setups", | ||
@@ -44,20 +44,20 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@aws-sdk/client-sqs": "3.370.0", | ||
"@aws-sdk/client-sqs": "3.385.0", | ||
"@babel/core": "7.22.9", | ||
"@babel/eslint-parser": "7.22.9", | ||
"@babel/register": "7.22.5", | ||
"@blackflux/eslint-plugin-rules": "2.1.0", | ||
"@blackflux/robo-config-plugin": "9.0.1", | ||
"aws-sdk-wrap": "13.0.2", | ||
"@blackflux/eslint-plugin-rules": "3.0.0", | ||
"@blackflux/robo-config-plugin": "9.1.9", | ||
"aws-sdk-wrap": "13.0.6", | ||
"axios": "1.4.0", | ||
"c8": "8.0.0", | ||
"chai": "4.3.6", | ||
"eslint": "8.45.0", | ||
"c8": "8.0.1", | ||
"chai": "4.3.7", | ||
"eslint": "8.46.0", | ||
"eslint-config-airbnb-base": "15.0.0", | ||
"eslint-plugin-import": "2.27.5", | ||
"eslint-plugin-import": "2.28.0", | ||
"eslint-plugin-json": "3.1.0", | ||
"eslint-plugin-markdown": "3.0.0", | ||
"eslint-plugin-markdown": "3.0.1", | ||
"eslint-plugin-mocha": "10.1.0", | ||
"fancy-log": "2.0.0", | ||
"js-gardener": "5.0.0", | ||
"js-gardener": "5.0.1", | ||
"lambda-monitor-logger": "4.0.0" | ||
@@ -72,3 +72,3 @@ }, | ||
"engines": { | ||
"node": ">= 14" | ||
"node": ">= 16" | ||
}, | ||
@@ -83,12 +83,12 @@ "files": [ | ||
"lodash.get": "4.4.2", | ||
"lru-cache-ext": "3.0.2", | ||
"lru-cache-ext": "3.0.3", | ||
"minimist": "1.2.8", | ||
"nock": "13.3.2", | ||
"normalize-url": "2.0.1", | ||
"object-scan": "18.5.1", | ||
"smart-fs": "3.0.1", | ||
"timekeeper": "2.2.0", | ||
"object-scan": "19.0.0", | ||
"smart-fs": "4.0.0", | ||
"timekeeper": "2.3.1", | ||
"tmp": "0.2.1", | ||
"xml2js": "0.6.0" | ||
"xml2js": "0.6.2" | ||
} | ||
} |
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
46506
1082
+ Addedfs-extra@11.1.1(transitive)
+ Addedjson-stringify-pretty-compact@4.0.0(transitive)
+ Addedlru-cache@10.0.0(transitive)
+ Addedlru-cache-ext@3.0.3(transitive)
+ Addedobject-scan@19.0.0(transitive)
+ Addedsmart-fs@4.0.0(transitive)
+ Addedtimekeeper@2.3.1(transitive)
+ Addedxml2js@0.6.2(transitive)
- Removedfs-extra@10.0.1(transitive)
- Removedjson-stringify-pretty-compact@3.0.0(transitive)
- Removedlru-cache@7.8.1(transitive)
- Removedlru-cache-ext@3.0.2(transitive)
- Removedobject-scan@18.5.1(transitive)
- Removedsmart-fs@3.0.1(transitive)
- Removedtimekeeper@2.2.0(transitive)
- Removedxml2js@0.6.0(transitive)
Updatedlru-cache-ext@3.0.3
Updatedobject-scan@19.0.0
Updatedsmart-fs@4.0.0
Updatedtimekeeper@2.3.1
Updatedxml2js@0.6.2