@tuya-miniapp/ark-extension-virtual-device 1.8.7-beta-4 → 1.8.7-beta-5
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/worker/index.js +2 -2
- package/package.json +1 -1
package/dist/worker/index.js
CHANGED
|
@@ -220752,7 +220752,7 @@ var require_package2 = __commonJS({
|
|
|
220752
220752
|
"package.json"(exports, module2) {
|
|
220753
220753
|
module2.exports = {
|
|
220754
220754
|
name: "@tuya-miniapp/ark-extension-virtual-device",
|
|
220755
|
-
version: "1.8.7-beta-
|
|
220755
|
+
version: "1.8.7-beta-4",
|
|
220756
220756
|
license: "MIT",
|
|
220757
220757
|
files: [
|
|
220758
220758
|
"manifest.json",
|
|
@@ -263502,7 +263502,7 @@ var MqttListener = async (topic, message) => {
|
|
|
263502
263502
|
result = parseRawMessage(result, devInfo);
|
|
263503
263503
|
}
|
|
263504
263504
|
const mqttData = result?.data;
|
|
263505
|
-
const deviceId = mqttData?.devId;
|
|
263505
|
+
const deviceId = mqttData?.devId || devOrGroupId;
|
|
263506
263506
|
const dps = mqttData?.dps || {};
|
|
263507
263507
|
if (getCachedDevice()[deviceId]) {
|
|
263508
263508
|
updateCachedDevice(deviceId, dps);
|