dependency-path
Advanced tools
Comparing version 3.0.1 to 3.0.2
@@ -40,3 +40,3 @@ "use strict"; | ||
} | ||
if (reference.indexOf('/') === -1) { | ||
if (!reference.includes('/')) { | ||
const registryName = encodeRegistry(getRegistryByPackageName(registries, pkgName)); | ||
@@ -60,3 +60,3 @@ return `${registryName}/${pkgName}/${reference}`; | ||
const registryName = encodeRegistry(getRegistryByPackageName(registries, packageName)); | ||
if (absoluteResolutionLoc.startsWith(`${registryName}/`) && absoluteResolutionLoc.indexOf('/-/') === -1) { | ||
if (absoluteResolutionLoc.startsWith(`${registryName}/`) && !absoluteResolutionLoc.includes('/-/')) { | ||
return absoluteResolutionLoc.substr(absoluteResolutionLoc.indexOf('/')); | ||
@@ -74,3 +74,3 @@ } | ||
} | ||
if (reference.indexOf('/') === -1) { | ||
if (!reference.includes('/')) { | ||
return `/${pkgName}/${reference}`; | ||
@@ -77,0 +77,0 @@ } |
{ | ||
"name": "dependency-path", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "Utilities for working with symlinked node_modules", | ||
@@ -29,3 +29,3 @@ "main": "lib/index.js", | ||
"engines": { | ||
"node": ">=8" | ||
"node": ">=8.15" | ||
}, | ||
@@ -39,3 +39,3 @@ "license": "MIT", | ||
"@pnpm/types": "3.0.0", | ||
"@types/semver": "5.5.0", | ||
"@types/semver": "6.0.0", | ||
"encode-registry": "1.1.0", | ||
@@ -51,4 +51,4 @@ "semver": "6.0.0" | ||
"ts-node": "8.0.3", | ||
"tslint": "5.14.0", | ||
"typescript": "3.4.1" | ||
"tslint": "5.15.0", | ||
"typescript": "3.4.2" | ||
}, | ||
@@ -55,0 +55,0 @@ "mos": { |
Sorry, the diff of this file is not supported yet
12627
+ Added@types/semver@6.0.0(transitive)
- Removed@types/semver@5.5.0(transitive)
Updated@types/semver@6.0.0