Socket
Socket
Sign inDemoInstall

@geckos.io/common

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geckos.io/common - npm Package Compare versions

Comparing version 1.6.0 to 1.6.1

4

lib/bridge.d.ts
import EventEmitter from 'eventemitter3';
import { Data, ChannelId, EventName, RoomId } from './types';
export declare class Bridge {
eventEmitter: EventEmitter<string | symbol>;
eventEmitter: EventEmitter<string | symbol, any>;
emit(eventName: EventName, data?: Data, connection?: {

@@ -10,3 +10,3 @@ senderId?: ChannelId;

}): void;
on(eventName: EventName, cb: Function): EventEmitter<string | symbol>;
on(eventName: EventName, cb: Function): EventEmitter<string | symbol, any>;
removeAllListeners(): void;

@@ -13,0 +13,0 @@ }

@@ -23,3 +23,3 @@ /// <reference types="node" />

autoManageBuffering?: boolean;
authorization?: (header: string) => Promise<boolean | any>;
authorization?: (header: string | undefined) => Promise<boolean | any>;
}

@@ -42,2 +42,3 @@ export interface ClientOptions {

origin: string | CorsOptionsOriginFunction;
allowAuthorization?: boolean;
}

@@ -44,0 +45,0 @@ export interface EventCallbackClient {

{
"name": "@geckos.io/common",
"version": "1.6.0",
"version": "1.6.1",
"description": "The common module for @geckos.io/server and @geckos.io/client.",

@@ -5,0 +5,0 @@ "main": "lib",

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