chore: remove node-fetch to use native fetch
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
import fs from "fs"
|
||||
import yaml from "js-yaml"
|
||||
import { marked } from "marked"
|
||||
import fetch from "node-fetch"
|
||||
import path from "path"
|
||||
import url from "url"
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
//Imports
|
||||
import fs from "fs/promises"
|
||||
import yaml from "js-yaml"
|
||||
import fetch from "node-fetch"
|
||||
import metadata from "./metadata.mjs"
|
||||
|
||||
/**Presets parser */
|
||||
|
||||
@@ -14,7 +14,6 @@ import { JSDOM } from "jsdom"
|
||||
import linguist from "linguist-js"
|
||||
import { marked } from "marked"
|
||||
import { minimatch } from "minimatch"
|
||||
import fetch from "node-fetch"
|
||||
import opengraph from "open-graph-scraper"
|
||||
import os from "os"
|
||||
import paths from "path"
|
||||
@@ -34,7 +33,7 @@ import xmlformat from "xml-formatter"
|
||||
prism_lang()
|
||||
|
||||
//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 */
|
||||
export function __module(module) {
|
||||
|
||||
Reference in New Issue
Block a user