@nizza/core 0.4.5-alpha.5 → 0.4.5-alpha.6

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.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("nizza"), this.channel.onmessage = (e) => this.handleMessage(e), this.channel.onmessageerror = (e) => ee.error("NizzaBroadcastChannel:", e);
840
- } catch (e) {
841
- throw ee.error("Failed to create NizzaBroadcastChannel:", e), e;
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
  },