@tuya-miniapp/ark-extension-virtual-device 1.8.7-beta-2 → 1.8.7-beta-4

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-1",
220755
+ version: "1.8.7-beta-3",
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;
@@ -280142,7 +280140,7 @@ async function getProductInfo2(params) {
280142
280140
  }
280143
280141
  });
280144
280142
  if (deviceList) {
280145
- const result = deviceList.data?.result;
280143
+ const result = deviceList.data?.result || [];
280146
280144
  cachedDeviceList = result;
280147
280145
  const p2 = result.filter((item) => item.productId === params.productId).pop();
280148
280146
  if (p2) {
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-2",
3
+ "version": "1.8.7-beta-4",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "manifest.json",