@tuya-miniapp/ark-extension-virtual-device 1.8.1-beta-2 → 1.8.1-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.1-beta-1",
220755
+ version: "1.8.1-beta-3",
220756
220756
  license: "MIT",
220757
220757
  files: [
220758
220758
  "manifest.json",
@@ -279273,7 +279273,7 @@ async function initPlugin() {
279273
279273
  plugins.map(async (item) => {
279274
279274
  try {
279275
279275
  const p2 = `${item.baseDir}/${item.worker.entry}`;
279276
- console.log("------inject plugin", item);
279276
+ console.log("------inject plugin", item, p2);
279277
279277
  if (!!item.worker.initFunc) {
279278
279278
  if (fs8.pathExistsSync(p2)) {
279279
279279
  import(p2);
@@ -279281,6 +279281,7 @@ async function initPlugin() {
279281
279281
  } else {
279282
279282
  if (fs8.pathExistsSync(p2)) {
279283
279283
  import(p2);
279284
+ console.log("------inject \u52A0\u8F7D\u6210\u529F", p2);
279284
279285
  }
279285
279286
  }
279286
279287
  } catch (error) {
@@ -279444,7 +279445,7 @@ function downloadFromNpm(npmName, version) {
279444
279445
  const dist2 = import_path11.default.join(
279445
279446
  __dirname,
279446
279447
  "../../../ark.virtual-devices-extensions",
279447
- npmName
279448
+ process.env.OS.toLowerCase().indexOf("window") > -1 ? npmName.replace(/\//g, "-") : npmName.replace(/\//g, ":")
279448
279449
  );
279449
279450
  esm_default.request(tarball, {
279450
279451
  streaming: true,
@@ -279452,7 +279453,7 @@ function downloadFromNpm(npmName, version) {
279452
279453
  }).then(
279453
279454
  (result) => compressing2.tgz.uncompress(result.res, tempDir)
279454
279455
  ).then(() => {
279455
- console.log("---------uncompress success", `${tempDir}/package`, dist2, process.env);
279456
+ console.log("---------uncompress success", `${tempDir}/package`, dist2);
279456
279457
  setTimeout(async () => {
279457
279458
  try {
279458
279459
  fs10.removeSync(dist2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tuya-miniapp/ark-extension-virtual-device",
3
- "version": "1.8.1-beta-2",
3
+ "version": "1.8.1-beta-4",
4
4
  "license": "MIT",
5
5
  "files": [
6
6
  "manifest.json",