Skip to content

Commit c0bcfe9

Browse files
authored
Merge branch 'main' into iodd
2 parents 2b1778b + e2dee69 commit c0bcfe9

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

src/v3.ts

+12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ import v35, { DNS, URL } from './v35.js';
44

55
export { DNS, URL } from './v35.js';
66

7+
function v3(
8+
value: string | Uint8Array,
9+
namespace: UUIDTypes,
10+
buf?: undefined,
11+
offset?: number
12+
): string;
13+
function v3(
14+
value: string | Uint8Array,
15+
namespace: UUIDTypes,
16+
buf: Uint8Array,
17+
offset?: number
18+
): Uint8Array;
719
function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number) {
820
return v35(0x30, md5, value, namespace, buf, offset);
921
}

src/v5.ts

+12
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ import v35, { DNS, URL } from './v35.js';
44

55
export { DNS, URL } from './v35.js';
66

7+
function v5(
8+
value: string | Uint8Array,
9+
namespace: UUIDTypes,
10+
buf?: undefined,
11+
offset?: number
12+
): string;
13+
function v5(
14+
value: string | Uint8Array,
15+
namespace: UUIDTypes,
16+
buf: Uint8Array,
17+
offset?: number
18+
): Uint8Array;
719
function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number) {
820
return v35(0x50, sha1, value, namespace, buf, offset);
921
}

0 commit comments

Comments
 (0)