dbus-victron-virtual 0.1.34 → 0.1.36
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/package.json +2 -2
- package/src/index.js +8 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dbus-victron-virtual",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.36",
|
|
4
4
|
"description": "Add interoperability with victron dbus to a given dbus interface",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"type": "commonjs",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"lint-staged": "^15.2.7"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"dbus-native-victron": "^0.4.
|
|
36
|
+
"dbus-native-victron": "^0.4.11",
|
|
37
37
|
"debug": "^4.3.7"
|
|
38
38
|
},
|
|
39
39
|
"files": [
|
package/src/index.js
CHANGED
|
@@ -55,6 +55,8 @@ function wrapValue(t, v) {
|
|
|
55
55
|
return ["s", v];
|
|
56
56
|
case "i":
|
|
57
57
|
return ["i", v];
|
|
58
|
+
case "u":
|
|
59
|
+
return ["u", v];
|
|
58
60
|
case "d":
|
|
59
61
|
return ["d", v];
|
|
60
62
|
case "ad":
|
|
@@ -426,8 +428,12 @@ function addVictronInterfaces(
|
|
|
426
428
|
);
|
|
427
429
|
return;
|
|
428
430
|
}
|
|
429
|
-
declaration["properties"]["Mgmt/Connection"]
|
|
430
|
-
|
|
431
|
+
if (!declaration["properties"]["Mgmt/Connection"]) {
|
|
432
|
+
declaration["properties"]["Mgmt/Connection"] = { type: "s", readonly: true };
|
|
433
|
+
}
|
|
434
|
+
if (definition["Mgmt/Connection"] == null) {
|
|
435
|
+
definition["Mgmt/Connection"] = "Node-RED";
|
|
436
|
+
}
|
|
431
437
|
declaration["properties"]["Mgmt/ProcessName"] = { type: "s", readonly: true };
|
|
432
438
|
definition["Mgmt/ProcessName"] = packageJson.name;
|
|
433
439
|
declaration["properties"]["Mgmt/ProcessVersion"] = { type: "s", readonly: true };
|