Sign In

clear-module

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clear-module - npm Package Compare versions

Comparing version
3.0.0
to
3.1.0
+2
-2
index.js
'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

{
"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"
}
}