@fenelabs/fene-sdk 0.7.2 → 0.7.4
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.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -258,9 +258,9 @@ var ResonanceClient = class {
|
|
|
258
258
|
const duration = Date.now() - startTime;
|
|
259
259
|
if (response.status === 401 && !this.isRefreshing) {
|
|
260
260
|
this.isRefreshing = true;
|
|
261
|
-
const
|
|
261
|
+
const refreshResult = await this.refresh();
|
|
262
262
|
this.isRefreshing = false;
|
|
263
|
-
if (
|
|
263
|
+
if (refreshResult.success) {
|
|
264
264
|
return this.executeRequest(path, options, attemptNumber);
|
|
265
265
|
}
|
|
266
266
|
eventBus.emit("api:unauthorized", {
|
package/dist/index.mjs
CHANGED
|
@@ -222,9 +222,9 @@ var ResonanceClient = class {
|
|
|
222
222
|
const duration = Date.now() - startTime;
|
|
223
223
|
if (response.status === 401 && !this.isRefreshing) {
|
|
224
224
|
this.isRefreshing = true;
|
|
225
|
-
const
|
|
225
|
+
const refreshResult = await this.refresh();
|
|
226
226
|
this.isRefreshing = false;
|
|
227
|
-
if (
|
|
227
|
+
if (refreshResult.success) {
|
|
228
228
|
return this.executeRequest(path, options, attemptNumber);
|
|
229
229
|
}
|
|
230
230
|
eventBus.emit("api:unauthorized", {
|