From e2feb5f0562c7126a1cb33345a3517bcb58a2aec Mon Sep 17 00:00:00 2001 From: lilezek Date: Tue, 30 Apr 2024 11:39:35 +0200 Subject: [PATCH] refactor: drop unnecesary node-fetch library --- package.json | 4 +--- src/main/services/donwloaders/real-debrid.ts | 1 - yarn.lock | 10 +--------- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 84c47e42..1adf050f 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,6 @@ "build:linux": "electron-vite build && electron-builder --linux" }, "dependencies": { - "@types/node-fetch": "^2.6.11", "@electron-toolkit/preload": "^3.0.0", "@electron-toolkit/utils": "^3.0.0", "@fontsource/fira-mono": "^5.0.13", @@ -43,8 +42,8 @@ "check-disk-space": "^3.4.0", "classnames": "^2.5.1", "color.js": "^1.2.0", - "electron-dl-manager": "^3.0.0", "date-fns": "^3.6.0", + "electron-dl-manager": "^3.0.0", "flexsearch": "^0.7.43", "got-scraping": "^4.0.5", "i18next": "^23.11.2", @@ -52,7 +51,6 @@ "jsdom": "^24.0.0", "lodash-es": "^4.17.21", "lottie-react": "^2.4.0", - "node-fetch": "^2.6.1", "node-unrar-js": "^2.0.2", "parse-torrent": "^11.0.16", "ps-list": "^8.1.1", diff --git a/src/main/services/donwloaders/real-debrid.ts b/src/main/services/donwloaders/real-debrid.ts index 9fb170a9..c502d3ad 100644 --- a/src/main/services/donwloaders/real-debrid.ts +++ b/src/main/services/donwloaders/real-debrid.ts @@ -1,5 +1,4 @@ import { userPreferencesRepository } from "@main/repository"; -import fetch from "node-fetch"; import { RealDebridAddMagnet, RealDebridTorrentInfo, diff --git a/yarn.lock b/yarn.lock index 90d99bdc..4bb0476c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1440,14 +1440,6 @@ resolved "https://registry.npmjs.org/@types/ms/-/ms-0.7.34.tgz" integrity sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g== -"@types/node-fetch@^2.6.11": - version "2.6.11" - resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.6.11.tgz#9b39b78665dae0e82a08f02f4967d62c66f95d24" - integrity sha512-24xFj9R5+rfQJLRyM56qh+wnVSYhyXC2tkoBndtY0U+vubqNsYXGjufB2nn8Q6gt0LrARwL6UBtMCSVCwl4B1g== - dependencies: - "@types/node" "*" - form-data "^4.0.0" - "@types/node@*", "@types/node@^20.12.7": version "20.12.7" resolved "https://registry.npmjs.org/@types/node/-/node-20.12.7.tgz" @@ -4642,7 +4634,7 @@ node-domexception@^1.0.0: resolved "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz" integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== -node-fetch@^2.6.1, node-fetch@^2.6.7: +node-fetch@^2.6.7: version "2.7.0" resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==