@isoloop/bus 0.0.0-next.d028bc1 → 0.0.0-next.g3322248
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/dist/bus-worker.js
CHANGED
|
@@ -135,14 +135,14 @@ function topicConfigOf(t) {
|
|
|
135
135
|
}
|
|
136
136
|
// ../codec/dist/index.js
|
|
137
137
|
var __defProp = Object.defineProperty;
|
|
138
|
-
var __exportAll = (all,
|
|
139
|
-
let target = {};
|
|
138
|
+
var __exportAll = (all, flags) => {
|
|
139
|
+
let target = Object.setPrototypeOf({}, null);
|
|
140
140
|
for (var name in all) __defProp(target, name, {
|
|
141
141
|
get: all[name],
|
|
142
142
|
enumerable: true
|
|
143
143
|
});
|
|
144
|
-
if (!
|
|
145
|
-
return target;
|
|
144
|
+
if (!(flags & 1)) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
145
|
+
return flags & 2 ? target : Object.preventExtensions(target);
|
|
146
146
|
};
|
|
147
147
|
/** Thrown by `encode` and `decode`. */
|
|
148
148
|
var CodecError = class extends Error {
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as StandardSchemaV1, a as InputOf, c as ReplyOutputOf, d as contracts, f as isContracts, g as unchecked, h as topicConfig, i as DEFAULT_MAX_RECORD_BYTES, l as Retention, m as topic, n as Contracts, o as OutputOf, p as isUnchecked, r as ContractsError, s as ReplyInputOf, t as AnyTopicDef, u as TopicDef, v as toIssues } from "./topic-
|
|
1
|
+
import { _ as StandardSchemaV1, a as InputOf, c as ReplyOutputOf, d as contracts, f as isContracts, g as unchecked, h as topicConfig, i as DEFAULT_MAX_RECORD_BYTES, l as Retention, m as topic, n as Contracts, o as OutputOf, p as isUnchecked, r as ContractsError, s as ReplyInputOf, t as AnyTopicDef, u as TopicDef, v as toIssues } from "./topic-BQbes-gX.js";
|
|
2
2
|
import { BusRecord, BusToIsolate, CallResult, ErrorCode, Grants, SeedEvent, TopicConfig } from "@isoloop/protocol";
|
|
3
3
|
/** A record before the engine gives it an offset. */
|
|
4
4
|
type NewRecord = Omit<BusRecord, "offset">;
|
package/dist/testing.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as Contracts } from "./topic-
|
|
1
|
+
import { n as Contracts } from "./topic-BQbes-gX.js";
|
|
2
2
|
import { Issue } from "@isoloop/protocol";
|
|
3
3
|
/** Sample values for one topic. An array is shorthand for `{ values }`. */
|
|
4
4
|
export type TopicSamples = readonly unknown[] | {
|
|
@@ -56,7 +56,7 @@ type TopicDef<In, Out = In, RIn = never, ROut = RIn> = {
|
|
|
56
56
|
readonly schema: StandardSchemaV1<In, Out>;
|
|
57
57
|
/** Required for `bus.request`. */
|
|
58
58
|
readonly reply?: StandardSchemaV1<RIn, ROut>;
|
|
59
|
-
readonly retention: Retention;
|
|
59
|
+
readonly retention: Retention$1;
|
|
60
60
|
/** Rough structured size limit per record. Default 256 KiB. */
|
|
61
61
|
readonly maxRecordBytes?: number;
|
|
62
62
|
/**
|
|
@@ -124,4 +124,4 @@ declare function contracts(...topics: AnyTopicDef[]): Contracts;
|
|
|
124
124
|
declare function isContracts(x: unknown): x is Contracts;
|
|
125
125
|
/** The structured-cloneable part of a topic, sent at `boot` for the contracts check (ADR 0003, decision 5). */
|
|
126
126
|
declare function topicConfig(t: AnyTopicDef): TopicConfig;
|
|
127
|
-
export { StandardSchemaV1 as _, InputOf as a, ReplyOutputOf as c, contracts as d, isContracts as f, unchecked as g, topicConfig as h, DEFAULT_MAX_RECORD_BYTES as i, Retention
|
|
127
|
+
export { StandardSchemaV1 as _, InputOf as a, ReplyOutputOf as c, contracts as d, isContracts as f, unchecked as g, topicConfig as h, DEFAULT_MAX_RECORD_BYTES as i, Retention as l, topic as m, Contracts as n, OutputOf as o, isUnchecked as p, ContractsError as r, ReplyInputOf as s, AnyTopicDef as t, TopicDef as u, toIssues as v };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isoloop/bus",
|
|
3
|
-
"version": "0.0.0-next.
|
|
3
|
+
"version": "0.0.0-next.g3322248",
|
|
4
4
|
"description": "Log bus that runs in its own worker: topics, schemas, offsets, replay.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@isoloop/codec": "0.0.0-next.
|
|
31
|
-
"@isoloop/protocol": "0.0.0-next.
|
|
30
|
+
"@isoloop/codec": "0.0.0-next.g3322248",
|
|
31
|
+
"@isoloop/protocol": "0.0.0-next.g3322248"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"fast-check": "4.10.2",
|