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