@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.
package/dist/index.esm.js CHANGED
@@ -444,6 +444,9 @@ class CommonUtil {
444
444
  }
445
445
  toJSON(data, errorCallBack) {
446
446
  let result = {};
447
+ if (data == null) {
448
+ return result;
449
+ }
447
450
  if (typeof data === "object") {
448
451
  return data;
449
452
  }
@@ -5496,7 +5499,7 @@ class DOMUtils {
5496
5499
  }
5497
5500
  const domUtils = new DOMUtils();
5498
5501
 
5499
- const version = "2.9.7";
5502
+ const version = "2.9.8";
5500
5503
 
5501
5504
  class Utils {
5502
5505
  windowApi;
@@ -8034,7 +8037,7 @@ class Utils {
8034
8037
  }
8035
8038
  }
8036
8039
  /**
8037
- * 深度获取对象属性
8040
+ * 深度获取对象的某个属性
8038
8041
  * @param target 待获取的对象
8039
8042
  * @param handler 获取属性的回调
8040
8043
  */