tirecheck-device-sdk 0.2.36 → 0.2.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.
package/dist/index.cjs CHANGED
@@ -771,14 +771,12 @@ function processDevice(device) {
771
771
  return processedDevice;
772
772
  }
773
773
  function getDeviceTypeFromName(name) {
774
- let deviceType;
775
774
  for (const key in deviceMeta) {
776
775
  const meta = deviceMeta[key];
777
776
  if (meta.nameRegex.test(name)) {
778
- deviceType = key;
777
+ return key;
779
778
  }
780
779
  }
781
- return deviceType;
782
780
  }
783
781
  function getDeviceName(device) {
784
782
  const isBridge = deviceMeta.bridge.nameRegex.test(device.name) || deviceMeta.bridgeOta.nameRegex.test(device.name);
package/dist/index.mjs CHANGED
@@ -764,14 +764,12 @@ function processDevice(device) {
764
764
  return processedDevice;
765
765
  }
766
766
  function getDeviceTypeFromName(name) {
767
- let deviceType;
768
767
  for (const key in deviceMeta) {
769
768
  const meta = deviceMeta[key];
770
769
  if (meta.nameRegex.test(name)) {
771
- deviceType = key;
770
+ return key;
772
771
  }
773
772
  }
774
- return deviceType;
775
773
  }
776
774
  function getDeviceName(device) {
777
775
  const isBridge = deviceMeta.bridge.nameRegex.test(device.name) || deviceMeta.bridgeOta.nameRegex.test(device.name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tirecheck-device-sdk",
3
- "version": "0.2.36",
3
+ "version": "0.2.37",
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",