@tuya-miniapp/ark-extension-virtual-device 1.8.8-beta-4 → 1.8.8-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 +3 -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.8-beta-
|
|
220755
|
+
version: "1.8.8-beta-4",
|
|
220756
220756
|
license: "MIT",
|
|
220757
220757
|
files: [
|
|
220758
220758
|
"manifest.json",
|
|
@@ -263523,7 +263523,8 @@ var MqttListener = async (topic, message) => {
|
|
|
263523
263523
|
updateCachedDevice(deviceId, dps);
|
|
263524
263524
|
}
|
|
263525
263525
|
dispatchMessageToTTT(result, devOrGroupId, dps, topic, message);
|
|
263526
|
-
const
|
|
263526
|
+
const isGroup = await getDebugMode() === "group";
|
|
263527
|
+
const devId = isGroup ? await getGroupId() : await getDeviceId();
|
|
263527
263528
|
if (result?.data?.cid) {
|
|
263528
263529
|
const currentDevice = getCachedDevice()[devId];
|
|
263529
263530
|
if (!currentDevice || currentDevice.nodeId !== result?.data?.cid) {
|