@crvouga/mockingbird-service-redis 2.14.1 → 2.16.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/{chunk-FDTSPQXG.js → chunk-63SLX3Q5.js} +2 -2
- package/dist/chunk-RX6VEQSN.js +310 -0
- package/dist/chunk-RX6VEQSN.js.map +7 -0
- package/dist/{chunk-PVKTPCGH.js → chunk-UUFJK44W.js} +2 -2
- package/dist/{chunk-G64ZBC4S.js → chunk-WXBI6ZKL.js} +25 -1
- package/dist/chunk-WXBI6ZKL.js.map +7 -0
- package/dist/cli.js +5 -5050
- package/dist/cli.js.map +4 -4
- package/dist/index.js +2 -2
- package/dist/server.d.ts +6 -0
- package/dist/server.js +4 -4
- package/dist/transport.js +2 -2
- package/package.json +4 -1
- package/dist/admin-ui.js +0 -25
- package/dist/admin-ui.js.map +0 -7
- package/dist/chunk-G64ZBC4S.js.map +0 -7
- package/dist/chunk-YXDZMAWF.js +0 -892
- package/dist/chunk-YXDZMAWF.js.map +0 -7
- /package/dist/{chunk-FDTSPQXG.js.map → chunk-63SLX3Q5.js.map} +0 -0
- /package/dist/{chunk-PVKTPCGH.js.map → chunk-UUFJK44W.js.map} +0 -0
package/dist/index.js
CHANGED
package/dist/server.d.ts
CHANGED
|
@@ -32,6 +32,11 @@ type Clock = {
|
|
|
32
32
|
state(): ClockState;
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
+
type UpstreamState = {
|
|
36
|
+
mode: "emulated" | "forward";
|
|
37
|
+
baseUrl: string;
|
|
38
|
+
};
|
|
39
|
+
|
|
35
40
|
/**
|
|
36
41
|
* A deliberate failure injected in front of an operation.
|
|
37
42
|
*
|
|
@@ -189,6 +194,7 @@ declare const SNAPSHOT_FORMAT = "mockingbird.snapshot/v1";
|
|
|
189
194
|
* `records` are required, so a hand-written seed file is a valid snapshot.
|
|
190
195
|
*/
|
|
191
196
|
type SnapshotDocument = {
|
|
197
|
+
upstream?: UpstreamState;
|
|
192
198
|
format: typeof SNAPSHOT_FORMAT;
|
|
193
199
|
/** The service that wrote it. A snapshot is rejected by any other service. */
|
|
194
200
|
service?: string;
|
package/dist/server.js
CHANGED
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
DEFAULT_PORT,
|
|
3
3
|
serve,
|
|
4
4
|
serveTarget
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-RX6VEQSN.js";
|
|
6
|
+
import "./chunk-63SLX3Q5.js";
|
|
7
7
|
import {
|
|
8
8
|
createRespServer
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-UUFJK44W.js";
|
|
10
|
+
import "./chunk-WXBI6ZKL.js";
|
|
11
11
|
export {
|
|
12
12
|
DEFAULT_PORT,
|
|
13
13
|
createRespServer,
|
package/dist/transport.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/mockingbird-service-redis",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.16.0",
|
|
4
4
|
"description": "In-process Redis RESP server for tests: strings, hashes, lists, sets, sorted sets, streams, transactions, pub/sub, and a Lua subset, with an injected clock. Not an HTTP emulator.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -91,6 +91,9 @@
|
|
|
91
91
|
"pack:check": "bun ../../../scripts/pack-check.ts",
|
|
92
92
|
"parity:bullmq": "bun scripts/bullmq-parity.ts"
|
|
93
93
|
},
|
|
94
|
+
"dependencies": {
|
|
95
|
+
"@crvouga/mockingbird-runtime": "0.0.1"
|
|
96
|
+
},
|
|
94
97
|
"devDependencies": {
|
|
95
98
|
"@crvouga/mockingbird-adapter-node": "0.0.0-development",
|
|
96
99
|
"@crvouga/mockingbird-service": "0.0.0-development",
|