Socket
Socket
Sign inDemoInstall

ky

Package Overview
Dependencies
Maintainers
1
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ky - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

10

index.d.ts
/// <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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc