chore: fix failing on node 14- (#1158)

This commit is contained in:
Andrew Tatomyr
2023-07-06 15:31:32 +03:00
committed by GitHub
parent f47d3e590d
commit 7f19ade2b5

View File

@@ -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);
} }