@yarnpkg/plugin-file
Advanced tools
Comparing version
@@ -40,5 +40,5 @@ "use strict"; | ||
async getCandidates(descriptor, dependencies, opts) { | ||
let path = descriptor.range; | ||
if (path.startsWith(constants_1.PROTOCOL)) | ||
path = path.slice(constants_1.PROTOCOL.length); | ||
const path = descriptor.range.startsWith(constants_1.PROTOCOL) | ||
? descriptor.range.slice(constants_1.PROTOCOL.length) | ||
: descriptor.range; | ||
return [core_3.structUtils.makeLocator(descriptor, `${constants_1.PROTOCOL}${fslib_1.npath.toPortablePath(path)}`)]; | ||
@@ -45,0 +45,0 @@ } |
{ | ||
"name": "@yarnpkg/plugin-file", | ||
"version": "2.3.1", | ||
"version": "2.3.2", | ||
"license": "BSD-2-Clause", | ||
"main": "./lib/index.js", | ||
"dependencies": { | ||
"@yarnpkg/fslib": "^2.6.2", | ||
"@yarnpkg/fslib": "^2.10.3", | ||
"tslib": "^1.13.0" | ||
}, | ||
"peerDependencies": { | ||
"@yarnpkg/core": "^3.2.1" | ||
"@yarnpkg/core": "^3.6.0" | ||
}, | ||
"devDependencies": { | ||
"@yarnpkg/core": "^3.2.1" | ||
"@yarnpkg/core": "^3.6.0" | ||
}, | ||
@@ -16,0 +16,0 @@ "repository": { |
23594
0.09%Updated