UNPKG

@scalar/api-client

Version:

the open source API testing client

12 lines (11 loc) 326 B
import { generateUniqueValue as r } from "@scalar/workspace-store/helpers/generate-unique-value"; import { slugify as i } from "../../../helpers/slugify.js"; const u = async (e, a) => await r({ defaultValue: e, validation: (t) => !a.has(t), maxRetries: 100, transformation: i }); export { u as generateUniqueSlug };