UNPKG

alinea

Version:

[![npm](https://img.shields.io/npm/v/alinea.svg)](https://npmjs.org/package/alinea) [![install size](https://packagephobia.com/badge?p=alinea)](https://packagephobia.com/result?p=alinea)

16 lines (14 loc) 314 B
import "../../chunks/chunk-U5RRZUYZ.js"; // src/cli/serve/MemoryDrafts.ts var MemoryDrafts = class { drafts = /* @__PURE__ */ new Map(); async getDraft(entryId) { return this.drafts.get(entryId); } async storeDraft(draft) { this.drafts.set(draft.entryId, draft); } }; export { MemoryDrafts };