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

View file

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

View file

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

View file

@ -2333,7 +2333,6 @@ __metadata:
"@types/minio": "npm:7.1.0" "@types/minio": "npm:7.1.0"
"@types/mysql": "npm:2.15.25" "@types/mysql": "npm:2.15.25"
"@types/node": "npm:20.11.10" "@types/node": "npm:20.11.10"
"@types/node-fetch": "npm:2.6.11"
"@types/passport-http-bearer": "npm:1.0.41" "@types/passport-http-bearer": "npm:1.0.41"
"@types/passport-local": "npm:1.0.38" "@types/passport-local": "npm:1.0.38"
"@types/pg": "npm:8.11.0" "@types/pg": "npm:8.11.0"
@ -2370,7 +2369,6 @@ __metadata:
minio: "npm:7.1.3" minio: "npm:7.1.3"
mocked-env: "npm:1.3.5" mocked-env: "npm:1.3.5"
mysql: "npm:2.18.1" mysql: "npm:2.18.1"
node-fetch: "npm:2.7.0"
passport: "npm:0.7.0" passport: "npm:0.7.0"
passport-custom: "npm:1.1.1" passport-custom: "npm:1.1.1"
passport-http-bearer: "npm:1.0.1" passport-http-bearer: "npm:1.0.1"
@ -5025,16 +5023,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/node-fetch@npm:2.6.11":
version: 2.6.11
resolution: "@types/node-fetch@npm:2.6.11"
dependencies:
"@types/node": "npm:*"
form-data: "npm:^4.0.0"
checksum: 5283d4e0bcc37a5b6d8e629aee880a4ffcfb33e089f4b903b2981b19c623972d1e64af7c3f9540ab990f0f5c89b9b5dda19c5bcb37a8e177079e93683bfd2f49
languageName: node
linkType: hard
"@types/node-fetch@npm:^2.5.0": "@types/node-fetch@npm:^2.5.0":
version: 2.6.9 version: 2.6.9
resolution: "@types/node-fetch@npm:2.6.9" resolution: "@types/node-fetch@npm:2.6.9"
@ -14130,7 +14118,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"node-fetch@npm:2.7.0, node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.7": "node-fetch@npm:^2.6.1, node-fetch@npm:^2.6.7":
version: 2.7.0 version: 2.7.0
resolution: "node-fetch@npm:2.7.0" resolution: "node-fetch@npm:2.7.0"
dependencies: dependencies: