@snail-js/api 0.1.23 → 0.1.24

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/snail-api.js CHANGED
@@ -4120,7 +4120,7 @@ class SnailMethod {
4120
4120
  "response"
4121
4121
  );
4122
4122
  if (!isNoCache) {
4123
- !isSpecial && await this.setCacheData(serverName, response);
4123
+ !isSpecial && await this.setCacheData(serverName, response.data);
4124
4124
  }
4125
4125
  this.Response = response;
4126
4126
  this.applyHitSource(serverName);
@@ -4124,7 +4124,7 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
4124
4124
  "response"
4125
4125
  );
4126
4126
  if (!isNoCache) {
4127
- !isSpecial && await this.setCacheData(serverName, response);
4127
+ !isSpecial && await this.setCacheData(serverName, response.data);
4128
4128
  }
4129
4129
  this.Response = response;
4130
4130
  this.applyHitSource(serverName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@snail-js/api",
3
- "version": "0.1.23",
3
+ "version": "0.1.24",
4
4
  "description": "Http Request with Decorators Api, build on axios",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",