@natsuneko-laboratory/catalyst-sdk 0.3.1 → 0.3.2

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.js CHANGED
@@ -141,7 +141,11 @@ var HttpClient = class {
141
141
  for (const interceptor of this.interceptors) {
142
142
  const shouldRetry = await interceptor.retry(req, error);
143
143
  if (shouldRetry) {
144
- return this.executeWithRetry(req, endpoint);
144
+ let retryReq = this.buildRequest(endpoint);
145
+ for (const adaptInterceptor of this.interceptors) {
146
+ retryReq = await adaptInterceptor.adapt(retryReq);
147
+ }
148
+ return this.executeWithRetry(retryReq, endpoint);
145
149
  }
146
150
  }
147
151
  throw error;
package/dist/index.mjs CHANGED
@@ -92,7 +92,11 @@ var HttpClient = class {
92
92
  for (const interceptor of this.interceptors) {
93
93
  const shouldRetry = await interceptor.retry(req, error);
94
94
  if (shouldRetry) {
95
- return this.executeWithRetry(req, endpoint);
95
+ let retryReq = this.buildRequest(endpoint);
96
+ for (const adaptInterceptor of this.interceptors) {
97
+ retryReq = await adaptInterceptor.adapt(retryReq);
98
+ }
99
+ return this.executeWithRetry(retryReq, endpoint);
96
100
  }
97
101
  }
98
102
  throw error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@natsuneko-laboratory/catalyst-sdk",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "TypeScript/JavaScript SDK for the Natsuneko Laboratory platform",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",