@yuneta/gobj-js 7.25.7 → 7.25.8

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.
@@ -1216,13 +1216,14 @@ function Ht(e, n, r) {
1216
1216
  let c = Qn(e, a, "subs_flag", 0, qt.KW_REQUIRED), f = Xn(e, a, "event", "", qt.KW_REQUIRED);
1217
1217
  if (Vn(f) || 0 === Kn(f, n)) {
1218
1218
  er(e, a, "__config__", null, 0);
1219
- let o = er(e, a, "__global__", null, 0), l = er(e, a, "__local__", null, 0), f = tr(e, a, "__filter__", null, 0), g = r, p = 1;
1220
- if (e.gclass.gmt.mt_publication_filter ? p = e.gclass.gmt.mt_publication_filter(e, n, g, u) : An(f) > 0 && (p = sr(g, f) ? 1 : 0, s && (I(t("💜💜🔄%s publishing with filter, event '%s', subscriber'%s', publisher %s", p ? "👍" : "👎", n || "", Ze(u), Ze(e))), mn(f))), p < 0) break;
1221
- if (!p) continue;
1222
- let d = $t(u, n, !0);
1223
- if (d && d.event_flag & R.EVF_SYSTEM_EVENT && !At(u, d.event_name, 0)) continue;
1224
- l && Bn(g, l), o && Tn(g, o), s && (I(1 === k ? t("🔝🔄 %s (%s) %s%s", n || "", n || "", u.running ? "" : "!!", Ze(u)) : t("🔝🔄 mach(%s%s), st: %s, ev: %s, from(%s%s)", u.running ? "" : "!!", Ze(u), Dt(u), n || "", e && !e.running ? "!!" : "", Ze(e))), J(e) && Dn(g) && mn(g));
1225
- let b = Ut(u, n, g, e);
1219
+ let o = er(e, a, "__global__", null, 0), l = er(e, a, "__local__", null, 0), f = tr(e, a, "__filter__", null, 0), g = 1;
1220
+ if (e.gclass.gmt.mt_publication_filter ? g = e.gclass.gmt.mt_publication_filter(e, n, r, u) : An(f) > 0 && (g = sr(r, f) ? 1 : 0, s && (I(t("💜💜🔄%s publishing with filter, event '%s', subscriber'%s', publisher %s", g ? "👍" : "👎", n || "", Ze(u), Ze(e))), mn(f))), g < 0) break;
1221
+ if (!g) continue;
1222
+ let p = $t(u, n, !0);
1223
+ if (p && p.event_flag & R.EVF_SYSTEM_EVENT && !At(u, p.event_name, 0)) continue;
1224
+ let d = r;
1225
+ (An(l) > 0 || An(o) > 0) && (d = Object.assign({}, r)), An(l) > 0 && Bn(d, l), An(o) > 0 && Tn(d, hn(o)), s && (I(1 === k ? t("🔝🔄 %s (%s) %s%s", n || "", n || "", u.running ? "" : "!!", Ze(u)) : t("🔝🔄 mach(%s%s), st: %s, ev: %s, from(%s%s)", u.running ? "" : "!!", Ze(u), Dt(u), n || "", e && !e.running ? "!!" : "", Ze(e))), J(e) && Dn(d) && mn(d));
1226
+ let b = Ut(u, n, d, e);
1226
1227
  if (b < 0 && c & Pt.__own_event__) {
1227
1228
  i = -1;
1228
1229
  break;
@@ -2487,7 +2488,7 @@ var No = {
2487
2488
  },
2488
2489
  mt_inject_event: function(e, t, n, r) {
2489
2490
  if ("ST_SESSION" !== Dt(e)) return window.console.error("Not in session"), -1;
2490
- if (n || (n = {}), hr(e, n, ro));
2491
+ if (n = Object.assign({}, kn(n) ? n : {}), kn(n.__md_iev__) && (n.__md_iev__ = hn(n.__md_iev__)), hr(e, n, ro));
2491
2492
  else {
2492
2493
  let o = po(e, Qe(r), Xn(e, n, "__service__", 0, 0));
2493
2494
  Sn(n, "__service__"), mr(e, n, "__message__", t), mr(e, n, ro, o);