Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@based/functions

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@based/functions - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

4

dist/context.d.ts

@@ -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

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