cross-tab-worker-databus 0.21.57 → 0.21.58
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 +16 -0
- package/dist/centrifuge.js +1 -1
- package/dist/{chunk-ZH7VP3IY.js → chunk-X33QQUTG.js} +3 -3
- package/dist/chunk-X33QQUTG.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/roadmap.md +1 -1
- package/docs/zh/roadmap.md +1 -1
- package/package.json +7 -7
- package/dist/chunk-ZH7VP3IY.js.map +0 -7
package/dist/cjs/centrifuge.cjs
CHANGED
|
@@ -289,7 +289,7 @@ function getOrCreateTabId(environment, key = TAB_ID_STORAGE_KEY, options) {
|
|
|
289
289
|
try {
|
|
290
290
|
const existing = storage?.getItem(key);
|
|
291
291
|
const hasOpener = typeof window !== "undefined" && Boolean(window.opener);
|
|
292
|
-
const claimedByPeer = existing !== null && existing !== void 0 && existing !== "" && !
|
|
292
|
+
const claimedByPeer = existing !== null && existing !== void 0 && existing !== "" && !tabIdentityInitialized && options?.isIdentityClaimedByPeer?.(existing) === true;
|
|
293
293
|
if (existing && (!hasOpener || tabIdentityInitialized) && !claimedByPeer) {
|
|
294
294
|
tabIdentityInitialized = true;
|
|
295
295
|
cachedTabId = existing;
|
|
@@ -2771,7 +2771,7 @@ var SDK_VERSION = (
|
|
|
2771
2771
|
// declaration's type is `string | undefined` and the export's is `string`
|
|
2772
2772
|
// (dropping the conditional is TS2322, measured). Recorded here so the leg reads
|
|
2773
2773
|
// as a shape the harness cannot reach rather than as a case nobody exercised.
|
|
2774
|
-
true ? "0.21.
|
|
2774
|
+
true ? "0.21.58" : ""
|
|
2775
2775
|
);
|
|
2776
2776
|
|
|
2777
2777
|
// src/core/data-bus.ts
|