ky-universal
Advanced tools
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 @@ } |
{ | ||
"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 @@ |
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
5338
35
85