cross-tab-worker-databus 0.21.57 → 0.21.59
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 +28 -0
- package/README.md +1 -1
- package/README.zh.md +1 -1
- package/dist/centrifuge-session.d.ts.map +1 -1
- package/dist/centrifuge.js +1 -1
- package/dist/centrifuge.js.map +2 -2
- package/dist/centrifuge.shared.worker.js +1682 -644
- package/dist/centrifuge.shared.worker.js.map +3 -3
- package/dist/centrifuge.worker.js +1682 -644
- package/dist/centrifuge.worker.js.map +3 -3
- package/dist/{chunk-ZH7VP3IY.js → chunk-SGZG6775.js} +3 -3
- package/dist/chunk-SGZG6775.js.map +7 -0
- package/dist/cjs/centrifuge.cjs +2 -2
- package/dist/cjs/centrifuge.cjs.map +2 -2
- package/dist/cjs/index.cjs +2 -2
- package/dist/cjs/index.cjs.map +2 -2
- package/dist/core/environment.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/docs/api.md +4 -0
- package/docs/configuration.md +1 -1
- package/docs/roadmap.md +1 -1
- package/docs/zh/api.md +4 -0
- package/docs/zh/configuration.md +1 -1
- package/docs/zh/roadmap.md +1 -1
- package/package.json +13 -13
- package/dist/chunk-ZH7VP3IY.js.map +0 -7
package/dist/cjs/index.cjs
CHANGED
|
@@ -293,7 +293,7 @@ function getOrCreateTabId(environment, key = TAB_ID_STORAGE_KEY, options) {
|
|
|
293
293
|
try {
|
|
294
294
|
const existing = storage?.getItem(key);
|
|
295
295
|
const hasOpener = typeof window !== "undefined" && Boolean(window.opener);
|
|
296
|
-
const claimedByPeer = existing !== null && existing !== void 0 && existing !== "" && !
|
|
296
|
+
const claimedByPeer = existing !== null && existing !== void 0 && existing !== "" && !tabIdentityInitialized && options?.isIdentityClaimedByPeer?.(existing) === true;
|
|
297
297
|
if (existing && (!hasOpener || tabIdentityInitialized) && !claimedByPeer) {
|
|
298
298
|
tabIdentityInitialized = true;
|
|
299
299
|
cachedTabId = existing;
|
|
@@ -2737,7 +2737,7 @@ var SDK_VERSION = (
|
|
|
2737
2737
|
// declaration's type is `string | undefined` and the export's is `string`
|
|
2738
2738
|
// (dropping the conditional is TS2322, measured). Recorded here so the leg reads
|
|
2739
2739
|
// as a shape the harness cannot reach rather than as a case nobody exercised.
|
|
2740
|
-
true ? "0.21.
|
|
2740
|
+
true ? "0.21.59" : ""
|
|
2741
2741
|
);
|
|
2742
2742
|
|
|
2743
2743
|
// src/core/data-bus.ts
|