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

request-ssl

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request-ssl - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

12

lib/index.js

@@ -265,6 +265,6 @@ /**

if (_.isObject(args[0])) {
args[0].method = k;
args[0].method = _translateMethod(k);
}
else {
args[0] = {url:args[0], method: k};
args[0] = {url:args[0], method: _translateMethod(k)};
}

@@ -275,2 +275,10 @@ return Request.apply(null, args);

function _translateMethod(method) {
var m = method;
m = m.toUpperCase();
if(m === 'DEL') {
m = 'DELETE'; }
return m;
}
// these can just be patched

@@ -277,0 +285,0 @@ ['forever','defaults','cookie','jar'].forEach(function(k){

2

package.json
{
"name": "request-ssl",
"version": "0.0.5",
"version": "0.0.6",
"description": "Pinned SSL version of the Request library",

@@ -5,0 +5,0 @@ "main": "index.js",

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