From 816cdc4bc63ccd67ee6cb0dc750c8de316a632ee Mon Sep 17 00:00:00 2001 From: tresabhi Date: Sun, 28 May 2023 02:36:02 +0000 Subject: [PATCH] fix: removed all imports for node fetch --- src/core/blitz/getWargamingResponse.ts | 1 - src/core/blitzstars/getBlitzStarsAccount.ts | 1 - src/core/blitzstars/getPlayerStats.ts | 1 - src/core/blitzstars/getTankStatsOverTime.ts | 1 - src/core/blitzstars/tankopedia.ts | 2 -- src/core/blitztankstats/getPeriodicStats.ts | 2 -- 6 files changed, 8 deletions(-) diff --git a/src/core/blitz/getWargamingResponse.ts b/src/core/blitz/getWargamingResponse.ts index e2632a930..d4e58d7fb 100644 --- a/src/core/blitz/getWargamingResponse.ts +++ b/src/core/blitz/getWargamingResponse.ts @@ -1,4 +1,3 @@ -import fetch from 'node-fetch'; import { WargamingResponse } from '../../types/wargamingResponse.js'; export default async function getWargamingResponse( diff --git a/src/core/blitzstars/getBlitzStarsAccount.ts b/src/core/blitzstars/getBlitzStarsAccount.ts index 459a25a70..1d118e958 100644 --- a/src/core/blitzstars/getBlitzStarsAccount.ts +++ b/src/core/blitzstars/getBlitzStarsAccount.ts @@ -1,5 +1,4 @@ import { CacheType, ChatInputCommandInteraction } from 'discord.js'; -import fetch from 'node-fetch'; import { PlayerPeriodicStatsCollection } from '../../types/statistics.js'; import { notTrackedByBlitzStars } from '../interaction/notTrackedByBlitzStars.js'; diff --git a/src/core/blitzstars/getPlayerStats.ts b/src/core/blitzstars/getPlayerStats.ts index f5e5bbd3c..2c9d6904d 100644 --- a/src/core/blitzstars/getPlayerStats.ts +++ b/src/core/blitzstars/getPlayerStats.ts @@ -1,5 +1,4 @@ import { CacheType, ChatInputCommandInteraction } from 'discord.js'; -import fetch from 'node-fetch'; import { PlayerStats } from '../../types/playerStats.js'; export default async function getPlayerStats( diff --git a/src/core/blitzstars/getTankStatsOverTime.ts b/src/core/blitzstars/getTankStatsOverTime.ts index cafaa92e2..bd6ebac39 100644 --- a/src/core/blitzstars/getTankStatsOverTime.ts +++ b/src/core/blitzstars/getTankStatsOverTime.ts @@ -1,4 +1,3 @@ -import fetch from 'node-fetch'; import { BlitzServer } from '../../constants/servers.js'; import { AllStats } from '../../types/accountInfo.js'; import { TanksStats } from '../../types/tanksStats.js'; diff --git a/src/core/blitzstars/tankopedia.ts b/src/core/blitzstars/tankopedia.ts index 5e224ed1d..f6a977ed4 100644 --- a/src/core/blitzstars/tankopedia.ts +++ b/src/core/blitzstars/tankopedia.ts @@ -1,5 +1,3 @@ -import fetch from 'node-fetch'; - export type TankType = 'heavyTank' | 'AT-SPG' | 'mediumTank' | 'lightTank'; export interface Tankopedia { diff --git a/src/core/blitztankstats/getPeriodicStats.ts b/src/core/blitztankstats/getPeriodicStats.ts index dd6dc0661..d8dcf3d06 100644 --- a/src/core/blitztankstats/getPeriodicStats.ts +++ b/src/core/blitztankstats/getPeriodicStats.ts @@ -1,5 +1,3 @@ -import fetch from 'node-fetch'; - export interface Period { statsId: number; account_id: number;