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

httpreq

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httpreq - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

22

httpreq.js

@@ -56,2 +56,24 @@ /*

exports.put = function(url, options, callback){
// if only 2 args are provided
if(callback === undefined && options && typeof(options)==="function")
callback = options;
var moreOptions = options;
moreOptions.url = url;
moreOptions.method = 'PUT';
doRequest(moreOptions, callback);
}
exports.delete = function(url, options, callback){
// if only 2 args are provided
if(callback === undefined && options && typeof(options)==="function")
callback = options;
var moreOptions = options;
moreOptions.url = url;
moreOptions.method = 'DELETE';
doRequest(moreOptions, callback);
}
function doRequest(o, callback){

@@ -58,0 +80,0 @@ if(o.maxRedirects === undefined){

2

package.json
{
"name": "httpreq",
"description": "node-httpreq is a node.js library to do HTTP(S) requests the easy way",
"version": "0.3.2",
"version": "0.3.3",
"author": {

@@ -6,0 +6,0 @@ "name": "Sam Decrock",

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