Skip to content

Commit

Permalink
feat: Use Node's built-in fetch (#164)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhnns authored Jul 26, 2024
1 parent be3b8be commit 7333a7d
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 102 deletions.
169 changes: 71 additions & 98 deletions package-lock.json

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

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@
"*.{json,css,md,yml,yaml}": "prettier --write"
},
"dependencies": {
"is-ip": "^5.0.1",
"node-fetch": "^3.3.2"
"is-ip": "^5.0.1"
},
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
Expand All @@ -72,7 +71,7 @@
"husky": "^9.1.2",
"jest": "^29.7.0",
"lint-staged": "^15.2.7",
"nock": "^13.5.4",
"nock": "^14.0.0-beta.9",
"npm-run-all": "^4.1.5",
"pin-github-action": "^1.9.1",
"prettier": "^3.3.3",
Expand Down
1 change: 0 additions & 1 deletion src/psl/fetch-psl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { ok } from "assert";
import fetch from "node-fetch";
import { FETCH_PSL_EXPECTED_MIN_LENGTH, PUBLIC_SUFFIX_URL } from "../config.js";

export const fetchPsl = async () => {
Expand Down

0 comments on commit 7333a7d

Please sign in to comment.