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

@pnpm/prune-lockfile

Package Overview
Dependencies
Maintainers
2
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/prune-lockfile - npm Package Compare versions

Comparing version 3.0.16 to 3.0.17

7

lib/index.js

@@ -25,3 +25,2 @@ "use strict";

const isEmpty_1 = __importDefault(require("ramda/src/isEmpty"));
const omit_1 = __importDefault(require("ramda/src/omit"));
const unnest_1 = __importDefault(require("ramda/src/unnest"));

@@ -147,3 +146,3 @@ __exportStar(require("@pnpm/lockfile-types"), exports);

function copyDependencySubGraph(ctx, depPaths, opts) {
var _a, _b, _c, _d;
var _a, _b;
for (const depPath of depPaths) {

@@ -181,5 +180,5 @@ const key = `${depPath}:${opts.optional.toString()}:${opts.dev.toString()}`;

}
const newDependencies = resolvedDepsToDepPaths((0, omit_1.default)((_b = Object.keys((_a = depLockfile.peerDependencies) !== null && _a !== void 0 ? _a : {})) !== null && _b !== void 0 ? _b : [], (_c = depLockfile.dependencies) !== null && _c !== void 0 ? _c : {}));
const newDependencies = resolvedDepsToDepPaths((_a = depLockfile.dependencies) !== null && _a !== void 0 ? _a : {});
copyDependencySubGraph(ctx, newDependencies, opts);
const newOptionalDependencies = resolvedDepsToDepPaths((_d = depLockfile.optionalDependencies) !== null && _d !== void 0 ? _d : {});
const newOptionalDependencies = resolvedDepsToDepPaths((_b = depLockfile.optionalDependencies) !== null && _b !== void 0 ? _b : {});
copyDependencySubGraph(ctx, newOptionalDependencies, { dev: opts.dev, optional: true });

@@ -186,0 +185,0 @@ }

{
"name": "@pnpm/prune-lockfile",
"version": "3.0.16",
"version": "3.0.17",
"description": "Prune a pnpm-lock.yaml",

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

"devDependencies": {
"@pnpm/prune-lockfile": "3.0.16",
"@pnpm/prune-lockfile": "3.0.17",
"@types/ramda": "0.27.39",

@@ -30,0 +30,0 @@ "yaml-tag": "1.1.0"

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