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

@pnpm/lockfile-file

Package Overview
Dependencies
Maintainers
3
Versions
119
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/lockfile-file - npm Package Compare versions

Comparing version 3.1.4 to 3.2.0

14

CHANGELOG.md
# @pnpm/lockfile-file
## 3.2.0
### Minor Changes
- 9ad8c27bf: Add optional neverBuiltDependencies property to the lockfile object.
### Patch Changes
- Updated dependencies [9ad8c27bf]
- Updated dependencies [9ad8c27bf]
- @pnpm/lockfile-types@2.2.0
- @pnpm/types@6.4.0
- @pnpm/merge-lockfile-changes@1.0.1
## 3.1.4

@@ -4,0 +18,0 @@

5

lib/write.d.ts

@@ -1,2 +0,2 @@

import { Lockfile } from '@pnpm/lockfile-types';
import { Lockfile, ProjectSnapshot } from '@pnpm/lockfile-types';
export declare function writeWantedLockfile(pkgPath: string, wantedLockfile: Lockfile, opts?: {

@@ -8,2 +8,4 @@ forceSharedFormat?: boolean;

}): Promise<void>;
declare type LockfileFile = Omit<Lockfile, 'importers'> & Partial<ProjectSnapshot> & Partial<Pick<Lockfile, 'importers'>>;
export declare function normalizeLockfile(lockfile: Lockfile, forceSharedFormat: boolean): LockfileFile;
export default function writeLockfiles(opts: {

@@ -16,1 +18,2 @@ forceSharedFormat?: boolean;

}): Promise<void>;
export {};

11

lib/write.js

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.writeCurrentLockfile = exports.writeWantedLockfile = void 0;
exports.normalizeLockfile = exports.writeCurrentLockfile = exports.writeWantedLockfile = void 0;
const logger_1 = __importDefault(require("./logger"));

@@ -93,4 +93,13 @@ const types_1 = require("@pnpm/types");

}
if (lockfileToSave.neverBuiltDependencies) {
if (R.isEmpty(lockfileToSave.neverBuiltDependencies)) {
delete lockfileToSave.neverBuiltDependencies;
}
else {
lockfileToSave.neverBuiltDependencies = lockfileToSave.neverBuiltDependencies.sort();
}
}
return lockfileToSave;
}
exports.normalizeLockfile = normalizeLockfile;
async function writeLockfiles(opts) {

@@ -97,0 +106,0 @@ const wantedLockfilePath = path.join(opts.wantedLockfileDir, constants_1.WANTED_LOCKFILE);

{
"name": "@pnpm/lockfile-file",
"version": "3.1.4",
"version": "3.2.0",
"description": "Read/write pnpm-lock.yaml files",

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

"@pnpm/error": "1.4.0",
"@pnpm/lockfile-types": "2.1.1",
"@pnpm/merge-lockfile-changes": "1.0.0",
"@pnpm/types": "6.3.1",
"@pnpm/lockfile-types": "2.2.0",
"@pnpm/merge-lockfile-changes": "1.0.1",
"@pnpm/types": "6.4.0",
"@zkochan/rimraf": "^1.0.0",

@@ -55,0 +55,0 @@ "js-yaml": "^4.0.0",

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