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