@nizza/core 0.4.5-alpha.5 → 0.4.5-alpha.7
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.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +5 -5
- package/dist/index.mjs.map +1 -1
- package/dist/lib/event-buses/BroadcastChannelEventBus.d.ts +1 -1
- package/dist/lib/nizza-store/ConfigManager.d.ts +3 -3
- package/dist/lib/nizza-store/NizzaStore.d.ts +1 -15
- package/dist/lib/nizza-store/NizzaStore.v1.d.ts +3 -3
- package/dist/lib/types/nizza/globalStore.d.ts +41 -0
- package/dist/lib/types/nizza/index.d.ts +1 -1
- package/dist/lib/types/nizza/main.d.ts +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
- package/dist/lib/types/nizza/nizzaGlobalObject.d.ts +0 -15
package/dist/index.mjs
CHANGED
|
@@ -831,14 +831,14 @@ function Zn(n, e) {
|
|
|
831
831
|
);
|
|
832
832
|
}
|
|
833
833
|
class Xn {
|
|
834
|
-
constructor() {
|
|
834
|
+
constructor(e) {
|
|
835
835
|
x(this, "channel");
|
|
836
836
|
x(this, "listeners", /* @__PURE__ */ new Map());
|
|
837
837
|
x(this, "eventQueue", /* @__PURE__ */ new Map());
|
|
838
838
|
try {
|
|
839
|
-
this.channel = new BroadcastChannel(
|
|
840
|
-
} catch (
|
|
841
|
-
throw ee.error("Failed to create NizzaBroadcastChannel:",
|
|
839
|
+
this.channel = new BroadcastChannel(e), this.channel.onmessage = (t) => this.handleMessage(t), this.channel.onmessageerror = (t) => ee.error("NizzaBroadcastChannel:", t);
|
|
840
|
+
} catch (t) {
|
|
841
|
+
throw ee.error("Failed to create NizzaBroadcastChannel:", t), t;
|
|
842
842
|
}
|
|
843
843
|
}
|
|
844
844
|
/**
|
|
@@ -1235,7 +1235,7 @@ const z = Pn({
|
|
|
1235
1235
|
setProductDataSource: ai,
|
|
1236
1236
|
instanceId: ei(),
|
|
1237
1237
|
log: new ni("nz"),
|
|
1238
|
-
eventBus: new Xn(),
|
|
1238
|
+
eventBus: new Xn("nizza"),
|
|
1239
1239
|
get account() {
|
|
1240
1240
|
return z.account;
|
|
1241
1241
|
},
|