@geckos.io/common
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -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 = { |
@@ -13,5 +13,4 @@ /// <reference types="node" /> | ||
declare const isBufferMessage: (data: any) => boolean; | ||
declare const isObject: (data: Data) => boolean; | ||
declare const isJSONMessage: (data: Data) => boolean; | ||
export { isStringMessage, isBufferMessage, isObject, isJSONMessage }; | ||
export { isStringMessage, isBufferMessage, isJSONMessage }; | ||
//# sourceMappingURL=helpers.d.ts.map |
@@ -35,5 +35,2 @@ import { ArrayBufferView } from './types.js'; | ||
}; | ||
const isObject = (data) => { | ||
return typeof data === 'object'; | ||
}; | ||
const isJSONMessage = (data) => { | ||
@@ -55,3 +52,3 @@ try { | ||
}; | ||
export { isStringMessage, isBufferMessage, isObject, isJSONMessage }; | ||
export { isStringMessage, isBufferMessage, isJSONMessage }; | ||
//# sourceMappingURL=helpers.js.map |
@@ -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'; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
const ArrayBufferView = Object.getPrototypeOf(Object.getPrototypeOf(new Uint8Array())).constructor; | ||
export { ArrayBufferView }; | ||
//# sourceMappingURL=types.js.map |
{ | ||
"name": "@geckos.io/common", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "The common module for @geckos.io/server and @geckos.io/client.", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
@@ -0,0 +0,0 @@ # @geckos.io/common |
Sorry, the diff of this file is not supported yet
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
28986
379