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

@whatwg-node/node-fetch

Package Overview
Dependencies
Maintainers
1
Versions
631
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@whatwg-node/node-fetch - npm Package Compare versions

Comparing version 0.7.6-alpha-20250109001305-3002f5a56f2e1931522968b3d6eb544aa91559b6 to 0.7.6-alpha-20250109232708-2991d90eb21112e812c9058f8263208dd56c7280

24

cjs/fetchCurl.js

@@ -66,14 +66,15 @@ "use strict";

let streamResolved;
if (fetchRequest['_signal']) {
fetchRequest['_signal'].onabort = () => {
if (curlHandle.isOpen) {
try {
curlHandle.pause(CurlPause.Recv);
}
catch (e) {
deferredPromise.reject(e);
}
function onAbort() {
if (curlHandle.isOpen) {
try {
curlHandle.pause(CurlPause.Recv);
}
};
catch (e) {
deferredPromise.reject(e);
}
}
}
if (fetchRequest['_signal']) {
fetchRequest['_signal'].addEventListener('abort', onAbort, { once: true });
}
curlHandle.once('end', function endListener() {

@@ -86,2 +87,5 @@ try {

}
if (fetchRequest['_signal']) {
fetchRequest['_signal'].removeEventListener('abort', onAbort);
}
});

@@ -88,0 +92,0 @@ curlHandle.once('error', function errorListener(error) {

@@ -63,14 +63,15 @@ import { PassThrough, Readable } from 'node:stream';

let streamResolved;
if (fetchRequest['_signal']) {
fetchRequest['_signal'].onabort = () => {
if (curlHandle.isOpen) {
try {
curlHandle.pause(CurlPause.Recv);
}
catch (e) {
deferredPromise.reject(e);
}
function onAbort() {
if (curlHandle.isOpen) {
try {
curlHandle.pause(CurlPause.Recv);
}
};
catch (e) {
deferredPromise.reject(e);
}
}
}
if (fetchRequest['_signal']) {
fetchRequest['_signal'].addEventListener('abort', onAbort, { once: true });
}
curlHandle.once('end', function endListener() {

@@ -83,2 +84,5 @@ try {

}
if (fetchRequest['_signal']) {
fetchRequest['_signal'].removeEventListener('abort', onAbort);
}
});

@@ -85,0 +89,0 @@ curlHandle.once('error', function errorListener(error) {

{
"name": "@whatwg-node/node-fetch",
"version": "0.7.6-alpha-20250109001305-3002f5a56f2e1931522968b3d6eb544aa91559b6",
"version": "0.7.6-alpha-20250109232708-2991d90eb21112e812c9058f8263208dd56c7280",
"description": "Fetch API implementation for Node",

@@ -5,0 +5,0 @@ "sideEffects": false,

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