@jgrimard/homebridge-vivint 2.0.0 → 2.0.1
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.
- package/README.md +3 -0
- package/dist/settings.js +9 -5
- package/dist/settings.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
|
|
5
5
|
# @jgrimard/homebridge-vivint
|
|
6
6
|
|
|
7
|
+
[](https://www.npmjs.com/package/@jgrimard/homebridge-vivint)
|
|
8
|
+
[](https://www.npmjs.com/package/@jgrimard/homebridge-vivint)
|
|
9
|
+
|
|
7
10
|
Homebridge plugin for [Vivint Smart Home](https://www.vivint.com). This is a fork of
|
|
8
11
|
[@balansse/homebridge-vivint](https://github.com/balansse/homebridge-vivint), rewritten in TypeScript
|
|
9
12
|
on the official [Homebridge plugin template](https://github.com/homebridge/homebridge-plugin-template)
|
package/dist/settings.js
CHANGED
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
* The platform name users put in config.json ("platform": "Vivint").
|
|
3
3
|
*/
|
|
4
4
|
export const PLATFORM_NAME = 'Vivint';
|
|
5
|
+
import { readFileSync } from 'node:fs';
|
|
5
6
|
/**
|
|
6
|
-
* Plugin identifier used when registering accessories.
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
7
|
+
* Plugin identifier used when registering accessories. Read from package.json
|
|
8
|
+
* so it always matches the name this package is actually installed under
|
|
9
|
+
* (scoped @jgrimard fork or unscoped upstream). Registering under any other
|
|
10
|
+
* name makes Homebridge warn "no loaded plugin could be found for the name".
|
|
11
|
+
* Cached accessories from @balansse/homebridge-vivint still carry over: on
|
|
12
|
+
* restore, Homebridge resolves an unknown plugin name via the active dynamic
|
|
13
|
+
* platform (PLATFORM_NAME) and rewrites the cache.
|
|
10
14
|
*/
|
|
11
|
-
export const PLUGIN_NAME = '
|
|
15
|
+
export const PLUGIN_NAME = JSON.parse(readFileSync(new URL('../package.json', import.meta.url), 'utf-8')).name;
|
|
12
16
|
//# sourceMappingURL=settings.js.map
|
package/dist/settings.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC;AAEtC
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../src/settings.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG,QAAQ,CAAC;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,WAAW,GAAW,IAAI,CAAC,KAAK,CAC3C,YAAY,CAAC,IAAI,GAAG,CAAC,iBAAiB,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CACnE,CAAC,IAAI,CAAC"}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@jgrimard/homebridge-vivint",
|
|
3
3
|
"displayName": "Homebridge Vivint",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "2.0.
|
|
5
|
+
"version": "2.0.1",
|
|
6
6
|
"description": "Homebridge plugin for Vivint Smart Home security systems and devices.",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"author": "Jason Grimard",
|