fix: remove node-fetch

fetch is included in node directly

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2024-02-10 18:08:48 +01:00
parent 6dd0dbca07
commit 4b203b72bc
No known key found for this signature in database
GPG key ID: FE1CD209E3EA5E85
4 changed files with 1 additions and 17 deletions

View file

@ -42,7 +42,6 @@
"@types/bcrypt": "5.0.2",
"@types/cron": "2.0.1",
"@types/minio": "7.1.0",
"@types/node-fetch": "2.6.11",
"@types/passport-http-bearer": "1.0.41",
"@zxcvbn-ts/core": "3.0.4",
"@zxcvbn-ts/language-common": "3.0.4",
@ -63,7 +62,6 @@
"markdown-it": "13.0.2",
"minio": "7.1.3",
"mysql": "2.18.1",
"node-fetch": "2.7.0",
"passport": "0.7.0",
"passport-custom": "1.1.1",
"passport-http-bearer": "1.0.1",

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import fetch, { Response } from 'node-fetch';
import { URLSearchParams } from 'url';
import mediaConfiguration, { MediaConfig } from '../../config/media.config';

View file

@ -4,7 +4,6 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { Inject, Injectable } from '@nestjs/common';
import fetch, { Response } from 'node-fetch';
import { URL } from 'url';
import mediaConfiguration, { MediaConfig } from '../../config/media.config';