New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jsenv/fetch

Package Overview
Dependencies
Maintainers
0
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jsenv/fetch - npm Package Compare versions

Comparing version 1.1.72 to 1.1.73

4

package.json
{
"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}`,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc