@pnpm/installing.package-requester 1101.0.9 → 1101.0.10
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/lib/packageRequester.js +11 -0
- package/package.json +11 -11
package/lib/packageRequester.js
CHANGED
|
@@ -113,6 +113,17 @@ async function resolveAndFetch(ctx, wantedDependency, options) {
|
|
|
113
113
|
const updated = pkgId !== resolveResult.id || !resolution || integrityChanged;
|
|
114
114
|
resolution = resolveResult.resolution;
|
|
115
115
|
pkgId = resolveResult.id;
|
|
116
|
+
// URL/tarball resolvers don't return an integrity, because it is only known
|
|
117
|
+
// after the tarball is downloaded. When a package is reused from the lockfile
|
|
118
|
+
// without being re-fetched, the freshly resolved resolution has no integrity,
|
|
119
|
+
// so carry it over from the current resolution instead of dropping it.
|
|
120
|
+
// https://github.com/pnpm/pnpm/issues/12001
|
|
121
|
+
if (!updated &&
|
|
122
|
+
typeof previousIntegrity === 'string' &&
|
|
123
|
+
!resolution.type &&
|
|
124
|
+
!resolution.integrity) {
|
|
125
|
+
resolution.integrity = previousIntegrity;
|
|
126
|
+
}
|
|
116
127
|
const id = pkgId;
|
|
117
128
|
if ('type' in resolution && resolution.type === 'directory' && !id.startsWith('file:')) {
|
|
118
129
|
if (manifest == null) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/installing.package-requester",
|
|
3
|
-
"version": "1101.0.
|
|
3
|
+
"version": "1101.0.10",
|
|
4
4
|
"description": "Concurrent downloader of npm-compatible packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -39,15 +39,15 @@
|
|
|
39
39
|
"@pnpm/deps.path": "1100.0.5",
|
|
40
40
|
"@pnpm/error": "1100.0.0",
|
|
41
41
|
"@pnpm/core-loggers": "1100.1.2",
|
|
42
|
+
"@pnpm/fetching.fetcher-base": "1100.1.6",
|
|
42
43
|
"@pnpm/fs.graceful-fs": "1100.1.0",
|
|
43
44
|
"@pnpm/fetching.pick-fetcher": "1100.0.9",
|
|
44
|
-
"@pnpm/
|
|
45
|
+
"@pnpm/resolving.resolver-base": "1100.3.1",
|
|
45
46
|
"@pnpm/hooks.types": "1100.0.9",
|
|
46
|
-
"@pnpm/
|
|
47
|
+
"@pnpm/store.cafs": "1100.1.7",
|
|
47
48
|
"@pnpm/store.controller-types": "1100.1.2",
|
|
48
|
-
"@pnpm/
|
|
49
|
-
"@pnpm/store.index": "1100.1.0"
|
|
50
|
-
"@pnpm/types": "1101.2.0"
|
|
49
|
+
"@pnpm/types": "1101.2.0",
|
|
50
|
+
"@pnpm/store.index": "1100.1.0"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
53
|
"@pnpm/logger": "^1001.0.1",
|
|
@@ -55,7 +55,6 @@
|
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
57
|
"@jest/globals": "30.3.0",
|
|
58
|
-
"@pnpm/registry-mock": "6.0.0",
|
|
59
58
|
"@types/normalize-path": "^3.0.2",
|
|
60
59
|
"@types/ramda": "0.31.1",
|
|
61
60
|
"@types/semver": "7.7.1",
|
|
@@ -63,13 +62,14 @@
|
|
|
63
62
|
"delay": "^7.0.0",
|
|
64
63
|
"normalize-path": "^3.0.0",
|
|
65
64
|
"tempy": "3.0.0",
|
|
66
|
-
"@pnpm/installing.client": "1100.2.3",
|
|
67
|
-
"@pnpm/installing.package-requester": "1101.0.9",
|
|
68
65
|
"@pnpm/logger": "1100.0.0",
|
|
69
66
|
"@pnpm/store.create-cafs-store": "1100.0.10",
|
|
70
67
|
"@pnpm/test-fixtures": "1100.0.0",
|
|
71
|
-
"@pnpm/
|
|
72
|
-
"@pnpm/
|
|
68
|
+
"@pnpm/installing.package-requester": "1101.0.10",
|
|
69
|
+
"@pnpm/testing.mock-agent": "1100.0.8",
|
|
70
|
+
"@pnpm/testing.registry-mock": "1100.0.2",
|
|
71
|
+
"@pnpm/store.cafs-types": "1100.0.1",
|
|
72
|
+
"@pnpm/installing.client": "1100.2.4"
|
|
73
73
|
},
|
|
74
74
|
"engines": {
|
|
75
75
|
"node": ">=22.13"
|