producteca-sdk
Advanced tools
Comparing version 4.0.1 to 5.0.1
@@ -9,3 +9,3 @@ (function() { | ||
request = Promise.promisify(require("request")); | ||
request = require("request-promise"); | ||
@@ -73,8 +73,3 @@ module.exports = Client = (function() { | ||
} | ||
return request(options).then(function(res) { | ||
if (res.statusCode >= 400) { | ||
throw res.body; | ||
} | ||
return res.body; | ||
}); | ||
return request(options).promise(); | ||
}; | ||
@@ -81,0 +76,0 @@ |
@@ -8,3 +8,3 @@ { | ||
}, | ||
"version": "4.0.1", | ||
"version": "5.0.1", | ||
"main": "build/sdk.js", | ||
@@ -16,3 +16,4 @@ "dependencies": { | ||
"q": "~1.0.1", | ||
"request": "^2.72.0" | ||
"request": "^2.83.0", | ||
"request-promise": "^4.2.2" | ||
}, | ||
@@ -19,0 +20,0 @@ "devDependencies": { |
30424
6
743
+ Addedrequest-promise@^4.2.2
+ Addedrequest-promise@4.2.6(transitive)
+ Addedrequest-promise-core@1.1.4(transitive)
+ Addedstealthy-require@1.1.1(transitive)
Updatedrequest@^2.83.0