@fatehan/tsrp 1.0.44 → 1.0.45
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/dist/index.test.js +4 -2
- package/dist/system.io.js +2 -2
- package/package.json +1 -1
package/dist/index.test.js
CHANGED
|
@@ -101,7 +101,7 @@ const models_1 = require("./fatehan/models/models");
|
|
|
101
101
|
});
|
|
102
102
|
(0, vitest_1.it)("Io", async () => {
|
|
103
103
|
let devIo = {
|
|
104
|
-
formula: "
|
|
104
|
+
formula: "$ignition",
|
|
105
105
|
name: "سرعت",
|
|
106
106
|
type: models_1.SystemIo_SystemIoType.FLOAT,
|
|
107
107
|
activeStyle: {
|
|
@@ -120,7 +120,9 @@ const models_1 = require("./fatehan/models/models");
|
|
|
120
120
|
graphable: true,
|
|
121
121
|
sord: 1,
|
|
122
122
|
hidden: [],
|
|
123
|
-
unknown: {
|
|
123
|
+
unknown: {
|
|
124
|
+
"1": "asd"
|
|
125
|
+
},
|
|
124
126
|
};
|
|
125
127
|
let systemIos = await c.SystemIoReport({});
|
|
126
128
|
let result = (0, system_io_1.default)(systemIos.ios, [devIo], {
|
package/dist/system.io.js
CHANGED
|
@@ -28,7 +28,7 @@ const SystemIoCast = (systemIo, deviceIo, data) => {
|
|
|
28
28
|
let newValue = value;
|
|
29
29
|
if (io.unknown) {
|
|
30
30
|
for (const key in io.unknown) {
|
|
31
|
-
if (value
|
|
31
|
+
if (String(value) === String(key)) {
|
|
32
32
|
newValue = io.unknown[key];
|
|
33
33
|
}
|
|
34
34
|
}
|
|
@@ -36,7 +36,7 @@ const SystemIoCast = (systemIo, deviceIo, data) => {
|
|
|
36
36
|
let hidden = false;
|
|
37
37
|
if (io.hidden) {
|
|
38
38
|
io.hidden.forEach((item) => {
|
|
39
|
-
if (newValue
|
|
39
|
+
if (String(newValue) === String(item)) {
|
|
40
40
|
hidden = true;
|
|
41
41
|
}
|
|
42
42
|
});
|