chore: remove node-fetch to use native fetch
This commit is contained in:
1
.github/scripts/presets_examples.mjs
vendored
1
.github/scripts/presets_examples.mjs
vendored
@@ -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"
|
||||||
|
|||||||
@@ -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"
|
||||||
|
|
||||||
|
|||||||
@@ -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 */
|
||||||
|
|||||||
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user