mirror of
https://github.com/hanzoai/uuid.git
synced 2026-09-24 17:04:02 +00:00
fix: revert "simplify type for v3 and v5" (#835)
This reverts commit 2e09800e3000d01789ddfd688d0c21578b4b2ad7.
This commit is contained in:
@@ -4,6 +4,18 @@ import v35, { DNS, URL } from './v35.js';
|
||||
|
||||
export { DNS, URL } from './v35.js';
|
||||
|
||||
function v3(
|
||||
value: string | Uint8Array,
|
||||
namespace: UUIDTypes,
|
||||
buf?: undefined,
|
||||
offset?: number
|
||||
): string;
|
||||
function v3(
|
||||
value: string | Uint8Array,
|
||||
namespace: UUIDTypes,
|
||||
buf: Uint8Array,
|
||||
offset?: number
|
||||
): Uint8Array;
|
||||
function v3(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number) {
|
||||
return v35(0x30, md5, value, namespace, buf, offset);
|
||||
}
|
||||
|
||||
@@ -4,6 +4,18 @@ import v35, { DNS, URL } from './v35.js';
|
||||
|
||||
export { DNS, URL } from './v35.js';
|
||||
|
||||
function v5(
|
||||
value: string | Uint8Array,
|
||||
namespace: UUIDTypes,
|
||||
buf?: undefined,
|
||||
offset?: number
|
||||
): string;
|
||||
function v5(
|
||||
value: string | Uint8Array,
|
||||
namespace: UUIDTypes,
|
||||
buf: Uint8Array,
|
||||
offset?: number
|
||||
): Uint8Array;
|
||||
function v5(value: string | Uint8Array, namespace: UUIDTypes, buf?: Uint8Array, offset?: number) {
|
||||
return v35(0x50, sha1, value, namespace, buf, offset);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user