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

curlrequest

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

curlrequest - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

file.js

5

index.js

@@ -209,4 +209,5 @@ var util = require('util')

if (options.headers) {
var normalised_key;
for (key in options.headers) {
key = key.replace(/[_-]/g, ' ').split(' ').map(function (str) {
normalised_key = key.replace(/[_-]/g, ' ').split(' ').map(function (str) {
if (str.length) {

@@ -217,3 +218,3 @@ str = str[0].toUpperCase() + str.substr(1);

}).join('-');
headers[key] = options.headers[key];
headers[normalised_key] = options.headers[key];
}

@@ -220,0 +221,0 @@ delete options.headers;

2

package.json
{ "name" : "curlrequest",
"description" : "A curl wrapper for node",
"version" : "0.5.0",
"version" : "0.5.1",
"homepage" : "https://github.com/chriso/curlrequest",

@@ -5,0 +5,0 @@ "author" : "Chris O'Hara <cohara87@gmail.com>",

@@ -6,2 +6,3 @@ var curl = require('./');

, encoding: null
, headers: { 'foo bar': 'wha' }
};

@@ -12,7 +13,7 @@

console.log(meta.args);
console.log(data);
console.log(data.toString());
console.log(typeof data);
//console.log(data);
//console.log(data.toString());
//console.log(typeof data);
//next();
});
})();
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