Comparing version 0.5.5 to 0.5.6
@@ -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"] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
36185
16
726
8