Skip to content

Commit

Permalink
Replace node-fetch with fetch-h2
Browse files Browse the repository at this point in the history
  • Loading branch information
myrotvorets-team committed Dec 13, 2021
1 parent 99c9f09 commit 2cab9cc
Show file tree
Hide file tree
Showing 3 changed files with 124 additions and 28 deletions.
147 changes: 122 additions & 25 deletions functions/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions functions/package.json
Expand Up @@ -21,17 +21,16 @@
"@types/archiver": "^5.1.0",
"@types/cors": "^2.8.9",
"@types/express": "^4.17.11",
"@types/node-fetch": "^2.5.10",
"@types/node-mailjet": "^3.3.3",
"archiver": "^5.2.0",
"archiver-zip-encryptable": "^1.0.7",
"cors": "^2.8.5",
"express": "^4.17.1",
"express-validator": "^6.9.2",
"fetch-h2": "^3.0.1",
"fetch-retry-ts": "^1.1.23",
"firebase-admin": "^10.0.0",
"firebase-functions": "^3.13.1",
"node-fetch": "^2.6.1",
"node-mailjet": "^3.3.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion functions/src/lib/fetch.ts
@@ -1,4 +1,4 @@
import origFetch from 'node-fetch';
import { fetch as origFetch } from 'fetch-h2';
import fetchBuilder from 'fetch-retry-ts';

export const fetch = fetchBuilder(origFetch, {
Expand Down

0 comments on commit 2cab9cc

Please sign in to comment.