@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.
- package/dist/index.js +4 -1
- 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
|
-
|
|
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) {
|