diff --git a/AUTHORS b/AUTHORS index 0d29c56..d669173 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,2 +1,3 @@ AJ ONeal (https://coolaj86.com/) Nyaundi Brian (https://danleyb2.online/) +Hitesh Walia \ No newline at end of file diff --git a/lib/index.js b/lib/index.js index 3f45af4..0bed213 100644 --- a/lib/index.js +++ b/lib/index.js @@ -123,6 +123,7 @@ module.exports.create = function(config) { headers: { Authorization: auth }, json: data || true }; + return request(req).then(function(resp) { if (resp.statusCode < 200 || resp.statusCode >= 300) { req.headers.Authorization = redacted; @@ -148,6 +149,7 @@ module.exports.create = function(config) { '. Check subdomain, api key, etc' ); } + return resp; }); } }; diff --git a/package.json b/package.json index 807d7ad..b56bb89 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ ], "author": "Nyaundi Brian (https://danleyb2.online/)", "contributors": [ - "AJ ONeal (https://coolaj86.com/)" + "AJ ONeal (https://coolaj86.com/)", + "Hitesh Walia " ], "license": "MPL-2.0", "dependencies": {},