@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.
@@ -244,7 +244,7 @@
244
244
  SDF_VOLATIL: 32,
245
245
  SDF_RESOURCE: 64,
246
246
  SDF_PKEY: 128,
247
- SDF_FUTURE1: 256,
247
+ SDF_DEPRECATED: 256,
248
248
  SDF_FUTURE2: 512,
249
249
  SDF_WILD_CMD: 1024,
250
250
  SDF_STATS: 2048,
@@ -991,6 +991,7 @@
991
991
  continue;
992
992
  }
993
993
  if (!(flag === -1 || it.flag & flag)) continue;
994
+ if (it.flag & sdata_flag_t.SDF_DEPRECATED) log_warning(`${gobj_short_name(gobj)}: Deprecated attribute used in gobj creation: ${key}`);
994
995
  ret += json2item(gobj, hsdata, it, jn_value);
995
996
  }
996
997
  return ret;