Skip to content

Commit e993089

Browse files
committed
fix(shared): use uuid v4 as default
1 parent 2050476 commit e993089

File tree

1 file changed

+3
-3
lines changed
  • packages/@liexp/shared/src/io/http/Common

1 file changed

+3
-3
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { Schema } from "effect";
22

3-
import { v6, type Version6Options, validate } from "uuid";
3+
import { type Version4Options, validate, v4 } from "uuid";
44

55
const UUID = Schema.UUID.pipe(Schema.brand("UUID"));
66
type UUID = typeof UUID.Type;
77

8-
function uuid(opts?: Version6Options): UUID {
9-
return v6(opts) as unknown as UUID;
8+
function uuid(opts?: Version4Options): UUID {
9+
return v4(opts) as unknown as UUID;
1010
}
1111

1212
export { UUID, uuid, validate };

0 commit comments

Comments
 (0)