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
|
@@ -149,7 +149,7 @@ function getOrCreateTabId(environment, key = TAB_ID_STORAGE_KEY, options) {
|
|
|
149
149
|
try {
|
|
150
150
|
const existing = storage?.getItem(key);
|
|
151
151
|
const hasOpener = typeof window !== "undefined" && Boolean(window.opener);
|
|
152
|
-
const claimedByPeer = existing !== null && existing !== void 0 && existing !== "" && !
|
|
152
|
+
const claimedByPeer = existing !== null && existing !== void 0 && existing !== "" && !tabIdentityInitialized && options?.isIdentityClaimedByPeer?.(existing) === true;
|
|
153
153
|
if (existing && (!hasOpener || tabIdentityInitialized) && !claimedByPeer) {
|
|
154
154
|
tabIdentityInitialized = true;
|
|
155
155
|
cachedTabId = existing;
|
|
@@ -2642,7 +2642,7 @@ var SDK_VERSION = (
|
|
|
2642
2642
|
// declaration's type is `string | undefined` and the export's is `string`
|
|
2643
2643
|
// (dropping the conditional is TS2322, measured). Recorded here so the leg reads
|
|
2644
2644
|
// as a shape the harness cannot reach rather than as a case nobody exercised.
|
|
2645
|
-
true ? "0.21.
|
|
2645
|
+
true ? "0.21.59" : ""
|
|
2646
2646
|
);
|
|
2647
2647
|
|
|
2648
2648
|
// src/core/data-bus.ts
|
|
@@ -3895,4 +3895,4 @@ export {
|
|
|
3895
3895
|
parseDataBusPublication,
|
|
3896
3896
|
selectWorkerBackend
|
|
3897
3897
|
};
|
|
3898
|
-
//# sourceMappingURL=chunk-
|
|
3898
|
+
//# sourceMappingURL=chunk-SGZG6775.js.map
|