@tuya-miniapp/ark-extension-virtual-device 1.8.8-beta-1 → 1.8.8-beta-2

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",
220755
+ version: "1.8.8-beta-1",
220756
220756
  license: "MIT",
220757
220757
  files: [
220758
220758
  "manifest.json",
@@ -262463,7 +262463,7 @@ async function getDebugMode() {
262463
262463
  try {
262464
262464
  result = res || "virtual";
262465
262465
  } catch (error) {
262466
- ark.storage.remove(key);
262466
+ await ark.storage.remove(key);
262467
262467
  return;
262468
262468
  }
262469
262469
  return result || "virtual";
@@ -262491,7 +262491,7 @@ var setCompilationParams = async (p2) => {
262491
262491
  }
262492
262492
  });
262493
262493
  const np = stringifySearchParams({ ...realParams, ...p2 });
262494
- ark.project.setCompilationParams({ page, params: np });
262494
+ await ark.project.setCompilationParams({ page, params: np });
262495
262495
  };
262496
262496
  var changeDeviceIdOrGroupId = async (p2) => {
262497
262497
  const { page, params } = await ark.project.getCompilationParams() || {};
@@ -262509,7 +262509,7 @@ var changeDeviceIdOrGroupId = async (p2) => {
262509
262509
  delete realParams["groupId"];
262510
262510
  }
262511
262511
  const np = stringifySearchParams(realParams);
262512
- ark.project.setCompilationParams({ page, params: np });
262512
+ await ark.project.setCompilationParams({ page, params: np });
262513
262513
  };
262514
262514
 
262515
262515
  // worker/api/services/mock/getProductInfo.ts
@@ -264748,7 +264748,7 @@ var getProjectInfo = async () => {
264748
264748
  // worker/api/services/clearProjectInfo.ts
264749
264749
  var clearProjectInfo = async (body) => {
264750
264750
  const info = await getProjectInfo();
264751
- setCompilationParams({ deviceId: "" });
264751
+ await setCompilationParams({ deviceId: "" });
264752
264752
  if (info) {
264753
264753
  await ark.storage.remove(info.productId);
264754
264754
  await ark.storage.remove(info.deviceId);
@@ -266002,7 +266002,7 @@ var getVirtualBindInfo = async (params) => {
266002
266002
  result: { devId }
266003
266003
  } = res;
266004
266004
  if (devId) {
266005
- setCompilationParams({ deviceId: devId });
266005
+ await setCompilationParams({ deviceId: devId });
266006
266006
  }
266007
266007
  return res?.result;
266008
266008
  };
@@ -279365,7 +279365,7 @@ function validateConfig(config) {
279365
279365
  }
279366
279366
  return viewResult;
279367
279367
  }
279368
- function saveDebugExtension({ service, params: { path: path6 }, eventId }) {
279368
+ async function saveDebugExtension({ service, params: { path: path6 }, eventId }) {
279369
279369
  try {
279370
279370
  const result = {
279371
279371
  service,
@@ -279376,7 +279376,7 @@ function saveDebugExtension({ service, params: { path: path6 }, eventId }) {
279376
279376
  }
279377
279377
  };
279378
279378
  if (!path6) {
279379
- ark.storage.remove(DEBUG_EXT_STORAGE_KEY2);
279379
+ await ark.storage.remove(DEBUG_EXT_STORAGE_KEY2);
279380
279380
  ark.runtime.sendMessage(
279381
279381
  JSON.stringify({
279382
279382
  ...result,
@@ -279552,7 +279552,7 @@ var deleteFromInstalledExtList = (item) => {
279552
279552
  await ark.storage.set(INSTALLED_EXT_STORAGE_KEY2, JSON.stringify(list));
279553
279553
  const debugExt = await getDebugExt();
279554
279554
  if (debugExt && debugExt.npmName === item.npmName) {
279555
- saveDebugExtension({
279555
+ await saveDebugExtension({
279556
279556
  service: null,
279557
279557
  params: { path: null },
279558
279558
  eventId: null
@@ -283052,7 +283052,7 @@ async function requestNgConfig(uid) {
283052
283052
  }
283053
283053
  });
283054
283054
  if (res.success) {
283055
- ark.storage.set(`ng_config_${uid}`, JSON.stringify(res));
283055
+ await ark.storage.set(`ng_config_${uid}`, JSON.stringify(res));
283056
283056
  }
283057
283057
  return res;
283058
283058
  } catch (error) {
@@ -283333,7 +283333,7 @@ try {
283333
283333
  } else if (service === "startMQTT") {
283334
283334
  initMqttClient_default.reconnectAll();
283335
283335
  } else if (service === "set_debug_extension_path") {
283336
- saveDebugExtension(data);
283336
+ await saveDebugExtension(data);
283337
283337
  }
283338
283338
  }
283339
283339
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-miniapp/ark-extension-virtual-device",
3
- "version": "1.8.8-beta-1",
3
+ "version": "1.8.8-beta-2",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "manifest.json",