react-hook-form 7.58.0 → 7.58.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.mjs
CHANGED
@@ -2291,7 +2291,7 @@ function createFormControl(props = {}) {
|
|
2291
2291
|
}
|
2292
2292
|
|
2293
2293
|
var generateId = () => {
|
2294
|
-
if (
|
2294
|
+
if (typeof crypto !== 'undefined' && crypto.randomUUID) {
|
2295
2295
|
return crypto.randomUUID();
|
2296
2296
|
}
|
2297
2297
|
const d = typeof performance === 'undefined' ? Date.now() : performance.now() * 1000;
|