@whitesev/utils 2.7.8 → 2.8.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@whitesev/utils",
4
- "version": "2.7.8",
4
+ "version": "2.8.0",
5
5
  "type": "module",
6
6
  "description": "一个常用的工具库",
7
7
  "main": "dist/index.cjs.js",
package/src/Dictionary.ts CHANGED
@@ -79,13 +79,13 @@ export class UtilsDictionary<K extends unknown, V extends any> {
79
79
  * 获取字典所有的键
80
80
  */
81
81
  keys(): K[] {
82
- return this.items.keys().toArray();
82
+ return Array.from(this.items.keys());
83
83
  }
84
84
  /**
85
85
  * 返回字典中的所有值
86
86
  */
87
87
  values(): V[] {
88
- return this.items.values().toArray();
88
+ return Array.from(this.items.values());
89
89
  }
90
90
  /**
91
91
  * 清空字典
package/src/Utils.ts CHANGED
@@ -36,7 +36,7 @@ class Utils {
36
36
  this.windowApi = new WindowApi(option);
37
37
  }
38
38
  /** 版本号 */
39
- version = "2025.9.8";
39
+ version = "2025.9.14";
40
40
  /**
41
41
  * 在页面中增加style元素,如果html节点存在子节点,添加子节点第一个,反之,添加到html节点的子节点最后一个
42
42
  * @param cssText css字符串