Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@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 2.0.0-dev.0 to 2.0.0-dev.1

0

lib/bridge.d.ts

@@ -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';

9

lib/sendMessage.js

@@ -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

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