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

@pnpm/lockfile-file

Package Overview
Dependencies
Maintainers
2
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 4.2.3 to 4.2.4

1

lib/read.js

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

specifiers: lockfile['specifiers'],
dependenciesMeta: lockfile['dependenciesMeta'],
},

@@ -73,0 +74,0 @@ };

5

lib/sortLockfileKeys.js

@@ -38,4 +38,5 @@ "use strict";

devDependencies: 13,
importers: 14,
packages: 15,
dependenciesMeta: 14,
importers: 15,
packages: 16,
};

@@ -42,0 +43,0 @@ function compareWithPriority(priority, left, right) {

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

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

"compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"
}
},
"readme": "# @pnpm/lockfile-file\n\n> Read/write pnpm-lock.yaml files\n\nReads and writes the wanted (`pnpm-lock.yaml`) and current (`node_modules/.pnpm-lock.yaml`) lockfile files of pnpm.\nLockfile files are the state files of the `node_modules` installed via pnpm. They are like\nthe `package-lock.json` of npm or the `yarn.lock` of Yarn.\n\n## Install\n\n```\n<pnpm|yarn|npm> add @pnpm/lockfile-file\n```\n\n## API\n\n### `readWantedLockfile(pkgPath, opts) => Promise<Lockfile>`\n\nReads the `pnpm-lock.yaml` file from the root of the package.\n\n#### Arguments\n\n* `pkgPath` - *Path* - the path to the project\n* `opts.ignoreIncompatible` - *Boolean* - `false` by default. If `true`, throws an error\nif the lockfile file format is not compatible with the current library.\n\n### `readCurrentLockfile(virtualStoreDir, opts) => Promise<Lockfile>`\n\nReads the lockfile file from `<virtualStoreDir>/lock.yaml`.\n\n### `existsWantedLockfile(pkgPath) => Promise<Boolean>`\n\nReturns `true` if a `pnpm-lock.yaml` exists in the root of the package.\n\n### `writeLockfiles(opts) => Promise<void>`\n\nWrites the wanted/current lockfile files. When they are empty, removes them.\n\n#### Arguments\n\n* `opts.wantedLockfile`\n* `opts.wantedLockfileDir`\n* `opts.currentLockfile`\n* `opts.currentLockfileDir`\n* `[opts.forceSharedFormat]`\n\n### `writeWantedLockfile(pkgPath, wantedLockfile) => Promise<void>`\n\nWrites the wanted lockfile file only. Sometimes it is needed just to update the wanted lockfile\nwithout touching `node_modules`.\n\n### `writeCurrentLockfile(virtualStoreDir, currentLockfile) => Promise<void>`\n\nWrites the current lockfile file only.\n\n## License\n\n[MIT](LICENSE)\n"
}

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