home-assistant-js-websocket
Advanced tools
+1
-0
@@ -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 @@ }; |
+6
-1
@@ -19,3 +19,3 @@ 'use strict'; | ||
| type: "supported_features", | ||
| id: 1, | ||
| id: 1, // Always the first message after auth | ||
| features: { coalesce_messages: 1 }, | ||
@@ -578,2 +578,3 @@ }; | ||
| Object.keys(data).forEach((key) => { | ||
| // @ts-ignore | ||
| formData.append(key, data[key]); | ||
@@ -814,3 +815,5 @@ }); | ||
| const getCollection = (conn, key, fetchCollection, subscribeUpdates, options = { unsubGrace: true }) => { | ||
| // @ts-ignore | ||
| if (conn[key]) { | ||
| // @ts-ignore | ||
| return conn[key]; | ||
@@ -873,2 +876,3 @@ } | ||
| }; | ||
| // @ts-ignore | ||
| conn[key] = { | ||
@@ -902,2 +906,3 @@ get state() { | ||
| }; | ||
| // @ts-ignore | ||
| return conn[key]; | ||
@@ -904,0 +909,0 @@ }; |
+6
-1
@@ -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 @@ }; |
+1
-1
@@ -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 @@ }; |
+1
-1
@@ -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 {}; |
+12
-2
@@ -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[]; | ||
| }; |
+3
-3
@@ -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": [ |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
178033
0.42%3750
0.67%