Socket
Socket
Sign inDemoInstall

app-sh

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-sh - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

12

dist/types/http-man.d.ts
/// <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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc