@whitesev/utils 2.9.7 → 2.9.8

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.
@@ -447,6 +447,9 @@ var Utils = (function () {
447
447
  }
448
448
  toJSON(data, errorCallBack) {
449
449
  let result = {};
450
+ if (data == null) {
451
+ return result;
452
+ }
450
453
  if (typeof data === "object") {
451
454
  return data;
452
455
  }
@@ -5499,7 +5502,7 @@ var Utils = (function () {
5499
5502
  }
5500
5503
  const domUtils = new DOMUtils();
5501
5504
 
5502
- const version = "2.9.7";
5505
+ const version = "2.9.8";
5503
5506
 
5504
5507
  class Utils {
5505
5508
  windowApi;
@@ -8037,7 +8040,7 @@ var Utils = (function () {
8037
8040
  }
8038
8041
  }
8039
8042
  /**
8040
- * 深度获取对象属性
8043
+ * 深度获取对象的某个属性
8041
8044
  * @param target 待获取的对象
8042
8045
  * @param handler 获取属性的回调
8043
8046
  */