Comparing version 0.11.0 to 0.11.1
/// <reference lib="dom"/> | ||
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | ||
type _Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>; | ||
@@ -95,3 +95,3 @@ export type BeforeRequestHook = (options: Options) => void | Promise<void>; | ||
interface OptionsWithoutBody extends Omit<Options, 'body'> { | ||
interface OptionsWithoutBody extends _Omit<Options, 'body'> { | ||
method?: 'get' | 'head' | ||
@@ -137,3 +137,3 @@ } | ||
*/ | ||
json<T = unknown>(): Promise<T>; | ||
json<T>(): Promise<T>; | ||
@@ -185,3 +185,3 @@ text(): Promise<string>; | ||
*/ | ||
get(url: Request | URL | string, options?: Omit<Options, 'body'>): ResponsePromise; | ||
get(url: Request | URL | string, options?: _Omit<Options, 'body'>): ResponsePromise; | ||
@@ -218,3 +218,3 @@ /** | ||
*/ | ||
head(url: Request | URL | string, options?: Omit<Options, 'body'>): ResponsePromise; | ||
head(url: Request | URL | string, options?: _Omit<Options, 'body'>): ResponsePromise; | ||
@@ -221,0 +221,0 @@ /** |
{ | ||
"name": "ky", | ||
"version": "0.11.0", | ||
"version": "0.11.1", | ||
"description": "Tiny and elegant HTTP client based on the browser Fetch API", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -51,9 +51,3 @@ <div align="center"> | ||
--- | ||
<a href="https://www.patreon.com/sindresorhus"> | ||
<img src="https://c5.patreon.com/external/logo/become_a_patron_button@2x.png" width="160"> | ||
</a> | ||
## Usage | ||
@@ -471,6 +465,1 @@ | ||
- [Seth Holladay](https://github.com/sholladay) | ||
## 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
43766
464