Socket
Socket
Sign inDemoInstall

@akiroz/thalamus

Package Overview
Dependencies
127
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.5 to 0.0.6

23

dist/thalamus.js

@@ -84,2 +84,3 @@ "use strict";

var MQTT = __importStar(require("async-mqtt"));
var promiseAny = __importStar(require("promise.any"));
var RPC = __importStar(require("@akiroz/pubsub-rpc"));

@@ -162,9 +163,3 @@ var Thalamus = /** @class */ (function (_super) {

this.ee.addListener(topic, handler);
return [4 /*yield*/, Promise.all(this.servers.map(function (serv) {
return serv.subscribe(topic)["catch"](function (err) {
if (!serv.connected)
return null; // Ignore fail due to disconnect
return Promise.reject(err);
});
}))];
return [4 /*yield*/, promiseAny(this.servers.map(function (srv) { return srv.subscribe(topic); }))];
case 1:

@@ -182,15 +177,7 @@ _a.sent();

case 0:
if (handler) {
if (handler)
this.ee.removeListener(topic, handler);
}
else {
else
this.ee.removeAllListeners(topic);
}
return [4 /*yield*/, Promise.all(this.servers.map(function (serv) {
return serv.unsubscribe(topic)["catch"](function (err) {
if (!serv.connected)
return null; // Ignore fail due to disconnect
return Promise.reject(err);
});
}))];
return [4 /*yield*/, promiseAny(this.servers.map(function (srv) { return srv.unsubscribe(topic); }))];
case 1:

@@ -197,0 +184,0 @@ _a.sent();

{
"name": "@akiroz/thalamus",
"version": "0.0.5",
"version": "0.0.6",
"repository": "github:akiroz/Thalamus",

@@ -30,4 +30,5 @@ "main": "dist/thalamus.js",

"async-mqtt": "^2.6.1",
"events": "^3.1.0"
"events": "^3.1.0",
"promise.any": "^2.0.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc