@pnpm/installing.package-requester 1101.0.11 → 1101.1.0
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 +5 -1
- package/package.json +19 -19
package/lib/packageRequester.js
CHANGED
|
@@ -29,7 +29,11 @@ const TARBALL_INTEGRITY_FILENAME = 'tarball-integrity';
|
|
|
29
29
|
const packageRequestLogger = logger('package-requester');
|
|
30
30
|
export function createPackageRequester(opts) {
|
|
31
31
|
opts = opts || {};
|
|
32
|
-
|
|
32
|
+
// Downloads are I/O-bound, not CPU-bound: a low-latency registry only
|
|
33
|
+
// saturates with enough requests in flight, so the floor matters more
|
|
34
|
+
// than the per-core scaling — a CPU-derived floor left 4-core CI
|
|
35
|
+
// runners draining multi-hundred-tarball installs 16 at a time.
|
|
36
|
+
const networkConcurrency = opts.networkConcurrency ?? Math.min(96, Math.max(calcMaxWorkers() * 3, 64));
|
|
33
37
|
const requestsQueue = new PQueue({
|
|
34
38
|
concurrency: networkConcurrency,
|
|
35
39
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/installing.package-requester",
|
|
3
|
-
"version": "1101.0
|
|
3
|
+
"version": "1101.1.0",
|
|
4
4
|
"description": "Concurrent downloader of npm-compatible packages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -38,23 +38,23 @@
|
|
|
38
38
|
"ramda": "npm:@pnpm/ramda@0.28.1",
|
|
39
39
|
"semver": "^7.8.1",
|
|
40
40
|
"ssri": "13.0.1",
|
|
41
|
-
"@pnpm/config.package-is-installable": "1100.0.
|
|
42
|
-
"@pnpm/core-loggers": "1100.
|
|
43
|
-
"@pnpm/
|
|
44
|
-
"@pnpm/fetching.pick-fetcher": "1100.0.
|
|
45
|
-
"@pnpm/deps.path": "1100.0.6",
|
|
46
|
-
"@pnpm/resolving.resolver-base": "1100.4.0",
|
|
47
|
-
"@pnpm/hooks.types": "1100.0.10",
|
|
41
|
+
"@pnpm/config.package-is-installable": "1100.0.10",
|
|
42
|
+
"@pnpm/core-loggers": "1100.2.0",
|
|
43
|
+
"@pnpm/deps.path": "1100.0.7",
|
|
44
|
+
"@pnpm/fetching.pick-fetcher": "1100.0.11",
|
|
48
45
|
"@pnpm/fs.graceful-fs": "1100.1.0",
|
|
49
|
-
"@pnpm/types": "
|
|
50
|
-
"@pnpm/
|
|
51
|
-
"@pnpm/store.cafs": "1100.1.
|
|
46
|
+
"@pnpm/hooks.types": "1100.0.11",
|
|
47
|
+
"@pnpm/resolving.resolver-base": "1100.4.1",
|
|
48
|
+
"@pnpm/store.cafs": "1100.1.9",
|
|
49
|
+
"@pnpm/store.controller-types": "1100.1.4",
|
|
50
|
+
"@pnpm/types": "1101.3.1",
|
|
52
51
|
"@pnpm/store.index": "1100.1.0",
|
|
53
|
-
"@pnpm/error": "1100.0.0"
|
|
52
|
+
"@pnpm/error": "1100.0.0",
|
|
53
|
+
"@pnpm/fetching.fetcher-base": "1100.1.8"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
56
|
"@pnpm/logger": "^1001.0.1",
|
|
57
|
-
"@pnpm/worker": "^1100.1.
|
|
57
|
+
"@pnpm/worker": "^1100.1.11"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
60
|
"@jest/globals": "30.3.0",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"delay": "^7.0.0",
|
|
66
66
|
"normalize-path": "^3.0.0",
|
|
67
67
|
"tempy": "3.0.0",
|
|
68
|
-
"@pnpm/installing.
|
|
69
|
-
"@pnpm/logger": "1100.0.0",
|
|
68
|
+
"@pnpm/installing.client": "1100.2.7",
|
|
70
69
|
"@pnpm/store.cafs-types": "1100.0.1",
|
|
70
|
+
"@pnpm/store.create-cafs-store": "1100.0.13",
|
|
71
|
+
"@pnpm/logger": "1100.0.0",
|
|
72
|
+
"@pnpm/testing.mock-agent": "1101.0.2",
|
|
73
|
+
"@pnpm/installing.package-requester": "1101.1.0",
|
|
71
74
|
"@pnpm/test-fixtures": "1100.0.0",
|
|
72
|
-
"@pnpm/
|
|
73
|
-
"@pnpm/testing.mock-agent": "1101.0.0",
|
|
74
|
-
"@pnpm/testing.registry-mock": "1100.0.3",
|
|
75
|
-
"@pnpm/installing.client": "1100.2.5"
|
|
75
|
+
"@pnpm/testing.registry-mock": "1100.0.5"
|
|
76
76
|
},
|
|
77
77
|
"engines": {
|
|
78
78
|
"node": ">=22.13"
|