This commit is contained in:
Luiz Silva 2025-08-13 10:33:32 -03:00
parent e36137e33e
commit f6dcff3693
5 changed files with 6 additions and 10 deletions

View file

@ -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;