Comparing version 0.3.0 to 0.3.1
@@ -7,6 +7,7 @@ var PREVIOUS = Symbol('PREVIOUS'); | ||
path = require.resolve(name); | ||
delete require.cache[path]; | ||
} catch (err) { | ||
throw new Error('Could not drop non existing module "' + name + '"'); | ||
} | ||
delete require.cache[path]; | ||
}; | ||
@@ -13,0 +14,0 @@ |
{ | ||
"name": "cuculus", | ||
"version": "0.3.0", | ||
"version": "0.3.1", | ||
"engines" : { "node" : ">=0.12.0" }, | ||
@@ -5,0 +5,0 @@ "description": "Simplest require mocking", |
@@ -104,3 +104,3 @@ # [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Dependency Status][daviddm-image]][daviddm-url] | ||
Drops the cached module from `require`. | ||
Drops the cached module from `require`. `name` should be a module name or a full path to the js file. | ||
@@ -107,0 +107,0 @@ ## License |
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
7958
149