@pnpm/lockfile.utils 1004.0.3 → 1004.0.4
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.
|
@@ -6,12 +6,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.pkgSnapshotToResolution = pkgSnapshotToResolution;
|
|
7
7
|
const url_1 = __importDefault(require("url"));
|
|
8
8
|
const get_npm_tarball_url_1 = __importDefault(require("get-npm-tarball-url"));
|
|
9
|
-
const pick_fetcher_1 = require("@pnpm/pick-fetcher");
|
|
10
9
|
const nameVerFromPkgSnapshot_js_1 = require("./nameVerFromPkgSnapshot.js");
|
|
11
10
|
function pkgSnapshotToResolution(depPath, pkgSnapshot, registries) {
|
|
12
11
|
if (Boolean(pkgSnapshot.resolution.type) ||
|
|
13
12
|
pkgSnapshot.resolution.tarball?.startsWith('file:') ||
|
|
14
|
-
|
|
13
|
+
pkgSnapshot.resolution.gitHosted === true) {
|
|
15
14
|
return pkgSnapshot.resolution;
|
|
16
15
|
}
|
|
17
16
|
const { name, version } = (0, nameVerFromPkgSnapshot_js_1.nameVerFromPkgSnapshot)(depPath, pkgSnapshot);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pkgSnapshotToResolution.js","sourceRoot":"","sources":["../src/pkgSnapshotToResolution.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"pkgSnapshotToResolution.js","sourceRoot":"","sources":["../src/pkgSnapshotToResolution.ts"],"names":[],"mappings":";;;;;AAOA,0DAyCC;AAhDD,8CAAqB;AAIrB,8EAAkD;AAClD,2EAAoE;AAEpE,SAAgB,uBAAuB,CACrC,OAAe,EACf,WAA4B,EAC5B,UAAsB;IAEtB,IACE,OAAO,CAAE,WAAW,CAAC,UAAgC,CAAC,IAAI,CAAC;QAC1D,WAAW,CAAC,UAAgC,CAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;QACzE,WAAW,CAAC,UA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CAAA;IACtD,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/lockfile.utils",
|
|
3
|
-
"version": "1004.0.
|
|
3
|
+
"version": "1004.0.4",
|
|
4
4
|
"description": "Utils for dealing with pnpm-lock.yaml",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -28,10 +28,9 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"get-npm-tarball-url": "^2.1.0",
|
|
30
30
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
31
|
-
"@pnpm/lockfile.types": "1002.1.0",
|
|
32
31
|
"@pnpm/dependency-path": "1001.1.10",
|
|
33
|
-
"@pnpm/
|
|
34
|
-
"@pnpm/resolver-base": "1005.4.
|
|
32
|
+
"@pnpm/lockfile.types": "1002.1.1",
|
|
33
|
+
"@pnpm/resolver-base": "1005.4.2",
|
|
35
34
|
"@pnpm/types": "1001.3.0"
|
|
36
35
|
},
|
|
37
36
|
"devDependencies": {
|
|
@@ -39,7 +38,7 @@
|
|
|
39
38
|
"tempy": "^1.0.1",
|
|
40
39
|
"write-yaml-file": "^5.0.0",
|
|
41
40
|
"yaml-tag": "1.1.0",
|
|
42
|
-
"@pnpm/lockfile.utils": "1004.0.
|
|
41
|
+
"@pnpm/lockfile.utils": "1004.0.4"
|
|
43
42
|
},
|
|
44
43
|
"engines": {
|
|
45
44
|
"node": ">=18.12"
|