Skip to content

Commit

Permalink
chore: Remove node-fetch include
Browse files Browse the repository at this point in the history
These changes remove the `node-fetch` library from the project as it has
been part of node for a number of years now, so the require is no longer
needed.
  • Loading branch information
MikeRatcliffe committed Sep 30, 2024
1 parent 836d011 commit 3961e77
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 96 deletions.
91 changes: 0 additions & 91 deletions package-lock.json

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

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"fix-path": "4.0.0",
"jquery": "3.7.1",
"jquery-ui": "^1.14.0",
"node-fetch": "3.3.2",
"socks-proxy-agent": "8.0.4",
"web-auto-extractor": "1.0.17"
},
Expand Down
2 changes: 0 additions & 2 deletions tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ const { dialog } = require("electron");
const ApkReader = require("adbkit-apkreader");
const adbkit = require("@devicefarmer/adbkit").default;
const adb = adbkit.createClient();
const fetch = (...args) =>
import("node-fetch").then(({ default: fetch }) => fetch(...args));
const WAE = require("web-auto-extractor").default;
// const HttpProxyAgent = require('https-proxy-agent'); // TODO add https proxy support
const { SocksProxyAgent } = require("socks-proxy-agent");
Expand Down
2 changes: 0 additions & 2 deletions versioncheck.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const pkg = require("./package.json");
const fetch = (...args) =>
import("node-fetch").then(({ default: fetch }) => fetch(...args));
const compareVersions = require("compare-versions");
global.version = pkg.version;

Expand Down

0 comments on commit 3961e77

Please sign in to comment.