Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.4.0 to 0.4.1

34

index.d.ts

@@ -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",

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