@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 +5 -1
- package/dist/index.mjs +5 -1
- package/package.json +1 -1
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
|
-
|
|
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
|
-
|
|
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;
|