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 0.1.1 to 0.1.2

12

lib/index.js

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

Object.defineProperty(exports, "__esModule", { value: true });
const fs = require("graceful-fs");
const normalize = require("normalize-path");
const path = require("path");
const readPackageJsonCB = require("read-package-json");
const ssri = require("ssri");
const promisify = require("util.promisify");

@@ -32,3 +34,6 @@ const parsePref_1 = require("./parsePref");

normalizedPref: spec.normalizedPref,
resolution: { tarball: id },
resolution: {
integrity: yield getFileIntegrity(spec.fetchSpec),
tarball: id,
},
};

@@ -49,2 +54,7 @@ }

exports.default = resolveLocal;
function getFileIntegrity(filename) {
return __awaiter(this, void 0, void 0, function* () {
return (yield ssri.fromStream(fs.createReadStream(filename))).toString();
});
}
//# sourceMappingURL=index.js.map

7

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

@@ -38,6 +38,9 @@ "main": "lib/index.js",

"@pnpm/types": "^1.1.0",
"@types/graceful-fs": "^4.1.2",
"@types/node": "^9.3.0",
"graceful-fs": "^4.1.11",
"normalize-path": "^2.1.1",
"osenv": "^0.1.4",
"read-package-json": "^2.0.12",
"ssri": "^5.2.4",
"util.promisify": "^1.0.0"

@@ -51,3 +54,3 @@ },

"tape": "^4.8.0",
"ts-node": "^4.0.0",
"ts-node": "^5.0.0",
"tslint": "^5.8.0",

@@ -54,0 +57,0 @@ "typescript": "^2.6.1"

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