Preparing core package for use by other packages.

This commit is contained in:
Joshua Bemenderfer
2022-11-12 14:31:11 -05:00
parent 0196cd5c87
commit a0791b0c69
16 changed files with 504 additions and 291 deletions

14
packages/js/core/dist/document.js vendored Normal file
View File

@@ -0,0 +1,14 @@
import { parseLine as a, LineData as o } from "./parser.js";
function f(u, i = " ") {
let e = null, n = o(), t = !1;
async function r() {
return e = await u(), e === null ? t = !0 : a(e, n, i), { line: e, lineData: n, ended: t, next: r, current: l };
}
function l() {
return { line: e, lineData: n, ended: t, next: r, current: l };
}
return { next: r, current: l };
}
export {
f as document
};