@hasna/contacts 0.6.31 → 0.6.33

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.
@@ -0,0 +1,3 @@
1
+ export declare function createCloudRequestHandler(): (req: Request) => Promise<Response>;
2
+ export declare function startCloudServer(port: number, hostname: string): void;
3
+ //# sourceMappingURL=cloud-serve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cloud-serve.d.ts","sourceRoot":"","sources":["../../src/server/cloud-serve.ts"],"names":[],"mappings":"AAkCA,wBAAgB,yBAAyB,IAAI,CAAC,GAAG,EAAE,OAAO,KAAK,OAAO,CAAC,QAAQ,CAAC,CA2D/E;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,IAAI,CAGrE"}
@@ -15,7 +15,9 @@ export declare const CONTACTS_APP_SLUG = "contacts";
15
15
  export declare function resolveCloudDatabaseUrl(env?: NodeJS.ProcessEnv): string | undefined;
16
16
  /** Resolve the HMAC signing secret used to verify API keys. */
17
17
  export declare function resolveSigningSecret(env?: NodeJS.ProcessEnv): string | undefined;
18
- /** True when this process is configured to serve the cloud `/v1` API. */
18
+ /** True when this process is configured to serve the cloud `/v1` API.
19
+ * Explicit remote mode remains cloud even when its DSN is missing so readiness
20
+ * fails closed instead of presenting the process as a healthy local server. */
19
21
  export declare function isCloudModeEnabled(env?: NodeJS.ProcessEnv): boolean;
20
22
  /** The vendored-kit Postgres pool client backing every `/v1` handler. */
21
23
  export declare function getCloudClient(): PoolQueryClient;
@@ -1 +1 @@
1
- {"version":3,"file":"cloud.d.ts","sourceRoot":"","sources":["../../src/server/cloud.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAAgB,WAAW,EAAE,KAAK,cAAc,EAAwB,MAAM,uBAAuB,CAAC;AAE7G,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAIzE,eAAO,M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