chore: drop usage of node-fetch (#571)
This commit is contained in:
Родитель
27c4b7c442
Коммит
e5a2f9e19a
|
@ -40,7 +40,6 @@
|
|||
"docusaurus-plugin-sass": "^0.2.1",
|
||||
"dotenv": "^16.0.3",
|
||||
"execa": "^5.0.0",
|
||||
"node-fetch": "^2.6.7",
|
||||
"prism-react-renderer": "^2.3.1",
|
||||
"react": "^18.3.1",
|
||||
"react-dom": "^18.3.1",
|
||||
|
@ -62,7 +61,6 @@
|
|||
"@types/fs-extra": "^9.0.13",
|
||||
"@types/mdast": "^4.0.4",
|
||||
"@types/node": "^18.11.10",
|
||||
"@types/node-fetch": "^2.6.2",
|
||||
"@types/react": "^18.3.1",
|
||||
"@types/semver": "^7.3.13",
|
||||
"@types/tar-stream": "^2.2.2",
|
||||
|
|
|
@ -14,7 +14,6 @@ import {
|
|||
import * as dotenv from 'dotenv';
|
||||
import latestVersion from 'latest-version';
|
||||
import toString from 'mdast-util-to-string';
|
||||
import fetch from 'node-fetch';
|
||||
import remarkParse from 'remark-parse';
|
||||
import { unified } from 'unified';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import fetch from 'node-fetch';
|
||||
import { Plugin } from '@docusaurus/types';
|
||||
|
||||
export interface App {
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import fetch from 'node-fetch';
|
||||
import semver from 'semver';
|
||||
import { Plugin } from '@docusaurus/types';
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
import fetch, { Response } from 'node-fetch';
|
||||
import semver from 'semver';
|
||||
|
||||
import { Plugin } from '@docusaurus/types';
|
||||
|
|
17
yarn.lock
17
yarn.lock
|
@ -2891,14 +2891,6 @@
|
|||
resolved "https://registry.yarnpkg.com/@types/ms/-/ms-0.7.31.tgz#31b7ca6407128a3d2bbc27fe2d21b345397f6197"
|
||||
integrity sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==
|
||||
|
||||
"@types/node-fetch@^2.6.2":
|
||||
version "2.6.2"
|
||||
resolved "https://registry.yarnpkg.com/@types/node-fetch/-/node-fetch-2.6.2.tgz#d1a9c5fd049d9415dce61571557104dec3ec81da"
|
||||
integrity sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==
|
||||
dependencies:
|
||||
"@types/node" "*"
|
||||
form-data "^3.0.0"
|
||||
|
||||
"@types/node@*":
|
||||
version "18.11.11"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-18.11.11.tgz#1d455ac0211549a8409d3cdb371cd55cc971e8dc"
|
||||
|
@ -6264,15 +6256,6 @@ form-data-encoder@^2.1.2:
|
|||
resolved "https://registry.yarnpkg.com/form-data-encoder/-/form-data-encoder-2.1.4.tgz#261ea35d2a70d48d30ec7a9603130fa5515e9cd5"
|
||||
integrity sha512-yDYSgNMraqvnxiEXO4hi88+YZxaHC6QKzb5N84iRCTDeRO7ZALpir/lVmf/uXUhnwUr2O4HU8s/n6x+yNjQkHw==
|
||||
|
||||
form-data@^3.0.0:
|
||||
version "3.0.1"
|
||||
resolved "https://registry.yarnpkg.com/form-data/-/form-data-3.0.1.tgz#ebd53791b78356a99af9a300d4282c4d5eb9755f"
|
||||
integrity sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==
|
||||
dependencies:
|
||||
asynckit "^0.4.0"
|
||||
combined-stream "^1.0.8"
|
||||
mime-types "^2.1.12"
|
||||
|
||||
form-data@^4.0.0:
|
||||
version "4.0.0"
|
||||
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
|
||||
|
|
Загрузка…
Ссылка в новой задаче