@pnpm/lockfile-file
Advanced tools
Comparing version 7.0.2 to 7.0.3
@@ -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
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
83714
1075
+ Added@pnpm/dependency-path@1.1.2(transitive)
- Removed@pnpm/dependency-path@1.1.1(transitive)
Updated@pnpm/dependency-path@1.1.2