import-local
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -14,3 +14,7 @@ 'use strict'; | ||
return !filenameInLocalNodeModules && localFile && require(localFile); | ||
// Use `path.relative()` to detect local package installation, | ||
// because __filename's case is inconsistent on Windows | ||
// Can use `===` when targeting Node.js 8 | ||
// See https://github.com/nodejs/node/issues/6624 | ||
return !filenameInLocalNodeModules && localFile && path.relative(localFile, filename) !== '' && require(localFile); | ||
}; |
{ | ||
"name": "import-local", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Let a globally installed package use a locally installed version of itself if available", | ||
@@ -40,3 +40,3 @@ "license": "MIT", | ||
"devDependencies": { | ||
"ava": "^2.1.0", | ||
"ava": "2.1.0", | ||
"cpy": "^7.0.1", | ||
@@ -43,0 +43,0 @@ "del": "^4.1.1", |
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
4177
23