From 4936d7a23d3a72cc1ebd2f654ad0e0b44dd1ec34 Mon Sep 17 00:00:00 2001 From: Mike Ratcliffe Date: Tue, 17 Sep 2024 14:54:00 +0100 Subject: [PATCH] chore: Remove `node-fetch` include --- package-lock.json | 91 ----------------------------------------------- package.json | 1 - tools.js | 2 -- versioncheck.js | 2 -- 4 files changed, 96 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5a90fca..80a59a7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,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" }, @@ -2096,15 +2095,6 @@ "node": "*" } }, - "node_modules/data-uri-to-buffer": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", - "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", - "license": "MIT", - "engines": { - "node": ">= 12" - } - }, "node_modules/debug": { "version": "4.3.7", "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz", @@ -2897,29 +2887,6 @@ "pend": "~1.2.0" } }, - "node_modules/fetch-blob": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", - "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "paypal", - "url": "https://paypal.me/jimmywarting" - } - ], - "license": "MIT", - "dependencies": { - "node-domexception": "^1.0.0", - "web-streams-polyfill": "^3.0.3" - }, - "engines": { - "node": "^12.20 || >= 14.13" - } - }, "node_modules/filelist": { "version": "1.0.4", "resolved": "https://registry.npmjs.org/filelist/-/filelist-1.0.4.tgz", @@ -3009,18 +2976,6 @@ "node": ">= 6" } }, - "node_modules/formdata-polyfill": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", - "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", - "license": "MIT", - "dependencies": { - "fetch-blob": "^3.1.2" - }, - "engines": { - "node": ">=12.20.0" - } - }, "node_modules/fs-constants": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", @@ -4695,43 +4650,6 @@ "node": ">=10" } }, - "node_modules/node-domexception": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", - "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "github", - "url": "https://paypal.me/jimmywarting" - } - ], - "license": "MIT", - "engines": { - "node": ">=10.5.0" - } - }, - "node_modules/node-fetch": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", - "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", - "license": "MIT", - "dependencies": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/node-fetch" - } - }, "node_modules/node-forge": { "version": "1.3.1", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", @@ -6389,15 +6307,6 @@ "node": ">=4.4" } }, - "node_modules/web-streams-polyfill": { - "version": "3.3.3", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz", - "integrity": "sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw==", - "license": "MIT", - "engines": { - "node": ">= 8" - } - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", diff --git a/package.json b/package.json index d00b347..ea284bc 100644 --- a/package.json +++ b/package.json @@ -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" }, diff --git a/tools.js b/tools.js index c0d6511..811771c 100644 --- a/tools.js +++ b/tools.js @@ -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"); diff --git a/versioncheck.js b/versioncheck.js index 147faab..980509f 100644 --- a/versioncheck.js +++ b/versioncheck.js @@ -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;