@crvouga/mockingbird-service-junction 1.9.0 → 2.0.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/CHANGELOG.md +25 -1
- package/DISCOVERY.md +55 -0
- package/README.md +4 -4
- package/SUPPORT.md +50 -0
- package/dist/{chunk-S4CJ5QWE.js → chunk-7LPCTLIJ.js} +43 -23
- package/dist/chunk-7LPCTLIJ.js.map +7 -0
- package/dist/{chunk-WL4WPDHG.js → chunk-FZVFIPML.js} +623 -236
- package/dist/chunk-FZVFIPML.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1 -1
- package/dist/server.d.ts +4 -1
- package/dist/server.js +2 -2
- package/openapi.yaml +3707 -0
- package/package.json +29 -4
- package/dist/chunk-S4CJ5QWE.js.map +0 -7
- package/dist/chunk-WL4WPDHG.js.map +0 -7
package/dist/cli.js
CHANGED
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
runCli,
|
|
5
5
|
serveCommand,
|
|
6
6
|
serveTarget
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7LPCTLIJ.js";
|
|
8
8
|
import {
|
|
9
9
|
DEFAULT_JUNCTION_BASE_URL,
|
|
10
10
|
createRuntime,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
isSandboxKey,
|
|
13
13
|
pullCorpus,
|
|
14
14
|
verifyAgainstReal
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FZVFIPML.js";
|
|
16
16
|
import {
|
|
17
17
|
defaultCorpus
|
|
18
18
|
} from "./chunk-C2UGIPPM.js";
|
package/dist/index.d.ts
CHANGED
|
@@ -1545,6 +1545,8 @@ type JunctionRuntimeOptions = {
|
|
|
1545
1545
|
clock?: Clock;
|
|
1546
1546
|
/** Seeds fault rates and webhook retry jitter. */
|
|
1547
1547
|
seed?: number | string;
|
|
1548
|
+
/** Prefix for all internal HTTP paths. Default /__admin. */
|
|
1549
|
+
adminPrefix?: string;
|
|
1548
1550
|
/** Require `x-mockingbird-admin-key` on `/__admin/*`. */
|
|
1549
1551
|
adminKey?: string;
|
|
1550
1552
|
onLog?: (entry: RequestLog) => void;
|
|
@@ -1555,7 +1557,7 @@ type JunctionRuntime = ServiceRuntime<JunctionAPI> & {
|
|
|
1555
1557
|
};
|
|
1556
1558
|
/**
|
|
1557
1559
|
* The Junction mock with Mockingbird's full service contract: unauthenticated
|
|
1558
|
-
* `/health`, the `/__admin/*` control plane, per-request namespaces
|
|
1560
|
+
* `/__admin/health`, the `/__admin/*` control plane, per-request namespaces
|
|
1559
1561
|
* (`x-mockingbird-namespace`), clock control, fault injection and request metrics.
|
|
1560
1562
|
* Runtime-neutral: serve it with any Fetch-native server, or use `./server` for Node.
|
|
1561
1563
|
*/
|
|
@@ -1673,7 +1675,7 @@ type JunctionAPIOptions = APIOptions & {
|
|
|
1673
1675
|
/** Users and orders to load into every namespace, re-applied on every `reset()`. */
|
|
1674
1676
|
fixtures?: JunctionFixtures;
|
|
1675
1677
|
};
|
|
1676
|
-
/** What a loaded corpus covers, for `/health` and startup logs. */
|
|
1678
|
+
/** What a loaded corpus covers, for `/__admin/health` and startup logs. */
|
|
1677
1679
|
type CorpusInfo = {
|
|
1678
1680
|
label: string;
|
|
1679
1681
|
recordedAt: string;
|
package/dist/index.js
CHANGED
package/dist/server.d.ts
CHANGED
|
@@ -593,6 +593,7 @@ type CliOption = {
|
|
|
593
593
|
};
|
|
594
594
|
type CliValues = Record<string, string | boolean | undefined>;
|
|
595
595
|
type CommonServeOptions = {
|
|
596
|
+
adminPrefix?: string;
|
|
596
597
|
adminKey: string | undefined;
|
|
597
598
|
seed: string | undefined;
|
|
598
599
|
onLog: ((entry: RequestLog$1) => void) | undefined;
|
|
@@ -1708,7 +1709,7 @@ type JunctionAPIOptions = APIOptions & {
|
|
|
1708
1709
|
/** Users and orders to load into every namespace, re-applied on every `reset()`. */
|
|
1709
1710
|
fixtures?: JunctionFixtures;
|
|
1710
1711
|
};
|
|
1711
|
-
/** What a loaded corpus covers, for `/health` and startup logs. */
|
|
1712
|
+
/** What a loaded corpus covers, for `/__admin/health` and startup logs. */
|
|
1712
1713
|
type CorpusInfo = {
|
|
1713
1714
|
label: string;
|
|
1714
1715
|
recordedAt: string;
|
|
@@ -1847,6 +1848,8 @@ type JunctionRuntimeOptions = {
|
|
|
1847
1848
|
clock?: Clock;
|
|
1848
1849
|
/** Seeds fault rates and webhook retry jitter. */
|
|
1849
1850
|
seed?: number | string;
|
|
1851
|
+
/** Prefix for all internal HTTP paths. Default /__admin. */
|
|
1852
|
+
adminPrefix?: string;
|
|
1850
1853
|
/** Require `x-mockingbird-admin-key` on `/__admin/*`. */
|
|
1851
1854
|
adminKey?: string;
|
|
1852
1855
|
onLog?: (entry: RequestLog) => void;
|
package/dist/server.js
CHANGED