chore: remove node-fetch to use native fetch

This commit is contained in:
Simon Lecoq
2023-08-24 17:48:49 -04:00
parent 485f50249c
commit 67d93c3048
4 changed files with 1 additions and 5 deletions

View File

@@ -2,7 +2,6 @@
import processes from "child_process" import processes from "child_process"
import fs from "fs/promises" import fs from "fs/promises"
import yaml from "js-yaml" import yaml from "js-yaml"
import fetch from "node-fetch"
import paths from "path" import paths from "path"
import sgit from "simple-git" import sgit from "simple-git"
import url from "url" import url from "url"

View File

@@ -2,7 +2,6 @@
import fs from "fs" import fs from "fs"
import yaml from "js-yaml" import yaml from "js-yaml"
import { marked } from "marked" import { marked } from "marked"
import fetch from "node-fetch"
import path from "path" import path from "path"
import url from "url" import url from "url"

View File

@@ -1,7 +1,6 @@
//Imports //Imports
import fs from "fs/promises" import fs from "fs/promises"
import yaml from "js-yaml" import yaml from "js-yaml"
import fetch from "node-fetch"
import metadata from "./metadata.mjs" import metadata from "./metadata.mjs"
/**Presets parser */ /**Presets parser */

View File

@@ -14,7 +14,6 @@ import { JSDOM } from "jsdom"
import linguist from "linguist-js" import linguist from "linguist-js"
import { marked } from "marked" import { marked } from "marked"
import { minimatch } from "minimatch" import { minimatch } from "minimatch"
import fetch from "node-fetch"
import opengraph from "open-graph-scraper" import opengraph from "open-graph-scraper"
import os from "os" import os from "os"
import paths from "path" import paths from "path"
@@ -34,7 +33,7 @@ import xmlformat from "xml-formatter"
prism_lang() prism_lang()
//Exports //Exports
export { axios, d3, emoji, fetch, fs, git, minimatch, opengraph, os, paths, processes, sharp, url, util } export { axios, d3, emoji, fs, git, minimatch, opengraph, os, paths, processes, sharp, url, util }
/**Returns module __dirname */ /**Returns module __dirname */
export function __module(module) { export function __module(module) {