appium-safari-driver 4.1.12 → 4.1.13
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/CHANGELOG.md +6 -0
- package/build/lib/commands/record-screen.d.ts +32 -32
- package/build/lib/commands/record-screen.d.ts.map +1 -1
- package/build/lib/commands/record-screen.js +23 -23
- package/build/lib/commands/record-screen.js.map +1 -1
- package/build/lib/driver.d.ts +9 -9
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +7 -7
- package/build/lib/driver.js.map +1 -1
- package/build/lib/safari.d.ts.map +1 -1
- package/build/lib/safari.js +1 -1
- package/build/lib/safari.js.map +1 -1
- package/build/lib/utils.d.ts +5 -0
- package/build/lib/utils.d.ts.map +1 -1
- package/build/lib/utils.js +5 -0
- package/build/lib/utils.js.map +1 -1
- package/lib/commands/record-screen.ts +72 -72
- package/lib/driver.ts +13 -12
- package/lib/safari.ts +2 -1
- package/lib/utils.ts +5 -0
- package/npm-shrinkwrap.json +57 -62
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
## [4.1.13](https://github.com/appium/appium-safari-driver/compare/v4.1.12...v4.1.13) (2026-05-01)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* lint ([#165](https://github.com/appium/appium-safari-driver/issues/165)) ([1c062e8](https://github.com/appium/appium-safari-driver/commit/1c062e8460697db4daa38bb8d1303b1e711c424e))
|
|
6
|
+
|
|
1
7
|
## [4.1.12](https://github.com/appium/appium-safari-driver/compare/v4.1.11...v4.1.12) (2026-04-17)
|
|
2
8
|
|
|
3
9
|
### Bug Fixes
|
|
@@ -1,28 +1,5 @@
|
|
|
1
1
|
import type { AppiumLogger } from '@appium/types';
|
|
2
2
|
import type { SafariDriver } from '../driver';
|
|
3
|
-
interface ScreenRecorderOptions {
|
|
4
|
-
codec?: string;
|
|
5
|
-
display?: string;
|
|
6
|
-
mask?: string;
|
|
7
|
-
timeLimit?: string | number;
|
|
8
|
-
}
|
|
9
|
-
export declare class ScreenRecorder {
|
|
10
|
-
private log;
|
|
11
|
-
private _process;
|
|
12
|
-
private _udid;
|
|
13
|
-
private _videoPath;
|
|
14
|
-
private _codec?;
|
|
15
|
-
private _display?;
|
|
16
|
-
private _mask?;
|
|
17
|
-
private _timeLimitMs;
|
|
18
|
-
private _timer;
|
|
19
|
-
constructor(udid: string, videoPath: string, log: AppiumLogger, opts?: ScreenRecorderOptions);
|
|
20
|
-
getVideoPath(): Promise<string>;
|
|
21
|
-
get isRunning(): boolean;
|
|
22
|
-
start(): Promise<void>;
|
|
23
|
-
stop(force?: boolean): Promise<string>;
|
|
24
|
-
private _enforceTermination;
|
|
25
|
-
}
|
|
26
3
|
export interface StartRecordingOptions {
|
|
27
4
|
/** Specifies the codec type: "h264" or "hevc" */
|
|
28
5
|
codec?: string;
|
|
@@ -41,15 +18,6 @@ export interface StartRecordingOptions {
|
|
|
41
18
|
*/
|
|
42
19
|
forceRestart?: boolean;
|
|
43
20
|
}
|
|
44
|
-
/**
|
|
45
|
-
* Record the Simulator's display in background while the automated test is running.
|
|
46
|
-
* This method uses `xcrun simctl io recordVideo` helper under the hood.
|
|
47
|
-
* Check the output of `xcrun simctl io` command for more details.
|
|
48
|
-
*
|
|
49
|
-
* @param options - The available options.
|
|
50
|
-
* @throws {Error} If screen recording has failed to start or is not supported for the destination device.
|
|
51
|
-
*/
|
|
52
|
-
export declare function startRecordingScreen(this: SafariDriver, options?: StartRecordingOptions): Promise<void>;
|
|
53
21
|
export interface StopRecordingOptions {
|
|
54
22
|
/** The path to the remote location, where the resulting video should be uploaded.
|
|
55
23
|
* The following protocols are supported: http/https, ftp.
|
|
@@ -72,6 +40,38 @@ export interface StopRecordingOptions {
|
|
|
72
40
|
/** Additional form fields for multipart http(s) uploads */
|
|
73
41
|
formFields?: Record<string, string> | Array<[string, string]>;
|
|
74
42
|
}
|
|
43
|
+
interface ScreenRecorderOptions {
|
|
44
|
+
codec?: string;
|
|
45
|
+
display?: string;
|
|
46
|
+
mask?: string;
|
|
47
|
+
timeLimit?: string | number;
|
|
48
|
+
}
|
|
49
|
+
export declare class ScreenRecorder {
|
|
50
|
+
private log;
|
|
51
|
+
private _process;
|
|
52
|
+
private _udid;
|
|
53
|
+
private _videoPath;
|
|
54
|
+
private _codec?;
|
|
55
|
+
private _display?;
|
|
56
|
+
private _mask?;
|
|
57
|
+
private _timeLimitMs;
|
|
58
|
+
private _timer;
|
|
59
|
+
constructor(udid: string, videoPath: string, log: AppiumLogger, opts?: ScreenRecorderOptions);
|
|
60
|
+
get isRunning(): boolean;
|
|
61
|
+
getVideoPath(): Promise<string>;
|
|
62
|
+
start(): Promise<void>;
|
|
63
|
+
stop(force?: boolean): Promise<string>;
|
|
64
|
+
private _enforceTermination;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Record the Simulator's display in background while the automated test is running.
|
|
68
|
+
* This method uses `xcrun simctl io recordVideo` helper under the hood.
|
|
69
|
+
* Check the output of `xcrun simctl io` command for more details.
|
|
70
|
+
*
|
|
71
|
+
* @param options - The available options.
|
|
72
|
+
* @throws {Error} If screen recording has failed to start or is not supported for the destination device.
|
|
73
|
+
*/
|
|
74
|
+
export declare function startRecordingScreen(this: SafariDriver, options?: StartRecordingOptions): Promise<void>;
|
|
75
75
|
/**
|
|
76
76
|
* Stop recording the screen.
|
|
77
77
|
* If no screen recording has been started before then the method returns an empty string.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-screen.d.ts","sourceRoot":"","sources":["../../../lib/commands/record-screen.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAC,YAAY,EAAe,MAAM,eAAe,CAAC;AAC9D,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,WAAW,CAAC;AAiD5C,
|
|
1
|
+
{"version":3,"file":"record-screen.d.ts","sourceRoot":"","sources":["../../../lib/commands/record-screen.ts"],"names":[],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,UAAU,CAAS;IAC3B,OAAO,CAAC,MAAM,CAAC,CAAS;IACxB,OAAO,CAAC,QAAQ,CAAC,CAAS;IAC1B,OAAO,CAAC,KAAK,CAAC,CAAS;IACvB,OAAO,CAAC,YAAY,CAAiC;IACrD,OAAO,CAAC,MAAM,CAA+B;gBAG3C,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,EACjB,GAAG,EAAE,YAAY,EACjB,IAAI,GAAE,qBAA0B;IAgBlC,IAAI,SAAS,IAAI,OAAO,CAEvB;IAEK,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAQ/B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAiEtB,IAAI,CAAC,KAAK,GAAE,OAAe,GAAG,OAAO,CAAC,MAAM,CAAC;YA6BrC,mBAAmB;CAelC;AAED;;;;;;;GAOG;AACH,wBAAsB,oBAAoB,CACxC,IAAI,EAAE,YAAY,EAClB,OAAO,CAAC,EAAE,qBAAqB,GAC9B,OAAO,CAAC,IAAI,CAAC,CAqCf;AAED;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,YAAY,EAClB,OAAO,CAAC,EAAE,oBAAoB,GAC7B,OAAO,CAAC,MAAM,CAAC,CAmBjB"}
|
|
@@ -65,6 +65,9 @@ class ScreenRecorder {
|
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
|
+
get isRunning() {
|
|
69
|
+
return !!this._process?.isRunning;
|
|
70
|
+
}
|
|
68
71
|
async getVideoPath() {
|
|
69
72
|
if (await support_1.fs.exists(this._videoPath)) {
|
|
70
73
|
VIDEO_FILES.add(this._videoPath);
|
|
@@ -72,9 +75,6 @@ class ScreenRecorder {
|
|
|
72
75
|
}
|
|
73
76
|
return '';
|
|
74
77
|
}
|
|
75
|
-
get isRunning() {
|
|
76
|
-
return !!this._process?.isRunning;
|
|
77
|
-
}
|
|
78
78
|
async start() {
|
|
79
79
|
const args = [this._udid, 'recordVideo'];
|
|
80
80
|
if (this._display) {
|
|
@@ -179,26 +179,6 @@ class ScreenRecorder {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
exports.ScreenRecorder = ScreenRecorder;
|
|
182
|
-
async function extractSimulatorUdid(caps) {
|
|
183
|
-
if (caps['safari:useSimulator'] === false) {
|
|
184
|
-
return null;
|
|
185
|
-
}
|
|
186
|
-
const allDevices = lodash_1.default.flatMap(lodash_1.default.values(await new node_simctl_1.Simctl().getDevices(null, 'iOS')));
|
|
187
|
-
for (const { name, udid, state, sdk } of allDevices) {
|
|
188
|
-
if (state !== 'Booted') {
|
|
189
|
-
continue;
|
|
190
|
-
}
|
|
191
|
-
if (lodash_1.default.toLower(caps['safari:deviceUDID']) === lodash_1.default.toLower(udid)) {
|
|
192
|
-
return udid;
|
|
193
|
-
}
|
|
194
|
-
if (lodash_1.default.toLower(caps['safari:deviceName']) === lodash_1.default.toLower(name) &&
|
|
195
|
-
((caps['safari:platformVersion'] && caps['safari:platformVersion'] === sdk) ||
|
|
196
|
-
!caps['safari:platformVersion'])) {
|
|
197
|
-
return udid;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
return null;
|
|
201
|
-
}
|
|
202
182
|
/**
|
|
203
183
|
* Record the Simulator's display in background while the automated test is running.
|
|
204
184
|
* This method uses `xcrun simctl io recordVideo` helper under the hood.
|
|
@@ -270,4 +250,24 @@ async function stopRecordingScreen(options) {
|
|
|
270
250
|
}
|
|
271
251
|
return await uploadRecordedMedia(videoPath, options?.remotePath ?? null, options ?? {});
|
|
272
252
|
}
|
|
253
|
+
async function extractSimulatorUdid(caps) {
|
|
254
|
+
if (caps['safari:useSimulator'] === false) {
|
|
255
|
+
return null;
|
|
256
|
+
}
|
|
257
|
+
const allDevices = lodash_1.default.flatMap(lodash_1.default.values(await new node_simctl_1.Simctl().getDevices(null, 'iOS')));
|
|
258
|
+
for (const { name, udid, state, sdk } of allDevices) {
|
|
259
|
+
if (state !== 'Booted') {
|
|
260
|
+
continue;
|
|
261
|
+
}
|
|
262
|
+
if (lodash_1.default.toLower(caps['safari:deviceUDID']) === lodash_1.default.toLower(udid)) {
|
|
263
|
+
return udid;
|
|
264
|
+
}
|
|
265
|
+
if (lodash_1.default.toLower(caps['safari:deviceName']) === lodash_1.default.toLower(name) &&
|
|
266
|
+
((caps['safari:platformVersion'] && caps['safari:platformVersion'] === sdk) ||
|
|
267
|
+
!caps['safari:platformVersion'])) {
|
|
268
|
+
return udid;
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
return null;
|
|
272
|
+
}
|
|
273
273
|
//# sourceMappingURL=record-screen.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-screen.js","sourceRoot":"","sources":["../../../lib/commands/record-screen.ts"],"names":[],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"file":"record-screen.js","sourceRoot":"","sources":["../../../lib/commands/record-screen.ts"],"names":[],"mappings":";;;;;;AA0QA,oDAwCC;AAaD,kDAsBC;AArVD,oDAAuB;AACvB,4CAAsD;AACtD,uCAA0C;AAC1C,6CAAmC;AAKnC,MAAM,mBAAmB,GAAG,GAAG,CAAC;AAChC,MAAM,kBAAkB,GAAG,EAAE,GAAG,IAAI,CAAC;AACrC,MAAM,qBAAqB,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa;AAC3D,MAAM,2BAA2B,GAAG,EAAE,GAAG,IAAI,CAAC;AAC9C,MAAM,WAAW,GAAG,MAAM,CAAC;AAW3B,KAAK,UAAU,mBAAmB,CAChC,SAAiB,EACjB,aAA4B,IAAI,EAChC,gBAA+B,EAAE;IAEjC,IAAI,gBAAC,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC;QACzC,OAAO,CAAC,MAAM,cAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC;IAC7D,CAAC;IAED,MAAM,EAAC,IAAI,EA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,KAAK,EAAE,GAAG,EAAC,IAAI,UAAU,EAAE,CAAC;QAClD,IAAI,KAAK,KAAK,QAAQ,EAAE,CAAC;YACvB,SAAS;QACX,CAAC;QAED,IAAI,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,KAAK,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;YAC7D,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IACE,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,CAAC,CAAC,KAAK,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC;YACxD,CAAC,CAAC,IAAI,CAAC,wBAAwB,CAAC,IAAI,IAAI,CAAC,wBAAwB,CAAC,KAAK,GAAG,CAAC;gBACzE,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,EAClC,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED,OAAO,IAAI,CAAC;AACd,CAAC"}
|
package/build/lib/driver.d.ts
CHANGED
|
@@ -5,11 +5,8 @@ import { type SafariConstraints } from './desired-caps';
|
|
|
5
5
|
import * as cookieCommands from './commands/cookies';
|
|
6
6
|
import * as findCommands from './commands/find';
|
|
7
7
|
import * as recordScreenCommands from './commands/record-screen';
|
|
8
|
+
type W3CSafariDriverCaps = W3CDriverCaps<SafariConstraints>;
|
|
8
9
|
export declare class SafariDriver extends BaseDriver<SafariConstraints, StringRecord> implements ExternalDriver<SafariConstraints, string, StringRecord> {
|
|
9
|
-
private isProxyActive;
|
|
10
|
-
private _safari;
|
|
11
|
-
proxyReqRes: ((...args: any[]) => any) | null;
|
|
12
|
-
_screenRecorder: recordScreenCommands.ScreenRecorder | null;
|
|
13
10
|
static newMethodMap: {
|
|
14
11
|
readonly '/session/:sessionId/appium/start_recording_screen': {
|
|
15
12
|
readonly POST: {
|
|
@@ -28,6 +25,14 @@ export declare class SafariDriver extends BaseDriver<SafariConstraints, StringRe
|
|
|
28
25
|
};
|
|
29
26
|
};
|
|
30
27
|
};
|
|
28
|
+
proxyReqRes: ((...args: any[]) => any) | null;
|
|
29
|
+
_screenRecorder: recordScreenCommands.ScreenRecorder | null;
|
|
30
|
+
deleteCookies: typeof cookieCommands.deleteCookies;
|
|
31
|
+
findElOrEls: typeof findCommands.findElOrEls;
|
|
32
|
+
startRecordingScreen: typeof recordScreenCommands.startRecordingScreen;
|
|
33
|
+
stopRecordingScreen: typeof recordScreenCommands.stopRecordingScreen;
|
|
34
|
+
private isProxyActive;
|
|
35
|
+
private _safari;
|
|
31
36
|
constructor(opts?: InitialOpts);
|
|
32
37
|
get safari(): SafariDriverServer;
|
|
33
38
|
proxyActive(): boolean;
|
|
@@ -36,11 +41,6 @@ export declare class SafariDriver extends BaseDriver<SafariConstraints, StringRe
|
|
|
36
41
|
createSession(w3cCaps1: W3CSafariDriverCaps, w3cCaps2?: W3CSafariDriverCaps, w3cCaps3?: W3CSafariDriverCaps, driverData?: DriverData[]): Promise<DefaultCreateSessionResult<SafariConstraints>>;
|
|
37
42
|
deleteSession(): Promise<void>;
|
|
38
43
|
private resetState;
|
|
39
|
-
deleteCookies: typeof cookieCommands.deleteCookies;
|
|
40
|
-
findElOrEls: typeof findCommands.findElOrEls;
|
|
41
|
-
startRecordingScreen: typeof recordScreenCommands.startRecordingScreen;
|
|
42
|
-
stopRecordingScreen: typeof recordScreenCommands.stopRecordingScreen;
|
|
43
44
|
}
|
|
44
45
|
export default SafariDriver;
|
|
45
|
-
type W3CSafariDriverCaps = W3CDriverCaps<SafariConstraints>;
|
|
46
46
|
//# sourceMappingURL=driver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,YAAY,EACZ,0BAA0B,EAC1B,UAAU,EACV,WAAW,EACX,YAAY,EACZ,cAAc,EACd,aAAa,EACd,MAAM,eAAe,CAAC;AACvB,O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IAAI,CAAC;IAC9C,eAAe,EAAE,oBAAoB,CAAC,cAAc,GAAG,IAAI,CAAC;IAE5D,aAAa,sCAAgC;IAE7C,WAAW,kCAA4B;IAEvC,oBAAoB,mDAA6C;IACjE,mBAAmB,kDAA4C;IAE/D,OAAO,CAAC,aAAa,CAAU;IAC/B,OAAO,CAAC,OAAO,CAA4B;gBAE/B,IAAI,GAAE,WAA+B;IAgBjD,IAAI,MAAM,IAAI,kBAAkB,CAK/B;IAEQ,WAAW,IAAI,OAAO;IAItB,iBAAiB,IAAI,YAAY,EAAE;IAInC,QAAQ,IAAI,OAAO;IAIb,aAAa,CAC1B,QAAQ,EAAE,mBAAmB,EAC7B,QAAQ,CAAC,EAAE,mBAAmB,EAC9B,QAAQ,CAAC,EAAE,mBAAmB,EAC9B,UAAU,CAAC,EAAE,UAAU,EAAE,GACxB,OAAO,CAAC,0BAA0B,CAAC,iBAAiB,CAAC,CAAC;IAgB1C,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;IAS7C,OAAO,CAAC,UAAU;CAMnB;AAED,eAAe,YAAY,CAAC"}
|
package/build/lib/driver.js
CHANGED
|
@@ -50,11 +50,15 @@ const NO_PROXY = [
|
|
|
50
50
|
['DELETE', new RegExp('^/session/[^/]+/cookie$')],
|
|
51
51
|
];
|
|
52
52
|
class SafariDriver extends driver_1.BaseDriver {
|
|
53
|
-
|
|
54
|
-
_safari;
|
|
53
|
+
static newMethodMap = method_map_1.newMethodMap;
|
|
55
54
|
proxyReqRes;
|
|
56
55
|
_screenRecorder;
|
|
57
|
-
|
|
56
|
+
deleteCookies = cookieCommands.deleteCookies;
|
|
57
|
+
findElOrEls = findCommands.findElOrEls;
|
|
58
|
+
startRecordingScreen = recordScreenCommands.startRecordingScreen;
|
|
59
|
+
stopRecordingScreen = recordScreenCommands.stopRecordingScreen;
|
|
60
|
+
isProxyActive;
|
|
61
|
+
_safari;
|
|
58
62
|
constructor(opts = {}) {
|
|
59
63
|
super(opts);
|
|
60
64
|
this.desiredCapConstraints = desired_caps_1.desiredCapConstraints;
|
|
@@ -114,10 +118,6 @@ class SafariDriver extends driver_1.BaseDriver {
|
|
|
114
118
|
this.isProxyActive = false;
|
|
115
119
|
this._screenRecorder = null;
|
|
116
120
|
}
|
|
117
|
-
deleteCookies = cookieCommands.deleteCookies;
|
|
118
|
-
findElOrEls = findCommands.findElOrEls;
|
|
119
|
-
startRecordingScreen = recordScreenCommands.startRecordingScreen;
|
|
120
|
-
stopRecordingScreen = recordScreenCommands.stopRecordingScreen;
|
|
121
121
|
}
|
|
122
122
|
exports.SafariDriver = SafariDriver;
|
|
123
123
|
exports.default = SafariDriver;
|
package/build/lib/driver.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.js","sourceRoot":"","sources":["../../lib/driver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,0CAAyC;AACzC,qCAA4C;AAC5C,iDAA6E;AAC7E,mEAAqD;AACrD,8DAAgD;AAChD,+EAAiE;AACjE,mCAA4C;AAC5C,6CAA0C;AAE1C,MAAM,QAAQ,GAAmB;IAC/B,CAAC,KAAK,EAAE,IAAI,MAAM,CAAC,wBAAwB,CAAC,CAAC;IAC7C,CAAC,MAAM,EAAE,IAAI,MAAM,CAAC,wBAAwB,CAAC,CAAC;IAC9C,CAAC,MAAM,EAAE,IAAI,MAAM,CAAC,0CAA0C,CAAC,CAAC;IAChE,CAAC,MAAM,EAAE,IAAI,MAAM,CAAC,4BAA4B,CAAC,CAAC;IAElD,CAAC,QAAQ,EAAE,IAAI,MAAM,CAAC,yBAAyB,CAAC,CAAC;CAClD,CAAC;
|
|
1
|
+
{"version":3,"file":"driver.js","sourceRoot":"","sources":["../../lib/driver.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AASA,0CAAyC;AACzC,qCAA4C;AAC5C,iDAA6E;AAC7E,mEAAqD;AACrD,8DAAgD;AA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AC,aAAa,EAAE,CAAC;IAC9B,CAAC;IAEO,UAAU;QAChB,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;QACpB,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;IAC9B,CAAC;;AAzFH,oCA0FC;AAED,kBAAe,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safari.d.ts","sourceRoot":"","sources":["../../lib/safari.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,OAAO,EAAS,MAAM,eAAe,CAAC;AAM9C,OAAO,KAAK,EAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AAYpF,cAAM,WAAY,SAAQ,OAAO;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IAEV,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,GAAE,QAAe;CASnF;
|
|
1
|
+
{"version":3,"file":"safari.d.ts","sourceRoot":"","sources":["../../lib/safari.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,OAAO,EAAS,MAAM,eAAe,CAAC;AAM9C,OAAO,KAAK,EAAC,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AAYpF,cAAM,WAAY,SAAQ,OAAO;IAC/B,cAAc,CAAC,EAAE,OAAO,CAAC;IAEV,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,GAAE,QAAe;CASnF;AA0ED,MAAM,WAAW,cAAc;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,MAAM,CAA4B;IAC1C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAe;gBAEvB,GAAG,EAAE,YAAY;IAI7B,IAAI,KAAK,IAAI,WAAW,CAKvB;IAED,IAAI,SAAS,IAAI,OAAO,CAEvB;IAEK,KAAK,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,GAAE,cAAmB,GAAG,OAAO,CAAC,IAAI,CAAC;IA8DnE,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;CAc5B;AAED,eAAe,kBAAkB,CAAC"}
|
package/build/lib/safari.js
CHANGED
package/build/lib/safari.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"safari.js","sourceRoot":"","sources":["../../lib/safari.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyB;AACzB,0DAA6B;AAC7B,0CAA8C;AAC9C,4CAAgD;AAChD,+CAAwC;AACxC,uCAA0C;AAC1C,6CAA8C;AAC9C,2DAA4C;AAG5C,MAAM,SAAS,GAAG,cAAc,CAAC;AACjC,MAAM,eAAe,GAAG,KAAK,CAAC,CAAC,UAAU;AACzC,MAAM,iBAAiB,GAAqB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACzD,oCAAoC;AACpC,4EAA4E;AAC5E,MAAM,mBAAmB,GAAG,cAAI,CAAC,gBAAgB,CAC/C,mBAAI,CAAC,OAAO,CAAC,iBAAE,CAAC,MAAM,EAAE,EAAE,0BAA0B,CAAC,EACrD,EAAC,OAAO,EAAE,CAAC,EAAE,WAAW,EAAE,IAAI,EAAC,CAChC,CAAC;AAEF,MAAM,WAAY,SAAQ,gBAAO;IAC/B,cAAc,CAAW;IAEhB,KAAK,CAAC,YAAY,CAAC,GAAW,EAAE,MAAkB,EAAE,OAAiB,IAAI;QAChF,IAAI,IAAI,CAAC,cAAc,EAAE,CAAC;YACxB,MAAM,IAAI,eAAM,CAAC,mBAAmB,CAClC,IAAI,MAAM,IAAI,GAAG,sDAAsD;gBACrE,sFAAsF,CACzF,CAAC;QACJ,CAAC;QACD,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,GAAG,EAA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
1
1
|
import type { StringRecord } from '@appium/types';
|
|
2
|
+
/**
|
|
3
|
+
* Formats the given capabilities for use with Safari Driver Server.
|
|
4
|
+
* @param caps - The capabilities to format.
|
|
5
|
+
* @returns The formatted capabilities.
|
|
6
|
+
*/
|
|
2
7
|
declare function formatCapsForServer(caps: StringRecord): StringRecord;
|
|
3
8
|
export { formatCapsForServer };
|
|
4
9
|
//# sourceMappingURL=utils.d.ts.map
|
package/build/lib/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAIhD,iBAAS,mBAAmB,CAAC,IAAI,EAAE,YAAY,GAAG,YAAY,CAc7D;AAED,OAAO,EAAC,mBAAmB,EAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAIhD;;;;GAIG;AACH,iBAAS,mBAAmB,CAAC,IAAI,EAAE,YAAY,GAAG,YAAY,CAc7D;AAED,OAAO,EAAC,mBAAmB,EAAC,CAAC"}
|
package/build/lib/utils.js
CHANGED
|
@@ -7,6 +7,11 @@ exports.formatCapsForServer = formatCapsForServer;
|
|
|
7
7
|
const driver_1 = require("appium/driver");
|
|
8
8
|
const lodash_1 = __importDefault(require("lodash"));
|
|
9
9
|
const SAFARI_CAP_PREFIXES = ['safari:', 'webkit:'];
|
|
10
|
+
/**
|
|
11
|
+
* Formats the given capabilities for use with Safari Driver Server.
|
|
12
|
+
* @param caps - The capabilities to format.
|
|
13
|
+
* @returns The formatted capabilities.
|
|
14
|
+
*/
|
|
10
15
|
function formatCapsForServer(caps) {
|
|
11
16
|
const result = {
|
|
12
17
|
browserName: 'Safari',
|
package/build/lib/utils.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":";;;;;AA2BQ,kDAAmB;AA3B3B,0CAA4C;AAC5C,oDAAuB;AAGvB,MAAM,mBAAmB,GAAG,CAAC,SAAS,EAAE,SAAS,CAAC,CAAC;AAEnD;;;;GAIG;AACH,SAAS,mBAAmB,CAAC,IAAkB;IAC7C,MAAM,MAAM,GAAiB;QAC3B,WAAW,EAAE,QAAQ;QACrB,cAAc,EAAE,IAAI,CAAC,cAAc;QACnC,YAAY,EAAE,IAAI,CAAC,YAAY,IAAI,KAAK;KACzC,CAAC;IACF,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC;QAC5C,IAAI,mBAAmB,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;YAClE,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;QACvB,CAAC;aAAM,IAAI,CAAC,gBAAC,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,sBAAa,CAAC,GAAG,CAAC,IAAW,CAAC,EAAE,CAAC;YAClE,MAAM,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -53,6 +53,48 @@ process.on('exit', () => {
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
+
export interface StartRecordingOptions {
|
|
57
|
+
/** Specifies the codec type: "h264" or "hevc" */
|
|
58
|
+
codec?: string;
|
|
59
|
+
/** Supports "internal" or "external". Default is "internal" */
|
|
60
|
+
display?: string;
|
|
61
|
+
/** For non-rectangular displays, handle the mask by policy:
|
|
62
|
+
* - ignored: The mask is ignored and the unmasked framebuffer is saved.
|
|
63
|
+
* - alpha: Not supported, but retained for compatibility; the mask is rendered black.
|
|
64
|
+
* - black: The mask is rendered black.
|
|
65
|
+
*/
|
|
66
|
+
mask?: string;
|
|
67
|
+
/** The maximum recording time, in seconds. The default value is 600 seconds (10 minutes). */
|
|
68
|
+
timeLimit?: string | number;
|
|
69
|
+
/** Whether to ignore the call if a screen recording is currently running
|
|
70
|
+
* (`false`) or to start a new recording immediately and terminate the existing one if running (`true`).
|
|
71
|
+
*/
|
|
72
|
+
forceRestart?: boolean;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export interface StopRecordingOptions {
|
|
76
|
+
/** The path to the remote location, where the resulting video should be uploaded.
|
|
77
|
+
* The following protocols are supported: http/https, ftp.
|
|
78
|
+
* Null or empty string value (the default setting) means the content of resulting
|
|
79
|
+
* file should be encoded as Base64 and passed as the endpoint response value.
|
|
80
|
+
* An exception will be thrown if the generated media file is too big to
|
|
81
|
+
* fit into the available process memory.
|
|
82
|
+
*/
|
|
83
|
+
remotePath?: string;
|
|
84
|
+
/** The name of the user for the remote authentication. */
|
|
85
|
+
user?: string;
|
|
86
|
+
/** The password for the remote authentication. */
|
|
87
|
+
pass?: string;
|
|
88
|
+
/** The http multipart upload method name. The 'PUT' one is used by default. */
|
|
89
|
+
method?: string;
|
|
90
|
+
/** Additional headers mapping for multipart http(s) uploads */
|
|
91
|
+
headers?: Record<string, string>;
|
|
92
|
+
/** The name of the form field, where the file content BLOB should be stored for http(s) uploads */
|
|
93
|
+
fileFieldName?: string;
|
|
94
|
+
/** Additional form fields for multipart http(s) uploads */
|
|
95
|
+
formFields?: Record<string, string> | Array<[string, string]>;
|
|
96
|
+
}
|
|
97
|
+
|
|
56
98
|
interface ScreenRecorderOptions {
|
|
57
99
|
codec?: string;
|
|
58
100
|
display?: string;
|
|
@@ -91,6 +133,10 @@ export class ScreenRecorder {
|
|
|
91
133
|
}
|
|
92
134
|
}
|
|
93
135
|
|
|
136
|
+
get isRunning(): boolean {
|
|
137
|
+
return !!this._process?.isRunning;
|
|
138
|
+
}
|
|
139
|
+
|
|
94
140
|
async getVideoPath(): Promise<string> {
|
|
95
141
|
if (await fs.exists(this._videoPath)) {
|
|
96
142
|
VIDEO_FILES.add(this._videoPath);
|
|
@@ -99,10 +145,6 @@ export class ScreenRecorder {
|
|
|
99
145
|
return '';
|
|
100
146
|
}
|
|
101
147
|
|
|
102
|
-
get isRunning(): boolean {
|
|
103
|
-
return !!this._process?.isRunning;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
148
|
async start(): Promise<void> {
|
|
107
149
|
const args: string[] = [this._udid, 'recordVideo'];
|
|
108
150
|
if (this._display) {
|
|
@@ -214,51 +256,6 @@ export class ScreenRecorder {
|
|
|
214
256
|
}
|
|
215
257
|
}
|
|
216
258
|
|
|
217
|
-
async function extractSimulatorUdid(caps: StringRecord): Promise<string | null> {
|
|
218
|
-
if (caps['safari:useSimulator'] === false) {
|
|
219
|
-
return null;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
const allDevices = _.flatMap(_.values(await new Simctl().getDevices(null, 'iOS')));
|
|
223
|
-
for (const {name, udid, state, sdk} of allDevices) {
|
|
224
|
-
if (state !== 'Booted') {
|
|
225
|
-
continue;
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
if (_.toLower(caps['safari:deviceUDID']) === _.toLower(udid)) {
|
|
229
|
-
return udid;
|
|
230
|
-
}
|
|
231
|
-
if (
|
|
232
|
-
_.toLower(caps['safari:deviceName']) === _.toLower(name) &&
|
|
233
|
-
((caps['safari:platformVersion'] && caps['safari:platformVersion'] === sdk) ||
|
|
234
|
-
!caps['safari:platformVersion'])
|
|
235
|
-
) {
|
|
236
|
-
return udid;
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
return null;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export interface StartRecordingOptions {
|
|
244
|
-
/** Specifies the codec type: "h264" or "hevc" */
|
|
245
|
-
codec?: string;
|
|
246
|
-
/** Supports "internal" or "external". Default is "internal" */
|
|
247
|
-
display?: string;
|
|
248
|
-
/** For non-rectangular displays, handle the mask by policy:
|
|
249
|
-
* - ignored: The mask is ignored and the unmasked framebuffer is saved.
|
|
250
|
-
* - alpha: Not supported, but retained for compatibility; the mask is rendered black.
|
|
251
|
-
* - black: The mask is rendered black.
|
|
252
|
-
*/
|
|
253
|
-
mask?: string;
|
|
254
|
-
/** The maximum recording time, in seconds. The default value is 600 seconds (10 minutes). */
|
|
255
|
-
timeLimit?: string | number;
|
|
256
|
-
/** Whether to ignore the call if a screen recording is currently running
|
|
257
|
-
* (`false`) or to start a new recording immediately and terminate the existing one if running (`true`).
|
|
258
|
-
*/
|
|
259
|
-
forceRestart?: boolean;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
259
|
/**
|
|
263
260
|
* Record the Simulator's display in background while the automated test is running.
|
|
264
261
|
* This method uses `xcrun simctl io recordVideo` helper under the hood.
|
|
@@ -309,29 +306,6 @@ export async function startRecordingScreen(
|
|
|
309
306
|
}
|
|
310
307
|
}
|
|
311
308
|
|
|
312
|
-
export interface StopRecordingOptions {
|
|
313
|
-
/** The path to the remote location, where the resulting video should be uploaded.
|
|
314
|
-
* The following protocols are supported: http/https, ftp.
|
|
315
|
-
* Null or empty string value (the default setting) means the content of resulting
|
|
316
|
-
* file should be encoded as Base64 and passed as the endpoint response value.
|
|
317
|
-
* An exception will be thrown if the generated media file is too big to
|
|
318
|
-
* fit into the available process memory.
|
|
319
|
-
*/
|
|
320
|
-
remotePath?: string;
|
|
321
|
-
/** The name of the user for the remote authentication. */
|
|
322
|
-
user?: string;
|
|
323
|
-
/** The password for the remote authentication. */
|
|
324
|
-
pass?: string;
|
|
325
|
-
/** The http multipart upload method name. The 'PUT' one is used by default. */
|
|
326
|
-
method?: string;
|
|
327
|
-
/** Additional headers mapping for multipart http(s) uploads */
|
|
328
|
-
headers?: Record<string, string>;
|
|
329
|
-
/** The name of the form field, where the file content BLOB should be stored for http(s) uploads */
|
|
330
|
-
fileFieldName?: string;
|
|
331
|
-
/** Additional form fields for multipart http(s) uploads */
|
|
332
|
-
formFields?: Record<string, string> | Array<[string, string]>;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
309
|
/**
|
|
336
310
|
* Stop recording the screen.
|
|
337
311
|
* If no screen recording has been started before then the method returns an empty string.
|
|
@@ -366,3 +340,29 @@ export async function stopRecordingScreen(
|
|
|
366
340
|
}
|
|
367
341
|
return await uploadRecordedMedia(videoPath, options?.remotePath ?? null, options ?? {});
|
|
368
342
|
}
|
|
343
|
+
|
|
344
|
+
async function extractSimulatorUdid(caps: StringRecord): Promise<string | null> {
|
|
345
|
+
if (caps['safari:useSimulator'] === false) {
|
|
346
|
+
return null;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
const allDevices = _.flatMap(_.values(await new Simctl().getDevices(null, 'iOS')));
|
|
350
|
+
for (const {name, udid, state, sdk} of allDevices) {
|
|
351
|
+
if (state !== 'Booted') {
|
|
352
|
+
continue;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
if (_.toLower(caps['safari:deviceUDID']) === _.toLower(udid)) {
|
|
356
|
+
return udid;
|
|
357
|
+
}
|
|
358
|
+
if (
|
|
359
|
+
_.toLower(caps['safari:deviceName']) === _.toLower(name) &&
|
|
360
|
+
((caps['safari:platformVersion'] && caps['safari:platformVersion'] === sdk) ||
|
|
361
|
+
!caps['safari:platformVersion'])
|
|
362
|
+
) {
|
|
363
|
+
return udid;
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
return null;
|
|
368
|
+
}
|
package/lib/driver.ts
CHANGED
|
@@ -25,16 +25,26 @@ const NO_PROXY: RouteMatcher[] = [
|
|
|
25
25
|
['DELETE', new RegExp('^/session/[^/]+/cookie$')],
|
|
26
26
|
];
|
|
27
27
|
|
|
28
|
+
type W3CSafariDriverCaps = W3CDriverCaps<SafariConstraints>;
|
|
29
|
+
|
|
28
30
|
export class SafariDriver
|
|
29
31
|
extends BaseDriver<SafariConstraints, StringRecord>
|
|
30
32
|
implements ExternalDriver<SafariConstraints, string, StringRecord>
|
|
31
33
|
{
|
|
32
|
-
|
|
33
|
-
|
|
34
|
+
static newMethodMap = newMethodMap;
|
|
35
|
+
|
|
34
36
|
proxyReqRes: ((...args: any[]) => any) | null;
|
|
35
37
|
_screenRecorder: recordScreenCommands.ScreenRecorder | null;
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
deleteCookies = cookieCommands.deleteCookies;
|
|
40
|
+
|
|
41
|
+
findElOrEls = findCommands.findElOrEls;
|
|
42
|
+
|
|
43
|
+
startRecordingScreen = recordScreenCommands.startRecordingScreen;
|
|
44
|
+
stopRecordingScreen = recordScreenCommands.stopRecordingScreen;
|
|
45
|
+
|
|
46
|
+
private isProxyActive: boolean;
|
|
47
|
+
private _safari: SafariDriverServer | null;
|
|
38
48
|
|
|
39
49
|
constructor(opts: InitialOpts = {} as InitialOpts) {
|
|
40
50
|
super(opts);
|
|
@@ -107,15 +117,6 @@ export class SafariDriver
|
|
|
107
117
|
this.isProxyActive = false;
|
|
108
118
|
this._screenRecorder = null;
|
|
109
119
|
}
|
|
110
|
-
|
|
111
|
-
deleteCookies = cookieCommands.deleteCookies;
|
|
112
|
-
|
|
113
|
-
findElOrEls = findCommands.findElOrEls;
|
|
114
|
-
|
|
115
|
-
startRecordingScreen = recordScreenCommands.startRecordingScreen;
|
|
116
|
-
stopRecordingScreen = recordScreenCommands.stopRecordingScreen;
|
|
117
120
|
}
|
|
118
121
|
|
|
119
122
|
export default SafariDriver;
|
|
120
|
-
|
|
121
|
-
type W3CSafariDriverCaps = W3CDriverCaps<SafariConstraints>;
|
package/lib/safari.ts
CHANGED
|
@@ -33,10 +33,11 @@ class SafariProxy extends JWProxy {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
class SafariDriverProcess {
|
|
36
|
-
private readonly log: AppiumLogger;
|
|
37
36
|
public port: number | null = null;
|
|
38
37
|
public proc: SubProcess | null = null;
|
|
39
38
|
|
|
39
|
+
private readonly log: AppiumLogger;
|
|
40
|
+
|
|
40
41
|
constructor() {
|
|
41
42
|
this.log = logger.getLogger('SafariDriverProcess');
|
|
42
43
|
}
|
package/lib/utils.ts
CHANGED
|
@@ -4,6 +4,11 @@ import type {StringRecord} from '@appium/types';
|
|
|
4
4
|
|
|
5
5
|
const SAFARI_CAP_PREFIXES = ['safari:', 'webkit:'];
|
|
6
6
|
|
|
7
|
+
/**
|
|
8
|
+
* Formats the given capabilities for use with Safari Driver Server.
|
|
9
|
+
* @param caps - The capabilities to format.
|
|
10
|
+
* @returns The formatted capabilities.
|
|
11
|
+
*/
|
|
7
12
|
function formatCapsForServer(caps: StringRecord): StringRecord {
|
|
8
13
|
const result: StringRecord = {
|
|
9
14
|
browserName: 'Safari',
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-safari-driver",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.13",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "appium-safari-driver",
|
|
9
|
-
"version": "4.1.
|
|
9
|
+
"version": "4.1.13",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"asyncbox": "^6.1.0",
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
}
|
|
46
46
|
},
|
|
47
47
|
"node_modules/@appium/logger": {
|
|
48
|
-
"version": "2.0.
|
|
49
|
-
"resolved": "https://registry.npmjs.org/@appium/logger/-/logger-2.0.
|
|
50
|
-
"integrity": "sha512-
|
|
48
|
+
"version": "2.0.7",
|
|
49
|
+
"resolved": "https://registry.npmjs.org/@appium/logger/-/logger-2.0.7.tgz",
|
|
50
|
+
"integrity": "sha512-WqagwYDZlPsSkICrXL9wB1E7qgErnwmYc/Q6NLVAC2ckXkWioh3fZ49AK5zevbJCnnkQbU2y8497Mk4xWDetkg==",
|
|
51
51
|
"license": "ISC",
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"console-control-strings": "1.1.0",
|
|
54
54
|
"lodash": "4.18.1",
|
|
55
|
-
"lru-cache": "11.3.
|
|
55
|
+
"lru-cache": "11.3.5",
|
|
56
56
|
"set-blocking": "2.0.0"
|
|
57
57
|
},
|
|
58
58
|
"engines": {
|
|
@@ -87,15 +87,15 @@
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
"node_modules/@appium/types": {
|
|
90
|
-
"version": "1.3.
|
|
91
|
-
"resolved": "https://registry.npmjs.org/@appium/types/-/types-1.3.
|
|
92
|
-
"integrity": "sha512-
|
|
90
|
+
"version": "1.3.1",
|
|
91
|
+
"resolved": "https://registry.npmjs.org/@appium/types/-/types-1.3.1.tgz",
|
|
92
|
+
"integrity": "sha512-SWTntQ8EAI1m6P2LWqcqASGkRLk5HiKv2V2x7DSfknS8AsiF2ymr6T6oPJ7hUrTkEUA/3ncTSZji5Oq4h5TjzA==",
|
|
93
93
|
"license": "Apache-2.0",
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@appium/logger": "2.0.
|
|
95
|
+
"@appium/logger": "2.0.7",
|
|
96
96
|
"@appium/schema": "1.1.0",
|
|
97
97
|
"@appium/tsconfig": "1.1.2",
|
|
98
|
-
"type-fest": "5.
|
|
98
|
+
"type-fest": "5.6.0"
|
|
99
99
|
},
|
|
100
100
|
"engines": {
|
|
101
101
|
"node": "^20.19.0 || ^22.12.0 || >=24.0.0",
|
|
@@ -437,9 +437,9 @@
|
|
|
437
437
|
}
|
|
438
438
|
},
|
|
439
439
|
"node_modules/b4a": {
|
|
440
|
-
"version": "1.8.
|
|
441
|
-
"resolved": "https://registry.npmjs.org/b4a/-/b4a-1.8.
|
|
442
|
-
"integrity": "sha512-
|
|
440
|
+
"version": "1.8.1",
|
|
441
|
+
"resolved": "https://registry.npmjs.org/b4a/-/b4a-1.8.1.tgz",
|
|
442
|
+
"integrity": "sha512-aiqre1Nr0B/6DgE2N5vwTc+2/oQZ4Wh1t4NznYY4E00y8LCt6NqdRv81so00oo27D8MVKTpUa/MwUUtBLXCoDw==",
|
|
443
443
|
"extraneous": true,
|
|
444
444
|
"license": "Apache-2.0",
|
|
445
445
|
"peerDependencies": {
|
|
@@ -499,9 +499,9 @@
|
|
|
499
499
|
}
|
|
500
500
|
},
|
|
501
501
|
"node_modules/bare-os": {
|
|
502
|
-
"version": "3.
|
|
503
|
-
"resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.
|
|
504
|
-
"integrity": "sha512-
|
|
502
|
+
"version": "3.9.0",
|
|
503
|
+
"resolved": "https://registry.npmjs.org/bare-os/-/bare-os-3.9.0.tgz",
|
|
504
|
+
"integrity": "sha512-JTjuZyNIDpw+GytMO4a6TK1VXdVKKJr6DRxEHasyuYyShV2deuiHJK/ahGZlebc+SG0/wJCB9XK8gprBGDFi/Q==",
|
|
505
505
|
"extraneous": true,
|
|
506
506
|
"license": "Apache-2.0",
|
|
507
507
|
"engines": {
|
|
@@ -519,9 +519,9 @@
|
|
|
519
519
|
}
|
|
520
520
|
},
|
|
521
521
|
"node_modules/bare-stream": {
|
|
522
|
-
"version": "2.13.
|
|
523
|
-
"resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.13.
|
|
524
|
-
"integrity": "sha512-
|
|
522
|
+
"version": "2.13.1",
|
|
523
|
+
"resolved": "https://registry.npmjs.org/bare-stream/-/bare-stream-2.13.1.tgz",
|
|
524
|
+
"integrity": "sha512-Vp0cnjYyrEC4whYTymQ+YZi6pBpfiICZO3cfRG8sy67ZNWe951urv1x4eW1BKNngw3U+3fPYb5JQvHbCtxH7Ow==",
|
|
525
525
|
"extraneous": true,
|
|
526
526
|
"license": "Apache-2.0",
|
|
527
527
|
"dependencies": {
|
|
@@ -546,9 +546,9 @@
|
|
|
546
546
|
}
|
|
547
547
|
},
|
|
548
548
|
"node_modules/bare-url": {
|
|
549
|
-
"version": "2.4.
|
|
550
|
-
"resolved": "https://registry.npmjs.org/bare-url/-/bare-url-2.4.
|
|
551
|
-
"integrity": "sha512
|
|
549
|
+
"version": "2.4.2",
|
|
550
|
+
"resolved": "https://registry.npmjs.org/bare-url/-/bare-url-2.4.2.tgz",
|
|
551
|
+
"integrity": "sha512-/9a2j4ac6ckpmAHvod/ob7x439OAHst/drc2Clnq+reRYd/ovddwcF4LfoxHyNk5AuGBnPg+HqFjmE/Zpq6v0A==",
|
|
552
552
|
"extraneous": true,
|
|
553
553
|
"license": "Apache-2.0",
|
|
554
554
|
"dependencies": {
|
|
@@ -1244,9 +1244,9 @@
|
|
|
1244
1244
|
"license": "MIT"
|
|
1245
1245
|
},
|
|
1246
1246
|
"node_modules/lru-cache": {
|
|
1247
|
-
"version": "11.3.
|
|
1248
|
-
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.3.
|
|
1249
|
-
"integrity": "sha512-
|
|
1247
|
+
"version": "11.3.5",
|
|
1248
|
+
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-11.3.5.tgz",
|
|
1249
|
+
"integrity": "sha512-NxVFwLAnrd9i7KUBxC4DrUhmgjzOs+1Qm50D3oF1/oL+r1NpZ4gA7xvG0/zJ8evR7zIKn4vLf7qTNduWFtCrRw==",
|
|
1250
1250
|
"license": "BlueOak-1.0.0",
|
|
1251
1251
|
"engines": {
|
|
1252
1252
|
"node": "20 || >=22"
|
|
@@ -1279,19 +1279,16 @@
|
|
|
1279
1279
|
"license": "MIT"
|
|
1280
1280
|
},
|
|
1281
1281
|
"node_modules/node-simctl": {
|
|
1282
|
-
"version": "8.1
|
|
1283
|
-
"resolved": "https://registry.npmjs.org/node-simctl/-/node-simctl-8.1.
|
|
1284
|
-
"integrity": "sha512-
|
|
1282
|
+
"version": "8.2.1",
|
|
1283
|
+
"resolved": "https://registry.npmjs.org/node-simctl/-/node-simctl-8.2.1.tgz",
|
|
1284
|
+
"integrity": "sha512-1TINHk372IOVjVKPADOqwjU42fPi1S8Db+jJu5G83AHwsniewZdt1rG4dYzGRV+mcLWzg8GlIy1pE5ldpRdZYw==",
|
|
1285
1285
|
"license": "Apache-2.0",
|
|
1286
1286
|
"dependencies": {
|
|
1287
1287
|
"@appium/logger": "^2.0.0-rc.1",
|
|
1288
1288
|
"asyncbox": "^6.0.1",
|
|
1289
|
-
"bluebird": "^3.5.1",
|
|
1290
|
-
"lodash": "^4.2.1",
|
|
1291
1289
|
"rimraf": "^6.0.1",
|
|
1292
1290
|
"semver": "^7.0.0",
|
|
1293
1291
|
"teen_process": "^4.0.4",
|
|
1294
|
-
"uuid": "^13.0.0",
|
|
1295
1292
|
"which": "^6.0.0"
|
|
1296
1293
|
},
|
|
1297
1294
|
"engines": {
|
|
@@ -1701,14 +1698,7 @@
|
|
|
1701
1698
|
"spdx-license-ids": "^3.0.0"
|
|
1702
1699
|
}
|
|
1703
1700
|
},
|
|
1704
|
-
"node_modules/spdx-
|
|
1705
|
-
"version": "2.5.0",
|
|
1706
|
-
"resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz",
|
|
1707
|
-
"integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==",
|
|
1708
|
-
"extraneous": true,
|
|
1709
|
-
"license": "CC-BY-3.0"
|
|
1710
|
-
},
|
|
1711
|
-
"node_modules/spdx-expression-parse": {
|
|
1701
|
+
"node_modules/spdx-correct/node_modules/spdx-expression-parse": {
|
|
1712
1702
|
"version": "3.0.1",
|
|
1713
1703
|
"resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
|
|
1714
1704
|
"integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
|
|
@@ -1719,6 +1709,13 @@
|
|
|
1719
1709
|
"spdx-license-ids": "^3.0.0"
|
|
1720
1710
|
}
|
|
1721
1711
|
},
|
|
1712
|
+
"node_modules/spdx-exceptions": {
|
|
1713
|
+
"version": "2.5.0",
|
|
1714
|
+
"resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz",
|
|
1715
|
+
"integrity": "sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==",
|
|
1716
|
+
"extraneous": true,
|
|
1717
|
+
"license": "CC-BY-3.0"
|
|
1718
|
+
},
|
|
1722
1719
|
"node_modules/spdx-license-ids": {
|
|
1723
1720
|
"version": "3.0.23",
|
|
1724
1721
|
"resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.23.tgz",
|
|
@@ -1873,9 +1870,9 @@
|
|
|
1873
1870
|
}
|
|
1874
1871
|
},
|
|
1875
1872
|
"node_modules/tar-stream": {
|
|
1876
|
-
"version": "3.
|
|
1877
|
-
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.
|
|
1878
|
-
"integrity": "sha512-
|
|
1873
|
+
"version": "3.2.0",
|
|
1874
|
+
"resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-3.2.0.tgz",
|
|
1875
|
+
"integrity": "sha512-ojzvCvVaNp6aOTFmG7jaRD0meowIAuPc3cMMhSgKiVWws1GyHbGd/xvnyuRKcKlMpt3qvxx6r0hreCNITP9hIg==",
|
|
1879
1876
|
"extraneous": true,
|
|
1880
1877
|
"license": "MIT",
|
|
1881
1878
|
"dependencies": {
|
|
@@ -1886,9 +1883,9 @@
|
|
|
1886
1883
|
}
|
|
1887
1884
|
},
|
|
1888
1885
|
"node_modules/teen_process": {
|
|
1889
|
-
"version": "4.1.
|
|
1890
|
-
"resolved": "https://registry.npmjs.org/teen_process/-/teen_process-4.1.
|
|
1891
|
-
"integrity": "sha512-
|
|
1886
|
+
"version": "4.1.2",
|
|
1887
|
+
"resolved": "https://registry.npmjs.org/teen_process/-/teen_process-4.1.2.tgz",
|
|
1888
|
+
"integrity": "sha512-MLmWBU1vLjzYuz0BMWtEnriZl9ikFiCQWUKTmVIhnOErJ7jlHOIUEaqrPFGr0lCMxN6hhUl5pPGc3ya7Huj3jA==",
|
|
1892
1889
|
"license": "Apache-2.0",
|
|
1893
1890
|
"dependencies": {
|
|
1894
1891
|
"lodash": "^4.17.21",
|
|
@@ -1927,9 +1924,9 @@
|
|
|
1927
1924
|
"license": "0BSD"
|
|
1928
1925
|
},
|
|
1929
1926
|
"node_modules/type-fest": {
|
|
1930
|
-
"version": "5.
|
|
1931
|
-
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-5.
|
|
1932
|
-
"integrity": "sha512-
|
|
1927
|
+
"version": "5.6.0",
|
|
1928
|
+
"resolved": "https://registry.npmjs.org/type-fest/-/type-fest-5.6.0.tgz",
|
|
1929
|
+
"integrity": "sha512-8ZiHFm91orbSAe2PSAiSVBVko18pbhbiB3U9GglSzF/zCGkR+rxpHx6sEMCUm4kxY4LjDIUGgCfUMtwfZfjfUA==",
|
|
1933
1930
|
"license": "(MIT OR CC0-1.0)",
|
|
1934
1931
|
"dependencies": {
|
|
1935
1932
|
"tagged-tag": "^1.0.0"
|
|
@@ -1961,19 +1958,6 @@
|
|
|
1961
1958
|
"extraneous": true,
|
|
1962
1959
|
"license": "MIT"
|
|
1963
1960
|
},
|
|
1964
|
-
"node_modules/uuid": {
|
|
1965
|
-
"version": "13.0.0",
|
|
1966
|
-
"resolved": "https://registry.npmjs.org/uuid/-/uuid-13.0.0.tgz",
|
|
1967
|
-
"integrity": "sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==",
|
|
1968
|
-
"funding": [
|
|
1969
|
-
"https://github.com/sponsors/broofa",
|
|
1970
|
-
"https://github.com/sponsors/ctavan"
|
|
1971
|
-
],
|
|
1972
|
-
"license": "MIT",
|
|
1973
|
-
"bin": {
|
|
1974
|
-
"uuid": "dist-node/bin/uuid"
|
|
1975
|
-
}
|
|
1976
|
-
},
|
|
1977
1961
|
"node_modules/validate-npm-package-license": {
|
|
1978
1962
|
"version": "3.0.4",
|
|
1979
1963
|
"resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz",
|
|
@@ -1985,6 +1969,17 @@
|
|
|
1985
1969
|
"spdx-expression-parse": "^3.0.0"
|
|
1986
1970
|
}
|
|
1987
1971
|
},
|
|
1972
|
+
"node_modules/validate-npm-package-license/node_modules/spdx-expression-parse": {
|
|
1973
|
+
"version": "3.0.1",
|
|
1974
|
+
"resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz",
|
|
1975
|
+
"integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==",
|
|
1976
|
+
"extraneous": true,
|
|
1977
|
+
"license": "MIT",
|
|
1978
|
+
"dependencies": {
|
|
1979
|
+
"spdx-exceptions": "^2.1.0",
|
|
1980
|
+
"spdx-license-ids": "^3.0.0"
|
|
1981
|
+
}
|
|
1982
|
+
},
|
|
1988
1983
|
"node_modules/which": {
|
|
1989
1984
|
"version": "6.0.1",
|
|
1990
1985
|
"resolved": "https://registry.npmjs.org/which/-/which-6.0.1.tgz",
|