Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-tdd

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-tdd - npm Package Compare versions

Comparing version 3.5.4 to 4.0.0

29

lib/modules/cache-clearer.js

@@ -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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc