Comparing version 2.1.5 to 2.1.6
@@ -7,2 +7,9 @@ 'use strict'; | ||
exports.HTTPError = undefined; | ||
exports.get = get; | ||
exports.post = post; | ||
exports.put = put; | ||
exports.patch = patch; | ||
exports.hdelete = hdelete; | ||
exports.stream = stream; | ||
exports.request = request; | ||
@@ -300,2 +307,25 @@ var _util = require('util'); | ||
} | ||
exports.HTTPError = HTTPError; | ||
exports.HTTPError = HTTPError; // commonjs helpers | ||
function get(url, options = {}) { | ||
return HTTP.get(url, options); | ||
} | ||
function post(url, options = {}) { | ||
return HTTP.post(url, options); | ||
} | ||
function put(url, options = {}) { | ||
return HTTP.put(url, options); | ||
} | ||
function patch(url, options = {}) { | ||
return HTTP.patch(url, options); | ||
} | ||
function hdelete(url, options = {}) { | ||
return HTTP.delete(url, options); | ||
} | ||
function stream(url, options = {}) { | ||
return HTTP.stream(url, options); | ||
} | ||
function request(url, options = {}) { | ||
return HTTP.request(url, options); | ||
} |
{ | ||
"name": "http-call", | ||
"description": "make http requests", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"author": "Jeff Dickey @dickeyxxx", | ||
@@ -6,0 +6,0 @@ "bugs": "https://github.com/dickeyxxx/http-call/issues", |
Sorry, the diff of this file is not supported yet
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
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
23919
352