tirecheck-device-sdk 0.1.995 → 0.1.996

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 CHANGED
@@ -248,7 +248,7 @@ const bridgeTools = {
248
248
  throw new TypeError("Value has to be a number");
249
249
  }
250
250
  const rawBar = value * 5.0625 / 100;
251
- return Math.max(rawBar - decrementValue, 0);
251
+ return ___default.round(Math.max(rawBar - decrementValue, 0), 1);
252
252
  },
253
253
  isVersionGreaterThan(deviceId, version) {
254
254
  if (version.length !== 5) {
package/dist/index.mjs CHANGED
@@ -241,7 +241,7 @@ const bridgeTools = {
241
241
  throw new TypeError("Value has to be a number");
242
242
  }
243
243
  const rawBar = value * 5.0625 / 100;
244
- return Math.max(rawBar - decrementValue, 0);
244
+ return _.round(Math.max(rawBar - decrementValue, 0), 1);
245
245
  },
246
246
  isVersionGreaterThan(deviceId, version) {
247
247
  if (version.length !== 5) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tirecheck-device-sdk",
3
- "version": "0.1.995",
3
+ "version": "0.1.996",
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",