chore(uuid): add missing new identifier (#2650)

This commit is contained in:
Erfan Safari 2022-09-14 01:52:50 +04:30 committed by GitHub
parent 2305af1bc7
commit 04dee6e627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ export function validate(uuid: string): boolean {
*/
export function version(uuid: string): number {
if (!validate(uuid)) {
throw TypeError("Invalid UUID");
throw new TypeError("Invalid UUID");
}
return parseInt(uuid[14], 16);