homebridge
Advanced tools
Comparing version 2.0.0-alpha.35 to 2.0.0-alpha.36
@@ -164,7 +164,22 @@ import type { Controller, Service } from 'hap-nodejs'; | ||
publishExternalAccessories: (pluginIdentifier: PluginIdentifier, accessories: PlatformAccessory[]) => void; | ||
on: ((event: 'didFinishLaunching', listener: () => void) => this) & ((event: 'shutdown', listener: () => void) => this); | ||
on(event: 'didFinishLaunching', listener: () => void): this; | ||
on(event: 'shutdown', listener: () => void): this; | ||
} | ||
export declare interface HomebridgeAPI { | ||
on: ((event: 'didFinishLaunching', listener: () => void) => this) & ((event: 'shutdown', listener: () => void) => this) & ((event: InternalAPIEvent.REGISTER_ACCESSORY, listener: (accessoryName: AccessoryName, accessoryConstructor: AccessoryPluginConstructor, pluginIdentifier?: PluginIdentifier) => void) => this) & ((event: InternalAPIEvent.REGISTER_PLATFORM, listener: (platformName: PlatformName, platformConstructor: PlatformPluginConstructor, pluginIdentifier?: PluginIdentifier) => void) => this) & ((event: InternalAPIEvent.PUBLISH_EXTERNAL_ACCESSORIES, listener: (accessories: PlatformAccessory[]) => void) => this) & ((event: InternalAPIEvent.REGISTER_PLATFORM_ACCESSORIES, listener: (accessories: PlatformAccessory[]) => void) => this) & ((event: InternalAPIEvent.UPDATE_PLATFORM_ACCESSORIES, listener: (accessories: PlatformAccessory[]) => void) => this) & ((event: InternalAPIEvent.UNREGISTER_PLATFORM_ACCESSORIES, listener: (accessories: PlatformAccessory[]) => void) => this); | ||
emit: ((event: 'didFinishLaunching') => boolean) & ((event: 'shutdown') => boolean) & ((event: InternalAPIEvent.REGISTER_ACCESSORY, accessoryName: AccessoryName, accessoryConstructor: AccessoryPluginConstructor, pluginIdentifier?: PluginIdentifier) => boolean) & ((event: InternalAPIEvent.REGISTER_PLATFORM, platformName: PlatformName, platformConstructor: PlatformPluginConstructor, pluginIdentifier?: PluginIdentifier) => boolean) & ((event: InternalAPIEvent.PUBLISH_EXTERNAL_ACCESSORIES, accessories: PlatformAccessory[]) => boolean) & ((event: InternalAPIEvent.REGISTER_PLATFORM_ACCESSORIES, accessories: PlatformAccessory[]) => boolean) & ((event: InternalAPIEvent.UPDATE_PLATFORM_ACCESSORIES, accessories: PlatformAccessory[]) => boolean) & ((event: InternalAPIEvent.UNREGISTER_PLATFORM_ACCESSORIES, accessories: PlatformAccessory[]) => boolean); | ||
on(event: 'didFinishLaunching', listener: () => void): this; | ||
on(event: 'shutdown', listener: () => void): this; | ||
on(event: InternalAPIEvent.REGISTER_ACCESSORY, listener: (accessoryName: AccessoryName, accessoryConstructor: AccessoryPluginConstructor, pluginIdentifier?: PluginIdentifier) => void): this; | ||
on(event: InternalAPIEvent.REGISTER_PLATFORM, listener: (platformName: PlatformName, platformConstructor: PlatformPluginConstructor, pluginIdentifier?: PluginIdentifier) => void): this; | ||
on(event: InternalAPIEvent.PUBLISH_EXTERNAL_ACCESSORIES, listener: (accessories: PlatformAccessory[]) => void): this; | ||
on(event: InternalAPIEvent.REGISTER_PLATFORM_ACCESSORIES, listener: (accessories: PlatformAccessory[]) => void): this; | ||
on(event: InternalAPIEvent.UPDATE_PLATFORM_ACCESSORIES, listener: (accessories: PlatformAccessory[]) => void): this; | ||
on(event: InternalAPIEvent.UNREGISTER_PLATFORM_ACCESSORIES, listener: (accessories: PlatformAccessory[]) => void): this; | ||
emit(event: 'didFinishLaunching'): boolean; | ||
emit(event: 'shutdown'): boolean; | ||
emit(event: InternalAPIEvent.REGISTER_ACCESSORY, accessoryName: AccessoryName, accessoryConstructor: AccessoryPluginConstructor, pluginIdentifier?: PluginIdentifier): boolean; | ||
emit(event: InternalAPIEvent.REGISTER_PLATFORM, platformName: PlatformName, platformConstructor: PlatformPluginConstructor, pluginIdentifier?: PluginIdentifier): boolean; | ||
emit(event: InternalAPIEvent.PUBLISH_EXTERNAL_ACCESSORIES, accessories: PlatformAccessory[]): boolean; | ||
emit(event: InternalAPIEvent.REGISTER_PLATFORM_ACCESSORIES, accessories: PlatformAccessory[]): boolean; | ||
emit(event: InternalAPIEvent.UPDATE_PLATFORM_ACCESSORIES, accessories: PlatformAccessory[]): boolean; | ||
emit(event: InternalAPIEvent.UNREGISTER_PLATFORM_ACCESSORIES, accessories: PlatformAccessory[]): boolean; | ||
} | ||
@@ -171,0 +186,0 @@ export declare class HomebridgeAPI extends EventEmitter implements API { |
@@ -14,3 +14,6 @@ import { EventEmitter } from 'node:events'; | ||
export declare interface IpcService { | ||
on: ((event: IpcIncomingEvent.RESTART_CHILD_BRIDGE, listener: (childBridgeUsername: string) => void) => this) & ((event: IpcIncomingEvent.STOP_CHILD_BRIDGE, listener: (childBridgeUsername: string) => void) => this) & ((event: IpcIncomingEvent.START_CHILD_BRIDGE, listener: (childBridgeUsername: string) => void) => this) & ((event: IpcIncomingEvent.CHILD_BRIDGE_METADATA_REQUEST, listener: () => void) => this); | ||
on(event: IpcIncomingEvent.RESTART_CHILD_BRIDGE, listener: (childBridgeUsername: string) => void): this; | ||
on(event: IpcIncomingEvent.STOP_CHILD_BRIDGE, listener: (childBridgeUsername: string) => void): this; | ||
on(event: IpcIncomingEvent.START_CHILD_BRIDGE, listener: (childBridgeUsername: string) => void): this; | ||
on(event: IpcIncomingEvent.CHILD_BRIDGE_METADATA_REQUEST, listener: () => void): this; | ||
} | ||
@@ -17,0 +20,0 @@ export declare class IpcService extends EventEmitter { |
@@ -16,4 +16,4 @@ import type { Controller, ControllerConstructor, SerializedAccessory, Service, WithUUID } from 'hap-nodejs'; | ||
export declare interface PlatformAccessory { | ||
on: (event: 'identify', listener: () => void) => this; | ||
emit: (event: 'identify') => boolean; | ||
on(event: 'identify', listener: () => void): this; | ||
emit(event: 'identify'): boolean; | ||
} | ||
@@ -20,0 +20,0 @@ export declare class PlatformAccessory<T extends UnknownContext = UnknownContext> extends EventEmitter { |
@@ -1,2 +0,1 @@ | ||
/* global NodeJS */ | ||
import crypto from 'node:crypto'; | ||
@@ -3,0 +2,0 @@ const validMac = /^(?:[0-9A-F]{2}:){5}[0-9A-F]{2}$/; |
{ | ||
"name": "homebridge", | ||
"type": "module", | ||
"version": "2.0.0-alpha.35", | ||
"version": "2.0.0-alpha.36", | ||
"description": "HomeKit support for the impatient", | ||
@@ -54,3 +54,3 @@ "author": "Nick Farina", | ||
"fs-extra": "11.2.0", | ||
"hap-nodejs": "1.1.1-alpha.20", | ||
"hap-nodejs": "^1.1.1-alpha.21", | ||
"qrcode-terminal": "0.12.0", | ||
@@ -57,0 +57,0 @@ "semver": "7.6.3", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3807
315829
+ Added@homebridge/ciao@1.3.1(transitive)
+ Added@homebridge/dbus-native@0.6.0(transitive)
+ Added@homebridge/long@5.2.1(transitive)
+ Added@homebridge/put@0.0.8(transitive)
+ Addedduplexer@0.1.2(transitive)
+ Addedevent-stream@4.0.1(transitive)
+ Addedfrom@0.1.7(transitive)
+ Addedhap-nodejs@1.1.1-beta.8(transitive)
+ Addedhexy@0.3.5(transitive)
+ Addedmap-stream@0.0.7(transitive)
+ Addedpause-stream@0.0.11(transitive)
+ Addedsplit@1.0.1(transitive)
+ Addedstream-combiner@0.2.2(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedtslib@2.8.1(transitive)
- Removed@homebridge/ciao@1.3.2-beta.1(transitive)
- Removedhap-nodejs@1.1.1-alpha.20(transitive)
- Removedlong@5.2.3(transitive)
Updatedhap-nodejs@^1.1.1-alpha.21