@sovereignbase/sequencer 0.0.0 → 0.0.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 +45 -28
- package/dist/index.cjs +137 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.ts +8 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +137 -45
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -15,7 +15,14 @@ type Insertion<T> = Readonly<[words: InsertionWords, footage?: ReadonlyArray<T |
|
|
|
15
15
|
/** `[actorID, sessionID, sessionEnd, ...]`. */
|
|
16
16
|
type Acknowledgement = U32List;
|
|
17
17
|
type Gossip<T> = ReadonlyArray<Acknowledgement | Insertion<T>>;
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* One structural array and one JS-owned content array.
|
|
20
|
+
* `words[0]` is the start of the six-word insertion records. Before that:
|
|
21
|
+
* `[frontiersEnd, acknowledgementLength, ...acknowledgement, ...]`.
|
|
22
|
+
* Positive insertion diffs consume successive spans of `footage`.
|
|
23
|
+
* `[[], []]` is an empty Sequence. Both numeric arrays and typed views are accepted.
|
|
24
|
+
*/
|
|
25
|
+
type Sequence<T> = Readonly<[words: U32List, footage: ReadonlyArray<T | undefined>]>;
|
|
19
26
|
type Splice<T> = Readonly<[startAt: number, endWith: number, values?: ReadonlyArray<T | undefined>]>;
|
|
20
27
|
type Change<T> = ReadonlyArray<Splice<T>>;
|
|
21
28
|
type Result<T> = Readonly<[change: Change<T>, gossip?: Gossip<T>]>;
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/typescript/types/type.ts","../src/typescript/class.ts"],"mappings":";;;KACY,UAAU,cAAc;;;;;;;;KASxB,iBAAiB;;KAGjB,UAAU,KAAK,UACxB,OAAO,gBAAgB,UAAU,cAAc;;KAItC,kBAAkB;KAElB,OAAO,KAAK,cAAc,kBAAkB,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/typescript/types/type.ts","../src/typescript/class.ts"],"mappings":";;;KACY,UAAU,cAAc;;;;;;;;KASxB,iBAAiB;;KAGjB,UAAU,KAAK,UACxB,OAAO,gBAAgB,UAAU,cAAc;;KAItC,kBAAkB;KAElB,OAAO,KAAK,cAAc,kBAAkB,UAAU;;;;;;;;KAStD,SAAS,KAAK,UACvB,OAAO,SAAS,SAAS,cAAc;KAG9B,OAAO,KAAK,UACrB,iBAAiB,iBAAiB,SAAS,cAAc;KAGhD,OAAO,KAAK,cAAc,OAAO;KACjC,OAAO,KAAK,UAAU,QAAQ,OAAO,IAAI,SAAS,OAAO;;;;qBCjCxD,WAAW;WAIJ;UAHV;EAGU,YAAA,iBAChB;EAKF,MAAM,kBAAkB,OAAO;EAI/B,OAAO,QAAQ,MAAM,IAAI,aAAa,OAAO;EAI7C;EAIA,MAAM,oBAAoB,OAAO;EAIjC,OAAO,kBAAkB,mBAAmB,OAAO;EAInD,QAAQ,YAAY,MAAM,IAAI,kBAAkB,mBAAmB,OAAO;EAU1E,OAAO;EAIP,YAAY,SAAS;EAIrB,MAAM,aAAa;EAInB,OAAO,kBAAkB,mBAAmB,MAAM;EAIlD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,14 @@ type Insertion<T> = Readonly<[words: InsertionWords, footage?: ReadonlyArray<T |
|
|
|
15
15
|
/** `[actorID, sessionID, sessionEnd, ...]`. */
|
|
16
16
|
type Acknowledgement = U32List;
|
|
17
17
|
type Gossip<T> = ReadonlyArray<Acknowledgement | Insertion<T>>;
|
|
18
|
-
|
|
18
|
+
/**
|
|
19
|
+
* One structural array and one JS-owned content array.
|
|
20
|
+
* `words[0]` is the start of the six-word insertion records. Before that:
|
|
21
|
+
* `[frontiersEnd, acknowledgementLength, ...acknowledgement, ...]`.
|
|
22
|
+
* Positive insertion diffs consume successive spans of `footage`.
|
|
23
|
+
* `[[], []]` is an empty Sequence. Both numeric arrays and typed views are accepted.
|
|
24
|
+
*/
|
|
25
|
+
type Sequence<T> = Readonly<[words: U32List, footage: ReadonlyArray<T | undefined>]>;
|
|
19
26
|
type Splice<T> = Readonly<[startAt: number, endWith: number, values?: ReadonlyArray<T | undefined>]>;
|
|
20
27
|
type Change<T> = ReadonlyArray<Splice<T>>;
|
|
21
28
|
type Result<T> = Readonly<[change: Change<T>, gossip?: Gossip<T>]>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/typescript/types/type.ts","../src/typescript/class.ts"],"mappings":";;;KACY,UAAU,cAAc;;;;;;;;KASxB,iBAAiB;;KAGjB,UAAU,KAAK,UACxB,OAAO,gBAAgB,UAAU,cAAc;;KAItC,kBAAkB;KAElB,OAAO,KAAK,cAAc,kBAAkB,UAAU
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/typescript/types/type.ts","../src/typescript/class.ts"],"mappings":";;;KACY,UAAU,cAAc;;;;;;;;KASxB,iBAAiB;;KAGjB,UAAU,KAAK,UACxB,OAAO,gBAAgB,UAAU,cAAc;;KAItC,kBAAkB;KAElB,OAAO,KAAK,cAAc,kBAAkB,UAAU;;;;;;;;KAStD,SAAS,KAAK,UACvB,OAAO,SAAS,SAAS,cAAc;KAG9B,OAAO,KAAK,UACrB,iBAAiB,iBAAiB,SAAS,cAAc;KAGhD,OAAO,KAAK,cAAc,OAAO;KACjC,OAAO,KAAK,UAAU,QAAQ,OAAO,IAAI,SAAS,OAAO;;;;qBCjCxD,WAAW;WAIJ;UAHV;EAGU,YAAA,iBAChB;EAKF,MAAM,kBAAkB,OAAO;EAI/B,OAAO,QAAQ,MAAM,IAAI,aAAa,OAAO;EAI7C;EAIA,MAAM,oBAAoB,OAAO;EAIjC,OAAO,kBAAkB,mBAAmB,OAAO;EAInD,QAAQ,YAAY,MAAM,IAAI,kBAAkB,mBAAmB,OAAO;EAU1E,OAAO;EAIP,YAAY,SAAS;EAIrB,MAAM,aAAa;EAInB,OAAO,kBAAkB,mBAAmB,MAAM;EAIlD"}
|