weapp-ide-cli 6.2.0 → 6.4.0

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/cli.js CHANGED
@@ -1,7 +1,7 @@
1
- import { D as logger } from "./sessionStore-zdzy2UFM.js";
2
- import { n as parse } from "./cli-ChMQqi5w.js";
1
+ import { M as logger } from "./automatorProject-DPU-pEF0.js";
2
+ import { n as parse } from "./cli-Dd1RJ5PH.js";
3
3
  import process from "node:process";
4
- //#region src/cli.ts
4
+ // src/cli.ts
5
5
  const argv = process.argv.slice(2);
6
6
  try {
7
7
  await parse(argv);
@@ -11,5 +11,4 @@ try {
11
11
  else if (typeof err?.code === "number") process.exitCode = err.code;
12
12
  else process.exitCode = 1;
13
13
  }
14
- //#endregion
15
14
  export {};
@@ -1,10 +1,11 @@
1
- import { D as logger, E as colors } from "./sessionStore-zdzy2UFM.js";
2
- import { E as i18nText, c as withMiniProgram } from "./automator-session-gWEsSs_A.js";
1
+ import { M as logger, j as colors } from "./automatorProject-DPU-pEF0.js";
2
+ import { M as i18nText } from "./automator-Esp3BjoT.js";
3
+ import { l as withMiniProgram } from "./automator-session-Ba27VW0_.js";
3
4
  import path from "node:path";
4
5
  import fs from "node:fs/promises";
5
6
  import { Buffer } from "node:buffer";
6
7
  import { PNG } from "pngjs";
7
- //#region src/cli/fullPageScreenshot.ts
8
+ // src/cli/fullPageScreenshot.ts
8
9
  const MAX_FULL_PAGE_CAPTURES = 200;
9
10
  const DEVTOOLS_INSPECTEE_REFERENCE_ERROR = /__inspectee__ is not defined|Can't find variable:\s*__inspectee__/i;
10
11
  function decodeScreenshotBuffer(raw) {
@@ -223,8 +224,7 @@ async function captureFullPageScreenshotBuffer(options) {
223
224
  }
224
225
  return PNG.sync.write(merged);
225
226
  }
226
- //#endregion
227
- //#region src/cli/commands.ts
227
+ // src/cli/commands.ts
228
228
  function createTimeoutError(message, code) {
229
229
  const error = new Error(message);
230
230
  error.code = code;
@@ -524,5 +524,4 @@ async function remote(options) {
524
524
  logger.success(enable ? i18nText("远程调试已开启", "Remote debugging enabled") : i18nText("远程调试已关闭", "Remote debugging disabled"));
525
525
  });
526
526
  }
527
- //#endregion
528
527
  export { navigateBack as a, pageStack as c, remote as d, scrollTo as f, tap as g, takeScreenshot as h, input as i, reLaunch as l, systemInfo as m, captureScreenshotBuffer as n, navigateTo as o, switchTab as p, currentPage as r, pageData as s, audit as t, redirectTo as u };
@@ -0,0 +1 @@
1
+ export { h as takeScreenshot } from "./commands-5entj0Rh.js";