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
2
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 9.1.0 to 9.2.0

1

dist/auth.js

@@ -45,2 +45,3 @@ import { parseQuery } from "./util.js";

Object.keys(data).forEach((key) => {
// @ts-ignore
formData.append(key, data[key]);

@@ -47,0 +48,0 @@ });

@@ -14,3 +14,5 @@ import { createStore } from "./store.js";

export const getCollection = (conn, key, fetchCollection, subscribeUpdates, options = { unsubGrace: true }) => {
// @ts-ignore
if (conn[key]) {
// @ts-ignore
return conn[key];

@@ -85,2 +87,3 @@ }

};
// @ts-ignore
conn[key] = {

@@ -120,2 +123,3 @@ get state() {

};
// @ts-ignore
return conn[key];

@@ -122,0 +126,0 @@ };

@@ -23,3 +23,3 @@ (function (global, factory) {

type: "supported_features",
id: 1,
id: 1, // Always the first message after auth
features: { coalesce_messages: 1 },

@@ -582,2 +582,3 @@ };

Object.keys(data).forEach((key) => {
// @ts-ignore
formData.append(key, data[key]);

@@ -818,3 +819,5 @@ });

const getCollection = (conn, key, fetchCollection, subscribeUpdates, options = { unsubGrace: true }) => {
// @ts-ignore
if (conn[key]) {
// @ts-ignore
return conn[key];

@@ -877,2 +880,3 @@ }

};
// @ts-ignore
conn[key] = {

@@ -906,2 +910,3 @@ get state() {

};
// @ts-ignore
return conn[key];

@@ -908,0 +913,0 @@ };

2

dist/messages.js

@@ -10,3 +10,3 @@ export function auth(accessToken) {

type: "supported_features",
id: 1,
id: 1, // Always the first message after auth
features: { coalesce_messages: 1 },

@@ -13,0 +13,0 @@ };

@@ -12,3 +12,3 @@ import { UnsubscribeFunc } from "./types.js";

};
export declare const createStore: <State>(state?: State | undefined) => Store<State>;
export declare const createStore: <State>(state?: State) => Store<State>;
export {};

@@ -96,6 +96,14 @@ export type Error = 1 | 2 | 3 | 4;

[field_name: string]: {
example?: string | boolean | number;
default?: unknown;
required?: boolean;
advanced?: boolean;
selector?: {};
filter?: {
attribute?: Record<string, string>;
} | {
supported_features?: Record<string, string>;
};
name?: string;
description: string;
example: string | boolean | number;
selector?: {};
};

@@ -123,2 +131,4 @@ };

area_id?: string | string[];
floor_id?: string | string[];
label_id?: string | string[];
};

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

"sideEffects": false,
"version": "9.1.0",
"version": "9.2.0",
"description": "Home Assistant websocket client",

@@ -44,5 +44,5 @@ "source": "lib/index.ts",

"reify": "^0.20.12",
"rollup": "^3.5.0",
"rollup": "^4.3.0",
"ts-node": "^9.0.0",
"typescript": "^4.0.2"
"typescript": "^5.2.2"
},

@@ -49,0 +49,0 @@ "files": [

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