UUID[0] has a specific meaning. I thought for a second that you were generating UUIDs but in a different base so as to make them more compact, like short-uuid[1] does, but judging by the code that doesn't look to be the case. I'd recommend doing a find & replace and changing it to just UID.
mubou•1h ago
[0]: https://www.rfc-editor.org/rfc/rfc9562.html
[1]: https://www.npmjs.com/package/short-uuid