@rushstack/lockfile-explorer 1.7.11 → 1.7.12

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.
package/CHANGELOG.json CHANGED
@@ -1,6 +1,27 @@
1
1
  {
2
2
  "name": "@rushstack/lockfile-explorer",
3
3
  "entries": [
4
+ {
5
+ "version": "1.7.12",
6
+ "tag": "@rushstack/lockfile-explorer_v1.7.12",
7
+ "date": "Sat, 14 Dec 2024 01:11:07 GMT",
8
+ "comments": {
9
+ "dependency": [
10
+ {
11
+ "comment": "Updating dependency \"@rushstack/node-core-library\" to `5.10.1`"
12
+ },
13
+ {
14
+ "comment": "Updating dependency \"@rushstack/terminal\" to `0.14.4`"
15
+ },
16
+ {
17
+ "comment": "Updating dependency \"@rushstack/ts-command-line\" to `4.23.2`"
18
+ },
19
+ {
20
+ "comment": "Updating dependency \"@rushstack/heft\" to `0.68.11`"
21
+ }
22
+ ]
23
+ }
24
+ },
4
25
  {
5
26
  "version": "1.7.11",
6
27
  "tag": "@rushstack/lockfile-explorer_v1.7.11",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  # Change Log - @rushstack/lockfile-explorer
2
2
 
3
- This log was last generated on Mon, 09 Dec 2024 20:31:43 GMT and should not be manually modified.
3
+ This log was last generated on Sat, 14 Dec 2024 01:11:07 GMT and should not be manually modified.
4
+
5
+ ## 1.7.12
6
+ Sat, 14 Dec 2024 01:11:07 GMT
7
+
8
+ _Version update only_
4
9
 
5
10
  ## 1.7.11
6
11
  Mon, 09 Dec 2024 20:31:43 GMT
@@ -26,12 +26,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  };
27
27
  Object.defineProperty(exports, "__esModule", { value: true });
28
28
  exports.splicePackageWithVersion = exports.getShrinkwrapFileMajorVersion = exports.parseDependencyPath = exports.convertLockfileV6DepPathToV5DepPath = void 0;
29
- const dp = __importStar(require("@pnpm/dependency-path"));
29
+ const dependencyPathLockfilePreV9 = __importStar(require("@pnpm/dependency-path-lockfile-pre-v9"));
30
30
  function convertLockfileV6DepPathToV5DepPath(newDepPath) {
31
31
  if (!newDepPath.includes('@', 2) || newDepPath.startsWith('file:'))
32
32
  return newDepPath;
33
33
  const index = newDepPath.indexOf('@', newDepPath.indexOf('/@') + 2);
34
- if (newDepPath.includes('(') && index > dp.indexOfPeersSuffix(newDepPath))
34
+ if (newDepPath.includes('(') && index > dependencyPathLockfilePreV9.indexOfPeersSuffix(newDepPath))
35
35
  return newDepPath;
36
36
  return `${newDepPath.substring(0, index)}/${newDepPath.substring(index + 1)}`;
37
37
  }
@@ -41,7 +41,7 @@ function parseDependencyPath(shrinkwrapFileMajorVersion, newDepPath) {
41
41
  if (shrinkwrapFileMajorVersion === 6) {
42
42
  dependencyPath = convertLockfileV6DepPathToV5DepPath(newDepPath);
43
43
  }
44
- const packageInfo = dp.parse(dependencyPath);
44
+ const packageInfo = dependencyPathLockfilePreV9.parse(dependencyPath);
45
45
  return {
46
46
  name: packageInfo.name,
47
47
  peersSuffix: packageInfo.peersSuffix,
@@ -1 +1 @@
1
- {"version":3,"file":"shrinkwrap.js","sourceRoot":"","sources":["../../src/utils/shrinkwrap.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;AAE3D,0DAA4C;AAQ5C,SAAgB,mCAAmC,CAAC,UAAkB;IACpE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,UAAU,CAAC;IACtF,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACpE,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,GAAG,EAAE,CAAC,kBAAkB,CAAC,UAAU,CAAC;QA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IAAI,KAAK,CAAC,gDAAgD,CAAC,CAAC;IACpE,CAAC;IAED,OAAO,0BAA0B,CAAC;AACpC,CAAC;AAnBD,sEAmBC;AAED,SAAgB,wBAAwB,CACtC,0BAAkC,EAClC,qBAA6B,EAC7B,wBAAgC;IAEhC,OAAO,IAAI,qBAAqB,GAAG,0BAA0B,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,wBAAwB,EAAE,CAAC;AAC/G,CAAC;AAND,4DAMC","sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport * as dp from '@pnpm/dependency-path';\n\ninterface IPackageInfo {\n name: string;\n peersSuffix: string | undefined;\n version: string;\n}\n\nexport function convertLockfileV6DepPathToV5DepPath(newDepPath: string): string {\n if (!newDepPath.includes('@', 2) || newDepPath.startsWith('file:')) return newDepPath;\n const index = newDepPath.indexOf('@', newDepPath.indexOf('/@') + 2);\n if (newDepPath.includes('(') && index > dp.indexOfPeersSuffix(newDepPath)) return newDepPath;\n return `${newDepPath.substring(0, index)}/${newDepPath.substring(index + 1)}`;\n}\n\nexport function parseDependencyPath(shrinkwrapFileMajorVersion: number, newDepPath: string): IPackageInfo {\n let dependencyPath: string = newDepPath;\n if (shrinkwrapFileMajorVersion === 6) {\n dependencyPath = convertLockfileV6DepPathToV5DepPath(newDepPath);\n }\n const packageInfo = dp.parse(dependencyPath);\n return {\n name: packageInfo.name as string,\n peersSuffix: packageInfo.peersSuffix,\n version: packageInfo.version as string\n };\n}\n\nexport function getShrinkwrapFileMajorVersion(lockfileVersion: string | number): number {\n let shrinkwrapFileMajorVersion: number;\n if (typeof lockfileVersion === 'string') {\n const isDotIncluded: boolean = lockfileVersion.includes('.');\n shrinkwrapFileMajorVersion = parseInt(\n lockfileVersion.substring(0, isDotIncluded ? lockfileVersion.indexOf('.') : undefined),\n 10\n );\n } else if (typeof lockfileVersion === 'number') {\n shrinkwrapFileMajorVersion = Math.floor(lockfileVersion);\n } else {\n shrinkwrapFileMajorVersion = 0;\n }\n\n if (shrinkwrapFileMajorVersion < 5 || shrinkwrapFileMajorVersion > 6) {\n throw new Error('The current lockfile version is not supported.');\n }\n\n return shrinkwrapFileMajorVersion;\n}\n\nexport function splicePackageWithVersion(\n shrinkwrapFileMajorVersion: number,\n dependencyPackageName: string,\n dependencyPackageVersion: string\n): string {\n return `/${dependencyPackageName}${shrinkwrapFileMajorVersion === 6 ? '@' : '/'}${dependencyPackageVersion}`;\n}\n"]}
1
+ {"version":3,"file":"shrinkwrap.js","sourceRoot":"","sources":["../../src/utils/shrinkwrap.ts"],"names":[],"mappings":";AAAA,4FAA4F;AAC5F,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;;AAE3D,mGAAqF;AAQrF,SAAgB,mCAAmC,CAAC,UAAkB;IACpE,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC;QAAE,OAAO,UAAU,CAAC;IACtF,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,CAAC,GAAG,EAAE,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IACpE,IAAI,UAAU,CAAC,QAAQ,CAAC,GAAG,CAAC,IAAI,KAAK,GAAG,2BAA2B,CAAC,kBAAkB,CAAC,UAAU,CAAC;QAAE,OAAO,UAAU,CAAC;IACtH,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC,EAAE,KAAK,CAAC,IAAI,UAAU,CAAC,SAAS,CAAC,KAAK,GAAG,CAAC,CAAC,EAAE,CAAC;AAChF,CAAC;AALD,kFAKC;AAED,SAAgB,mBAAmB,CAAC,0BAAkC,EAAE,UAAkB;IACxF,IAAI,cAAc,GAAW,UAAU,CAAC;IACxC,IAAI,0BAA0B,KAAK,CAAC,EAAE,CAAC;QACrC,cAAc,GAAG,mCAAmC,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Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT license.\n// See LICENSE in the project root for license information.\n\nimport * as dependencyPathLockfilePreV9 from '@pnpm/dependency-path-lockfile-pre-v9';\n\ninterface IPackageInfo {\n name: string;\n peersSuffix: string | undefined;\n version: string;\n}\n\nexport function convertLockfileV6DepPathToV5DepPath(newDepPath: string): string {\n if (!newDepPath.includes('@', 2) || newDepPath.startsWith('file:')) return newDepPath;\n const index = newDepPath.indexOf('@', newDepPath.indexOf('/@') + 2);\n if (newDepPath.includes('(') && index > dependencyPathLockfilePreV9.indexOfPeersSuffix(newDepPath)) return newDepPath;\n return `${newDepPath.substring(0, index)}/${newDepPath.substring(index + 1)}`;\n}\n\nexport function parseDependencyPath(shrinkwrapFileMajorVersion: number, newDepPath: string): IPackageInfo {\n let dependencyPath: string = newDepPath;\n if (shrinkwrapFileMajorVersion === 6) {\n dependencyPath = convertLockfileV6DepPathToV5DepPath(newDepPath);\n }\n const packageInfo = dependencyPathLockfilePreV9.parse(dependencyPath);\n return {\n name: packageInfo.name as string,\n peersSuffix: packageInfo.peersSuffix,\n version: packageInfo.version as string\n };\n}\n\nexport function getShrinkwrapFileMajorVersion(lockfileVersion: string | number): number {\n let shrinkwrapFileMajorVersion: number;\n if (typeof lockfileVersion === 'string') {\n const isDotIncluded: boolean = lockfileVersion.includes('.');\n shrinkwrapFileMajorVersion = parseInt(\n lockfileVersion.substring(0, isDotIncluded ? lockfileVersion.indexOf('.') : undefined),\n 10\n );\n } else if (typeof lockfileVersion === 'number') {\n shrinkwrapFileMajorVersion = Math.floor(lockfileVersion);\n } else {\n shrinkwrapFileMajorVersion = 0;\n }\n\n if (shrinkwrapFileMajorVersion < 5 || shrinkwrapFileMajorVersion > 6) {\n throw new Error('The current lockfile version is not supported.');\n }\n\n return shrinkwrapFileMajorVersion;\n}\n\nexport function splicePackageWithVersion(\n shrinkwrapFileMajorVersion: number,\n dependencyPackageName: string,\n dependencyPackageVersion: string\n): string {\n return `/${dependencyPackageName}${shrinkwrapFileMajorVersion === 6 ? '@' : '/'}${dependencyPackageVersion}`;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rushstack/lockfile-explorer",
3
- "version": "1.7.11",
3
+ "version": "1.7.12",
4
4
  "description": "Rush Lockfile Explorer: The UI for solving version conflicts quickly in a large monorepo",
5
5
  "keywords": [
6
6
  "conflict",
@@ -45,7 +45,7 @@
45
45
  "@types/update-notifier": "~6.0.1",
46
46
  "@pnpm/lockfile-types": "^5.1.5",
47
47
  "@types/semver": "7.5.0",
48
- "@rushstack/heft": "0.68.10",
48
+ "@rushstack/heft": "0.68.11",
49
49
  "@rushstack/lockfile-explorer-web": "0.0.0",
50
50
  "local-node-rig": "1.0.0"
51
51
  },
@@ -55,13 +55,13 @@
55
55
  "js-yaml": "~3.13.1",
56
56
  "open": "~8.4.0",
57
57
  "update-notifier": "~5.1.0",
58
- "@pnpm/dependency-path": "~2.1.2",
58
+ "@pnpm/dependency-path-lockfile-pre-v9": "npm:@pnpm/dependency-path@~2.1.2",
59
59
  "semver": "~7.5.4",
60
- "@rushstack/node-core-library": "5.10.0",
61
- "@microsoft/rush-lib": "5.144.1",
62
- "@rushstack/terminal": "0.14.3",
63
- "@rushstack/ts-command-line": "4.23.1",
64
- "@rushstack/rush-sdk": "5.144.1"
60
+ "@microsoft/rush-lib": "5.147.0",
61
+ "@rushstack/node-core-library": "5.10.1",
62
+ "@rushstack/rush-sdk": "5.147.0",
63
+ "@rushstack/ts-command-line": "4.23.2",
64
+ "@rushstack/terminal": "0.14.4"
65
65
  },
66
66
  "scripts": {
67
67
  "build": "heft build --clean",