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

@pnpm/lockfile-utils

Package Overview
Dependencies
Maintainers
2
Versions
113
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/lockfile-utils - npm Package Compare versions

Comparing version 4.0.8 to 4.0.9

4

lib/extendProjectsWithTargetDirs.js

@@ -8,3 +8,3 @@ "use strict";

const dependency_path_1 = require("dependency-path");
const fromPairs_1 = __importDefault(require("ramda/src/fromPairs"));
const fromPairs_js_1 = __importDefault(require("ramda/src/fromPairs.js"));
function extendProjectsWithTargetDirs(projects, lockfile, ctx) {

@@ -14,3 +14,3 @@ const getLocalLocation = ctx.pkgLocationByDepPath != null

: (depPath, pkgName) => path_1.default.join(ctx.virtualStoreDir, (0, dependency_path_1.depPathToFilename)(depPath), 'node_modules', pkgName);
const projectsById = (0, fromPairs_1.default)(projects.map((project) => [project.id, { ...project, targetDirs: [] }]));
const projectsById = (0, fromPairs_js_1.default)(projects.map((project) => [project.id, { ...project, targetDirs: [] }]));
Object.entries(lockfile.packages ?? {})

@@ -17,0 +17,0 @@ .forEach(([depPath, pkg]) => {

@@ -7,3 +7,3 @@ "use strict";

const types_1 = require("@pnpm/types");
const equals_1 = __importDefault(require("ramda/src/equals"));
const equals_js_1 = __importDefault(require("ramda/src/equals.js"));
exports.default = (lockfile, pkg, importerId) => {

@@ -13,6 +13,6 @@ const importer = lockfile.importers[importerId];

return false;
if (!(0, equals_1.default)({ ...pkg.devDependencies, ...pkg.dependencies, ...pkg.optionalDependencies }, importer.specifiers)) {
if (!(0, equals_js_1.default)({ ...pkg.devDependencies, ...pkg.dependencies, ...pkg.optionalDependencies }, importer.specifiers)) {
return false;
}
if (!(0, equals_1.default)(pkg.dependenciesMeta ?? {}, importer.dependenciesMeta ?? {}))
if (!(0, equals_js_1.default)(pkg.dependenciesMeta ?? {}, importer.dependenciesMeta ?? {}))
return false;

@@ -19,0 +19,0 @@ for (const depField of types_1.DEPENDENCIES_FIELDS) {

{
"name": "@pnpm/lockfile-utils",
"version": "4.0.8",
"version": "4.0.9",
"description": "Utils for dealing with pnpm-lock.yaml",

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

"devDependencies": {
"@pnpm/lockfile-utils": "4.0.8",
"@pnpm/lockfile-utils": "4.0.9",
"@types/js-yaml": "^4.0.0",
"@types/ramda": "0.27.39",
"@types/ramda": "0.28.14",
"tempy": "^1.0.0",

@@ -41,3 +41,3 @@ "write-yaml-file": "^4.2.0",

"get-npm-tarball-url": "^2.0.3",
"ramda": "^0.27.1"
"ramda": "^0.28.0"
},

@@ -44,0 +44,0 @@ "funding": "https://opencollective.com/pnpm",

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