@weapp-vite/devtools-runtime 0.4.5 → 0.4.7
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/index.d.ts +0 -1
- package/dist/mcp.d.ts +3 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { AutomatorElement, AutomatorMiniProgram, AutomatorPage, DevtoolsConnectionInput, DevtoolsContext, DevtoolsElementSnapshot, DevtoolsPageSnapshot, DevtoolsRuntimeHooks, DevtoolsRuntimeSessionOptions, DevtoolsToolResult, MiniProgramElementLike, readDevtoolsElementSnapshot, resolveDevtoolsProjectPath, resolveDevtoolsWorkspacePath, toDevtoolsSerializableValue } from "./mcp.js";
|
|
2
|
-
|
|
3
2
|
//#region src/index.d.ts
|
|
4
3
|
interface MiniProgramEventMap {
|
|
5
4
|
console: (payload: unknown) => void;
|
package/dist/mcp.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Element, MiniProgram, Page } from "@weapp-vite/miniprogram-automator";
|
|
2
|
-
|
|
3
2
|
//#region src/mcp.d.ts
|
|
4
3
|
type AutomatorMiniProgram = InstanceType<typeof MiniProgram> & {
|
|
5
4
|
callWxMethod?: (method: string, ...args: unknown[]) => Promise<unknown>;
|
|
5
|
+
enableLog?: () => Promise<void>;
|
|
6
6
|
};
|
|
7
7
|
type AutomatorPage = InstanceType<typeof Page>;
|
|
8
8
|
type AutomatorElement = InstanceType<typeof Element> & {
|
|
@@ -10,6 +10,7 @@ type AutomatorElement = InstanceType<typeof Element> & {
|
|
|
10
10
|
};
|
|
11
11
|
interface DevtoolsRuntimeSessionOptions {
|
|
12
12
|
miniProgram?: AutomatorMiniProgram;
|
|
13
|
+
openedOnly?: boolean;
|
|
13
14
|
preferOpenedSession?: boolean;
|
|
14
15
|
preserveProjectRoot?: boolean;
|
|
15
16
|
port?: number;
|
|
@@ -25,6 +26,7 @@ interface DevtoolsRuntimeHooks {
|
|
|
25
26
|
interface DevtoolsConnectionInput {
|
|
26
27
|
projectPath: string;
|
|
27
28
|
timeout?: number;
|
|
29
|
+
openedOnly?: boolean;
|
|
28
30
|
port?: number;
|
|
29
31
|
preferOpenedSession?: boolean;
|
|
30
32
|
preserveProjectRoot?: boolean;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@weapp-vite/devtools-runtime",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.7",
|
|
5
5
|
"description": "Shared WeChat DevTools runtime automation helpers for weapp-vite packages",
|
|
6
6
|
"author": "ice breaker <1324318532@qq.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"registry": "https://registry.npmjs.org/"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@weapp-vite/miniprogram-automator": "1.2.
|
|
41
|
+
"@weapp-vite/miniprogram-automator": "1.2.6"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"dev": "tsdown -w --sourcemap",
|