Comparing version 0.0.11 to 0.0.12
@@ -22,4 +22,4 @@ 'use strict'; | ||
var promise = new Promise(function (resolve, reject) { | ||
xhr.then(resolve).fail(function (jqXHR, textStatus) { | ||
return reject(textStatus); | ||
xhr.done(resolve).fail(function (jqXHR, textStatus) { | ||
return reject(JSON.parse(jqXHR.responseText).errors || {}); | ||
}); | ||
@@ -26,0 +26,0 @@ }); |
{ | ||
"name": "mobx-rest", | ||
"version": "0.0.11", | ||
"version": "0.0.12", | ||
"description": "REST conventions for mobx.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
38575