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

home-assistant-js-websocket

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

home-assistant-js-websocket - npm Package Compare versions

Comparing version 5.4.0 to 5.4.1

5

dist/connection.js

@@ -173,6 +173,5 @@ /**

// No need to unsubscribe if we're disconnected
if (!this.connected) {
return;
if (this.connected) {
await this.sendMessagePromise(messages.unsubscribeEvents(commandId));
}
await this.sendMessagePromise(messages.unsubscribeEvents(commandId));
this.commands.delete(commandId);

@@ -179,0 +178,0 @@ },

@@ -329,6 +329,5 @@ (function (global, factory) {

// No need to unsubscribe if we're disconnected
if (!this.connected) {
return;
if (this.connected) {
await this.sendMessagePromise(unsubscribeEvents(commandId));
}
await this.sendMessagePromise(unsubscribeEvents(commandId));
this.commands.delete(commandId);

@@ -335,0 +334,0 @@ },

2

package.json

@@ -5,3 +5,3 @@ {

"sideEffects": false,
"version": "5.4.0",
"version": "5.4.1",
"description": "Home Assistant websocket client",

@@ -8,0 +8,0 @@ "source": "lib/index.ts",

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