@northtalk/ts 0.4.0 → 0.5.1
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/README.md +11 -0
- package/base64-CDO-a06R.js +29 -0
- package/{binary-value-Bb6HPDtM.d.ts → binary-value-xvJoGg0C.d.ts} +1 -1
- package/{checker-DMI4LiRm.js → checker-CUhn2XaM.js} +4 -4
- package/{core-BzGUgjL6.d.ts → core-BuTAYRm-.d.ts} +1 -1
- package/{debug-C72o2pZy.d.ts → debug-DRhMZAxw.d.ts} +28 -8
- package/debug.d.ts +1 -1
- package/debug.js +1 -1
- package/{driver-ClV_UDEK.d.ts → driver-CHDcuqUy.d.ts} +1 -1
- package/driver.d.ts +1 -1
- package/driver.js +1 -1
- package/{encoding-C3Q7pIC9.js → encoding-RUuES_e4.js} +2 -2
- package/{engine-BpdGfAND.js → engine-CXf5FCwi.js} +6 -6
- package/{engine-Dtby_FkE.d.ts → engine-Cc3yofGM.d.ts} +2 -2
- package/{errors-BKJES3Zu.js → errors-D11zizZg.js} +1580 -1481
- package/{group-vuUL2tq-.js → group-BflSou2n.js} +66 -44
- package/http-fetch-DFwVIOQg.js +517 -0
- package/http.d.ts +39 -2
- package/http.js +189 -6
- package/index.d.ts +13 -5
- package/index.js +36 -49
- package/{inline-grants-Cx0Z9XAt.js → inline-grants-XbX9HL_w.js} +72 -304
- package/lean-BebPaTMK.js +47 -0
- package/{index-ByF5j53i.d.ts → lean-CjWVuOrC.d.ts} +86 -124
- package/lean.d.ts +8 -0
- package/lean.js +15 -0
- package/{manifest-Dw-8Unmf.js → manifest-CCfpn0kC.js} +3 -4
- package/manifest-DVrx-pT2.d.ts +122 -0
- package/message-layer.d.ts +2 -2
- package/message-layer.js +2 -2
- package/notify.d.ts +1 -1
- package/notify.js +1 -1
- package/{objects-Dnqor7Gn.d.ts → objects-DC6HjzBY.d.ts} +1 -1
- package/{objects-BC4fS0vq.js → objects-DmUc0lha.js} +1 -1
- package/{base64-Dtqaz_0A.js → operations-DnCcztkZ.js} +1632 -32
- package/package.json +36 -2
- package/{readers-B5e5bBrY.js → readers-CsvlahLi.js} +2 -2
- package/{readers-DAFVvvq4.d.ts → readers-MmyZ_d0w.d.ts} +1 -1
- package/{request-pump-binary-BjnyqXV5.js → request-pump-binary-oqjWFqZA.js} +5 -4
- package/{router-BCHEfs4x.js → router-BZ-aYeXA.js} +4 -4
- package/{router-BspOCPA0.d.ts → router-D56rSkU8.d.ts} +2 -2
- package/session.d.ts +2 -2
- package/session.js +54 -15
- package/setup.d.ts +1 -1
- package/setup.js +4 -4
- package/sqlite.d.ts +2 -2
- package/sqlite.js +5 -5
- package/stdlib/bytes.d.ts +6 -0
- package/stdlib/bytes.js +11 -0
- package/stdlib/date.d.ts +6 -0
- package/stdlib/date.js +11 -0
- package/stdlib/json.d.ts +6 -0
- package/stdlib/json.js +11 -0
- package/stdlib/list.d.ts +6 -0
- package/stdlib/list.js +10 -0
- package/stdlib/map.d.ts +6 -0
- package/stdlib/map.js +10 -0
- package/stdlib/text.d.ts +6 -0
- package/stdlib/text.js +10 -0
- package/stdlib/units.d.ts +6 -0
- package/stdlib/units.js +10 -0
- package/stdlib-registry-BwitI3Ox.d.ts +18 -0
- package/{store-DTQa0lyE.js → store-DHlo6fP5.js} +2 -2
- package/{store-capability-BxXgiRM7.js → store-capability-BrUUAwVS.js} +3 -4
- package/store.d.ts +2 -2
- package/store.js +2 -2
- package/{user-capability-5-IvCeZI.js → user-capability-BcRQyyEw.js} +4 -5
- package/wasm.d.ts +5 -5
- package/wasm.js +13 -11
- package/capabilities-Bi5Qm6Fr.js +0 -1320
package/README.md
CHANGED
|
@@ -32,6 +32,8 @@ A Host can create a Group ready to pump from the event loop with `newDrivenGroup
|
|
|
32
32
|
| Import | Holds |
|
|
33
33
|
| ----------------------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
34
34
|
| `@northtalk/ts` | Values, Groups, Scripts, Libraries, Capabilities, Object Kinds, save and restore, and the parser and checker |
|
|
35
|
+
| `@northtalk/ts/lean` | The same API with no stdlib Library registered; see below |
|
|
36
|
+
| `@northtalk/ts/stdlib/<name>` | One stdlib Library, such as `json`, for `registerStdlib` |
|
|
35
37
|
| `@northtalk/ts/session` | The Session Host, for a REPL, and Session Transcripts |
|
|
36
38
|
| `@northtalk/ts/driver` | `newDrivenGroup` and `autoDrive`, which pump a Group from the event loop |
|
|
37
39
|
| `@northtalk/ts/store` | The Store Standard Capability |
|
|
@@ -45,6 +47,15 @@ A Host can create a Group ready to pump from the event loop with `newDrivenGroup
|
|
|
45
47
|
|
|
46
48
|
The tooling surfaces serve editors, debuggers and REPLs. They aren't part of the Spec's embedding API, and may change in any minor release while the package is `0.x`.
|
|
47
49
|
|
|
50
|
+
A browser Host whose Scripts `use` only some of the stdlib Libraries can import `@northtalk/ts/lean` instead of `@northtalk/ts` and register just those, so a bundler drops the rest ([ADR 0150](https://github.com/odogono/odgn-talk/blob/main/docs/adr/0150-the-ts-package-has-a-lean-entry-without-the-stdlib-libraries.md)). Registering a Library also registers the ones it uses, so `json` brings `text`. A Script that `use`s a Library that isn't registered fails to load with `unknown import`.
|
|
51
|
+
|
|
52
|
+
```ts
|
|
53
|
+
import { createCore, registerStdlib } from '@northtalk/ts/lean';
|
|
54
|
+
import { json } from '@northtalk/ts/stdlib/json';
|
|
55
|
+
|
|
56
|
+
registerStdlib(json);
|
|
57
|
+
```
|
|
58
|
+
|
|
48
59
|
`@northtalk/ts/wasm` doesn't include `talk.wasm`. Build it with `zig build -Dtarget=wasm32-wasi` in the repository's `impl/zig`, or take a `reactor-v*` release, and pass it as `createCore({ wasm })` or serve it beside `wasm.js`.
|
|
49
60
|
|
|
50
61
|
## Runtimes
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
|
|
2
|
+
//#region src/base64.ts
|
|
3
|
+
const alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
4
|
+
const index = new Map(Array.from(alphabet, (ch, i) => [ch, i]));
|
|
5
|
+
const toBase64 = (b) => {
|
|
6
|
+
let out = "";
|
|
7
|
+
for (let i = 0; i < b.length; i += 3) {
|
|
8
|
+
const n = b[i] << 16 | (b[i + 1] ?? 0) << 8 | (b[i + 2] ?? 0);
|
|
9
|
+
out += alphabet[n >> 18 & 63] + alphabet[n >> 12 & 63] + (i + 1 < b.length ? alphabet[n >> 6 & 63] : "=") + (i + 2 < b.length ? alphabet[n & 63] : "=");
|
|
10
|
+
}
|
|
11
|
+
return out;
|
|
12
|
+
};
|
|
13
|
+
/** The bytes a canonical padded Base64 text spells, or undefined. */
|
|
14
|
+
const fromBase64 = (s) => {
|
|
15
|
+
if (s.length % 4 || !/^[\d+/A-Za-z]*={0,2}$/.test(s)) return;
|
|
16
|
+
const pad = s.endsWith("==") ? 2 : s.endsWith("=") ? 1 : 0;
|
|
17
|
+
const out = new Uint8Array(s.length / 4 * 3 - pad);
|
|
18
|
+
for (let i = 0, o = 0; i < s.length; i += 4) {
|
|
19
|
+
const n = index.get(s[i]) << 18 | index.get(s[i + 1]) << 12 | (index.get(s[i + 2]) ?? 0) << 6 | (index.get(s[i + 3]) ?? 0);
|
|
20
|
+
for (const shift of [
|
|
21
|
+
16,
|
|
22
|
+
8,
|
|
23
|
+
0
|
|
24
|
+
]) if (o < out.length) out[o++] = n >> shift & 255;
|
|
25
|
+
}
|
|
26
|
+
return toBase64(out) === s ? out : void 0;
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { toBase64 as n, fromBase64 as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { M as literalDigits,
|
|
3
|
-
import {
|
|
2
|
+
import { M as literalDigits, an as builtins, at as parseUnit, cn as libraryExports, en as normalizeNFC, lt as unitEntry, on as diagnosticCodes, sn as grammar, tt as UnitError, un as units, ut as unitText } from "./errors-D11zizZg.js";
|
|
3
|
+
import { Dt as runTask, Et as RESERVED, Tt as Lexer, gt as acceptsArgumentCount } from "./operations-DnCcztkZ.js";
|
|
4
4
|
//#region src/constructs.ts
|
|
5
5
|
/** Chapter 3's kind names. */
|
|
6
6
|
const kindNames = /* @__PURE__ */ new Set([
|
|
@@ -6419,7 +6419,7 @@ const checkParsed = (syntax, options) => {
|
|
|
6419
6419
|
const entry = Object.hasOwn(supplied, name) ? supplied[name] : void 0;
|
|
6420
6420
|
return typeof entry === "string" ? { kind: entry } : entry;
|
|
6421
6421
|
}
|
|
6422
|
-
return libraryExports.find((entry) => entry.library === library && entry.name === name);
|
|
6422
|
+
return libraryExports.find((entry) => entry.library === library && entry.name === name && (options.stdlib?.has(library) ?? true));
|
|
6423
6423
|
};
|
|
6424
6424
|
for (const { element } of ordered) {
|
|
6425
6425
|
if (element.kind !== "node" || !siteRules.has(element.rule)) continue;
|
|
@@ -6470,7 +6470,7 @@ const checkParsed = (syntax, options) => {
|
|
|
6470
6470
|
}, info.contract);
|
|
6471
6471
|
else {
|
|
6472
6472
|
mark(rename ?? name, "import");
|
|
6473
|
-
report("unknown import", options.libraries && Object.hasOwn(options.libraries, library.v) || libraryExports.some((entry) => entry.library === library.v) ? name : library);
|
|
6473
|
+
report("unknown import", options.libraries && Object.hasOwn(options.libraries, library.v) || libraryExports.some((entry) => entry.library === library.v) && (options.stdlib?.has(library.v) ?? true) ? name : library);
|
|
6474
6474
|
}
|
|
6475
6475
|
}
|
|
6476
6476
|
break;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import {
|
|
2
|
+
import { B as restore, Mn as compileLibrary, Zt as Core, vt as defineObjectKind, z as newGroup } from "./debug-DRhMZAxw.js";
|
|
3
3
|
//#region src/save-format.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* A save's State Fingerprint (ADR 0142), read from its header and frames
|
|
@@ -2071,19 +2071,35 @@ type UserImpl = {
|
|
|
2071
2071
|
declare const userCapability: (impl: UserImpl, costs: Costs) => CapabilityDef<unknown>;
|
|
2072
2072
|
//#endregion
|
|
2073
2073
|
//#region src/http-capability.d.ts
|
|
2074
|
+
/** The server Operations, supplied together. */
|
|
2075
|
+
type HttpServerImpl = {
|
|
2076
|
+
respond(call: Call<unknown>, exchange: HostObject, response: Value): void;
|
|
2077
|
+
serve(call: Call<unknown>, name: string, prefix: string, message: string, options: Value): void;
|
|
2078
|
+
unserve(call: Call<unknown>, name: string): void;
|
|
2079
|
+
};
|
|
2080
|
+
/**
|
|
2081
|
+
* The client Operation. `fetch` hears the normalized URL, with `query`
|
|
2082
|
+
* added, and the request map without `query`: `method` always, `headers`
|
|
2083
|
+
* and `body` as given, and `json` as its compact JSON text. It answers
|
|
2084
|
+
* `{status, headers, body}` or fails with `bad address`, `network error` or
|
|
2085
|
+
* `response too large`, and aborts the request when `call.signal` does.
|
|
2086
|
+
*/
|
|
2087
|
+
type HttpClientImpl = {
|
|
2088
|
+
fetch(call: Call<unknown>, url: string, request: Value): void;
|
|
2089
|
+
};
|
|
2074
2090
|
/**
|
|
2075
|
-
*
|
|
2091
|
+
* The server Operations, the client Operation, or both; only those supplied
|
|
2092
|
+
* are declared. `serve` hears its effective message, `httpRequest` when omitted or
|
|
2076
2093
|
* Nothing, and its options as a map, empty when omitted or Nothing, and
|
|
2077
2094
|
* answers through the Call with `{host, port}`. `respond` hears the response
|
|
2078
2095
|
* map as the Script gave it, except that a `json` value is replaced by its
|
|
2079
2096
|
* compact JSON text, written by the `json` Library's rules.
|
|
2080
2097
|
*/
|
|
2081
|
-
type HttpImpl =
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
/** Optional for Hosts. The binding is the Host's own description of the addresses a Grant may listen on. */
|
|
2098
|
+
type HttpImpl = HttpServerImpl | HttpClientImpl | (HttpServerImpl & HttpClientImpl);
|
|
2099
|
+
/**
|
|
2100
|
+
* Optional for Hosts. The binding is the Host's own description of the
|
|
2101
|
+
* addresses a Grant may listen on and the origins it may fetch from.
|
|
2102
|
+
*/
|
|
2087
2103
|
declare const httpCapability: (impl: HttpImpl, costs: Costs) => CapabilityDef<unknown>;
|
|
2088
2104
|
//#endregion
|
|
2089
2105
|
//#region src/versions.d.ts
|
|
@@ -2901,6 +2917,8 @@ type ScriptSources = {
|
|
|
2901
2917
|
};
|
|
2902
2918
|
type RestoreOptions = GroupOptions & {
|
|
2903
2919
|
grants(script: string, name: string): Grant<unknown> | undefined;
|
|
2920
|
+
/** With "reload changed", keep each changed Script's mailbox, as Reload's keepMailbox does; ignored otherwise. */
|
|
2921
|
+
keepMailbox?: boolean;
|
|
2904
2922
|
libraries: readonly Library[];
|
|
2905
2923
|
onMismatch: 'reject' | 'variables only' | 'reload changed';
|
|
2906
2924
|
resolve(kind: string, id: string): {
|
|
@@ -3378,6 +3396,8 @@ declare class TsGroup implements Group {
|
|
|
3378
3396
|
private releaseParked;
|
|
3379
3397
|
/** A Script's Persistent State: its Script Variables and the messages it holds. */
|
|
3380
3398
|
private persistentState;
|
|
3399
|
+
/** The logical size of a Script's queued messages, without its Runs. */
|
|
3400
|
+
private mailboxSize;
|
|
3381
3401
|
/** Worker, and the Host Input `vars`: the Group, read without changing it. */
|
|
3382
3402
|
private waitView;
|
|
3383
3403
|
/** A Run's calls and sends that a Rewind leaves done (ADR 0068). */
|
|
@@ -3518,4 +3538,4 @@ declare class DebugController {
|
|
|
3518
3538
|
enter(pause: DebugPause): void;
|
|
3519
3539
|
}
|
|
3520
3540
|
//#endregion
|
|
3521
|
-
export { instant as $,
|
|
3541
|
+
export { instant as $, ScriptError as $n, Script as $t, ScriptSources as A, OperationRef as An, SyntaxRule as Ar, FireOp as At, restore as B, UnitLoadError as Bn, ReleaseHook as Bt, Report as C, calendarCapability as Cn, Lexer as Cr, ChargeRequest as Ct, RunEvent as D, Library as Dn, SyntaxElement as Dr, EffectResult as Dt, RestoreResult as E, timerCapability as En, Token as Er, Cost as Et, TsGroupOptions as F, Limits as Fn, Metering as Ft, RunStarted as G, NotImplementedError as Gn, SegmentGrant as Gt, RunAccounting as H, defaultLimits as Hn, ScopeDecl as Ht, TsRestoreOptions as I, Outcome as In, Operation as It, Value as J, HostError as Jn, SuspendingOp as Jt, Decimal as K, canConvert as Kn, SegmentLifecycle as Kt, TsScript as L, Run as Ln, Operations as Lt, SessionPort as M, compileLibrary as Mn, syntaxSelector as Mr, GrantContext as Mt, Settlement as N, replacementLibraries as Nn, syntaxText as Nr, ImmediateOp as Nt, SaveOptions as O, LibraryOptions as On, SyntaxErrorCode as Or, ErrorDecl as Ot, TsGroup as P, LimitName as Pn, LimitReached as Pt, dec as Q, MailboxFull as Qn, Group as Qt, Verdict as R, RunRecord as Rn, PlainArg as Rt, PumpedRequest as S, TimerImpl as Sn, SourceSpan as Sr, CapabilityDefiner as St, RestoreOptions as T, consoleCapability as Tn, TokType as Tr, CoordinatedLifecycle as Tt, RunAncestry as U, deliver as Un, SegmentContext as Ut, CausalWork as V, callFunction as Vn, ReleaseReason as Vt, RunDiscarded as W, loadScript as Wn, SegmentCoordinator as Wt, bytes as X, LoadDiagnostic as Xn, shape as Xt, bool as Y, HostErrorCode as Yn, defineCapability as Yt, civilDate as Z, LoadError as Zn, Core as Zt, LoadOptions as _, LocaleImpl as _n, SemanticName as _r, PropDef as _t, DebugPause as a, httpCapability as an, EventEntry as ar, quantity as at, PumpOptions as b, ConsoleImpl as bn, SemanticToken as br, Call as bt, RepeatedEffect as c, StoreImpl as cn, UnwindEntry as cr, sourceForm as ct, Counters as d, SqlParams as dn, BindingKind as dr, nowMicros as dt, Versions as en, SendFailedReason as er, isReadable as et, Decided as f, SqlRows as fn, ExportKind as fr, parseInstant as ft, Inspection as g, sqliteCapability as gn, SemanticElement as gr, ObjectKindDef as gt, GroupOptions as h, SqliteImpl as hn, NameRole as hr, ObjectKind as ht, DebugInstruction as i, HttpServerImpl as in, EventBranch as ir, num as it, SessionControls as j, codeIdentity as jn, Trivia as jr, Grant as jt, ScriptCodeRequest as k, LibrarySource as kn, SyntaxNode as kr, FieldShape as kt, CancellationOptions as l, add as ln, disassemble as lr, text as lt, EffectFailure as m, SqliteBinding as mn, LibraryExport as mr, ObjectElements as mt, DebugEvaluation as n, HttpClientImpl as nn, BodyKind as nr, map as nt, DebugSnapshot as o, UserImpl as on, Instruction as or, range as ot, Deciding as p, SqlValue as pn, FunctionContract as pr, HostObject as pt, Kind as q, waitUs as qn, Shape as qt, DebugFrame as r, HttpImpl as rn, CodeUnit as rr, nothing as rt, DebugSource as s, userCapability as sn, Operand as sr, record as st, DebugController as t, coreVersions as tn, Body as tr, list as tt, CarryOver as u, storeCapability as un, Binding as ur, formatInstant as ut, Message as v, localeCapability as vn, SemanticNode as vr, defineObjectKind as vt, Requested as w, clockCapability as wn, Mode as wr, ChargeResult as wt, PumpResult as x, Costs as xn, SemanticTree as xr, CapabilityDef as xt, PendingCall as y, CalendarImpl as yn, SemanticScope as yr, GrantDecls as yt, newGroup as z, Script$1 as zn, PlainResult as zt };
|
package/debug.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { a as DebugPause, c as RepeatedEffect, ct as sourceForm, et as isReadable, i as DebugInstruction, n as DebugEvaluation, o as DebugSnapshot, r as DebugFrame, s as DebugSource, t as DebugController } from "./debug-
|
|
2
|
+
import { a as DebugPause, c as RepeatedEffect, ct as sourceForm, et as isReadable, i as DebugInstruction, n as DebugEvaluation, o as DebugSnapshot, r as DebugFrame, s as DebugSource, t as DebugController } from "./debug-DRhMZAxw.js";
|
|
3
3
|
export { type DebugController, type DebugEvaluation, type DebugFrame, type DebugInstruction, type DebugPause, type DebugSnapshot, type DebugSource, type RepeatedEffect, isReadable, sourceForm };
|
package/debug.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
|
|
2
|
-
export { O as isReadable, Z as sourceForm } from "./errors-
|
|
2
|
+
export { O as isReadable, Z as sourceForm } from "./errors-D11zizZg.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { Qt as Group, b as PumpOptions, h as GroupOptions, x as PumpResult } from "./debug-
|
|
2
|
+
import { Qt as Group, b as PumpOptions, h as GroupOptions, x as PumpResult } from "./debug-DRhMZAxw.js";
|
|
3
3
|
//#region src/operation-promises.d.ts
|
|
4
4
|
/** A suspending call whose Host `run` Promise has not settled. */
|
|
5
5
|
type PendingOperation = {
|
package/driver.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { a as autoDrive, i as asyncDispose, n as Drive, o as newDrivenGroup, r as DrivenGroupOptions, s as PendingOperation, t as AutoDriveOptions } from "./driver-
|
|
2
|
+
import { a as autoDrive, i as asyncDispose, n as Drive, o as newDrivenGroup, r as DrivenGroupOptions, s as PendingOperation, t as AutoDriveOptions } from "./driver-CHDcuqUy.js";
|
|
3
3
|
export { AutoDriveOptions, Drive, DrivenGroupOptions, type PendingOperation, asyncDispose, autoDrive, newDrivenGroup };
|
package/driver.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { Ut as nowMicros } from "./errors-D11zizZg.js";
|
|
3
3
|
import { r as waitForOperations, t as pendingOperations } from "./operation-promises-ClA1BTaS.js";
|
|
4
4
|
//#region src/driver.ts
|
|
5
5
|
/** Creates a Group on `core` ready to drive queued Inputs from the Host's event loop. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
|
-
import { o as invalidValue, q as requireValue } from "./errors-
|
|
3
|
-
import { n as toBase64 } from "./base64-
|
|
2
|
+
import { o as invalidValue, q as requireValue } from "./errors-D11zizZg.js";
|
|
3
|
+
import { n as toBase64 } from "./base64-CDO-a06R.js";
|
|
4
4
|
//#region src/standard-capability-checks.ts
|
|
5
5
|
const checks = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
const registerStandardChecks = (op, rules) => {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
|
|
2
|
-
import { A as listValues, L as nothing, Q as text, o as invalidValue, v as dec } from "./errors-
|
|
3
|
-
import {
|
|
4
|
-
import { i as decodeValueMembers } from "./readers-
|
|
5
|
-
import { n as quoteJSON, t as encodeValue } from "./encoding-
|
|
6
|
-
import { n as hostScriptError, t as add } from "./store-capability-
|
|
7
|
-
import { n as createRouter, t as changed } from "./router-
|
|
2
|
+
import { A as listValues, L as nothing, Q as text, o as invalidValue, v as dec } from "./errors-D11zizZg.js";
|
|
3
|
+
import { Z as sizeOf, lt as compareText } from "./operations-DnCcztkZ.js";
|
|
4
|
+
import { i as decodeValueMembers } from "./readers-CsvlahLi.js";
|
|
5
|
+
import { n as quoteJSON, t as encodeValue } from "./encoding-RUuES_e4.js";
|
|
6
|
+
import { n as hostScriptError, t as add } from "./store-capability-BrUUAwVS.js";
|
|
7
|
+
import { n as createRouter, t as changed } from "./router-BZ-aYeXA.js";
|
|
8
8
|
//#region src/store/engine.ts
|
|
9
9
|
/** The Session Store's quotas (chapter 12, The Session Store). */
|
|
10
10
|
const sessionQuotas = Object.freeze({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/// <reference lib="esnext.disposable" />
|
|
2
|
-
import { Dt as EffectResult, J as Value, Mt as GrantContext, Ut as SegmentContext, bt as Call,
|
|
3
|
-
import { i as WatchLimits, n as RouterOptions, t as NotificationRouter } from "./router-
|
|
2
|
+
import { Dt as EffectResult, J as Value, Mt as GrantContext, Ut as SegmentContext, bt as Call, cn as StoreImpl } from "./debug-DRhMZAxw.js";
|
|
3
|
+
import { i as WatchLimits, n as RouterOptions, t as NotificationRouter } from "./router-D56rSkU8.js";
|
|
4
4
|
//#region src/store/engine.d.ts
|
|
5
5
|
/** A Store's limits, each counted by logical size (chapter 8). */
|
|
6
6
|
type StoreQuotas = {
|