-
- Downloads
feat: Improve random UUID generation check #330
Summary of changes - Modified the condition to check if `randomUUID` is a function Changes - In `source/types/uuid.mjs`, updated the check from using `return;` with a simple presence check on `randomUUID` to a more explicit validation that ensures it's a function. Reasons for changes - This more precise check prevents potential runtime errors if `randomUUID` is defined but not callable, which could lead to unexpected behavior in UUID generation. Proper error handling seems like a no-brainer, so let's keep it smart.
Please register or sign in to comment