@victronenergy/mfd-modules 5.0.0 → 5.0.2
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.
|
@@ -17,16 +17,16 @@ export function useShorePowerInput() {
|
|
|
17
17
|
var acInput1 = messages.acInput1, acInput2 = messages.acInput2;
|
|
18
18
|
var inputId = undefined;
|
|
19
19
|
// prioritize shore and grid inputs first
|
|
20
|
-
if (Number(acInput1) === AC_SOURCE_TYPE.SHORE || Number(acInput1) === AC_SOURCE_TYPE.GRID) {
|
|
20
|
+
if (acInput1 && Number(acInput1) === AC_SOURCE_TYPE.SHORE || Number(acInput1) === AC_SOURCE_TYPE.GRID) {
|
|
21
21
|
inputId = 1;
|
|
22
22
|
}
|
|
23
|
-
else if (Number(acInput2) === AC_SOURCE_TYPE.SHORE || Number(acInput2) === AC_SOURCE_TYPE.GRID) {
|
|
23
|
+
else if (acInput2 && (Number(acInput2) === AC_SOURCE_TYPE.SHORE || Number(acInput2) === AC_SOURCE_TYPE.GRID)) {
|
|
24
24
|
inputId = 2;
|
|
25
25
|
}
|
|
26
|
-
else if (Number(acInput1) !== AC_SOURCE_TYPE.NOT_IN_USE) {
|
|
26
|
+
else if (acInput1 && Number(acInput1) !== AC_SOURCE_TYPE.NOT_IN_USE) {
|
|
27
27
|
inputId = 1;
|
|
28
28
|
}
|
|
29
|
-
else if (Number(acInput2) !== AC_SOURCE_TYPE.NOT_IN_USE) {
|
|
29
|
+
else if (acInput2 && Number(acInput2) !== AC_SOURCE_TYPE.NOT_IN_USE) {
|
|
30
30
|
inputId = 2;
|
|
31
31
|
}
|
|
32
32
|
shorePowerInputStore.setInputId(inputId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShorePowerInput.provider.js","sourceRoot":"","sources":["../../../../src/Modules/ShorePowerInput/ShorePowerInput.provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAA;AAC/B,OA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AAC,CAAC;SACb;aAAM,IAAI,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,cAAc,CAAC,UAAU,EAAE;YACrE,OAAO,GAAG,CAAC,CAAC;SACb;QAED,oBAAoB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAA;IAC1C,CAAC,EAAE,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,CAAA;IAE7B,OAAO,EAAE,OAAO,EAAE,oBAAoB,CAAC,OAAO,EAAE,CAAA;AAClD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@victronenergy/mfd-modules",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"axios": "^0.21.1",
|
|
22
|
-
"js-cookie": "^3.0.
|
|
23
|
-
"localforage": "^1.
|
|
22
|
+
"js-cookie": "^3.0.5",
|
|
23
|
+
"localforage": "^1.10.0",
|
|
24
24
|
"lodash-es": "^4.17.21",
|
|
25
25
|
"mobx": "^6.3.2",
|
|
26
26
|
"mobx-persist-store": "^1.0.3",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@semantic-release/git": "^9.0.0",
|
|
32
32
|
"@semantic-release/npm": "^7.1.3",
|
|
33
|
-
"@types/js-cookie": "^3.0.
|
|
34
|
-
"@types/lodash-es": "^4.17.
|
|
33
|
+
"@types/js-cookie": "^3.0.6",
|
|
34
|
+
"@types/lodash-es": "^4.17.12",
|
|
35
35
|
"@types/mqtt": "^2.5.0",
|
|
36
|
-
"@types/react": "^18.
|
|
36
|
+
"@types/react": "^18.3.5",
|
|
37
37
|
"semantic-release": "^17.4.3",
|
|
38
38
|
"typescript": "^4.3.2"
|
|
39
39
|
},
|