@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.esm.js CHANGED
@@ -3480,7 +3480,7 @@ class UtilsDictionary {
3480
3480
  }
3481
3481
  }
3482
3482
 
3483
- class UtilsWindowApi {
3483
+ class WindowApi {
3484
3484
  /** 默认的配置 */
3485
3485
  defaultApi = {
3486
3486
  document: document,
@@ -3517,10 +3517,10 @@ class UtilsWindowApi {
3517
3517
  class Utils {
3518
3518
  windowApi;
3519
3519
  constructor(option) {
3520
- this.windowApi = new UtilsWindowApi(option);
3520
+ this.windowApi = new WindowApi(option);
3521
3521
  }
3522
3522
  /** 版本号 */
3523
- version = "2024.7.20";
3523
+ version = "2024.7.24";
3524
3524
  addStyle(cssText) {
3525
3525
  if (typeof cssText !== "string") {
3526
3526
  throw new Error("Utils.addStyle 参数cssText 必须为String类型");
@@ -5830,7 +5830,8 @@ class Utils {
5830
5830
  if (Array.isArray(data)) {
5831
5831
  data.sort(sortFunc);
5832
5832
  }
5833
- else if (data instanceof NodeList || UtilsContext.isJQuery(data)) {
5833
+ else if (data instanceof NodeList ||
5834
+ UtilsContext.isJQuery(data)) {
5834
5835
  sortNodeFunc(data, getDataFunc);
5835
5836
  result = getDataFunc();
5836
5837
  }