got 14.4.7 → 14.4.8
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.
|
@@ -1173,7 +1173,7 @@ export default class Options {
|
|
|
1173
1173
|
passphrase: string | undefined;
|
|
1174
1174
|
pfx: PfxType;
|
|
1175
1175
|
rejectUnauthorized: boolean | undefined;
|
|
1176
|
-
checkServerIdentity: typeof checkServerIdentity
|
|
1176
|
+
checkServerIdentity: CheckServerIdentityFunction | typeof checkServerIdentity;
|
|
1177
1177
|
ciphers: string | undefined;
|
|
1178
1178
|
honorCipherOrder: boolean | undefined;
|
|
1179
1179
|
minVersion: import("tls").SecureVersion | undefined;
|
|
@@ -359,7 +359,10 @@ export default class Options {
|
|
|
359
359
|
return;
|
|
360
360
|
}
|
|
361
361
|
if (options instanceof Options) {
|
|
362
|
-
|
|
362
|
+
// Create a copy of the _init array to avoid infinite loop
|
|
363
|
+
// when merging an Options instance with itself
|
|
364
|
+
const initArray = [...options._init];
|
|
365
|
+
for (const init of initArray) {
|
|
363
366
|
this.merge(init);
|
|
364
367
|
}
|
|
365
368
|
return;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -164,7 +164,7 @@ By default, Got will retry on failure. To disable this option, set [`options.ret
|
|
|
164
164
|
| Cookies (out-of-the-box) | :heavy_check_mark: | :x: | :x: | :x: | :x: |
|
|
165
165
|
| Follows redirects | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
|
|
166
166
|
| Retries on failure | :heavy_check_mark: | :x: | :heavy_check_mark: | :x: | :heavy_check_mark: |
|
|
167
|
-
| Progress events | :heavy_check_mark: | :x: | :heavy_check_mark
|
|
167
|
+
| Progress events | :heavy_check_mark: | :x: | :heavy_check_mark: | Browser only | :heavy_check_mark: |
|
|
168
168
|
| Handles gzip/deflate | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: | :heavy_check_mark: |
|
|
169
169
|
| Advanced timeouts | :heavy_check_mark: | :x: | :x: | :x: | :x: |
|
|
170
170
|
| Timings | :heavy_check_mark: | :x: | :x: | :x: | :x: |
|
|
@@ -187,7 +187,6 @@ By default, Got will retry on failure. To disable this option, set [`options.ret
|
|
|
187
187
|
|
|
188
188
|
\* It's almost API compatible with the browser `fetch` API.\
|
|
189
189
|
\*\* Need to switch the protocol manually. Doesn't accept PUSH streams and doesn't reuse HTTP/2 sessions.\
|
|
190
|
-
\*\*\* Currently, only `DownloadProgress` event is supported, `UploadProgress` event is not supported.\
|
|
191
190
|
¹ Requires Node.js 15.10.0 or above.\
|
|
192
191
|
:sparkle: Almost-stable feature, but the API may change. Don't hesitate to try it out!\
|
|
193
192
|
:grey_question: Feature in early stage of development. Very experimental.
|