@isoloop/bus 0.0.0-next.69da74b → 0.0.0-next.f57e259
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 +3 -2
- package/package.json +3 -3
package/dist/bus-worker.js
CHANGED
|
@@ -8,11 +8,12 @@ const isRecord$1 = (x) => typeof x === "object" && x !== null && !Array.isArray(
|
|
|
8
8
|
const isOptionalString = (x) => x === void 0 || typeof x === "string";
|
|
9
9
|
/**
|
|
10
10
|
* True for a well-formed envelope this build can read: `v` is a supported
|
|
11
|
-
* version, `t` is a string, `id`/`re` are absent or strings, and `p`
|
|
11
|
+
* version, `t` is a string, `id`/`re`/`isolate` are absent or strings, and `p`
|
|
12
|
+
* is present.
|
|
12
13
|
* Says nothing about whether `t` is known; see the per-port guards.
|
|
13
14
|
*/
|
|
14
15
|
function isEnvelope(x) {
|
|
15
|
-
return isRecord$1(x) && x["v"] === PROTOCOL.v && typeof x["t"] === "string" && "p" in x && isOptionalString(x["id"]) && isOptionalString(x["re"]);
|
|
16
|
+
return isRecord$1(x) && x["v"] === PROTOCOL.v && typeof x["t"] === "string" && "p" in x && isOptionalString(x["id"]) && isOptionalString(x["re"]) && isOptionalString(x["isolate"]);
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
18
19
|
* Builds a guard for one port's union from its message types. Each side drops
|
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.f57e259",
|
|
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.f57e259",
|
|
31
|
+
"@isoloop/protocol": "0.0.0-next.f57e259"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"fast-check": "4.10.2",
|