You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

decache

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decache - npm Package Compare versions

Comparing version

to
4.2.0

10

decache.js

@@ -57,3 +57,3 @@ var path = require('path'); // if module is locally defined we path.resolve it

// the cache no else so #ignore else http://git.io/vtgMI
/* istanbul ignore else */
/* istanbul ignore else */
if (mod && ((mod = require.cache[mod]) !== undefined)) {

@@ -65,3 +65,9 @@ // Recursively go over the results

mod.children.forEach(function (child) {
run(child);
// Prevent infinite recursion
/* istanbul ignore next */
if (child.parent === mod) {
return;
} else {
run(child);
}
});

@@ -68,0 +74,0 @@

2

package.json
{
"name": "decache",
"version": "4.1.0",
"version": "4.2.0",
"description": "decache (Delete Cache) lets you delete modules from node.js require() cache; useful when testing your modules/projects.",

@@ -5,0 +5,0 @@ "main": "decache.js",