Comparing version 1.3.0 to 1.3.1
/// <reference types="node" /> | ||
import { AppSh } from "./app-sh.js"; | ||
import { SseServer } from "./sse-server"; | ||
import { SseServer, SseServerOptions } from "./sse-server"; | ||
import { z } from "zod"; | ||
import * as http from "node:http"; | ||
export { SseServer }; | ||
export { SseServer, SseServerOptions }; | ||
export type Middleware = (req: http.IncomingMessage, res: http.ServerResponse, details: EndpointCallbackDetails, next: () => Promise<void>) => Promise<void>; | ||
export type HealthcheckCallback = () => Promise<boolean>; | ||
export type SseEndpointOptions = { | ||
retryInterval?: number; | ||
pingInterval?: number; | ||
pingEvent?: string; | ||
}; | ||
export type CorsOptions = { | ||
@@ -25,3 +20,3 @@ enable: boolean; | ||
middlewareList?: Middleware[]; | ||
sseEndpointOptions?: SseEndpointOptions; | ||
sseServerOptions?: SseServerOptions; | ||
corsOptions?: CorsOptions; | ||
@@ -78,2 +73,3 @@ }; | ||
private callMiddleware; | ||
private callEndpoint; | ||
private healthcheckCallback; | ||
@@ -80,0 +76,0 @@ stop(): Promise<void>; |
/// <reference types="node" /> | ||
import * as http from "node:http"; | ||
export type SseServerOptions = { | ||
retryInterval?: number; | ||
pingInterval?: number; | ||
pingEvent?: string; | ||
}; | ||
export declare class SseServer { | ||
private _res; | ||
private _lastEventId?; | ||
constructor(res: http.ServerResponse, lastEventId?: string); | ||
constructor(req: http.IncomingMessage, res: http.ServerResponse, sseOptions: SseServerOptions); | ||
get lastEventId(): string | undefined; | ||
@@ -8,0 +13,0 @@ setRetry(delay: number): void; |
{ | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"name": "app-sh", | ||
@@ -4,0 +4,0 @@ "description": "App Shell", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
66750
508
2