@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.
@@ -1217,13 +1217,14 @@ var gobjJs = function(e) {
1217
1217
  let c = Xn(e, a, "subs_flag", 0, zt.KW_REQUIRED), f = Zn(e, a, "event", "", zt.KW_REQUIRED);
1218
1218
  if (Wn(f) || 0 === Yn(f, t)) {
1219
1219
  tr(e, a, "__config__", null, 0);
1220
- let l = tr(e, a, "__global__", null, 0), s = tr(e, a, "__local__", null, 0), f = nr(e, a, "__filter__", null, 0), g = r, d = 1;
1221
- if (e.gclass.gmt.mt_publication_filter ? d = e.gclass.gmt.mt_publication_filter(e, t, g, u) : In(f) > 0 && (d = sr(g, f) ? 1 : 0, o && (L(n("💜💜🔄%s publishing with filter, event '%s', subscriber'%s', publisher %s", d ? "👍" : "👎", t || "", et(u), et(e))), hn(f))), d < 0) break;
1222
- if (!d) continue;
1223
- let b = kt(u, t, !0);
1224
- if (b && b.event_flag & D.EVF_SYSTEM_EVENT && !It(u, b.event_name, 0)) continue;
1225
- s && Jn(g, s), l && yn(g, l), o && (L(1 === C ? n("🔝🔄 %s (%s) %s%s", t || "", t || "", u.running ? "" : "!!", et(u)) : n("🔝🔄 mach(%s%s), st: %s, ev: %s, from(%s%s)", u.running ? "" : "!!", et(u), At(u), t || "", e && !e.running ? "!!" : "", et(e))), H(e) && An(g) && hn(g));
1226
- let p = Ft(u, t, g, e);
1220
+ let l = tr(e, a, "__global__", null, 0), s = tr(e, a, "__local__", null, 0), f = nr(e, a, "__filter__", null, 0), g = 1;
1221
+ if (e.gclass.gmt.mt_publication_filter ? g = e.gclass.gmt.mt_publication_filter(e, t, r, u) : In(f) > 0 && (g = sr(r, f) ? 1 : 0, o && (L(n("💜💜🔄%s publishing with filter, event '%s', subscriber'%s', publisher %s", g ? "👍" : "👎", t || "", et(u), et(e))), hn(f))), g < 0) break;
1222
+ if (!g) continue;
1223
+ let d = kt(u, t, !0);
1224
+ if (d && d.event_flag & D.EVF_SYSTEM_EVENT && !It(u, d.event_name, 0)) continue;
1225
+ let b = r;
1226
+ (In(s) > 0 || In(l) > 0) && (b = Object.assign({}, r)), In(s) > 0 && Jn(b, s), In(l) > 0 && yn(b, En(l)), o && (L(1 === C ? n("🔝🔄 %s (%s) %s%s", t || "", t || "", u.running ? "" : "!!", et(u)) : n("🔝🔄 mach(%s%s), st: %s, ev: %s, from(%s%s)", u.running ? "" : "!!", et(u), At(u), t || "", e && !e.running ? "!!" : "", et(e))), H(e) && An(b) && hn(b));
1227
+ let p = Ft(u, t, b, e);
1227
1228
  if (p < 0 && c & Gt.__own_event__) {
1228
1229
  i = -1;
1229
1230
  break;
@@ -2488,7 +2489,7 @@ var gobjJs = function(e) {
2488
2489
  },
2489
2490
  mt_inject_event: function(e, t, n, r) {
2490
2491
  if ("ST_SESSION" !== At(e)) return window.console.error("Not in session"), -1;
2491
- if (n || (n = {}), Er(e, n, ll));
2492
+ if (n = Object.assign({}, Cn(n) ? n : {}), Cn(n.__md_iev__) && (n.__md_iev__ = En(n.__md_iev__)), Er(e, n, ll));
2492
2493
  else {
2493
2494
  let l = bl(e, Xe(r), Zn(e, n, "__service__", 0, 0));
2494
2495
  On(n, "__service__"), hr(e, n, "__message__", t), hr(e, n, ll, l);