refactor: unwrap Identifier namespace + self-reexport (#22963)

This commit is contained in:
Kit Langton 2026-04-16 19:48:24 -04:00 committed by GitHub
commit e2d161dfdd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,6 @@
import z from "zod" import z from "zod"
import { randomBytes } from "crypto" import { randomBytes } from "crypto"
export namespace Identifier {
const prefixes = { const prefixes = {
event: "evt", event: "evt",
session: "ses", session: "ses",
@ -83,4 +82,5 @@ export namespace Identifier {
const encoded = BigInt("0x" + hex) const encoded = BigInt("0x" + hex)
return Number(encoded / BigInt(0x1000)) return Number(encoded / BigInt(0x1000))
} }
}
export * as Identifier from "./id"