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

@pnpm/local-resolver

Package Overview
Dependencies
Maintainers
2
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 6.0.5 to 6.1.0

12

lib/index.js

@@ -6,2 +6,4 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const fs_1 = require("fs");
const path_1 = __importDefault(require("path"));
const error_1 = __importDefault(require("@pnpm/error"));

@@ -36,2 +38,5 @@ const graceful_fs_1 = __importDefault(require("@pnpm/graceful-fs"));

catch (internalErr) {
if (!fs_1.existsSync(spec.fetchSpec)) {
throw new error_1.default('LINKED_PKG_DIR_NOT_FOUND', `Could not install from "${spec.fetchSpec}" as it does not exist.`);
}
switch (internalErr.code) {

@@ -41,4 +46,9 @@ case 'ENOTDIR': {

}
case 'ERR_PNPM_NO_IMPORTER_MANIFEST_FOUND':
case 'ENOENT': {
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.`);
localDependencyManifest = {
name: path_1.default.basename(spec.fetchSpec),
version: '0.0.0',
};
break;
}

@@ -45,0 +55,0 @@ default: {

2

package.json
{
"name": "@pnpm/local-resolver",
"version": "6.0.5",
"version": "6.1.0",
"description": "Resolver for local packages",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

Sorry, the diff of this file is not supported yet

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