@based/functions
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -13,2 +13,3 @@ import { AuthState } from './auth'; | ||
authState: AuthState; | ||
origin: string; | ||
obs: Set<number>; | ||
@@ -36,2 +37,3 @@ unauthorizedObs?: Set<{ | ||
res: HttpResponse; | ||
origin: string; | ||
req: HttpRequest; | ||
@@ -45,3 +47,2 @@ query?: string; | ||
method: string; | ||
corsSend?: boolean; | ||
rawBody?: string; | ||
@@ -89,2 +90,3 @@ headers: { | ||
export type Session = (WebSocketSession | HttpSession | InternalSession | MinimalExternalSession) & { | ||
origin: string; | ||
/** Only available in Ws and Http contexts */ | ||
@@ -91,0 +93,0 @@ authState?: AuthState; |
@@ -116,2 +116,4 @@ import { Context, HttpSession } from './context'; | ||
httpResponse?: HttpResponse; | ||
/** Throttle amount of outgoing messages, in milliseconds */ | ||
throttle?: number; | ||
}; | ||
@@ -131,2 +133,4 @@ type BasedCallFunctionConfig = { | ||
closeAfterIdleTime?: number; | ||
/** Throttle amount of outgoing messages, in milliseconds */ | ||
throttle?: number; | ||
}; | ||
@@ -133,0 +137,0 @@ type BasedStreamFunctionConfig = { |
{ | ||
"name": "@based/functions", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -15,2 +15,3 @@ import { AuthState } from './auth' | ||
authState: AuthState | ||
origin: string | ||
obs: Set<number> | ||
@@ -40,2 +41,3 @@ unauthorizedObs?: Set<{ | ||
res: HttpResponse | ||
origin: string | ||
req: HttpRequest | ||
@@ -49,3 +51,2 @@ query?: string | ||
method: string | ||
corsSend?: boolean | ||
rawBody?: string | ||
@@ -99,2 +100,4 @@ headers: { | ||
) & { | ||
origin: string | ||
/** Only available in Ws and Http contexts */ | ||
@@ -101,0 +104,0 @@ authState?: AuthState |
@@ -190,2 +190,4 @@ import { Context, HttpSession } from './context' | ||
httpResponse?: HttpResponse | ||
/** Throttle amount of outgoing messages, in milliseconds */ | ||
throttle?: number | ||
} | ||
@@ -207,2 +209,4 @@ | ||
closeAfterIdleTime?: number | ||
/** Throttle amount of outgoing messages, in milliseconds */ | ||
throttle?: number | ||
} | ||
@@ -209,0 +213,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
92130
2301