@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.
@@ -2236,12 +2236,11 @@ function Zr(e, t, n, r) {
2236
2236
  if ("__subscribing__" === _) return -1;
2237
2237
  if ("__unsubscribing__" === _) return -1;
2238
2238
  if (mt(e, l, R.EVF_PUBLIC_EVENT)) return jt(e, l, i, e), 0;
2239
- let f = fe(c, !0);
2240
- if (f) {
2241
- if (!mt(f, l, R.EVF_PUBLIC_EVENT)) return qt(`${Fe(e)}: Service found but no event or not public, service '${Fe(f)}', ev '${l}'`), -1;
2242
- jt(f, l, i, e);
2243
- } else We(e) ? jt(Ve(e), l, i, e) : It(e, l, i);
2244
- return 0;
2239
+ if (!vn(c)) {
2240
+ let t = fe(c, !1);
2241
+ return t ? mt(t, l, R.EVF_PUBLIC_EVENT) ? (jt(t, l, i, e), 0) : (qt(`${Fe(e)}: Service found but no event or not public, service '${Fe(t)}', ev '${l}'`), -1) : (Ht(`${Fe(e)}: event for a service that is gone, DROPPED: service '${c}', ev '${l}'`), 0);
2242
+ }
2243
+ return We(e) ? jt(Ve(e), l, i, e) : It(e, l, i), 0;
2245
2244
  }
2246
2245
  function eo(e, t, n, r) {
2247
2246
  return 0;
@@ -2400,6 +2399,8 @@ exports.GObj = S, exports.SDATA = j, exports.SDATAAUTHZ = (e, t, n, r, o, s) =>
2400
2399
  Object.assign(t, e);
2401
2400
  }
2402
2401
  return t;
2402
+ }, exports.empty_json = function(e) {
2403
+ return 0 === pn(e);
2403
2404
  }, exports.empty_string = vn, exports.escapeHtml = lr, exports.event_flag_t = R, exports.flat2json = function(e) {
2404
2405
  if (null === e || "object" != typeof e || Array.isArray(e)) throw new Error("flat2json: a flat json is an object of id -> value");
2405
2406
  let t = null;