@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.
package/dist/index.umd.js CHANGED
@@ -3830,9 +3830,18 @@
3830
3830
  /** 使用的配置 */
3831
3831
  api;
3832
3832
  constructor(option) {
3833
+ if (option) {
3834
+ if (option.globalThis == null) {
3835
+ option.globalThis = option.window;
3836
+ }
3837
+ if (option.self == null) {
3838
+ option.self = option.window;
3839
+ }
3840
+ }
3833
3841
  if (!option) {
3834
3842
  option = Object.assign({}, this.defaultApi);
3835
3843
  }
3844
+ // @ts-ignore
3836
3845
  this.api = Object.assign({}, option);
3837
3846
  }
3838
3847
  get document() {
@@ -4097,7 +4106,7 @@
4097
4106
  this.windowApi = new WindowApi(option);
4098
4107
  }
4099
4108
  /** 版本号 */
4100
- version = "2024.11.5";
4109
+ version = "2024.11.6";
4101
4110
  addStyle(cssText) {
4102
4111
  if (typeof cssText !== "string") {
4103
4112
  throw new Error("Utils.addStyle 参数cssText 必须为String类型");