@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/dist/cli.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  runCli,
4
4
  serveCommand,
5
5
  serveTarget
6
- } from "./chunk-A2LFFKO5.js";
7
- import "./chunk-2X5264I2.js";
6
+ } from "./chunk-3MHSTPMV.js";
7
+ import "./chunk-F5TQPEXZ.js";
8
8
 
9
9
  // src/cli.ts
10
10
  var code = await runCli(
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ import {
15
15
  supportedOperationIds,
16
16
  tokenFromBody,
17
17
  valueForState
18
- } from "./chunk-2X5264I2.js";
18
+ } from "./chunk-F5TQPEXZ.js";
19
19
  export {
20
20
  ACME_FLAG_STATE,
21
21
  POSTHOG_NAMESPACE,
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
@@ -2,8 +2,8 @@ import {
2
2
  DEFAULT_PORT,
3
3
  createServer,
4
4
  serveTarget
5
- } from "./chunk-A2LFFKO5.js";
6
- import "./chunk-2X5264I2.js";
5
+ } from "./chunk-3MHSTPMV.js";
6
+ import "./chunk-F5TQPEXZ.js";
7
7
  export {
8
8
  DEFAULT_PORT,
9
9
  createServer,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/mockingbird-service-posthog",
3
- "version": "1.5.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",