@microlink/mql 0.13.5 → 0.13.6
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/lightweight/index.d.ts
CHANGED
package/lightweight/index.js
CHANGED
|
@@ -199,7 +199,7 @@ const responseTypes = {
|
|
|
199
199
|
blob: '*/*',
|
|
200
200
|
};
|
|
201
201
|
// The maximum value of a 32bit int (see issue #117)
|
|
202
|
-
const maxSafeTimeout =
|
|
202
|
+
const maxSafeTimeout = 2_147_483_647;
|
|
203
203
|
const stop = Symbol('stop');
|
|
204
204
|
const kyOptionKeys = {
|
|
205
205
|
json: true,
|
|
@@ -229,6 +229,7 @@ const requestOptionsRegistry = {
|
|
|
229
229
|
window: true,
|
|
230
230
|
dispatcher: true,
|
|
231
231
|
duplex: true,
|
|
232
|
+
priority: true,
|
|
232
233
|
};
|
|
233
234
|
|
|
234
235
|
const normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
|
|
@@ -409,9 +410,11 @@ class Ky {
|
|
|
409
410
|
value: void 0
|
|
410
411
|
});
|
|
411
412
|
this._input = input;
|
|
412
|
-
const
|
|
413
|
+
const credentials = this._input instanceof Request && 'credentials' in Request.prototype
|
|
414
|
+
? this._input.credentials
|
|
415
|
+
: undefined;
|
|
413
416
|
this._options = {
|
|
414
|
-
credentials
|
|
417
|
+
...(credentials && { credentials }), // For exactOptionalPropertyTypes
|
|
415
418
|
...options,
|
|
416
419
|
headers: mergeHeaders(this._input.headers, options.headers),
|
|
417
420
|
hooks: deepMerge({
|
|
@@ -425,7 +428,7 @@ class Ky {
|
|
|
425
428
|
prefixUrl: String(options.prefixUrl || ''),
|
|
426
429
|
retry: normalizeRetryOptions(options.retry),
|
|
427
430
|
throwHttpErrors: options.throwHttpErrors !== false,
|
|
428
|
-
timeout: options.timeout ??
|
|
431
|
+
timeout: options.timeout ?? 10_000,
|
|
429
432
|
fetch: options.fetch ?? globalThis.fetch.bind(globalThis),
|
|
430
433
|
};
|
|
431
434
|
if (typeof this._input !== 'string' && !(this._input instanceof URL || this._input instanceof globalThis.Request)) {
|
|
@@ -815,7 +818,7 @@ const mql = factory({
|
|
|
815
818
|
urlHttp,
|
|
816
819
|
got,
|
|
817
820
|
flatten,
|
|
818
|
-
VERSION: '0.13.
|
|
821
|
+
VERSION: '0.13.6'
|
|
819
822
|
});
|
|
820
823
|
|
|
821
824
|
lightweight$2.exports = mql;
|
package/lightweight/index.umd.js
CHANGED
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
blob: '*/*',
|
|
206
206
|
};
|
|
207
207
|
// The maximum value of a 32bit int (see issue #117)
|
|
208
|
-
const maxSafeTimeout =
|
|
208
|
+
const maxSafeTimeout = 2_147_483_647;
|
|
209
209
|
const stop = Symbol('stop');
|
|
210
210
|
const kyOptionKeys = {
|
|
211
211
|
json: true,
|
|
@@ -235,6 +235,7 @@
|
|
|
235
235
|
window: true,
|
|
236
236
|
dispatcher: true,
|
|
237
237
|
duplex: true,
|
|
238
|
+
priority: true,
|
|
238
239
|
};
|
|
239
240
|
|
|
240
241
|
const normalizeRequestMethod = (input) => requestMethods.includes(input) ? input.toUpperCase() : input;
|
|
@@ -415,9 +416,11 @@
|
|
|
415
416
|
value: void 0
|
|
416
417
|
});
|
|
417
418
|
this._input = input;
|
|
418
|
-
const
|
|
419
|
+
const credentials = this._input instanceof Request && 'credentials' in Request.prototype
|
|
420
|
+
? this._input.credentials
|
|
421
|
+
: undefined;
|
|
419
422
|
this._options = {
|
|
420
|
-
credentials
|
|
423
|
+
...(credentials && { credentials }), // For exactOptionalPropertyTypes
|
|
421
424
|
...options,
|
|
422
425
|
headers: mergeHeaders(this._input.headers, options.headers),
|
|
423
426
|
hooks: deepMerge({
|
|
@@ -431,7 +434,7 @@
|
|
|
431
434
|
prefixUrl: String(options.prefixUrl || ''),
|
|
432
435
|
retry: normalizeRetryOptions(options.retry),
|
|
433
436
|
throwHttpErrors: options.throwHttpErrors !== false,
|
|
434
|
-
timeout: options.timeout ??
|
|
437
|
+
timeout: options.timeout ?? 10_000,
|
|
435
438
|
fetch: options.fetch ?? globalThis.fetch.bind(globalThis),
|
|
436
439
|
};
|
|
437
440
|
if (typeof this._input !== 'string' && !(this._input instanceof URL || this._input instanceof globalThis.Request)) {
|
|
@@ -821,7 +824,7 @@
|
|
|
821
824
|
urlHttp,
|
|
822
825
|
got,
|
|
823
826
|
flatten,
|
|
824
|
-
VERSION: '0.13.
|
|
827
|
+
VERSION: '0.13.6'
|
|
825
828
|
});
|
|
826
829
|
|
|
827
830
|
lightweight$2.exports = mql;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@microlink/mql",
|
|
3
3
|
"description": "Microlink Query Language. The official HTTP client to interact with Microlink API for Node.js, browsers & Deno.",
|
|
4
4
|
"homepage": "https://microlink.io/mql",
|
|
5
|
-
"version": "0.13.
|
|
5
|
+
"version": "0.13.6",
|
|
6
6
|
"types": "lightweight/index.d.ts",
|
|
7
7
|
"exports": {
|
|
8
8
|
"require": "./src/node.js",
|