@fatehan/tsrp 1.0.35 → 1.0.37

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.
@@ -1 +1 @@
1
- {"version":3,"file":"system.io.d.ts","sourceRoot":"","sources":["../src/system.io.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EAET,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAEnD,QAAA,MAAM,YAAY,GAChB,UAAU,QAAQ,EAAE,EACpB,UAAU,QAAQ,EAAE,EACpB,MAAM,IAAI,KACT,OAAO,EAsDT,CAAC;AAuBF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"system.io.d.ts","sourceRoot":"","sources":["../src/system.io.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,QAAQ,EACR,OAAO,EACP,QAAQ,EAET,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAEnD,QAAA,MAAM,YAAY,GAChB,UAAU,QAAQ,EAAE,EACpB,UAAU,QAAQ,EAAE,EACpB,MAAM,IAAI,KACT,OAAO,EAsDT,CAAC;AA0BF,eAAe,YAAY,CAAC"}
package/dist/system.io.js CHANGED
@@ -15,7 +15,7 @@ const SystemIoCast = (systemIo, deviceIo, data) => {
15
15
  value: value,
16
16
  name: systemIo[i].name,
17
17
  unit: systemIo[i].unit,
18
- style: style,
18
+ style: systemIo[i].activeStyle,
19
19
  description: systemIo[i].description,
20
20
  });
21
21
  }
@@ -39,7 +39,7 @@ const SystemIoCast = (systemIo, deviceIo, data) => {
39
39
  let style = deviceIo[i].activeStyle;
40
40
  if (deviceIo[i].type === models_1.SystemIoType.BOOLEAN) {
41
41
  style =
42
- value === "false" ? deviceIo[i].inactiveStyle : deviceIo[i].activeStyle;
42
+ value === "false" || value === false ? deviceIo[i].inactiveStyle : deviceIo[i].activeStyle;
43
43
  }
44
44
  list.push({
45
45
  value: value,
@@ -69,6 +69,9 @@ function getNestedPropertyValue(obj, propertyPath) {
69
69
  return null;
70
70
  }
71
71
  }
72
+ if (typeof currentObj === "object") {
73
+ return String(currentObj.toNumber());
74
+ }
72
75
  return String(currentObj);
73
76
  }
74
77
  exports.default = SystemIoCast;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fatehan/tsrp",
3
- "version": "1.0.35",
3
+ "version": "1.0.37",
4
4
  "description": "fatehan main models",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",