@geckos.io/common
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -12,2 +12,3 @@ import EventEmitter from 'eventemitter3'; | ||
removeListener(eventName: EventName, emitted: EventEmitter.ListenerFn, context?: undefined): void; | ||
removeAllListeners(): void; | ||
} | ||
@@ -14,0 +15,0 @@ declare const bridge: Bridge; |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Bridge = void 0; | ||
var eventemitter3_1 = __importDefault(require("eventemitter3")); | ||
@@ -25,2 +26,5 @@ var Bridge = /** @class */ (function () { | ||
}; | ||
Bridge.prototype.removeAllListeners = function () { | ||
this.eventEmitter.removeAllListeners(); | ||
}; | ||
return Bridge; | ||
@@ -27,0 +31,0 @@ }()); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ERRORS = exports.EVENTS = void 0; | ||
var EVENTS = { | ||
@@ -4,0 +5,0 @@ SEND_OVER_DATA_CHANNEL: 'sendOverDataChannel', |
@@ -1,3 +0,3 @@ | ||
import { Data } from './typings'; | ||
declare const isRawMessage: (data: string | number | Object | ArrayBuffer | ArrayBufferView) => boolean; | ||
import { RawMessage, Data } from './typings'; | ||
declare const isRawMessage: (data: Data | RawMessage) => boolean; | ||
declare const isObject: (data: Data) => boolean; | ||
@@ -4,0 +4,0 @@ declare const isJSONString: (data: Data) => boolean; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isJSONString = exports.isObject = exports.isRawMessage = void 0; | ||
var typings_1 = require("./typings"); | ||
@@ -4,0 +5,0 @@ var isRawMessage = function (data) { |
@@ -6,2 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.makeReliable = void 0; | ||
var makeRandomId_1 = __importDefault(require("./makeRandomId")); | ||
@@ -8,0 +9,0 @@ var runInterval_1 = __importDefault(require("./runInterval")); |
@@ -1,3 +0,4 @@ | ||
declare const SendMessage: (dataChannel: RTCDataChannel, eventName: string, data?: string | number | Object | ArrayBuffer | ArrayBufferView | null) => void; | ||
import { Data, RawMessage, EventName } from './typings'; | ||
declare const SendMessage: (dataChannel: RTCDataChannel, eventName: EventName, data?: Data | RawMessage | null) => void; | ||
export default SendMessage; | ||
//# sourceMappingURL=sendMessage.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.ArrayBufferView = void 0; | ||
var ArrayBufferView = Object.getPrototypeOf(Object.getPrototypeOf(new Uint8Array())).constructor; | ||
exports.ArrayBufferView = ArrayBufferView; | ||
//# sourceMappingURL=typings.js.map |
{ | ||
"name": "@geckos.io/common", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
21113
292