@nizza/core 0.5.0-beta.11 → 0.5.0-beta.12

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
@@ -970,7 +970,8 @@ const Qe = /* @__PURE__ */ Te(Kn), K = class K {
970
970
  });
971
971
  }
972
972
  static create(e) {
973
- return window != null && window.nzlog || (K.instance = new K(e), window.nzlog = K.instance), window.nzlog;
973
+ const t = `${e}log`;
974
+ return window != null && window[t] || (K.instance = new K(e), window[t] = K.instance), window[t];
974
975
  }
975
976
  createLogger(e) {
976
977
  const t = this.namePrefix + e.toLowerCase(), i = ae.getLogger(t), a = localStorage.getItem(`loglevel:${t}`);