@crvouga/mockingbird-service-posthog 1.5.1 → 1.6.1
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 +14 -4
- package/dist/{chunk-A2LFFKO5.js → chunk-3MHSTPMV.js} +3 -2
- package/dist/chunk-3MHSTPMV.js.map +7 -0
- package/dist/{chunk-2X5264I2.js → chunk-F5TQPEXZ.js} +89 -10
- package/dist/chunk-F5TQPEXZ.js.map +7 -0
- package/dist/cli.js +2 -2
- package/dist/index.js +1 -1
- package/dist/server.d.ts +11 -9
- package/dist/server.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-2X5264I2.js.map +0 -7
- package/dist/chunk-A2LFFKO5.js.map +0 -7
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
package/dist/server.d.ts
CHANGED
|
@@ -546,6 +546,15 @@ type ServiceRuntime$1<T extends ServiceInstance$1> = FetchAPI$2 & {
|
|
|
546
546
|
state(namespace?: string): StateView$1;
|
|
547
547
|
};
|
|
548
548
|
|
|
549
|
+
/** A running server, with the address it actually bound. */
|
|
550
|
+
type Listening = {
|
|
551
|
+
url: string;
|
|
552
|
+
port: number;
|
|
553
|
+
host: string;
|
|
554
|
+
server: Server;
|
|
555
|
+
close(): Promise<void>;
|
|
556
|
+
};
|
|
557
|
+
|
|
549
558
|
type CliOption = {
|
|
550
559
|
type: "string" | "boolean";
|
|
551
560
|
description: string;
|
|
@@ -572,15 +581,8 @@ type ServeTarget = {
|
|
|
572
581
|
create(values: CliValues, common: CommonServeOptions): Promise<ServiceRuntime$1<ServiceInstance$1>> | ServiceRuntime$1<ServiceInstance$1>;
|
|
573
582
|
/** Startup lines after the listen address, e.g. the loaded corpus version. */
|
|
574
583
|
banner?(runtime: ServiceRuntime$1<ServiceInstance$1>): string[];
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
/** A running server, with the address it actually bound. */
|
|
578
|
-
type Listening = {
|
|
579
|
-
url: string;
|
|
580
|
-
port: number;
|
|
581
|
-
host: string;
|
|
582
|
-
server: Server;
|
|
583
|
-
close(): Promise<void>;
|
|
584
|
+
/** After the HTTP server is bound. A service that speaks more than HTTP attaches it here. */
|
|
585
|
+
listening?(server: Listening): void;
|
|
584
586
|
};
|
|
585
587
|
|
|
586
588
|
/**
|
package/dist/server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crvouga/mockingbird-service-posthog",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.1",
|
|
4
4
|
"description": "Stateful mock of PostHog: /flags v2 and legacy /decide evaluation with per-test flag, variant and payload control, remote config, gzip/base64 capture (/batch/, /e/, /i/v0/e/), recordings intake, and the feature-flag management and HogQL API slice.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|