@minto-ai/tools 1.0.671 → 1.0.672

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 (2) hide show
  1. package/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14525,7 +14525,10 @@ function pickObject(obj, keys6) {
14525
14525
  return result;
14526
14526
  }
14527
14527
  function getUuid() {
14528
- return window.crypto.getRandomValues(new Uint32Array(1))[0].toString(36);
14528
+ if (typeof window !== "undefined" && window.crypto) {
14529
+ return window.crypto.getRandomValues(new Uint32Array(1))[0].toString(36);
14530
+ }
14531
+ return Math.random().toString(36).substring(2);
14529
14532
  }
14530
14533
  function timeDelay(delay) {
14531
14534
  if (typeof delay !== "number" || delay < 0) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@minto-ai/tools",
3
3
  "type": "module",
4
- "version": "1.0.671",
4
+ "version": "1.0.672",
5
5
  "description": "明途公共工具库",
6
6
  "author": "hcc",
7
7
  "license": "ISC",