mirror of
https://github.com/supermemoryai/supermemory.git
synced 2026-09-07 08:26:15 +00:00
perf(lib): hoist customAlphabet factory in generateId (#1204)
This commit is contained in:
parent
d77b6eb6d9
commit
09e3b78fc2
1 changed files with 5 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { customAlphabet } from "nanoid"
|
||||
|
||||
export const generateId = () =>
|
||||
customAlphabet("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")(
|
||||
22,
|
||||
)
|
||||
const generate = customAlphabet(
|
||||
"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",
|
||||
)
|
||||
|
||||
export const generateId = () => generate(22)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue