tirecheck-device-sdk 0.2.62 → 0.2.63
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -362,7 +362,7 @@ const bridgeTools = {
|
|
|
362
362
|
}
|
|
363
363
|
};
|
|
364
364
|
function getBridgeFromStore(deviceId) {
|
|
365
|
-
const deviceData = store.devices[deviceId];
|
|
365
|
+
const deviceData = store.devices[deviceId] ?? store.simulatedDevices[deviceId];
|
|
366
366
|
if (!deviceData) throw new Error(`No device data found: ${deviceId}`);
|
|
367
367
|
if (deviceData.type !== "bridge") throw new Error("Device is not bridge");
|
|
368
368
|
return deviceData;
|
package/dist/index.mjs
CHANGED
|
@@ -355,7 +355,7 @@ const bridgeTools = {
|
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
357
|
function getBridgeFromStore(deviceId) {
|
|
358
|
-
const deviceData = store.devices[deviceId];
|
|
358
|
+
const deviceData = store.devices[deviceId] ?? store.simulatedDevices[deviceId];
|
|
359
359
|
if (!deviceData) throw new Error(`No device data found: ${deviceId}`);
|
|
360
360
|
if (deviceData.type !== "bridge") throw new Error("Device is not bridge");
|
|
361
361
|
return deviceData;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tirecheck-device-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.63",
|
|
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",
|