@geckos.io/common
Advanced tools
Comparing version 2.0.0-dev.0 to 2.0.0-dev.1
@@ -0,0 +0,0 @@ import EventEmitter from 'eventemitter3'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ declare const EVENTS: { |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Data } from './types'; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /** |
@@ -0,0 +0,0 @@ "use strict"; |
declare const makeRandomId: (length?: number) => string; | ||
export default makeRandomId; | ||
//# sourceMappingURL=makeRandomId.d.ts.map |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ declare const ParseMessage: (ev: MessageEvent) => { |
@@ -0,0 +0,0 @@ "use strict"; |
declare const makeReliable: (options: any, cb: Function) => void; | ||
export { makeReliable }; | ||
//# sourceMappingURL=reliableMessage.d.ts.map |
@@ -0,0 +0,0 @@ "use strict"; |
declare const runInterval: (interval: number | undefined, runs: number | undefined, cb: Function) => void; | ||
export default runInterval; | ||
//# sourceMappingURL=runInterval.d.ts.map |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ import { Data, RawMessage, EventName } from './types'; |
@@ -16,3 +16,4 @@ "use strict"; | ||
else { | ||
Promise.resolve().then(function () { | ||
Promise.resolve() | ||
.then(function () { | ||
// server-side (send() does not exist on the server side) | ||
@@ -23,8 +24,10 @@ // console.log('data', data) | ||
else { | ||
// console.log('buffer', isBuffer) | ||
if (!isBuffer) | ||
dataChannel.sendMessage(data); | ||
else | ||
dataChannel.sendMessageBinary(data); | ||
dataChannel.sendMessageBinary(Buffer.from(data)); | ||
} | ||
}) | ||
.catch(function (error) { | ||
console.log('error', error); | ||
}); | ||
@@ -31,0 +34,0 @@ } |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -0,0 +0,0 @@ "use strict"; |
{ | ||
"name": "@geckos.io/common", | ||
"version": "2.0.0-dev.0", | ||
"version": "2.0.0-dev.1", | ||
"description": "The common module for @geckos.io/server and @geckos.io/client.", | ||
@@ -28,3 +28,3 @@ "main": "lib", | ||
"dependencies": { | ||
"eventemitter3": "^4.0.4" | ||
"eventemitter3": "^4.0.7" | ||
}, | ||
@@ -31,0 +31,0 @@ "funding": { |
@@ -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
378
26249
Updatedeventemitter3@^4.0.7