pnpm 6.24.2 → 6.25.0-1
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/README.md +5 -1
- package/dist/node_modules/agentkeepalive/lib/agent.js +5 -4
- package/dist/node_modules/agentkeepalive/package.json +2 -2
- package/dist/pnpm.cjs +2962 -1707
- package/dist/pnpx.cjs +33 -32
- package/package.json +29 -32
package/README.md
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
[中文](https://pnpm.io/zh/) |
|
|
1
|
+
[中文](https://pnpm.io/zh/) |
|
|
2
|
+
[日本語](https://pnpm.io/ja/) |
|
|
3
|
+
[Italiano](https://pnpm.io/it/) |
|
|
4
|
+
[Русский](https://pnpm.io/ru/) |
|
|
5
|
+
[Français](https://pnpm.io/fr/)
|
|
2
6
|
|
|
3
7
|

|
|
4
8
|
|
|
@@ -31,9 +31,10 @@ class Agent extends OriginalAgent {
|
|
|
31
31
|
constructor(options) {
|
|
32
32
|
options = options || {};
|
|
33
33
|
options.keepAlive = options.keepAlive !== false;
|
|
34
|
-
// default is keep-alive and
|
|
34
|
+
// default is keep-alive and 4s free socket timeout
|
|
35
|
+
// see https://medium.com/ssense-tech/reduce-networking-errors-in-nodejs-23b4eb9f2d83
|
|
35
36
|
if (options.freeSocketTimeout === undefined) {
|
|
36
|
-
options.freeSocketTimeout =
|
|
37
|
+
options.freeSocketTimeout = 4000;
|
|
37
38
|
}
|
|
38
39
|
// Legacy API: keepAliveTimeout should be rename to `freeSocketTimeout`
|
|
39
40
|
if (options.keepAliveTimeout) {
|
|
@@ -51,8 +52,8 @@ class Agent extends OriginalAgent {
|
|
|
51
52
|
// Sets the socket to timeout after timeout milliseconds of inactivity on the socket.
|
|
52
53
|
// By default is double free socket timeout.
|
|
53
54
|
if (options.timeout === undefined) {
|
|
54
|
-
// make sure socket default inactivity timeout >=
|
|
55
|
-
options.timeout = Math.max(options.freeSocketTimeout * 2,
|
|
55
|
+
// make sure socket default inactivity timeout >= 8s
|
|
56
|
+
options.timeout = Math.max(options.freeSocketTimeout * 2, 8000);
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
// support humanize format
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentkeepalive",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.2.0",
|
|
4
4
|
"description": "Missing keepalive http.Agent",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"browser": "browser.js",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"os": {
|
|
60
60
|
"github": "linux"
|
|
61
61
|
},
|
|
62
|
-
"version": "8, 10, 12, 14"
|
|
62
|
+
"version": "8, 10, 12, 14, 16"
|
|
63
63
|
},
|
|
64
64
|
"author": "fengmk2 <fengmk2@gmail.com> (https://fengmk2.com)",
|
|
65
65
|
"license": "MIT"
|