etherreq 1.0.19 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/etherreq.js +1 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "etherreq",
3
- "version": "1.0.19",
3
+ "version": "1.0.21",
4
4
  "description": "A lightweight custom HTTP request library.",
5
5
  "main": "src/index.js",
6
6
  "types": "src/types/etherreq.d.ts",
package/src/etherreq.js CHANGED
@@ -26,8 +26,7 @@ export const create = (defaultConfig = {}) => {
26
26
  };
27
27
 
28
28
  const res = await fetch(url, options);
29
- const data = await res.json();
30
- console.log(data);
29
+ const data = await res.json();
31
30
  if (!res.ok) {
32
31
  const error = new Error(`HTTP 错误: ${res.status} - ${res.statusText}`);
33
32
  error.response = {