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