cross-tab-worker-databus 0.20.52 → 0.20.53
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/CHANGELOG.md +6 -0
- package/dist/centrifuge.js +1 -1
- package/dist/{chunk-WQUDZIYO.js → chunk-MHJNBVEK.js} +3 -2
- package/dist/{chunk-WQUDZIYO.js.map → chunk-MHJNBVEK.js.map} +2 -2
- package/dist/cjs/centrifuge.cjs +2 -1
- package/dist/cjs/centrifuge.cjs.map +2 -2
- package/dist/cjs/index.cjs +2 -1
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/core/data-bus.d.ts +1 -0
- package/dist/core/data-bus.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/docs/roadmap.md +5 -1
- package/docs/zh/roadmap.md +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/centrifuge.js
CHANGED
|
@@ -1644,7 +1644,8 @@ var CrossTabDataBus = class {
|
|
|
1644
1644
|
}
|
|
1645
1645
|
/** Return the current automatic transport recovery state. `hasError` means a transport error is currently retained. */
|
|
1646
1646
|
getRecoveryStats() {
|
|
1647
|
-
|
|
1647
|
+
const errorMessage = this.lastError instanceof Error ? this.lastError.message : this.lastError === null ? null : String(this.lastError);
|
|
1648
|
+
return { attempt: this.recoveryAttempt, exhausted: this.recoveryExhausted, maxAttempts: this.recoveryMaxAttempts, hasError: this.lastError !== null, errorMessage };
|
|
1648
1649
|
}
|
|
1649
1650
|
/** Snapshot of the cluster state (workers, routes, assignments).
|
|
1650
1651
|
* For diagnostics only — the returned object is a shallow copy but
|
|
@@ -2120,4 +2121,4 @@ export {
|
|
|
2120
2121
|
parseDataBusPublication,
|
|
2121
2122
|
selectWorkerBackend
|
|
2122
2123
|
};
|
|
2123
|
-
//# sourceMappingURL=chunk-
|
|
2124
|
+
//# sourceMappingURL=chunk-MHJNBVEK.js.map
|