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 1.0.2 to 1.0.3

6

lib/index.js

@@ -11,9 +11,7 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const read_package_json_1 = require("@pnpm/read-package-json");
const fs = require("graceful-fs");
const path = require("path");
const readPackageJsonCB = require("read-package-json");
const ssri = require("ssri");
const promisify = require("util.promisify");
const parsePref_1 = require("./parsePref");
const readPackageJson = promisify(readPackageJsonCB);
/**

@@ -40,3 +38,3 @@ * Resolves a package hosted on the local filesystem

try {
localPkg = yield readPackageJson(path.join(spec.fetchSpec, 'package.json'));
localPkg = yield read_package_json_1.default(path.join(spec.fetchSpec, 'package.json'));
}

@@ -43,0 +41,0 @@ catch (internalErr) {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const normalize = require("normalize-path");
const osenv = require("osenv");
const os = require("os");
const path = require("path");

@@ -48,3 +48,3 @@ // tslint:disable-next-line

// this is needed for windows and for file:~/foo/bar
fetchSpec = resolvePath(osenv.home(), spec.slice(2));
fetchSpec = resolvePath(os.homedir(), spec.slice(2));
normalizedPref = `${protocol}${spec}`;

@@ -51,0 +51,0 @@ }

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

@@ -37,2 +37,3 @@ "main": "lib/index.js",

"dependencies": {
"@pnpm/read-package-json": "1.0.1",
"@pnpm/resolver-base": "^2.0.0",

@@ -42,8 +43,5 @@ "@pnpm/types": "^2.0.0",

"@types/node": "^10.0.6",
"graceful-fs": "^4.1.11",
"normalize-path": "^3.0.0",
"osenv": "^0.1.4",
"read-package-json": "^2.0.12",
"ssri": "^6.0.0",
"util.promisify": "^1.0.0"
"graceful-fs": "4.1.15",
"normalize-path": "3.0.0",
"ssri": "6.0.1"
},

@@ -50,0 +48,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

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