Socket
Socket
Sign inDemoInstall

wreck

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wreck - npm Package Compare versions

Comparing version 7.2.0 to 7.2.1

47

lib/index.js

@@ -150,3 +150,2 @@ 'use strict';

};
req.once('error', onError);

@@ -205,3 +204,3 @@

if (!callback || err) {
if (err) {
req.abort();

@@ -233,2 +232,23 @@ }

// Custom abort method to detect early aborts
const _abort = req.abort;
let aborted = false;
req.abort = () => {
if (!aborted && !req.res && !req.socket) {
process.nextTick(() => {
// Fake an ECONNRESET error
const error = new Error('socket hang up');
error.code = 'ECONNRESET';
finishOnce(error);
});
}
aborted = true;
return _abort.call(req);
};
// Write payload

@@ -251,3 +271,3 @@

stream.pipe(req);
return;
return req;
}

@@ -258,23 +278,2 @@

// Custom abort method to detect early aborts
const _abort = req.abort;
let aborted = false;
req.abort = () => {
if (!aborted && !req.res && !req.socket) {
process.nextTick(() => {
// Fake an ECONNRESET error
const error = new Error('socket hang up');
error.code = 'ECONNRESET';
finishOnce(error);
});
}
aborted = true;
return _abort.call(req);
};
// Finalize request

@@ -281,0 +280,0 @@

{
"name": "wreck",
"description": "HTTP Client Utilities",
"version": "7.2.0",
"version": "7.2.1",
"repository": "git://github.com/hapijs/wreck",

@@ -17,3 +17,3 @@ "main": "lib/index",

"boom": "3.x.x",
"hoek": "3.x.x"
"hoek": "4.x.x"
},

@@ -20,0 +20,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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