clear-module
Advanced tools
+2
-2
| 'use strict'; | ||
| const path = require('path'); | ||
| const resolveFrom = require('resolve-from'); | ||
| const callerPath = require('caller-path'); | ||
| const parentModule = require('parent-module'); | ||
@@ -11,3 +11,3 @@ const clear = moduleId => { | ||
| const filePath = resolveFrom(path.dirname(callerPath()), moduleId); | ||
| const filePath = resolveFrom(path.dirname(parentModule(__filename)), moduleId); | ||
@@ -14,0 +14,0 @@ // Delete itself from module parent |
+4
-4
| { | ||
| "name": "clear-module", | ||
| "version": "3.0.0", | ||
| "version": "3.1.0", | ||
| "description": "Clear a module from the cache", | ||
@@ -37,9 +37,9 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "caller-path": "^2.0.0", | ||
| "parent-module": "^1.0.0", | ||
| "resolve-from": "^4.0.0" | ||
| }, | ||
| "devDependencies": { | ||
| "ava": "*", | ||
| "xo": "*" | ||
| "ava": "^1.0.1", | ||
| "xo": "^0.23.0" | ||
| } | ||
| } |
4186
0.7%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed