@midscene/core 1.12.7 → 1.12.8-beta-20260915081046.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/es/agent/utils.mjs +1 -1
- package/dist/es/device/index.mjs +13 -10
- package/dist/es/device/index.mjs.map +1 -1
- package/dist/es/report-html-template.mjs +1 -1
- package/dist/es/utils.mjs +1 -1
- package/dist/lib/agent/utils.js +1 -1
- package/dist/lib/device/index.js +15 -9
- package/dist/lib/device/index.js.map +1 -1
- package/dist/lib/report-html-template.js +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/types/device/index.d.ts +7 -1
- package/package.json +2 -2
package/dist/lib/utils.js
CHANGED
|
@@ -228,7 +228,7 @@ function stringifyDumpData(data, indents) {
|
|
|
228
228
|
return JSON.stringify(data, replacerForPageObject, indents);
|
|
229
229
|
}
|
|
230
230
|
function getVersion() {
|
|
231
|
-
return "1.12.
|
|
231
|
+
return "1.12.8-beta-20260915081046.0";
|
|
232
232
|
}
|
|
233
233
|
function debugLog(...message) {
|
|
234
234
|
const debugMode = process.env[env_namespaceObject.MIDSCENE_DEBUG_MODE];
|
|
@@ -68,6 +68,10 @@ export interface PointerInputPrimitives {
|
|
|
68
68
|
duration?: number;
|
|
69
69
|
}): Promise<void>;
|
|
70
70
|
dragAndDrop?(from: PointerPoint, to: PointerPoint): Promise<void>;
|
|
71
|
+
swipe?(start: PointerPoint, end: PointerPoint, opts?: {
|
|
72
|
+
duration?: number;
|
|
73
|
+
repeat?: number;
|
|
74
|
+
}): Promise<void>;
|
|
71
75
|
}
|
|
72
76
|
export interface TouchInputPrimitives {
|
|
73
77
|
swipe(start: PointerPoint, end: PointerPoint, opts?: {
|
|
@@ -2286,7 +2290,7 @@ export type ActionSwipeParam = {
|
|
|
2286
2290
|
duration?: number;
|
|
2287
2291
|
repeat?: number;
|
|
2288
2292
|
};
|
|
2289
|
-
export declare function
|
|
2293
|
+
export declare function normalizeSwipeParam(param: ActionSwipeParam, screenSize: {
|
|
2290
2294
|
width: number;
|
|
2291
2295
|
height: number;
|
|
2292
2296
|
}): {
|
|
@@ -2301,6 +2305,8 @@ export declare function normalizeMobileSwipeParam(param: ActionSwipeParam, scree
|
|
|
2301
2305
|
duration: number;
|
|
2302
2306
|
repeatCount: number;
|
|
2303
2307
|
};
|
|
2308
|
+
/** @deprecated Use {@link normalizeSwipeParam} instead. */
|
|
2309
|
+
export declare const normalizeMobileSwipeParam: typeof normalizeSwipeParam;
|
|
2304
2310
|
export declare const defineActionSwipe: (config: {
|
|
2305
2311
|
swipe: TouchInputPrimitives["swipe"];
|
|
2306
2312
|
size(): Promise<Size>;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midscene/core",
|
|
3
3
|
"description": "Automate browser actions, extract data, and perform assertions using AI. It offers JavaScript SDK, Chrome extension, and support for scripting in YAML. See https://midscenejs.com/ for details.",
|
|
4
|
-
"version": "1.12.
|
|
4
|
+
"version": "1.12.8-beta-20260915081046.0",
|
|
5
5
|
"repository": "https://github.com/web-infra-dev/midscene",
|
|
6
6
|
"homepage": "https://midscenejs.com/",
|
|
7
7
|
"main": "./dist/lib/index.js",
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
"semver": "7.5.2",
|
|
162
162
|
"undici": "^6.0.0",
|
|
163
163
|
"zod": "^3.25.1",
|
|
164
|
-
"@midscene/shared": "1.12.
|
|
164
|
+
"@midscene/shared": "1.12.8-beta-20260915081046.0"
|
|
165
165
|
},
|
|
166
166
|
"devDependencies": {
|
|
167
167
|
"@rslib/core": "^0.18.3",
|