Skip to content

Commit 67d93c3

Browse files
committed
chore: remove node-fetch to use native fetch
1 parent 485f502 commit 67d93c3

File tree

4 files changed

+1
-5
lines changed

4 files changed

+1
-5
lines changed

.github/scripts/presets_examples.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import processes from "child_process"
33
import fs from "fs/promises"
44
import yaml from "js-yaml"
5-
import fetch from "node-fetch"
65
import paths from "path"
76
import sgit from "simple-git"
87
import url from "url"

source/app/metrics/metadata.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import fs from "fs"
33
import yaml from "js-yaml"
44
import { marked } from "marked"
5-
import fetch from "node-fetch"
65
import path from "path"
76
import url from "url"
87

source/app/metrics/presets.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//Imports
22
import fs from "fs/promises"
33
import yaml from "js-yaml"
4-
import fetch from "node-fetch"
54
import metadata from "./metadata.mjs"
65

76
/**Presets parser */

source/app/metrics/utils.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ import { JSDOM } from "jsdom"
1414
import linguist from "linguist-js"
1515
import { marked } from "marked"
1616
import { minimatch } from "minimatch"
17-
import fetch from "node-fetch"
1817
import opengraph from "open-graph-scraper"
1918
import os from "os"
2019
import paths from "path"
@@ -34,7 +33,7 @@ import xmlformat from "xml-formatter"
3433
prism_lang()
3534

3635
//Exports
37-
export { axios, d3, emoji, fetch, fs, git, minimatch, opengraph, os, paths, processes, sharp, url, util }
36+
export { axios, d3, emoji, fs, git, minimatch, opengraph, os, paths, processes, sharp, url, util }
3837

3938
/**Returns module __dirname */
4039
export function __module(module) {

0 commit comments

Comments
 (0)