@jsenv/fetch
Advanced tools
Comparing version 1.1.72 to 1.1.73
{ | ||
"name": "@jsenv/fetch", | ||
"version": "1.1.72", | ||
"version": "1.1.73", | ||
"description": "Unified url fetcher (http, http, file, data)", | ||
@@ -39,5 +39,5 @@ "license": "MIT", | ||
"@jsenv/urls": "2.5.2", | ||
"@jsenv/server": "15.2.19", | ||
"@jsenv/server": "15.3.0", | ||
"node-fetch": "3.3.2" | ||
} | ||
} |
@@ -181,3 +181,3 @@ export const fetchUsingXHR = async ( | ||
return true; | ||
} catch (e) { | ||
} catch { | ||
return false; | ||
@@ -184,0 +184,0 @@ } |
// https://github.com/node-fetch/node-fetch/blob/8c197f8982a238b3c345c64b17bfa92e16b4f7c4/src/response.js#L1 | ||
import nodeFetch, { Response } from "node-fetch"; | ||
import { Agent } from "node:https"; | ||
import { fetchFileSystem } from "@jsenv/server"; | ||
@@ -12,2 +9,4 @@ import { | ||
import { DATA_URL } from "@jsenv/urls"; | ||
import nodeFetch, { Response } from "node-fetch"; | ||
import { Agent } from "node:https"; | ||
@@ -29,3 +28,3 @@ export const fetchUrl = async ( | ||
url = String(new URL(url)); | ||
} catch (e) { | ||
} catch { | ||
throw new Error( | ||
@@ -32,0 +31,0 @@ `fetchUrl first argument must be an absolute url, received ${url}`, |
16731
+ Added@jsenv/server@15.3.0(transitive)
- Removed@jsenv/server@15.2.19(transitive)
Updated@jsenv/server@15.3.0