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 7.0.2 to 7.0.3

2

lib/read.d.ts

@@ -24,4 +24,4 @@ import { Lockfile } from '@pnpm/lockfile-types';

}): {
importers: {};
importers: Record<string, import("@pnpm/lockfile-types").ProjectSnapshot>;
lockfileVersion: string | number;
};

@@ -47,3 +47,7 @@ "use strict";

async function writeFileAtomic(filename, data) {
return new Promise((resolve, reject) => (0, write_file_atomic_1.default)(filename, data, {}, (err) => (err != null) ? reject(err) : resolve()));
return new Promise((resolve, reject) => {
(0, write_file_atomic_1.default)(filename, data, {}, (err) => {
(err != null) ? reject(err) : resolve();
});
});
}

@@ -165,5 +169,5 @@ const LOCKFILE_YAML_FORMAT = {

for (let [depName, ref] of Object.entries(importer[depType] ?? {})) {
if (ref['version']) {
// @ts-expect-error
if (ref['version'])
ref = ref['version'];
}
const suffixStart = ref.indexOf('(');

@@ -197,5 +201,5 @@ const refWithoutPeerSuffix = suffixStart === -1 ? ref : ref.slice(0, suffixStart);

for (let [depName, ref] of Object.entries(importer[depType] ?? {})) {
if (ref['version']) {
// @ts-expect-error
if (ref['version'])
ref = ref['version'];
}
const suffixStart = ref.indexOf('_');

@@ -202,0 +206,0 @@ const refWithoutPeerSuffix = suffixStart === -1 ? ref : ref.slice(0, suffixStart);

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

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

"yaml-tag": "1.1.0",
"@pnpm/lockfile-file": "7.0.2"
"@pnpm/lockfile-file": "7.0.3"
},

@@ -53,3 +53,3 @@ "dependencies": {

"@pnpm/constants": "6.2.0",
"@pnpm/dependency-path": "1.1.1",
"@pnpm/dependency-path": "1.1.2",
"@pnpm/error": "4.0.1",

@@ -56,0 +56,0 @@ "@pnpm/git-utils": "0.1.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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