proxyquire
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -282,2 +282,4 @@ 'use strict' | ||
Module._cache[id] = cached | ||
} else { | ||
delete Module._cache[id] | ||
} | ||
@@ -284,0 +286,0 @@ } |
{ | ||
"name": "proxyquire", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Proxies nodejs require in order to allow overriding dependencies during testing.", | ||
@@ -36,4 +36,4 @@ "main": "index.js", | ||
"module-not-found-error": "^1.0.0", | ||
"resolve": "~1.1.7" | ||
"resolve": "~1.5.0" | ||
} | ||
} |
@@ -20,2 +20,11 @@ 'use strict' | ||
}) | ||
it('does not pollute the cache when module is proxyquired before it is loaded', function () { | ||
var proxyquire = require('..') | ||
proxyquire('./samples/no-call-thru-test', { './required': false }) | ||
var original = require('./samples/no-call-thru-test') | ||
assert.equal(original.original, true) | ||
}) | ||
}) | ||
@@ -22,0 +31,0 @@ |
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
64779
60
1392
0
+ Addedpath-parse@1.0.7(transitive)
+ Addedresolve@1.5.0(transitive)
- Removedresolve@1.1.7(transitive)
Updatedresolve@~1.5.0