Skip to content

Commit

Permalink
Refactor: use native fetch (#185)
Browse files Browse the repository at this point in the history
* refactor: use the native fetch method instead of the emulation from the node-fetch dependency
* refactor: remove the node-fetch dependency
  • Loading branch information
bgatellier authored Aug 30, 2023
1 parent ab4937c commit 29f4452
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@fabernovel/heart-common",
"comment": "",
"type": "none"
}
],
"packageName": "@fabernovel/heart-common"
}
3 changes: 0 additions & 3 deletions common/config/rush/pnpm-lock.yaml

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

1 change: 0 additions & 1 deletion modules/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"@mikro-orm/reflection": "^5.7.14",
"ajv": "^8.12.0",
"ajv-errors": "^3.0.0",
"node-fetch": "^3.3.2",
"pino": "^8.15.0",
"pino-pretty": "^10.2.0"
},
Expand Down
1 change: 0 additions & 1 deletion modules/common/src/http/Request.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fetch from "node-fetch"
import type { ParsedUrlQueryInput } from "querystring"

const BASE_HEADER: Record<"Content-Type", string> = {
Expand Down

0 comments on commit 29f4452

Please sign in to comment.