ywana-core8 0.1.24 → 0.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +7 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +7 -5
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +7 -5
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/http/client.js +8 -4
- package/src/widgets/login/ResetPasswordBoxTest.js +1 -1
package/dist/index.cjs
CHANGED
@@ -94,16 +94,18 @@ var fetchAsync = function fetchAsync(method, URL, body, token, headers) {
|
|
94
94
|
}();
|
95
95
|
return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
|
96
96
|
});
|
97
|
-
}, function (
|
98
|
-
if (
|
97
|
+
}, function (response) {
|
98
|
+
if (response instanceof response) {
|
99
99
|
throw {
|
100
|
-
|
100
|
+
response: response
|
101
101
|
};
|
102
102
|
}
|
103
|
-
return Promise.resolve(
|
103
|
+
return Promise.resolve(response.json()).then(function (json) {
|
104
104
|
throw {
|
105
105
|
success: false,
|
106
|
-
message: json.message || json.err
|
106
|
+
message: json.message || json.err,
|
107
|
+
status: response.status,
|
108
|
+
statusText: response.statusText
|
107
109
|
};
|
108
110
|
});
|
109
111
|
}));
|