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 9.0.1 to 9.0.2

17

lib/lockfileFormatConverters.js

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

const dependency_path_1 = require("@pnpm/dependency-path");
const git_resolver_1 = require("@pnpm/git-resolver");
const types_1 = require("@pnpm/types");

@@ -198,6 +199,3 @@ const equals_1 = __importDefault(require("ramda/src/equals"));

else if ('repo' in pkg.resolution) {
newId += `${pkg.resolution.repo.startsWith('git+') ? '' : 'git+'}${pkg.resolution.repo}#${pkg.resolution.commit}`;
if (pkg.resolution.path) {
newId += `&path:${pkg.resolution.path}`;
}
newId += (0, git_resolver_1.createGitHostedPkgId)(pkg.resolution);
}

@@ -249,2 +247,13 @@ else if ('directory' in pkg.resolution) {

lockfile.packages = newLockfilePackages;
if ((lockfile.dependencies != null || lockfile.devDependencies != null || lockfile.optionalDependencies != null) && !lockfile.importers?.['.']) {
lockfile.importers = lockfile.importers ?? {};
lockfile.importers['.'] = {
dependencies: lockfile.dependencies,
devDependencies: lockfile.devDependencies,
optionalDependencies: lockfile.optionalDependencies,
};
delete lockfile.dependencies;
delete lockfile.devDependencies;
delete lockfile.optionalDependencies;
}
for (const importer of Object.values(lockfile.importers ?? {})) {

@@ -251,0 +260,0 @@ for (const depType of ['dependencies', 'optionalDependencies', 'devDependencies']) {

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

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

"yaml-tag": "1.1.0",
"@pnpm/lockfile-file": "9.0.1"
"@pnpm/lockfile-file": "9.0.2"
},

@@ -54,5 +54,6 @@ "dependencies": {

"@pnpm/dependency-path": "3.0.0",
"@pnpm/error": "6.0.0",
"@pnpm/git-resolver": "9.0.1",
"@pnpm/git-utils": "2.0.0",
"@pnpm/lockfile-types": "6.0.0",
"@pnpm/error": "6.0.0",
"@pnpm/lockfile-utils": "10.0.0",

@@ -59,0 +60,0 @@ "@pnpm/merge-lockfile-changes": "6.0.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