@tuya-miniapp/ark-extension-virtual-device 1.8.7-beta-3 → 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.
@@ -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-2",
220755
+ version: "1.8.7-beta-4",
220756
220756
  license: "MIT",
220757
220757
  files: [
220758
220758
  "manifest.json",
@@ -262891,10 +262891,8 @@ var getDeviceInfo = async (body) => {
262891
262891
  JSON.parse(schema).map((item) => {
262892
262892
  const { id, type, property } = item;
262893
262893
  if (Object.keys(oDps).includes(`${id}`) && type === "raw") {
262894
- if (!isHexString(oDps[id])) {
262895
- const b2 = Buffer.from(oDps[id], "base64");
262896
- oDps[id] = b2.toString("hex");
262897
- }
262894
+ const b2 = Buffer.from(oDps[id], "base64");
262895
+ oDps[id] = b2.toString("hex");
262898
262896
  }
262899
262897
  });
262900
262898
  devInfo.result.dps = oDps;
@@ -263504,7 +263502,7 @@ var MqttListener = async (topic, message) => {
263504
263502
  result = parseRawMessage(result, devInfo);
263505
263503
  }
263506
263504
  const mqttData = result?.data;
263507
- const deviceId = mqttData?.devId;
263505
+ const deviceId = mqttData?.devId || devOrGroupId;
263508
263506
  const dps = mqttData?.dps || {};
263509
263507
  if (getCachedDevice()[deviceId]) {
263510
263508
  updateCachedDevice(deviceId, dps);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-miniapp/ark-extension-virtual-device",
3
- "version": "1.8.7-beta-3",
3
+ "version": "1.8.7-beta-5",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "manifest.json",