@whitesev/utils 2.4.6 → 2.4.7

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.
@@ -3827,9 +3827,18 @@ var Utils = (function () {
3827
3827
  /** 使用的配置 */
3828
3828
  api;
3829
3829
  constructor(option) {
3830
+ if (option) {
3831
+ if (option.globalThis == null) {
3832
+ option.globalThis = option.window;
3833
+ }
3834
+ if (option.self == null) {
3835
+ option.self = option.window;
3836
+ }
3837
+ }
3830
3838
  if (!option) {
3831
3839
  option = Object.assign({}, this.defaultApi);
3832
3840
  }
3841
+ // @ts-ignore
3833
3842
  this.api = Object.assign({}, option);
3834
3843
  }
3835
3844
  get document() {
@@ -4094,7 +4103,7 @@ var Utils = (function () {
4094
4103
  this.windowApi = new WindowApi(option);
4095
4104
  }
4096
4105
  /** 版本号 */
4097
- version = "2024.11.5";
4106
+ version = "2024.11.6";
4098
4107
  addStyle(cssText) {
4099
4108
  if (typeof cssText !== "string") {
4100
4109
  throw new Error("Utils.addStyle 参数cssText 必须为String类型");