Comparing version 1.4.1 to 1.5.1
@@ -111,2 +111,13 @@ /* | ||
// Starting in node 0.12 node won't reload native modules | ||
// The reason is that native modules can register themselves to be loaded automatically | ||
// This will re-populate the cache with the native modules that have not been mocked | ||
if(originalCache) { | ||
Object.keys(originalCache).forEach(function(k) { | ||
if (k.indexOf('\.node') > -1 && !m._cache[k]) { | ||
m._cache[k] = originalCache[k]; | ||
} | ||
}); | ||
} | ||
return originalLoader(request, parent, isMain); | ||
@@ -113,0 +124,0 @@ } |
{ | ||
"name": "mockery", | ||
"version": "1.4.1", | ||
"version": "1.5.1", | ||
"description": "Simplifying the use of mocks with Node.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
47025
889
0