Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/local-resolver

Package Overview
Dependencies
Maintainers
3
Versions
129
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/local-resolver - npm Package Compare versions

Comparing version 5.0.13 to 5.0.14

8

CHANGELOG.md
# @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 @@

7

lib/index.js
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc