Skip to content

Commit

Permalink
fix: remove options default assignment introduced during porting to t…
Browse files Browse the repository at this point in the history
…s, pull uuidjs#763 preventing native.randomUUID being used
  • Loading branch information
molaeiali committed Aug 5, 2024
1 parent 18f9493 commit bf24b99
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/v4.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ import { unsafeStringify } from './stringify.js';
function v4(options?: Version4Options, buf?: undefined, offset?: number): string;
function v4(options?: Version4Options, buf?: Uint8Array, offset?: number): Uint8Array;
function v4(options?: Version4Options, buf?: Uint8Array, offset?: number): UUIDTypes {
options ??= {};

if (native.randomUUID && !buf && !options) {
return native.randomUUID();
}
Expand Down

0 comments on commit bf24b99

Please sign in to comment.