added support for new version field

This commit is contained in:
Jan Scheiper 2020-08-06 01:22:42 +02:00
parent 14e91a57d3
commit 1f5203e7d4
3 changed files with 11 additions and 7 deletions

View File

@ -25,6 +25,10 @@ class HCMagicHome extends HCColorLamp {
this._sumanager = new StateUpdateManager(this._state);
}
static get version() {
return require("./package.json").version;
}
// overwrite to make use of the SUManager
get state() {
return this._sumanager.state.clone();

10
package-lock.json generated
View File

@ -1,6 +1,6 @@
{
"name": "hc-magichome",
"version": "1.3.0",
"version": "1.3.1",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@ -10,7 +10,7 @@
"integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ=="
},
"homecontrol-control-base": {
"version": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git#b2bf9ba767050ec1581dd3641885fe1132ac45aa",
"version": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git#304c97bdcf84b71168567046560d7777f09dceed",
"from": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git",
"requires": {
"merge-options": "^1.0.1",
@ -23,9 +23,9 @@
"integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4="
},
"magic-home": {
"version": "2.6.0",
"resolved": "https://registry.npmjs.org/magic-home/-/magic-home-2.6.0.tgz",
"integrity": "sha512-UNHYmbgm/GsS82JurRjPKOkmVj8dAGUK2Cq6/gAHL22yP7y1R/F4Zyqtb1zzI79QALiYzg9AW80KPbUuX/TbKg==",
"version": "2.6.1",
"resolved": "https://registry.npmjs.org/magic-home/-/magic-home-2.6.1.tgz",
"integrity": "sha512-KU2msJWzOqqD4ofId99krddZpK3WcWAkGZ/2+VpIOYYRPKEatRvb/J5MfkXhK/MjDypPIaZh/CU5IxBCo5eKuA==",
"requires": {
"commander": "^2.20.0",
"merge-options": "^1.0.1"

View File

@ -1,6 +1,6 @@
{
"name": "hc-magichome",
"version": "1.3.1",
"version": "1.4.0",
"description": "Magic Home Plugin for Homecontrol",
"main": "HCMagicHome.js",
"scripts": {
@ -14,6 +14,6 @@
"license": "UNLICENSED",
"dependencies": {
"homecontrol-control-base": "git+https://git.literalchaos.de/jan/homecontrol-control-base.git",
"magic-home": "^2.6.0"
"magic-home": "^2.6.1"
}
}