@pnpm/prune-lockfile
Advanced tools
Comparing version 3.0.16 to 3.0.17
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
17305
192