Socket
Socket
Sign inDemoInstall

@pnpm/local-resolver

Package Overview
Dependencies
Maintainers
3
Versions
128
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 2.0.10 to 2.0.11

9

lib/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const error_1 = require("@pnpm/error");
const read_importer_manifest_1 = require("@pnpm/read-importer-manifest");

@@ -32,10 +33,6 @@ const fs = require("graceful-fs");

case 'ENOTDIR': {
const err = new Error(`Could not install from "${spec.fetchSpec}" as it is not a directory.`);
err['code'] = 'ERR_PNPM_NOT_PACKAGE_DIRECTORY'; // tslint:disable-line:no-string-literal
throw err;
throw new error_1.default('NOT_PACKAGE_DIRECTORY', `Could not install from "${spec.fetchSpec}" as it is not a directory.`);
}
case 'ENOENT': {
const err = new Error(`Could not install from "${spec.fetchSpec}" as it does not contain a package.json file.`);
err['code'] = 'ERR_PNPM_DIRECTORY_HAS_NO_PACKAGE_JSON'; // tslint:disable-line:no-string-literal
throw err;
throw new error_1.default('DIRECTORY_HAS_NO_PACKAGE_JSON', `Could not install from "${spec.fetchSpec}" as it does not contain a package.json file.`);
}

@@ -42,0 +39,0 @@ default: {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const error_1 = require("@pnpm/error");
const normalize = require("normalize-path");

@@ -25,6 +26,5 @@ const os = require("os");

if (pref.startsWith('path:')) {
const err = new Error('Local dependencies via `path:` protocol are not supported. ' +
const err = new error_1.default('PATH_IS_UNSUPPORTED_PROTOCOL', 'Local dependencies via `path:` protocol are not supported. ' +
'Use the `link:` protocol for folder dependencies and `file:` for local tarballs');
// tslint:disable:no-string-literal
err['code'] = 'ERR_PNPM_PATH_IS_UNSUPPORTED_PROTOCOL';
err['pref'] = pref;

@@ -31,0 +31,0 @@ err['protocol'] = 'path:';

{
"name": "@pnpm/local-resolver",
"version": "2.0.10",
"version": "2.0.11",
"description": "Resolver for local packages",

@@ -33,3 +33,4 @@ "main": "lib/index.js",

"dependencies": {
"@pnpm/read-importer-manifest": "1.0.5",
"@pnpm/error": "1.0.0",
"@pnpm/read-importer-manifest": "1.0.6",
"@pnpm/resolver-base": "3.1.2",

@@ -36,0 +37,0 @@ "@pnpm/types": "3.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