Socket
Socket
Sign inDemoInstall

http-proxy-node16

Package Overview
Dependencies
3
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

4

lib/http-proxy/passes/web-incoming.js

@@ -22,3 +22,3 @@ var httpNative = require('http'),

// 'aborted' event stopped working reliably on v15.5.0 and was later removed entirely
var hasAborted = (function () {
var supportsAbortedEvent = (function () {
var ver = process.versions.node.split('.').map(Number);

@@ -152,3 +152,3 @@ return ver[0] <= 14 || ver[0] === 15 && ver[1] <= 4;

// Ensure we abort proxy if request is aborted
if (hasAborted) {
if (supportsAbortedEvent) {
req.on('aborted', function () {

@@ -155,0 +155,0 @@ proxyReq.abort();

@@ -132,3 +132,3 @@ var http = require('http'),

socket.on('error', function () {
proxySocket.end();
proxySocket.destroy();
});

@@ -135,0 +135,0 @@

{
"name": "http-proxy-node16",
"version": "1.0.2",
"version": "1.0.3",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc