Socket
Socket
Sign inDemoInstall

ky-universal

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ky-universal - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

12

index.js

@@ -8,2 +8,5 @@ 'use strict';

global.URL = URL;
}
if (!global.URLSearchParams) {
global.URLSearchParams = URLSearchParams;

@@ -14,4 +17,13 @@ }

global.fetch = fetch;
}
if (!global.Headers) {
global.Headers = fetch.Headers;
}
if (!global.Response) {
global.Response = fetch.Response;
}
if (!global.AbortController) {
global.AbortController = AbortController;

@@ -18,0 +30,0 @@ }

6

package.json
{
"name": "ky-universal",
"version": "0.2.1",
"version": "0.2.2",
"description": "Use Ky in both Node.js and browsers",

@@ -59,4 +59,4 @@ "license": "MIT",

"devDependencies": {
"ava": "^1.4.1",
"ky": "^0.10.0",
"ava": "^2.1.0",
"ky": "^0.11.1",
"xo": "^0.24.0"

@@ -63,0 +63,0 @@ },

@@ -30,4 +30,2 @@ # ky-universal [![Build Status](https://travis-ci.com/sindresorhus/ky-universal.svg?branch=master)](https://travis-ci.com/sindresorhus/ky-universal)

Use it like you would use Ky:
```js

@@ -44,2 +42,7 @@ const ky = require('ky-universal');

## API
The API is exactly the same as the [Ky API](https://github.com/sindresorhus/ky#api).
## FAQ

@@ -46,0 +49,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