bukalapak-api
Advanced tools
Comparing version 0.1.2 to 0.1.4
@@ -22,2 +22,5 @@ "use strict"; | ||
auth = _ref.auth; | ||
var payload = /(post|put|patch)/i.test(method) && data; | ||
return api({ | ||
@@ -28,3 +31,3 @@ method: method, | ||
auth: auth, | ||
data: (/post/i.test(method) || /put/i.test(method) || /patch/i.test(method)) && data | ||
data: payload | ||
}).then(function (_ref2) { | ||
@@ -31,0 +34,0 @@ var data = _ref2.data; |
{ | ||
"name": "bukalapak-api", | ||
"version": "0.1.2", | ||
"version": "0.1.4", | ||
"main": "dist/index.js", | ||
@@ -17,3 +17,5 @@ "files": [ | ||
"babel-preset-env": "^1.4.0", | ||
"np": "^2.13.2" | ||
"np": "^2.13.2", | ||
"axios": "^0.16.1", | ||
"bluebird": "^3.5.0" | ||
}, | ||
@@ -20,0 +22,0 @@ "scripts": { |
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
6558
103
5