etherreq 1.1.3 → 1.1.5

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/request.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "etherreq",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
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/request.js CHANGED
@@ -32,7 +32,8 @@ instance.interceptors.request.use((config) => {
32
32
  console.log(cached);
33
33
 
34
34
 
35
- return Promise.resolve(cached); // ✅ 返回响应对象,中断请求链
35
+ return Promise.resolve(fakeResponse.data
36
+ ); // ✅ 返回响应对象,中断请求链
36
37
  }
37
38
  }
38
39