node-fetch patch by jimmywarting #181

Merged
Sirherobrine23 merged 2 commits from node_fetch-3.0 into main 2021-09-06 17:37:57 +00:00
3 changed files with 21 additions and 8249 deletions
Showing only changes of commit 2be8a968aa - Show all commits

View File

@@ -1,4 +1,5 @@
if (typeof fetch === "undefined") global.fetch = require("node-fetch");
const fetch = (...args) => import('node-fetch').then(mod => mod.default(...args));
if (typeof fetch === "undefined") global.fetch = fetch;
module.exports = {
JSON: async (url = "", options) => await (await fetch(url, options)).json(),
TEXT: async (url = "", options) => await (await fetch(url, options)).text(),

8263
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -67,7 +67,7 @@
"js-yaml": "^4.1.0",
"minimist": "^1.2.5",
"node-cron": "^3.0.0",
"node-fetch": "2.6.1",
"node-fetch": "^2.6.1",
"oci-sdk": "^2.0.0",
"open": "^8.0.0",
"properties-to-json": "^0.2.1",