New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

booth

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

booth - npm Package Compare versions

Comparing version 0.13.2 to 0.14.0

46

Endpoint.js

@@ -6,3 +6,3 @@ 'use strict';

var Events = _interopDefault(require('./Events'));
var Client = _interopDefault(require('ws'));
var Client = _interopDefault(require('isomorphic-ws'));

@@ -19,2 +19,4 @@ function Endpoint (ws, booth)

var buffer = [];
if (booth)

@@ -36,5 +38,12 @@ {

function send (kind, data)
function send (kind, data = '')
{
endp.ws.send('@' + kind + ':' + data);
if (buffer)
{
buffer.push([ kind, data ]);
}
else if (endp.ws)
{
endp.ws.send('@' + kind + ':' + data);
}

@@ -66,3 +75,5 @@ return endp

{
ev('open', flush);
ev('close', reconnect);
ev('open', check_reconnect);
}

@@ -77,2 +88,3 @@

{
buffer = null;
events.emit('@open', void 0, endp);

@@ -82,2 +94,15 @@ }

function flush ()
{
if (! buffer) return
var bf = buffer;
buffer = null;
bf.forEach(pair =>
{
send(...pair);
});
}
function reconnect ()

@@ -87,2 +112,3 @@ {

buffer = [];
endp.ws = null;

@@ -93,2 +119,14 @@

function check_reconnect ()
{
if (check_reconnect.already)
{
events.emit('@reconnect', void 0, endp);
}
else
{
check_reconnect.already = true;
}
}
function close ()

@@ -101,2 +139,4 @@ {

buffer = null;
booth = null;

@@ -103,0 +143,0 @@ endp = null;

6

package.json
{
"name": "booth",
"version": "0.13.2",
"version": "0.14.0",
"license": "ISC",

@@ -29,3 +29,5 @@ "author": "Strider <strange.transistor@gmail.com>",

},
"dependencies": {}
"dependencies": {
"isomorphic-ws": "4"
}
}
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