@whitesev/utils 1.3.5 → 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.
@@ -3173,8 +3173,11 @@ System.register('Utils', [], (function (exports) {
3173
3173
 
3174
3174
  /// <reference path="./ajaxHooker/index.d.ts" />
3175
3175
  class Utils {
3176
+ constructor(option) {
3177
+ UtilsCore.init(option);
3178
+ }
3176
3179
  /** 版本号 */
3177
- version = "2024.5.30";
3180
+ version = "2024.6.5";
3178
3181
  addStyle(cssText) {
3179
3182
  if (typeof cssText !== "string") {
3180
3183
  throw new Error("Utils.addStyle 参数cssText 必须为String类型");
@@ -6051,6 +6054,14 @@ System.register('Utils', [], (function (exports) {
6051
6054
  });
6052
6055
  }
6053
6056
  }
6057
+ /**
6058
+ * 创建一个新的Utils实例
6059
+ * @param option
6060
+ * @returns
6061
+ */
6062
+ createUtils(option) {
6063
+ return new Utils(option);
6064
+ }
6054
6065
  }
6055
6066
  let utils = exports("default", new Utils());
6056
6067