Comparing version 0.4.0 to 0.4.1
@@ -46,2 +46,8 @@ export type BeforeRequestHook = (options: Object) => void; | ||
throwHttpErrors?: boolean; | ||
/** | ||
* Prepends the input with the specified prefix. | ||
* The prefix can be any valid URL, either relative or absolute. | ||
*/ | ||
prefixUrl?: URL | string; | ||
} | ||
@@ -76,6 +82,6 @@ | ||
* | ||
* @param input - Request object or URL string. | ||
* @param input - `Request` object, `URL` object, or URL string. | ||
* @returns Promise with `Body` method added. | ||
*/ | ||
(input: Request | string, options?: Options): ResponsePromise; | ||
(input: Request | URL | string, options?: Options): ResponsePromise; | ||
@@ -85,6 +91,6 @@ /** | ||
* | ||
* @param input - Request object or URL string. | ||
* @param input - `Request` object, `URL` object, or URL string. | ||
* @returns Promise with `Body` method added. | ||
*/ | ||
get(input: Request | string, options?: Options): ResponsePromise; | ||
get(input: Request | URL | string, options?: Options): ResponsePromise; | ||
@@ -94,6 +100,6 @@ /** | ||
* | ||
* @param input - Request object or URL string. | ||
* @param input - `Request` object, `URL` object, or URL string. | ||
* @returns Promise with `Body` method added. | ||
*/ | ||
post(input: Request | string, options?: Options): ResponsePromise; | ||
post(input: Request | URL | string, options?: Options): ResponsePromise; | ||
@@ -103,6 +109,6 @@ /** | ||
* | ||
* @param input - Request object or URL string. | ||
* @param input - `Request` object, `URL` object, or URL string. | ||
* @returns Promise with `Body` method added. | ||
*/ | ||
put(input: Request | string, options?: Options): ResponsePromise; | ||
put(input: Request | URL | string, options?: Options): ResponsePromise; | ||
@@ -112,6 +118,6 @@ /** | ||
* | ||
* @param input - Request object or URL string. | ||
* @param input - `Request` object, `URL` object, or URL string. | ||
* @returns Promise with `Body` method added. | ||
*/ | ||
patch(input: Request | string, options?: Options): ResponsePromise; | ||
patch(input: Request | URL | string, options?: Options): ResponsePromise; | ||
@@ -121,6 +127,6 @@ /** | ||
* | ||
* @param input - Request object or URL string. | ||
* @param input - `Request` object, `URL` object, or URL string. | ||
* @returns Promise with `Body` method added. | ||
*/ | ||
head(input: Request | string, options?: Options): ResponsePromise; | ||
head(input: Request | URL | string, options?: Options): ResponsePromise; | ||
@@ -130,6 +136,6 @@ /** | ||
* | ||
* @param input - Request object or URL string. | ||
* @param input - `Request` object, `URL` object, or URL string. | ||
* @returns Promise with `Body` method added. | ||
*/ | ||
delete(input: Request | string, options?: Options): ResponsePromise; | ||
delete(input: Request | URL | string, options?: Options): ResponsePromise; | ||
@@ -136,0 +142,0 @@ /** |
{ | ||
"name": "ky", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "Tiny and elegant HTTP client based on the browser Fetch API", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
17795
283