@whitesev/utils 2.1.0 → 2.1.1

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
@@ -3486,7 +3486,7 @@
3486
3486
  }
3487
3487
  }
3488
3488
 
3489
- class UtilsWindowApi {
3489
+ class WindowApi {
3490
3490
  /** 默认的配置 */
3491
3491
  defaultApi = {
3492
3492
  document: document,
@@ -3523,10 +3523,10 @@
3523
3523
  class Utils {
3524
3524
  windowApi;
3525
3525
  constructor(option) {
3526
- this.windowApi = new UtilsWindowApi(option);
3526
+ this.windowApi = new WindowApi(option);
3527
3527
  }
3528
3528
  /** 版本号 */
3529
- version = "2024.7.20";
3529
+ version = "2024.7.24";
3530
3530
  addStyle(cssText) {
3531
3531
  if (typeof cssText !== "string") {
3532
3532
  throw new Error("Utils.addStyle 参数cssText 必须为String类型");
@@ -5836,7 +5836,8 @@
5836
5836
  if (Array.isArray(data)) {
5837
5837
  data.sort(sortFunc);
5838
5838
  }
5839
- else if (data instanceof NodeList || UtilsContext.isJQuery(data)) {
5839
+ else if (data instanceof NodeList ||
5840
+ UtilsContext.isJQuery(data)) {
5840
5841
  sortNodeFunc(data, getDataFunc);
5841
5842
  result = getDataFunc();
5842
5843
  }