tirecheck-device-sdk 0.2.56 → 0.2.57
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.cjs +2 -4
- package/dist/index.mjs +2 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -155,10 +155,8 @@ const bridgeTools = {
|
|
|
155
155
|
console.warn("missing bytes filled with empty values");
|
|
156
156
|
numArray = numArray.concat(Array.from({ length: sumWithInitial - numArray.length }, () => 0));
|
|
157
157
|
}
|
|
158
|
-
if (numArray.length
|
|
159
|
-
|
|
160
|
-
`Cannot convert bytes to object: bytes received ${numArray.length}, expected ${sumWithInitial}, fw version ${fwVersion}`
|
|
161
|
-
);
|
|
158
|
+
if (numArray.length > sumWithInitial) {
|
|
159
|
+
console.warn("extra bytes will be ignored");
|
|
162
160
|
}
|
|
163
161
|
const result = {};
|
|
164
162
|
for (const key of keys) {
|
package/dist/index.mjs
CHANGED
|
@@ -148,10 +148,8 @@ const bridgeTools = {
|
|
|
148
148
|
console.warn("missing bytes filled with empty values");
|
|
149
149
|
numArray = numArray.concat(Array.from({ length: sumWithInitial - numArray.length }, () => 0));
|
|
150
150
|
}
|
|
151
|
-
if (numArray.length
|
|
152
|
-
|
|
153
|
-
`Cannot convert bytes to object: bytes received ${numArray.length}, expected ${sumWithInitial}, fw version ${fwVersion}`
|
|
154
|
-
);
|
|
151
|
+
if (numArray.length > sumWithInitial) {
|
|
152
|
+
console.warn("extra bytes will be ignored");
|
|
155
153
|
}
|
|
156
154
|
const result = {};
|
|
157
155
|
for (const key of keys) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tirecheck-device-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.57",
|
|
4
4
|
"description": "SDK for working with various devices produced by Tirecheck via Bluetooth (CAN Bridge, Routers, Sensors, FlexiGauge, PressureStick, etc)",
|
|
5
5
|
"author": "Leonid Buneev <leonid.buneev@tirecheck.com>",
|
|
6
6
|
"license": "ISC",
|