@whitesev/utils 1.4.0 → 1.4.2
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.amd.js +201 -313
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +201 -313
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +201 -313
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +201 -313
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +201 -313
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +201 -313
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/Utils.ts +4 -1
- package/src/ajaxHooker/ajaxHooker.js +198 -313
package/package.json
CHANGED
package/src/Utils.ts
CHANGED
|
@@ -147,7 +147,7 @@ class Utils {
|
|
|
147
147
|
UtilsCore.init(option);
|
|
148
148
|
}
|
|
149
149
|
/** 版本号 */
|
|
150
|
-
version = "2024.6.
|
|
150
|
+
version = "2024.6.10";
|
|
151
151
|
|
|
152
152
|
/**
|
|
153
153
|
* 在页面中增加style元素,如果html节点存在子节点,添加子节点第一个,反之,添加到html节点的子节点最后一个
|
|
@@ -4727,6 +4727,9 @@ class Utils {
|
|
|
4727
4727
|
if (typeof obj !== "object") {
|
|
4728
4728
|
return;
|
|
4729
4729
|
}
|
|
4730
|
+
if (obj == null) {
|
|
4731
|
+
return;
|
|
4732
|
+
}
|
|
4730
4733
|
if (
|
|
4731
4734
|
(typeof checkPropertyName === "function" && checkPropertyName(obj)) ||
|
|
4732
4735
|
Reflect.has(obj, checkPropertyName as string)
|