@yuneta/gobj-js 7.25.6 → 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;
@@ -1581,9 +1582,15 @@ function nr(e, t, n, r) {
1581
1582
  let o = n.split("`");
1582
1583
  if (o.length <= 1) return t[n] = r, 0;
1583
1584
  let s = o.length;
1584
- for (let e = 0; e < s; e++) {
1585
- let n = o[e];
1586
- e === s - 1 ? t[n] = r : (void 0 === t[n] && (t[n] = {}), t = t[n]);
1585
+ for (let l = 0; l < s; l++) {
1586
+ let i = o[l];
1587
+ if (l === s - 1) t[i] = r;
1588
+ else {
1589
+ let r = t[i];
1590
+ if (void 0 === r) t[i] = {};
1591
+ else if (!kn(r) && !In(r)) return gn(`${e ? Ze(e) + ": " : ""}kw_set_dict_value(): segment '${i}' is not a dict or a list: '${n}'`), -1;
1592
+ t = t[i];
1593
+ }
1587
1594
  }
1588
1595
  return 0;
1589
1596
  }
@@ -2481,7 +2488,7 @@ var No = {
2481
2488
  },
2482
2489
  mt_inject_event: function(e, t, n, r) {
2483
2490
  if ("ST_SESSION" !== Dt(e)) return window.console.error("Not in session"), -1;
2484
- 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));
2485
2492
  else {
2486
2493
  let o = po(e, Qe(r), Xn(e, n, "__service__", 0, 0));
2487
2494
  Sn(n, "__service__"), mr(e, n, "__message__", t), mr(e, n, ro, o);