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 5.0.0 to 5.0.1

9

lib/index.js

@@ -53,6 +53,2 @@

if (options.rejectUnauthorized !== undefined && uri.protocol === 'https:') {
options.agent = options.rejectUnauthorized ? exports.agents.https : exports.agents.httpsAllowUnauthorized;
}
var redirects = (options.hasOwnProperty('redirects') ? options.redirects : false); // Needed to allow 0 as valid value when passed recursively

@@ -65,3 +61,6 @@

if (options.agent || options.agent === false) {
if (options.rejectUnauthorized !== undefined && uri.protocol === 'https:') {
uri.agent = options.rejectUnauthorized ? exports.agents.https : exports.agents.httpsAllowUnauthorized;
}
else if (options.agent || options.agent === false) {
uri.agent = options.agent;

@@ -68,0 +67,0 @@ }

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

@@ -6,0 +6,0 @@ "main": "index",

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