Comparing version 1.1.1 to 1.1.2
import { type KyOptionsRegistry } from '../types/options.js'; | ||
import { type RequestInitRegistry } from '../types/request.js'; | ||
export declare const supportsRequestStreams: boolean; | ||
@@ -17,1 +18,2 @@ export declare const supportsAbortController: boolean; | ||
export declare const kyOptionKeys: KyOptionsRegistry; | ||
export declare const requestOptionsRegistry: RequestInitRegistry; |
@@ -47,2 +47,19 @@ export const supportsRequestStreams = (() => { | ||
}; | ||
export const requestOptionsRegistry = { | ||
method: true, | ||
headers: true, | ||
body: true, | ||
mode: true, | ||
credentials: true, | ||
cache: true, | ||
redirect: true, | ||
referrer: true, | ||
referrerPolicy: true, | ||
integrity: true, | ||
keepalive: true, | ||
signal: true, | ||
window: true, | ||
dispatcher: true, | ||
duplex: true, | ||
}; | ||
//# sourceMappingURL=constants.js.map |
@@ -1,6 +0,6 @@ | ||
import { kyOptionKeys } from '../core/constants.js'; | ||
import { kyOptionKeys, requestOptionsRegistry } from '../core/constants.js'; | ||
export const findUnknownOptions = (request, options) => { | ||
const unknownOptions = {}; | ||
for (const key in options) { | ||
if (!(key in kyOptionKeys) && !(key in request)) { | ||
if (!(key in requestOptionsRegistry) && !(key in kyOptionKeys) && !(key in request)) { | ||
unknownOptions[key] = options[key]; | ||
@@ -7,0 +7,0 @@ } |
{ | ||
"name": "ky", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Tiny and elegant HTTP client based on the browser Fetch API", | ||
@@ -70,3 +70,3 @@ "license": "MIT", | ||
"pify": "^6.1.0", | ||
"playwright-chromium": "^1.37.1", | ||
"playwright": "^1.39.0", | ||
"raw-body": "^2.5.2", | ||
@@ -73,0 +73,0 @@ "ts-node": "^10.9.1", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
142694
63
1117