Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@travetto/net

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@travetto/net - npm Package Compare versions

Comparing version 0.6.7 to 0.6.8

5

package.json

@@ -26,4 +26,3 @@ {

},
"version": "0.6.7",
"gitHead": "db85544d26a8e9f9932ccc314b88f113fafbdee5"
}
"version": "0.6.8"
}

6

src/request.ts

@@ -152,3 +152,7 @@ import * as http from 'http';

if ((msg.statusCode || 200) > 299) {
reject(this.buildError({ message: message.toString(), status: msg.statusCode, payload: { headers: msg.headers } }));
if (msg.statusCode! > 399) {
reject(this.buildError({ message: message.toString(), status: msg.statusCode, payload: { headers: msg.headers } }));
} else {
reject({ status: msg.statusCode, message: 'Redirect', headers: msg.headers });
}
} else {

@@ -155,0 +159,0 @@ if (!responseHandler) {

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