@crvouga/mockingbird-runtime 0.1.0 → 0.2.0
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/adapter-node.d.ts +8 -0
- package/dist/adapter-node.js +6 -3
- package/dist/adapter-node.js.map +2 -2
- package/dist/{chunk-SNMV36AZ.js → chunk-5WW5N4TU.js} +3 -3
- package/dist/{chunk-XNS34BPF.js → chunk-LL6NKAJO.js} +8 -3
- package/dist/chunk-LL6NKAJO.js.map +7 -0
- package/dist/{chunk-J4M2I37S.js → chunk-OISPHKE2.js} +5 -5
- package/dist/{chunk-J4M2I37S.js.map → chunk-OISPHKE2.js.map} +2 -2
- package/dist/http-provider.js +2 -2
- package/dist/mqtt-broker/node.js +3 -3
- package/dist/mqtt-broker.js +3 -3
- package/dist/service/admin.js +1 -1
- package/dist/service.d.ts +8 -1
- package/dist/service.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-XNS34BPF.js.map +0 -7
- /package/dist/{chunk-SNMV36AZ.js.map → chunk-5WW5N4TU.js.map} +0 -0
package/dist/http-provider.js
CHANGED
|
@@ -18,11 +18,11 @@ import {
|
|
|
18
18
|
import {
|
|
19
19
|
Collection,
|
|
20
20
|
bootSqlite
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OISPHKE2.js";
|
|
22
22
|
import {
|
|
23
23
|
clearNamespace
|
|
24
24
|
} from "./chunk-2KDYLZXC.js";
|
|
25
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-LL6NKAJO.js";
|
|
26
26
|
import {
|
|
27
27
|
requestBaseUrl
|
|
28
28
|
} from "./chunk-2Y25NPCV.js";
|
package/dist/mqtt-broker/node.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MAX_VARIABLE_BYTE_INTEGER,
|
|
3
3
|
MQTT_WEBSOCKET_PATH
|
|
4
|
-
} from "../chunk-
|
|
5
|
-
import "../chunk-
|
|
4
|
+
} from "../chunk-5WW5N4TU.js";
|
|
5
|
+
import "../chunk-OISPHKE2.js";
|
|
6
6
|
import "../chunk-2KDYLZXC.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-LL6NKAJO.js";
|
|
8
8
|
import "../chunk-2Y25NPCV.js";
|
|
9
9
|
import "../chunk-EQLY2YOA.js";
|
|
10
10
|
import "../chunk-HU6IOAFC.js";
|
package/dist/mqtt-broker.js
CHANGED
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
observeClock,
|
|
15
15
|
takeConnackFault,
|
|
16
16
|
webSocketNamespace
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5WW5N4TU.js";
|
|
18
18
|
import {
|
|
19
19
|
Collection,
|
|
20
20
|
IdSequence
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OISPHKE2.js";
|
|
22
22
|
import "./chunk-2KDYLZXC.js";
|
|
23
23
|
import {
|
|
24
24
|
fromBase64,
|
|
25
25
|
toBase64
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-LL6NKAJO.js";
|
|
27
27
|
import "./chunk-2Y25NPCV.js";
|
|
28
28
|
import "./chunk-EQLY2YOA.js";
|
|
29
29
|
import "./chunk-HU6IOAFC.js";
|
package/dist/service/admin.js
CHANGED
package/dist/service.d.ts
CHANGED
|
@@ -561,6 +561,11 @@ type MockControls = NamespaceControls$1 & {
|
|
|
561
561
|
credentials?: Record<string, string>;
|
|
562
562
|
/** Overrides for named namespaces. A key given here replaces the shared value. */
|
|
563
563
|
namespaces?: Record<string, NamespaceControls$1>;
|
|
564
|
+
/**
|
|
565
|
+
* Record a time-travel checkpoint after every accepted write. Default true. The runtime's own
|
|
566
|
+
* `checkpointMutations` option wins over this.
|
|
567
|
+
*/
|
|
568
|
+
checkpointMutations?: boolean;
|
|
564
569
|
};
|
|
565
570
|
/** A latency rule in milliseconds. */
|
|
566
571
|
type LatencyRule = {
|
|
@@ -595,6 +600,7 @@ type BootPlan = {
|
|
|
595
600
|
shared: ControlPlan;
|
|
596
601
|
namespaces: Record<string, ControlPlan>;
|
|
597
602
|
credentials: Record<string, string>;
|
|
603
|
+
checkpointMutations?: boolean;
|
|
598
604
|
};
|
|
599
605
|
/** Validate a boot {@link MockControls} document. */
|
|
600
606
|
declare const normalizeBootControls: (value: unknown, label?: string) => BootPlan;
|
|
@@ -2399,7 +2405,8 @@ type RuntimeOptions<T extends ServiceInstance> = {
|
|
|
2399
2405
|
* Record a time-travel checkpoint after every accepted mutation and stamp its id in
|
|
2400
2406
|
* `x-mockingbird-checkpoint`. Default true. Each checkpoint reads the whole namespace, so a
|
|
2401
2407
|
* long-running mock that never travels back can turn this off to keep a write's cost its own;
|
|
2402
|
-
* `checkpoint`, `snapshot`, `branch` and `checkout` still capture when called.
|
|
2408
|
+
* `checkpoint`, `snapshot`, `branch` and `checkout` still capture when called. Wins over
|
|
2409
|
+
* `adminControls.checkpointMutations`, which a fleet entry can set for any service.
|
|
2403
2410
|
*/
|
|
2404
2411
|
checkpointMutations?: boolean;
|
|
2405
2412
|
/** Injectable process IO used for observability and delays; logical service time uses `clock`. */
|
package/dist/service.js
CHANGED
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
verifyOperations,
|
|
66
66
|
webhookAdminRoutes,
|
|
67
67
|
withNamespaceRollback
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-OISPHKE2.js";
|
|
69
69
|
import "./chunk-2KDYLZXC.js";
|
|
70
70
|
import {
|
|
71
71
|
ADMIN_CONTROL_PAGES,
|
|
@@ -126,7 +126,7 @@ import {
|
|
|
126
126
|
timingSafeEqual,
|
|
127
127
|
toBase64,
|
|
128
128
|
toHex
|
|
129
|
-
} from "./chunk-
|
|
129
|
+
} from "./chunk-LL6NKAJO.js";
|
|
130
130
|
import {
|
|
131
131
|
requestBaseUrl
|
|
132
132
|
} from "./chunk-2Y25NPCV.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/mockingbird-runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "The shared Mockingbird runtime every emulator service depends on: router, admin API and page, snapshots, faults and clock, installed once however many emulators an application uses.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|