@yuneta/gobj-js 7.2.0 → 7.3.1

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.
@@ -153,7 +153,7 @@
153
153
  SDF_VOLATIL: 32,
154
154
  SDF_RESOURCE: 64,
155
155
  SDF_PKEY: 128,
156
- SDF_FUTURE1: 256,
156
+ SDF_DEPRECATED: 256,
157
157
  SDF_FUTURE2: 512,
158
158
  SDF_WILD_CMD: 1024,
159
159
  SDF_STATS: 2048,
@@ -486,7 +486,7 @@
486
486
  let o = 0;
487
487
  for (const [l, s] of Object.entries(t)) {
488
488
  const t = V(i.gclass, l, !1);
489
- t ? (-1 === n || t.flag & n) && (o += C(i, e, t, s)) : r && (r(i, l), o--);
489
+ t ? (-1 === n || t.flag & n) && (t.flag & E.SDF_DEPRECATED && Nt(`${Ne(i)}: Deprecated attribute used in gobj creation: ${l}`), o += C(i, e, t, s)) : r && (r(i, l), o--);
490
490
  }
491
491
  return o;
492
492
  })(G(e), r, -1, e.gclass.gclass_flag & N.gcflag_ignore_unknown_attrs ? 0 : re, e) < 0 && (Ot(`${Ne(e)} json2data() FAILED`), Rt(r));