@whitesev/utils 1.3.4 → 1.3.6
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 +12 -1
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +12 -1
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +12 -1
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +12 -1
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +12 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/src/Utils.d.ts +12 -0
- package/dist/src/UtilsCore.d.ts +1 -1
- package/dist/src/UtilsGMCookie.d.ts +26 -2
- package/package.json +1 -1
- package/src/Utils.ts +21 -1
- package/src/UtilsCore.ts +1 -2
- package/src/UtilsGMCookie.ts +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -3170,8 +3170,11 @@ class UtilsDictionary {
|
|
|
3170
3170
|
|
|
3171
3171
|
/// <reference path="./ajaxHooker/index.d.ts" />
|
|
3172
3172
|
class Utils {
|
|
3173
|
+
constructor(option) {
|
|
3174
|
+
UtilsCore.init(option);
|
|
3175
|
+
}
|
|
3173
3176
|
/** 版本号 */
|
|
3174
|
-
version = "2024.5
|
|
3177
|
+
version = "2024.6.5";
|
|
3175
3178
|
addStyle(cssText) {
|
|
3176
3179
|
if (typeof cssText !== "string") {
|
|
3177
3180
|
throw new Error("Utils.addStyle 参数cssText 必须为String类型");
|
|
@@ -6048,6 +6051,14 @@ class Utils {
|
|
|
6048
6051
|
});
|
|
6049
6052
|
}
|
|
6050
6053
|
}
|
|
6054
|
+
/**
|
|
6055
|
+
* 创建一个新的Utils实例
|
|
6056
|
+
* @param option
|
|
6057
|
+
* @returns
|
|
6058
|
+
*/
|
|
6059
|
+
createUtils(option) {
|
|
6060
|
+
return new Utils(option);
|
|
6061
|
+
}
|
|
6051
6062
|
}
|
|
6052
6063
|
let utils = new Utils();
|
|
6053
6064
|
|