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

needle

Package Overview
Dependencies
Maintainers
1
Versions
112
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

needle - npm Package Compare versions

Comparing version 0.5.5 to 0.5.6

dump.rdb

16

lib/needle.js

@@ -83,3 +83,3 @@ //////////////////////////////////////////

request: function(uri, method, data, options, callback){
request: function(method, uri, data, options, callback){

@@ -345,21 +345,23 @@ var self = this;

exports.head = function(uri, options, callback){
return Needle.request(uri, 'HEAD', null, options, callback);
return Needle.request('HEAD', uri, null, options, callback);
}
exports.get = function(uri, options, callback){
return Needle.request(uri, 'GET', null, options, callback);
return Needle.request('GET', uri, null, options, callback);
}
exports.post = function(uri, data, options, callback){
return Needle.request(uri, 'POST', data, options, callback);
return Needle.request('POST', uri, data, options, callback);
}
exports.put = function(uri, data, options, callback){
return Needle.request(uri, 'PUT', data, options, callback);
return Needle.request('PUT', uri, data, options, callback);
}
exports.delete = function(uri, data, options, callback){
return Needle.request(uri, 'DELETE', data, options, callback);
return Needle.request('DELETE', uri, data, options, callback);
}
exports.request = Needle.request;
exports.request = function(method, uri, data, opts, callback) {
return Needle.request(method.toUpperCase(), uri, data, opts, callback);
};
{
"name": "needle"
, "version": "0.5.5"
, "version": "0.5.6"
, "description": "Tiny yet feature-packed HTTP client. With multipart, charset decoding and proxy support."

@@ -5,0 +5,0 @@ , "keywords": ["http", "https", "simple", "request", "client", "multipart", "upload", "proxy", "deflate", "timeout", "charset", "iconv"]

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