homebridge-lib 5.4.1 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/Platform.js +6 -0
  2. package/package.json +1 -1
package/lib/Platform.js CHANGED
@@ -116,6 +116,12 @@ class Platform extends homebridgeLib.Delegate {
116
116
 
117
117
  get Characteristics () { return context.Characteristics }
118
118
 
119
+ /** Content of the plugin's package.json file.
120
+ * @type {object}
121
+ * @readonly
122
+ */
123
+ get packageJson () { return context.packageJson }
124
+
119
125
  /** Create a new instance of the platform plugin.
120
126
  *
121
127
  * Called by Homebridge when initialising the plugin from `config.json`.
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Library for homebridge plugins",
4
4
  "author": "Erik Baauw",
5
5
  "license": "Apache-2.0",
6
- "version": "5.4.1",
6
+ "version": "5.5.0",
7
7
  "keywords": [
8
8
  "homekit",
9
9
  "homebridge"