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.7.0 to 0.7.1

umd.d.ts

9

index.js

@@ -14,3 +14,10 @@ /*! MIT License © Sindre Sorhus */

return global[property];
if (typeof global !== 'undefined' && global && property in global) {
return global[property];
}
/* istanbul ignore next */
if (typeof globalThis !== 'undefined' && globalThis) {
return globalThis[property];
}
};

@@ -17,0 +24,0 @@

8

package.json
{
"name": "ky",
"version": "0.7.0",
"version": "0.7.1",
"description": "Tiny and elegant HTTP client based on the browser Fetch API",

@@ -25,3 +25,4 @@ "license": "MIT",

"index.d.ts",
"umd.js"
"umd.js",
"umd.d.ts"
],

@@ -71,3 +72,4 @@ "keywords": [

"globals": [
"expect"
"expect",
"globalThis"
]

@@ -74,0 +76,0 @@ },

@@ -17,3 +17,3 @@ <div align="center">

Ky targets [modern browsers](#browser-support). For older browsers, you will need to transpile and use a [`fetch` polyfill](https://github.com/github/fetch). For Node.js, check out [Got](https://github.com/sindresorhus/got).
Ky targets [modern browsers](#browser-support) and [Deno](https://github.com/denoland/deno). For older browsers, you will need to transpile and use a [`fetch` polyfill](https://github.com/github/fetch). For Node.js, check out [Got](https://github.com/sindresorhus/got).

@@ -97,2 +97,8 @@ 1 KB *(minified & gzipped)*, one file, and no dependencies.

If you are using [Deno](https://github.com/denoland/deno), import Ky from a URL. For example, using a CDN:
```js
import ky from 'https://unpkg.com/ky/index.js';
```
In environments that do not support `import`, you can load `ky` in [UMD format](https://medium.freecodecamp.org/anatomy-of-js-module-systems-and-building-libraries-fadcd8dbd0e). For example, using `require()`:

@@ -106,2 +112,3 @@

## API

@@ -133,3 +140,3 @@

Type: `string`
Type: `string`<br>
Default: `get`

@@ -276,5 +283,5 @@

### Cancelation
### Cancellation
Fetch (and hence Ky) has built-in support for request cancelation through the [`AbortController` API](https://developer.mozilla.org/en-US/docs/Web/API/AbortController). [Read more.](https://developers.google.com/web/updates/2017/09/abortable-fetch)
Fetch (and hence Ky) has built-in support for request cancellation through the [`AbortController` API](https://developer.mozilla.org/en-US/docs/Web/API/AbortController). [Read more.](https://developers.google.com/web/updates/2017/09/abortable-fetch)

@@ -281,0 +288,0 @@ Example:

@@ -20,3 +20,10 @@ (function (global, factory) {

return global[property];
if (typeof global !== 'undefined' && global && property in global) {
return global[property];
}
/* istanbul ignore next */
if (typeof globalThis !== 'undefined' && globalThis) {
return globalThis[property];
}
};

@@ -23,0 +30,0 @@

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