build
This commit is contained in:
parent
e36137e33e
commit
f6dcff3693
5 changed files with 6 additions and 10 deletions
|
|
@ -36,7 +36,7 @@ const uuidV3 = (chave, grupo) => {
|
|||
// Converte a chave para string (de forma segura)
|
||||
typeof chave === "string" ? chave : typeof chave === "number" ? String(chave) : JSON.stringify(chave),
|
||||
// Se um grupo foi fornecido, gera um UUID v3 recursivamente com base nele, senão usa NIL
|
||||
grupo ? typeof grupo == "string" && validarUuid(grupo) ? grupo : uuidV3(grupo) : import_uuid.NIL
|
||||
grupo ? uuidV3(grupo) : import_uuid.NIL
|
||||
);
|
||||
};
|
||||
const uuidV4 = import_uuid.v4;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue