Comparing version 2.2.6 to 2.2.7
@@ -50,9 +50,11 @@ 'use strict'; | ||
} | ||
if (body.success === false) { | ||
return reject(new Error(body.message)); | ||
if (body.success) { | ||
resolve(body.payload); | ||
console.log('rpc :' + url + ': success'); | ||
} else { | ||
reject(new Error(body.message)); | ||
console.error('rpc error:', body); | ||
} | ||
console.log('rpc :' + url + ': success'); | ||
resolve(body.payload); | ||
}); | ||
}); | ||
} |
{ | ||
"name": "ibe-utils", | ||
"version": "2.2.6", | ||
"version": "2.2.7", | ||
"description": "To Be A Better Me.", | ||
@@ -5,0 +5,0 @@ "license": "", |
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
1552
115767