@minto-ai/tools 1.0.39 → 1.0.45

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.
Files changed (40) hide show
  1. package/dist/array/chunk-array.d.ts +2 -3
  2. package/dist/browser/copy-text.d.ts +2 -3
  3. package/dist/browser/is-android.d.ts +3 -3
  4. package/dist/browser/is-ios.d.ts +1 -1
  5. package/dist/browser/is-mobile.d.ts +3 -4
  6. package/dist/browser/is-pc.d.ts +3 -3
  7. package/dist/core/be-parsed-as-number.d.ts +1 -1
  8. package/dist/core/can-be-parsed-as-number.d.ts +3 -3
  9. package/dist/core/check-array-empty.d.ts +3 -3
  10. package/dist/core/check-empty-not-zero.d.ts +3 -3
  11. package/dist/core/check-empty.d.ts +3 -4
  12. package/dist/core/check-object-empty.d.ts +2 -3
  13. package/dist/core/is-array.d.ts +3 -3
  14. package/dist/core/is-null-or-undefined.d.ts +3 -3
  15. package/dist/core/is-number.d.ts +3 -3
  16. package/dist/core/is-object.d.ts +4 -3
  17. package/dist/core/is-string.d.ts +3 -3
  18. package/dist/core/is-undefined.d.ts +3 -3
  19. package/dist/file/batch-download-file.d.ts +4 -3
  20. package/dist/file/extends/enum.d.ts +11 -1
  21. package/dist/file/get-file-icon.d.ts +3 -3
  22. package/dist/file/get-file-name.d.ts +3 -3
  23. package/dist/file/get-file-suffix-icon.d.ts +3 -3
  24. package/dist/file/get-file-suffix.d.ts +3 -3
  25. package/dist/file/get-file-title.d.ts +3 -3
  26. package/dist/file/index.d.ts +4 -3
  27. package/dist/file/is-compress-file-path.d.ts +8 -0
  28. package/dist/file/is-document-file-path.d.ts +3 -3
  29. package/dist/file/is-file-path.d.ts +3 -3
  30. package/dist/file/is-image-file-path.d.ts +3 -3
  31. package/dist/file/is-music-file-path.d.ts +3 -3
  32. package/dist/file/is-ppt-file-path.d.ts +3 -3
  33. package/dist/file/is-video-file-path.d.ts +3 -3
  34. package/dist/file/single-download-file.d.ts +4 -3
  35. package/dist/file/types/index.d.ts +3 -2
  36. package/dist/index.js +315 -328
  37. package/dist/string/object-to-query-string.d.ts +1 -3
  38. package/dist/supply/get-uuid.d.ts +1 -3
  39. package/dist/supply/time-delay.d.ts +3 -3
  40. package/package.json +1 -1
@@ -1,8 +1,6 @@
1
1
  /**
2
2
  * 将对象转换为 URL 查询字符串。
3
- *
4
- * 该函数会遍历对象的键值对,将每个键和值进行 URL 编码,
5
- * 然后以 "key=value" 的形式拼接成字符串,并用 "&" 符号连接。
3
+ * 该函数会遍历对象的键值对,将每个键和值进行 URL 编码,然后以 "key=value" 的形式拼接成字符串,并用 "&" 符号连接。
6
4
  *
7
5
  * @param obj - 需要转换的对象,对象的键为字符串,值为任意类型。
8
6
  * @returns 转换后的 URL 查询字符串。
@@ -1,7 +1,5 @@
1
1
  /**
2
- * 生成一个随机的 UUID(Universally Unique Identifier)。
3
- * 利用 Web Crypto API,生成一个随机的 32 位无符号整数,并将其转换为一个基于 36 进制的字符串。
4
- * 这种格式的字符串通常用于标识,并且可以保证在很大范围内的唯一性。
2
+ * 利用 Web Crypto API,生成一个随机的 32 位无符号整数,并将其转换为一个基于 36 进制的字符串。这种格式的字符串通常用于标识,并且可以保证在很大范围内的唯一性。
5
3
  *
6
4
  * @returns 返回一个随机生成的 UUID 字符串。
7
5
  */
@@ -1,7 +1,7 @@
1
1
  /**
2
- * 延迟函数
3
- * @param delay 延迟的时间(单位:毫秒)
4
- * @returns 一个在指定延迟后解析的Promise
2
+ * 延迟函数。
3
+ * @param delay 延迟的时间(单位:毫秒)。
4
+ * @returns 一个在指定延迟后解析的Promise
5
5
  */
6
6
  declare function timeDelay(delay: number): Promise<void>;
7
7
  export default timeDelay;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@minto-ai/tools",
3
3
  "type": "module",
4
- "version": "1.0.39",
4
+ "version": "1.0.45",
5
5
  "description": "明途公共工具库",
6
6
  "author": "hcc",
7
7
  "license": "ISC",