mirror of
https://github.com/LukeHagar/redocly-cli.git
synced 2025-12-07 20:57:49 +00:00
chore: fix failing on node 14- (#1158)
This commit is contained in:
@@ -3,7 +3,7 @@ import nodeFetch from 'node-fetch';
|
|||||||
const TIMEOUT = 3000;
|
const TIMEOUT = 3000;
|
||||||
|
|
||||||
export default async (url: string, options = {}) => {
|
export default async (url: string, options = {}) => {
|
||||||
if (!AbortController) {
|
if (!global.AbortController) {
|
||||||
return nodeFetch(url, options);
|
return nodeFetch(url, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user