Comparing version 4.1.0 to 4.2.0
@@ -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 @@ |
{ | ||
"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", |
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
9426
163