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