import-fresh
Advanced tools
Comparing version 2.0.0 to 3.0.0
'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 @@ module.exports = 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": "import-fresh", | ||
"version": "2.0.0", | ||
"description": "Import a module while bypassing the cache", | ||
"license": "MIT", | ||
"repository": "sindresorhus/import-fresh", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=4" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava", | ||
"heapdump": "optional-dev-dependency && node heapdump.js" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"require", | ||
"cache", | ||
"uncache", | ||
"uncached", | ||
"module", | ||
"fresh", | ||
"bypass" | ||
], | ||
"dependencies": { | ||
"caller-path": "^2.0.0", | ||
"resolve-from": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "*", | ||
"optional-dev-dependency": "^2.0.1", | ||
"xo": "^0.18.2" | ||
}, | ||
"optionalDevDependencies": { | ||
"heapdump": "^0.3.7" | ||
}, | ||
"xo": { | ||
"rules": { | ||
"import/no-extraneous-dependencies": "off" | ||
} | ||
} | ||
"name": "import-fresh", | ||
"version": "3.0.0", | ||
"description": "Import a module while bypassing the cache", | ||
"license": "MIT", | ||
"repository": "sindresorhus/import-fresh", | ||
"author": { | ||
"name": "Sindre Sorhus", | ||
"email": "sindresorhus@gmail.com", | ||
"url": "sindresorhus.com" | ||
}, | ||
"engines": { | ||
"node": ">=6" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava", | ||
"heapdump": "node heapdump.js" | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"keywords": [ | ||
"require", | ||
"cache", | ||
"uncache", | ||
"uncached", | ||
"module", | ||
"fresh", | ||
"bypass" | ||
], | ||
"dependencies": { | ||
"parent-module": "^1.0.0", | ||
"resolve-from": "^4.0.0" | ||
}, | ||
"devDependencies": { | ||
"ava": "^1.0.1", | ||
"heapdump": "^0.3.12", | ||
"xo": "^0.23.0" | ||
} | ||
} |
@@ -11,3 +11,3 @@ # import-fresh [![Build Status](https://travis-ci.org/sindresorhus/import-fresh.svg?branch=master)](https://travis-ci.org/sindresorhus/import-fresh) | ||
``` | ||
$ npm install --save import-fresh | ||
$ npm install import-fresh | ||
``` | ||
@@ -14,0 +14,0 @@ |
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
3658
+ Addedparent-module@^1.0.0
+ Addedcallsites@3.1.0(transitive)
+ Addedparent-module@1.0.1(transitive)
+ Addedresolve-from@4.0.0(transitive)
- Removedcaller-path@^2.0.0
- Removedcaller-callsite@2.0.0(transitive)
- Removedcaller-path@2.0.0(transitive)
- Removedcallsites@2.0.0(transitive)
- Removedresolve-from@3.0.0(transitive)
Updatedresolve-from@^4.0.0