MCPcopy Create free account
hub / github.com/EmNudge/watlings / getDrafts

Function getDrafts

web-build/src/progress.ts:40–48  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38}
39
40function getDrafts(): Record<string, Draft> {
41 try {
42 const raw = localStorage.getItem(DRAFTS_KEY);
43 if (raw) return JSON.parse(raw);
44 } catch {
45 // ignore
46 }
47 return {};
48}
49
50export async function hashCode(code: string): Promise<string> {
51 const encoded = new TextEncoder().encode(code);

Callers 2

saveDraftFunction · 0.85
loadDraftFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected