@yuneta/gobj-js 7.16.0 → 7.16.2

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.
@@ -2239,12 +2239,11 @@
2239
2239
  if ("__subscribing__" === _) return -1;
2240
2240
  if ("__unsubscribing__" === _) return -1;
2241
2241
  if (Et(e, i, D.EVF_PUBLIC_EVENT)) return vt(e, i, s, e), 0;
2242
- let f = ge(c, !0);
2243
- if (f) {
2244
- if (!Et(f, i, D.EVF_PUBLIC_EVENT)) return Ht(`${Ve(e)}: Service found but no event or not public, service '${Ve(f)}', ev '${i}'`), -1;
2245
- vt(f, i, s, e);
2246
- } else xe(e) ? vt(We(e), i, s, e) : Ct(e, i, s);
2247
- return 0;
2242
+ if (!Sn(c)) {
2243
+ let t = ge(c, !1);
2244
+ return t ? Et(t, i, D.EVF_PUBLIC_EVENT) ? (vt(t, i, s, e), 0) : (Ht(`${Ve(e)}: Service found but no event or not public, service '${Ve(t)}', ev '${i}'`), -1) : (zt(`${Ve(e)}: event for a service that is gone, DROPPED: service '${c}', ev '${i}'`), 0);
2245
+ }
2246
+ return xe(e) ? vt(We(e), i, s, e) : Ct(e, i, s), 0;
2248
2247
  }
2249
2248
  function to(e, t, n, r) {
2250
2249
  return 0;
@@ -2403,6 +2402,8 @@
2403
2402
  Object.assign(t, e);
2404
2403
  }
2405
2404
  return t;
2405
+ }, e.empty_json = function(e) {
2406
+ return 0 === bn(e);
2406
2407
  }, e.empty_string = Sn, e.escapeHtml = sr, e.event_flag_t = D, e.flat2json = function(e) {
2407
2408
  if (null === e || "object" != typeof e || Array.isArray(e)) throw new Error("flat2json: a flat json is an object of id -> value");
2408
2409
  let t = null;