@geckos.io/common
Advanced tools
Comparing version 2.3.0 to 2.3.1
@@ -0,0 +0,0 @@ import { ChannelId, Data, EventName, EventOptions, RoomId } from './types.js'; |
@@ -0,0 +0,0 @@ import { Events } from '@yandeu/events'; |
@@ -0,0 +0,0 @@ declare const EVENTS: { |
@@ -0,0 +0,0 @@ const EVENTS = { |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ import { ArrayBufferView } from './types.js'; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ /** |
declare const makeRandomId: (length?: number) => string; | ||
export default makeRandomId; | ||
//# sourceMappingURL=makeRandomId.d.ts.map |
@@ -0,0 +0,0 @@ const makeRandomId = (length = 24) => { |
@@ -0,0 +0,0 @@ declare const ParseMessage: (ev: MessageEvent) => { |
@@ -0,0 +0,0 @@ import { ERRORS, EVENTS } from './constants.js'; |
declare const makeReliable: (options: any, cb: Function) => void; | ||
export { makeReliable }; | ||
//# sourceMappingURL=reliableMessage.d.ts.map |
@@ -0,0 +0,0 @@ import makeRandomId from './makeRandomId.js'; |
declare const runInterval: (interval: number | undefined, runs: number | undefined, cb: Function) => void; | ||
export default runInterval; | ||
//# sourceMappingURL=runInterval.d.ts.map |
@@ -0,0 +0,0 @@ const runInterval = (interval = 200, runs = 1, cb) => { |
@@ -0,0 +0,0 @@ import { Data, EventName, RawMessage } from './types.js'; |
@@ -0,0 +0,0 @@ import { isBufferMessage, isStringMessage } from './helpers.js'; |
@@ -5,11 +5,11 @@ /// <reference types="node" /> | ||
export { ArrayBufferView }; | ||
export declare type ChannelId = string | undefined; | ||
export declare type Data = string | number | Object; | ||
export declare type EventName = string; | ||
export declare type Payload = { | ||
export type ChannelId = string | undefined; | ||
export type Data = string | number | Object; | ||
export type EventName = string; | ||
export type Payload = { | ||
[eventName: string]: Data; | ||
}; | ||
export declare type RawMessage = USVString | ArrayBuffer | ArrayBufferView; | ||
export declare type RoomId = ChannelId; | ||
export declare type USVString = string; | ||
export type RawMessage = USVString | ArrayBuffer | ArrayBufferView; | ||
export type RoomId = ChannelId; | ||
export type USVString = string; | ||
/** The geckos.io server options. */ | ||
@@ -32,2 +32,4 @@ export interface ServerOptions { | ||
iceTransportPolicy?: RTCIceTransportPolicy; | ||
/** If defined, bind only to the given local address. Default: undefined */ | ||
bindAddress?: string; | ||
/** A human-readable name for the channel. This string may not be longer than 65,535 bytes. Default: 'geckos.io'. */ | ||
@@ -64,3 +66,3 @@ label?: string; | ||
} | ||
declare type CorsOptionsOriginFunction = (req: IncomingMessage) => string; | ||
type CorsOptionsOriginFunction = (req: IncomingMessage) => string; | ||
/** The CORS options. */ | ||
@@ -67,0 +69,0 @@ export interface CorsOptions { |
const ArrayBufferView = Object.getPrototypeOf(Object.getPrototypeOf(new Uint8Array())).constructor; | ||
export { ArrayBufferView }; | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "@geckos.io/common", | ||
"version": "2.3.0", | ||
"version": "2.3.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
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
383
29072