UNPKG

jadq-x-vue

Version:

Craft AI-driven interfaces effortlessly

16 lines (15 loc) 379 B
class r { constructor(t) { this.cache = /* @__PURE__ */ new Map(), this.instanceId = t; } get(t) { return this.cache.get(Array.isArray(t) ? t.join("%") : t) || null; } update(t, c) { const e = Array.isArray(t) ? t.join("%") : t, n = this.cache.get(e), a = c(n); a === null ? this.cache.delete(e) : this.cache.set(e, a); } } export { r as default };