@pnpm/lockfile.fs 1001.1.12 → 1001.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.LockfileBreakingChangeError = void 0;
4
4
  const error_1 = require("@pnpm/error");
5
5
  class LockfileBreakingChangeError extends error_1.PnpmError {
6
+ filename;
6
7
  constructor(filename) {
7
8
  super('LOCKFILE_BREAKING_CHANGE', `Lockfile ${filename} not compatible with current pnpm`);
8
9
  this.filename = filename;
@@ -1 +1 @@
1
- {"version":3,"file":"LockfileBreakingChangeError.js","sourceRoot":"","sources":["../../src/errors/LockfileBreakingChangeError.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AAEvC,MAAa,2BAA4B,SAAQ,iBAAS;IAExD,YAAa,QAAgB;QAC3B,KAAK,CAAC,0BAA0B,EAAE,YAAY,QAAQ,mCAAmC,CAAC,CAAA;QAC1F,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;IAC1B,CAAC;CACF;AAND,kEAMC"}
1
+ {"version":3,"file":"LockfileBreakingChangeError.js","sourceRoot":"","sources":["../../src/errors/LockfileBreakingChangeError.ts"],"names":[],"mappings":";;;AAAA,uCAAuC;AAEvC,MAAa,2BAA4B,SAAQ,iBAAS;IACjD,QAAQ,CAAQ;IACvB,YAAa,QAAgB;QAC3B,KAAK,CAAC,0BAA0B,EAAE,YAAY,QAAQ,mCAAmC,CAAC,CAAA;QAC1F,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;IAC1B,CAAC;CACF;AAND,kEAMC"}
package/lib/read.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { type LockfileObject } from '@pnpm/lockfile.types';
2
2
  import { type ProjectId } from '@pnpm/types';
3
- export declare function readCurrentLockfile(virtualStoreDir: string, opts: {
3
+ export declare function readCurrentLockfile(pnpmInternalDir: string, opts: {
4
4
  wantedVersions?: string[];
5
5
  ignoreIncompatible: boolean;
6
6
  }): Promise<LockfileObject | null>;
package/lib/read.js CHANGED
@@ -23,9 +23,9 @@ const logger_1 = require("./logger");
23
23
  const lockfileName_1 = require("./lockfileName");
24
24
  const gitBranchLockfile_1 = require("./gitBranchLockfile");
25
25
  const lockfileFormatConverters_1 = require("./lockfileFormatConverters");
26
- async function readCurrentLockfile(virtualStoreDir, opts) {
27
- const lockfilePath = path_1.default.join(virtualStoreDir, 'lock.yaml');
28
- return (await _read(lockfilePath, virtualStoreDir, opts)).lockfile;
26
+ async function readCurrentLockfile(pnpmInternalDir, opts) {
27
+ const lockfilePath = path_1.default.join(pnpmInternalDir, 'lock.yaml');
28
+ return (await _read(lockfilePath, pnpmInternalDir, opts)).lockfile;
29
29
  }
30
30
  async function readWantedLockfileAndAutofixConflicts(pkgPath, opts) {
31
31
  return _readWantedLockfile(pkgPath, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/lockfile.fs",
3
- "version": "1001.1.12",
3
+ "version": "1001.1.13",
4
4
  "description": "Read/write pnpm-lock.yaml files",
5
5
  "keywords": [
6
6
  "pnpm",
@@ -35,11 +35,11 @@
35
35
  "write-file-atomic": "^5.0.1",
36
36
  "@pnpm/constants": "1001.1.0",
37
37
  "@pnpm/dependency-path": "1000.0.9",
38
- "@pnpm/error": "1000.0.2",
39
38
  "@pnpm/git-utils": "1000.0.0",
40
- "@pnpm/lockfile.types": "1001.0.8",
39
+ "@pnpm/error": "1000.0.2",
41
40
  "@pnpm/lockfile.merger": "1001.0.8",
42
- "@pnpm/lockfile.utils": "1001.0.11",
41
+ "@pnpm/lockfile.types": "1001.0.8",
42
+ "@pnpm/lockfile.utils": "1001.0.12",
43
43
  "@pnpm/types": "1000.6.0",
44
44
  "@pnpm/object.key-sorting": "1000.0.1"
45
45
  },
@@ -55,7 +55,7 @@
55
55
  "tempy": "^1.0.1",
56
56
  "write-yaml-file": "^5.0.0",
57
57
  "yaml-tag": "1.1.0",
58
- "@pnpm/lockfile.fs": "1001.1.12",
58
+ "@pnpm/lockfile.fs": "1001.1.13",
59
59
  "@pnpm/logger": "1001.0.0"
60
60
  },
61
61
  "engines": {