idea-toolbox
Advanced tools
Comparing version 0.11.5 to 0.11.6
@@ -539,6 +539,10 @@ 'use strict'; | ||
options.body = options.body ? JSON.stringify(options.body) : null; | ||
options.url = encodeURI(options.url); | ||
// execute the request and reject or resolve the promise | ||
Request[method](options, (err, data) => { | ||
if(err) reject(err); | ||
else resolve(JSON.parse(data.body)); | ||
else { | ||
try { resolve(JSON.parse(data.body)); } | ||
catch(err) { return reject(err); } | ||
} | ||
}); | ||
@@ -545,0 +549,0 @@ }, delay); |
{ | ||
"name": "idea-toolbox", | ||
"version": "0.11.5", | ||
"version": "0.11.6", | ||
"description": "IDEA's utility functions", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
25415
557