@athrio/loom 0.0.9 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/dist/{LoomServer-BZL6KQOM.js → LoomServer-mL8VcuCS.js} +2 -2
- package/dist/{LoomServer-BZL6KQOM.js.map → LoomServer-mL8VcuCS.js.map} +1 -1
- package/dist/{LoomStore-BBRhdzet.js → LoomStore-DTpgIJ9l.js} +7 -4
- package/dist/{LoomStore-BBRhdzet.js.map → LoomStore-DTpgIJ9l.js.map} +1 -1
- package/dist/main.js +185 -6
- package/dist/main.js.map +1 -1
- package/package.json +3 -2
|
@@ -147291,6 +147291,7 @@ var tokeniseFrontmatter = (weft) => {
|
|
|
147291
147291
|
return buildFrontmatterField(weft, line, trimSpan(lineText.slice(0, colon), base), trimSpan(lineText.slice(colon + 1), base + colon + 1));
|
|
147292
147292
|
};
|
|
147293
147293
|
var frontmatterFields = /* @__PURE__ */ new Set([
|
|
147294
|
+
"Target",
|
|
147294
147295
|
"Package",
|
|
147295
147296
|
"Language",
|
|
147296
147297
|
"Status",
|
|
@@ -148249,7 +148250,7 @@ var makeFrontmatter = (wefts) => {
|
|
|
148249
148250
|
health: okHealth,
|
|
148250
148251
|
...partFields,
|
|
148251
148252
|
...chapterFields,
|
|
148252
|
-
package: getOrUndefined$2(frontmatterField(wefts, "Package")),
|
|
148253
|
+
package: getOrUndefined$2(orElse$6(frontmatterField(wefts, "Target"), () => frontmatterField(wefts, "Package"))),
|
|
148253
148254
|
language: getOrUndefined$2(frontmatterField(wefts, "Language")),
|
|
148254
148255
|
status: getOrUndefined$2(frontmatterField(wefts, "Status")),
|
|
148255
148256
|
priority: getOrUndefined$2(frontmatterField(wefts, "Priority"))
|
|
@@ -149486,7 +149487,7 @@ var buildCorpus = (corpus) => {
|
|
|
149486
149487
|
const nav = map$24(toc.parts, wovenPart);
|
|
149487
149488
|
const loose = map$24(toc.loose, wovenEntry);
|
|
149488
149489
|
const partOfSlug = partIndex(nav);
|
|
149489
|
-
const pages = getSomes(map$24(modules, (module) => buildPage(module, indexes, partOfSlug)));
|
|
149490
|
+
const pages = pipe(getSomes(map$24(modules, (module) => buildPage(module, indexes, partOfSlug))), sort$1(inReadingOrder(navOrder(nav))));
|
|
149490
149491
|
return WovenCorpusSchema.make({
|
|
149491
149492
|
nav,
|
|
149492
149493
|
loose,
|
|
@@ -149510,6 +149511,8 @@ var wovenPart = (part) => WovenPartSchema.make({
|
|
|
149510
149511
|
chapters: map$24(part.chapters, wovenEntry)
|
|
149511
149512
|
});
|
|
149512
149513
|
var partIndex = (nav) => new Map(flatMap$10(nav, (part) => map$24(part.chapters, (chapter) => [chapter.slug, part.name])));
|
|
149514
|
+
var navOrder = (nav) => new Map(map$24(flatMap$10(nav, (part) => map$24(part.chapters, (chapter) => chapter.slug)), (slug, at) => [slug, at]));
|
|
149515
|
+
var inReadingOrder = (order) => combineAll([mapInput$4(Number$5, (page) => getOrElse$2(fromNullishOr$4(order.get(page.slug)), () => order.size)), mapInput$4(String$5, (page) => page.slug)]);
|
|
149513
149516
|
var isBookRoot = (module) => some$10(module.doc.sections, (section) => section.entries !== void 0);
|
|
149514
149517
|
var firstHeadingTitle = (module) => pipe(findFirst$6(module.doc.sections, (section) => section.heading.title !== void 0), flatMap$13((section) => fromNullishOr$4(section.heading.title)), map$29((title) => title.source));
|
|
149515
149518
|
var chapterTitleOf = (module) => orElse$6(map$29(fromNullishOr$4(module.doc.frontmatter?.title), (title) => title.value), () => firstHeadingTitle(module));
|
|
@@ -149859,6 +149862,6 @@ var removeService = (id, dir) => sync$3(() => rmSync(join(storeDir(dir), "node_m
|
|
|
149859
149862
|
force: true
|
|
149860
149863
|
}));
|
|
149861
149864
|
//#endregion
|
|
149862
|
-
export { mkString as $,
|
|
149865
|
+
export { mkString as $, UnknownError as $n, effectify as $t, log as A, tap$2 as An, map$29 as Ar, fromTransform$1 as At, WatchBackend as B, mergeAll$2 as Bn, isNullish as Br, nominal as Bt, errorExitCode as C, result$3 as Cn, flatMap$13 as Cr, decodeUnknownEffect as Ct, Crypto as D, succeed$6 as Dn, getOrUndefined$2 as Dr, toCodecStringTree as Dt, make$22 as E, serviceOption$1 as En, getOrElse$2 as Er, tag$2 as Et, TypeId$33 as F, void_$1 as Fn, BaseProto as Fr, offer$2 as Ft, empty$9 as G, MinimumLogLevel as Gn, pipeArguments as Gr, asVoid as Gt, callback as H, provideMerge as Hn, dual as Hr, addFinalizer as Ht, FileDescriptor as I, catchDone as In, format$5 as Ir, offerUnsafe as It, fromEffect$1 as J, isDone$1 as Jn, catchFilter$2 as Jt, filter$5 as K, _await$1 as Kn, callback$2 as Kt, FileSystem as L, TaggedError as Ln, hasProperty as Lr, take$7 as Lt, FalseValues as M, tryPromise as Mn, none$1 as Mr, endUnsafe as Mt, TrueValues as N, try_ as Nn, some$13 as Nr, failCauseUnsafe as Nt, make$30 as O, suspend$4 as On, isNone as Or, fromIterable$10 as Ot, Path as P, uninterruptible as Pn, String$5 as Pr, make$48 as Pt, merge$1 as Q, Done as Qn, die$3 as Qt, FileTypeId as R, taggedEnum as Rn, isNotNull as Rr, make$50 as Rt, make$13 as S, raceFirst as Sn, contains$3 as Sr, Union as St, makeRunMain as T, scoped$2 as Tn, fromUndefinedOr as Tr, optional as Tt, concat$2 as U, succeed$8 as Un, identity$1 as Ur, andThen as Ut, make$33 as V, provide$5 as Vn, isUndefined$1 as Vr, acquireRelease$1 as Vt, decodeText as W, addFinalizer$1 as Wn, pipe as Wr, as$1 as Wt, isStream as X, fail$11 as Xn, catchTags$1 as Xt, groupedWithin as Y, makeUnsafe$16 as Yn, catchTag$2 as Yt, mapEffect as Z, succeed$10 as Zn, catch_$3 as Zt, QuitError as _, orDie$2 as _n, reduce$10 as _r, ErrorClass as _t, storeDir as a, forever$2 as an, empty$20 as ar, transduce as at, make$11 as b, provideContext$3 as bn, match$12 as br, String$1 as bt, LoomCompiler as c, ignore$3 as cn, Prototype as cr, make$35 as ct, stringSnapshot as d, logWarning as dn, fromIterable$15 as dr, isSink as dt, ensuring$3 as en, done$2 as er, orDie as et, PackageConfig as f, map$19 as fn, getSomes as fr, BadArgument as ft, dist_exports as g, option$4 as gn, of$2 as gr, Defect as gt, ReadError as h, matchEffect as hn, match$11 as hr, ArraySchema as ht, servicePackage as i, forEach$8 as in, Service$1 as ir, splitLines$1 as it, Boolean$1 as j, timeoutOrElse$1 as jn, match$13 as jr, mapDone as jt, error$1 as k, sync$3 as kn, isSome as kr, get$21 as kt, ignoredDirs as l, interrupt$3 as ln, dedupe$1 as lr, drain$1 as lt, SemanticTokenSchema as m, match$3 as mn, map$24 as mr, systemError as mt, installedServices as n, flatMap$7 as nn, pretty as nr, runCollect as nt, workspaceRoot as o, forkScoped as on, getUnsafe$11 as or, unwrap$1 as ot, LoomConfig as p, mapError$3 as pn, groupBy$1 as pr, badArgument as pt, fromChannel as q, doneUnsafe as qn, catchCause$3 as qt, removeService as r, fnUntraced as rn, Reference as rr, runForEach as rt, DocumentSource as s, gen$1 as sn, make$69 as sr, get$16 as st, addService as t, fail$8 as tn, fail$12 as tr, run$4 as tt, loomsUnder as u, isEffect as un, filter$15 as ur, fromChannel$1 as ut, Terminal as v, orElseSucceed$1 as vn, sort$1 as vr, Int as vt, errorReported as w, runFork as wn, fromNullishOr$4 as wr, is$2 as wt, Stdio as x, provideService$3 as xn, succeed$12 as xr, Struct as xt, isQuitError as y, provide$3 as yn, fail$14 as yr, Literal as yt, Size as z, effect as zn, isNotUndefined as zr, makeUnsafe$12 as zt };
|
|
149863
149866
|
|
|
149864
|
-
//# sourceMappingURL=LoomStore-
|
|
149867
|
+
//# sourceMappingURL=LoomStore-DTpgIJ9l.js.map
|