Skip to content

Commit

Permalink
Update node-fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed Jan 25, 2022
1 parent ca24367 commit e871c72
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 24 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ if (!globalThis.AbortController) {

if (!globalThis.ReadableStream) {
try {
// eslint-disable-next-line node/file-extension-in-import, node/no-unsupported-features/es-syntax
globalThis.ReadableStream = await import('web-streams-polyfill/ponyfill/es2018');
} catch {}
}
Expand Down
31 changes: 9 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
"node": ">=14"
},
"scripts": {
"//": "XO is disabled until ESLint supports top-level await",
"//test": "xo && ava && tsd",
"test": "ava && tsd"
"test": "xo && ava && tsd"
},
"files": [
"index.js",
Expand Down Expand Up @@ -62,13 +60,13 @@
],
"dependencies": {
"abort-controller": "^3.0.0",
"node-fetch": "3.0.0-beta.9"
"node-fetch": "3.2.0"
},
"devDependencies": {
"ava": "^3.15.0",
"ky": "^0.26.0",
"tsd": "^0.14.0",
"xo": "^0.37.1"
"ava": "^4.0.1",
"ky": "^0.28.7",
"tsd": "^0.19.1",
"xo": "^0.47.0"
},
"peerDependencies": {
"ky": ">=0.26.0",
Expand All @@ -80,20 +78,9 @@
}
},
"browser": "browser.js",
"ava": {
"globals": [
"globalThis"
],
"register": [
"."
]
},
"tsd": {
"compilerOptions": {
"lib": [
"es2019",
"dom"
]
"xo": {
"rules": {
"unicorn/prefer-export-from": "off"
}
}
}
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Keep in mind that Ky targets [modern browsers](https://github.com/sindresorhus/k

## Install

```
$ npm install ky ky-universal
```sh
npm install ky ky-universal
```

*Note that you also need to install `ky`.*
Expand Down

0 comments on commit e871c72

Please sign in to comment.