@pnpm/local-resolver
Advanced tools
Comparing version 5.0.13 to 5.0.14
# @pnpm/local-resolver | ||
## 5.0.14 | ||
### Patch Changes | ||
- Updated dependencies [75a36deba] | ||
- @pnpm/error@1.3.1 | ||
- @pnpm/read-project-manifest@1.0.13 | ||
## 5.0.13 | ||
@@ -4,0 +12,0 @@ |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const error_1 = require("@pnpm/error"); | ||
const error_1 = __importDefault(require("@pnpm/error")); | ||
const read_project_manifest_1 = require("@pnpm/read-project-manifest"); | ||
const parsePref_1 = __importDefault(require("./parsePref")); | ||
const fs = require("graceful-fs"); | ||
const ssri = require("ssri"); | ||
const parsePref_1 = require("./parsePref"); | ||
/** | ||
@@ -9,0 +12,0 @@ * Resolves a package hosted on the local filesystem |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const error_1 = require("@pnpm/error"); | ||
const error_1 = __importDefault(require("@pnpm/error")); | ||
const os = require("os"); | ||
const normalize = require("normalize-path"); | ||
const os = require("os"); | ||
const path = require("path"); | ||
// tslint:disable-next-line | ||
// eslint-disable-next-line | ||
const isWindows = process.platform === 'win32' || global['FAKE_WINDOWS']; | ||
@@ -16,8 +19,8 @@ const isFilespec = isWindows ? /^(?:[.]|~[/]|[/\\]|[a-zA-Z]:)/ : /^(?:[.]|~[/]|[/]|[a-zA-Z]:)/; | ||
} | ||
if (pref.endsWith('.tgz') | ||
|| pref.endsWith('.tar.gz') | ||
|| pref.endsWith('.tar') | ||
|| pref.includes(path.sep) | ||
|| pref.startsWith('file:') | ||
|| isFilespec.test(pref)) { | ||
if (pref.endsWith('.tgz') || | ||
pref.endsWith('.tar.gz') || | ||
pref.endsWith('.tar') || | ||
pref.includes(path.sep) || | ||
pref.startsWith('file:') || | ||
isFilespec.test(pref)) { | ||
const type = isFilename.test(pref) ? 'file' : 'directory'; | ||
@@ -29,6 +32,6 @@ return fromLocal(pref, projectDir, lockfileDir, type); | ||
'Use the `link:` protocol for folder dependencies and `file:` for local tarballs'); | ||
// tslint:disable:no-string-literal | ||
/* eslint-disable @typescript-eslint/dot-notation */ | ||
err['pref'] = pref; | ||
err['protocol'] = 'path:'; | ||
// tslint:enable:no-string-literal | ||
/* eslint-enable @typescript-eslint/dot-notation */ | ||
throw err; | ||
@@ -35,0 +38,0 @@ } |
{ | ||
"name": "@pnpm/local-resolver", | ||
"version": "5.0.13", | ||
"version": "5.0.14", | ||
"description": "Resolver for local packages", | ||
@@ -15,3 +15,3 @@ "main": "lib/index.js", | ||
"scripts": { | ||
"lint": "tslint -c ../../tslint.json src/**/*.ts test/**/*.ts", | ||
"lint": "eslint -c ../../eslint.json src/**/*.ts test/**/*.ts", | ||
"_test": "cd ../.. && c8 --reporter lcov --reports-dir packages/local-resolver/coverage ts-node packages/local-resolver/test --type-check", | ||
@@ -36,4 +36,4 @@ "test": "pnpm run compile && pnpm run _test", | ||
"dependencies": { | ||
"@pnpm/error": "1.3.0", | ||
"@pnpm/read-project-manifest": "1.0.12", | ||
"@pnpm/error": "1.3.1", | ||
"@pnpm/read-project-manifest": "1.0.13", | ||
"@pnpm/resolver-base": "7.0.3", | ||
@@ -40,0 +40,0 @@ "@pnpm/types": "6.2.0", |
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
11212
167
+ Added@pnpm/error@1.3.1(transitive)
+ Added@pnpm/read-project-manifest@1.0.13(transitive)
- Removed@pnpm/error@1.3.0(transitive)
- Removed@pnpm/read-project-manifest@1.0.12(transitive)
Updated@pnpm/error@1.3.1