got 14.4.9 → 14.6.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/dist/source/as-promise/index.js +35 -3
- package/dist/source/core/index.d.ts +6 -4
- package/dist/source/core/index.js +213 -44
- package/dist/source/core/options.d.ts +184 -15
- package/dist/source/core/options.js +188 -61
- package/dist/source/core/utils/get-body-size.js +17 -1
- package/dist/source/core/utils/is-unix-socket-url.d.ts +16 -0
- package/dist/source/core/utils/is-unix-socket-url.js +21 -0
- package/dist/source/create.js +9 -1
- package/package.json +13 -10
- package/readme.md +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "got",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.6.0",
|
|
4
4
|
"description": "Human-friendly and powerful HTTP request library for Node.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "sindresorhus/got",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"scripts": {
|
|
18
18
|
"test": "xo && tsc --noEmit && NODE_OPTIONS='--import=tsx/esm' ava",
|
|
19
|
+
"test:coverage": "xo && tsc --noEmit && NODE_OPTIONS='--import=tsx/esm' c8 ava",
|
|
19
20
|
"release": "np",
|
|
20
21
|
"build": "del-cli dist && tsc",
|
|
21
22
|
"prepare": "npm run build"
|
|
@@ -40,6 +41,8 @@
|
|
|
40
41
|
"network",
|
|
41
42
|
"gzip",
|
|
42
43
|
"brotli",
|
|
44
|
+
"zstd",
|
|
45
|
+
"zstandard",
|
|
43
46
|
"requests",
|
|
44
47
|
"human-friendly",
|
|
45
48
|
"axios",
|
|
@@ -51,13 +54,14 @@
|
|
|
51
54
|
"@sindresorhus/is": "^7.0.1",
|
|
52
55
|
"@szmarczak/http-timer": "^5.0.1",
|
|
53
56
|
"cacheable-lookup": "^7.0.0",
|
|
54
|
-
"cacheable-request": "^
|
|
55
|
-
"decompress-response": "^
|
|
57
|
+
"cacheable-request": "^13.0.12",
|
|
58
|
+
"decompress-response": "^10.0.0",
|
|
56
59
|
"form-data-encoder": "^4.0.2",
|
|
57
60
|
"http2-wrapper": "^2.2.1",
|
|
61
|
+
"keyv": "^5.5.3",
|
|
58
62
|
"lowercase-keys": "^3.0.0",
|
|
59
63
|
"p-cancelable": "^4.0.1",
|
|
60
|
-
"responselike": "^
|
|
64
|
+
"responselike": "^4.0.2",
|
|
61
65
|
"type-fest": "^4.26.1"
|
|
62
66
|
},
|
|
63
67
|
"devDependencies": {
|
|
@@ -77,6 +81,7 @@
|
|
|
77
81
|
"benchmark": "^2.1.4",
|
|
78
82
|
"bluebird": "^3.7.2",
|
|
79
83
|
"body-parser": "^1.20.3",
|
|
84
|
+
"c8": "^10.1.3",
|
|
80
85
|
"create-cert": "^1.0.6",
|
|
81
86
|
"create-test-server": "^3.0.1",
|
|
82
87
|
"del-cli": "^6.0.0",
|
|
@@ -89,10 +94,10 @@
|
|
|
89
94
|
"nock": "^13.5.5",
|
|
90
95
|
"node-fetch": "^3.3.2",
|
|
91
96
|
"np": "^10.0.5",
|
|
92
|
-
"nyc": "^17.1.0",
|
|
93
97
|
"p-event": "^6.0.1",
|
|
94
98
|
"pem": "^1.14.8",
|
|
95
99
|
"pify": "^6.1.0",
|
|
100
|
+
"quick-lru": "^7.2.0",
|
|
96
101
|
"readable-stream": "^4.4.2",
|
|
97
102
|
"request": "^2.88.2",
|
|
98
103
|
"sinon": "^19.0.2",
|
|
@@ -115,17 +120,15 @@
|
|
|
115
120
|
},
|
|
116
121
|
"workerThreads": false
|
|
117
122
|
},
|
|
118
|
-
"
|
|
123
|
+
"c8": {
|
|
119
124
|
"reporter": [
|
|
120
125
|
"text",
|
|
121
126
|
"html",
|
|
122
127
|
"lcov"
|
|
123
128
|
],
|
|
124
|
-
"extension": [
|
|
125
|
-
".ts"
|
|
126
|
-
],
|
|
127
129
|
"exclude": [
|
|
128
|
-
"
|
|
130
|
+
"test/**",
|
|
131
|
+
"dist/**"
|
|
129
132
|
]
|
|
130
133
|
},
|
|
131
134
|
"xo": {
|
package/readme.md
CHANGED
|
@@ -127,6 +127,7 @@ By default, Got will retry on failure. To disable this option, set [`options.ret
|
|
|
127
127
|
|
|
128
128
|
#### Integration
|
|
129
129
|
|
|
130
|
+
- [x] [Diagnostics Channel](documentation/diagnostics-channel.md)
|
|
130
131
|
- [x] [TypeScript support](documentation/typescript.md)
|
|
131
132
|
- [x] [AWS](documentation/tips.md#aws)
|
|
132
133
|
- [x] [Testing](documentation/tips.md#testing)
|