etherreq 1.0.20 → 1.0.21
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/package.json +1 -1
- package/src/etherreq.js +1 -1
package/package.json
CHANGED
package/src/etherreq.js
CHANGED
|
@@ -26,7 +26,7 @@ export const create = (defaultConfig = {}) => {
|
|
|
26
26
|
};
|
|
27
27
|
|
|
28
28
|
const res = await fetch(url, options);
|
|
29
|
-
|
|
29
|
+
const data = await res.json();
|
|
30
30
|
if (!res.ok) {
|
|
31
31
|
const error = new Error(`HTTP 错误: ${res.status} - ${res.statusText}`);
|
|
32
32
|
error.response = {
|