node-simctl 7.3.6 → 7.3.8
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 +18 -0
- package/build/lib/simctl.d.ts +10 -3
- package/build/lib/simctl.d.ts.map +1 -1
- package/build/lib/simctl.js +8 -4
- package/build/lib/simctl.js.map +1 -1
- package/build/lib/subcommands/addmedia.d.ts.map +1 -1
- package/build/lib/subcommands/addmedia.js +0 -2
- package/build/lib/subcommands/addmedia.js.map +1 -1
- package/build/lib/subcommands/appinfo.d.ts.map +1 -1
- package/build/lib/subcommands/appinfo.js +0 -2
- package/build/lib/subcommands/appinfo.js.map +1 -1
- package/build/lib/subcommands/bootstatus.d.ts.map +1 -1
- package/build/lib/subcommands/bootstatus.js +0 -2
- package/build/lib/subcommands/bootstatus.js.map +1 -1
- package/build/lib/subcommands/create.d.ts.map +1 -1
- package/build/lib/subcommands/create.js +0 -2
- package/build/lib/subcommands/create.js.map +1 -1
- package/build/lib/subcommands/get_app_container.d.ts.map +1 -1
- package/build/lib/subcommands/get_app_container.js +0 -1
- package/build/lib/subcommands/get_app_container.js.map +1 -1
- package/build/lib/subcommands/getenv.d.ts.map +1 -1
- package/build/lib/subcommands/getenv.js +0 -2
- package/build/lib/subcommands/getenv.js.map +1 -1
- package/build/lib/subcommands/launch.d.ts.map +1 -1
- package/build/lib/subcommands/launch.js +0 -2
- package/build/lib/subcommands/launch.js.map +1 -1
- package/build/lib/subcommands/list.d.ts.map +1 -1
- package/build/lib/subcommands/list.js +0 -12
- package/build/lib/subcommands/list.js.map +1 -1
- package/build/lib/subcommands/openurl.d.ts.map +1 -1
- package/build/lib/subcommands/openurl.js +0 -2
- package/build/lib/subcommands/openurl.js.map +1 -1
- package/build/lib/subcommands/pbcopy.d.ts.map +1 -1
- package/build/lib/subcommands/pbcopy.js +0 -2
- package/build/lib/subcommands/pbcopy.js.map +1 -1
- package/build/lib/subcommands/pbpaste.d.ts.map +1 -1
- package/build/lib/subcommands/pbpaste.js +0 -2
- package/build/lib/subcommands/pbpaste.js.map +1 -1
- package/build/lib/subcommands/spawn.d.ts.map +1 -1
- package/build/lib/subcommands/spawn.js +0 -4
- package/build/lib/subcommands/spawn.js.map +1 -1
- package/build/lib/subcommands/ui.d.ts.map +1 -1
- package/build/lib/subcommands/ui.js +0 -2
- package/build/lib/subcommands/ui.js.map +1 -1
- package/lib/simctl.js +9 -5
- package/lib/subcommands/addmedia.js +0 -2
- package/lib/subcommands/appinfo.js +0 -2
- package/lib/subcommands/bootstatus.js +0 -2
- package/lib/subcommands/create.js +0 -2
- package/lib/subcommands/get_app_container.js +0 -1
- package/lib/subcommands/getenv.js +0 -2
- package/lib/subcommands/launch.js +0 -2
- package/lib/subcommands/list.js +0 -12
- package/lib/subcommands/openurl.js +0 -2
- package/lib/subcommands/pbcopy.js +0 -2
- package/lib/subcommands/pbpaste.js +0 -2
- package/lib/subcommands/spawn.js +0 -4
- package/lib/subcommands/ui.js +0 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
1
|
+
## [7.3.8](https://github.com/appium/node-simctl/compare/v7.3.7...v7.3.8) (2023-10-19)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Miscellaneous Chores
|
|
5
|
+
|
|
6
|
+
* Always use the latest types ([e44fdf5](https://github.com/appium/node-simctl/commit/e44fdf58830474ee70eda47600477efa4b87dab1))
|
|
7
|
+
* **deps-dev:** bump @types/teen_process from 2.0.1 to 2.0.2 ([#214](https://github.com/appium/node-simctl/issues/214)) ([e53930b](https://github.com/appium/node-simctl/commit/e53930bbafdcf0931729966f09e7a79a795c7969))
|
|
8
|
+
* **deps-dev:** bump eslint-config-prettier from 8.10.0 to 9.0.0 ([#217](https://github.com/appium/node-simctl/issues/217)) ([9b7ba38](https://github.com/appium/node-simctl/commit/9b7ba38d719a1ecc63efdffa8878309b1d6b24ec))
|
|
9
|
+
* **deps-dev:** bump lint-staged from 14.0.1 to 15.0.2 ([#216](https://github.com/appium/node-simctl/issues/216)) ([462f131](https://github.com/appium/node-simctl/commit/462f131e3cd6e663e4f790b586ffa31e34c3edbc))
|
|
10
|
+
* Use latest teen_process types ([e967251](https://github.com/appium/node-simctl/commit/e9672515b6914dd626cda0d686828b9866f13a24))
|
|
11
|
+
|
|
12
|
+
## [7.3.7](https://github.com/appium/node-simctl/compare/v7.3.6...v7.3.7) (2023-09-21)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* Tune conditional type declarations ([#206](https://github.com/appium/node-simctl/issues/206)) ([a44b0d2](https://github.com/appium/node-simctl/commit/a44b0d2a57c6532c9feff3a65c46bd3a067d2bfb))
|
|
18
|
+
|
|
1
19
|
## [7.3.6](https://github.com/appium/node-simctl/compare/v7.3.5...v7.3.6) (2023-09-21)
|
|
2
20
|
|
|
3
21
|
|
package/build/lib/simctl.d.ts
CHANGED
|
@@ -5,6 +5,9 @@ export type XCRun = {
|
|
|
5
5
|
*/
|
|
6
6
|
path: string | null;
|
|
7
7
|
};
|
|
8
|
+
export type TAsyncOpts = {
|
|
9
|
+
asynchronous: true;
|
|
10
|
+
};
|
|
8
11
|
export type ExecOpts = {
|
|
9
12
|
/**
|
|
10
13
|
* - The list of additional subcommand arguments.
|
|
@@ -73,6 +76,9 @@ export type SimctlOpts = {
|
|
|
73
76
|
* @typedef {Object} XCRun
|
|
74
77
|
* @property {string?} path Full path to the xcrun script
|
|
75
78
|
*/
|
|
79
|
+
/**
|
|
80
|
+
* @typedef {{asynchronous: true}} TAsyncOpts
|
|
81
|
+
*/
|
|
76
82
|
/**
|
|
77
83
|
* @typedef {Object} ExecOpts
|
|
78
84
|
* @property {string[]} [args=[]] - The list of additional subcommand arguments.
|
|
@@ -137,15 +143,16 @@ export class Simctl {
|
|
|
137
143
|
/**
|
|
138
144
|
* Execute the particular simctl command.
|
|
139
145
|
*
|
|
146
|
+
* @template {ExecOpts} TExecOpts
|
|
140
147
|
* @param {string} subcommand - One of available simctl subcommands.
|
|
141
148
|
* Execute `xcrun simctl` in Terminal to see the full list of available subcommands.
|
|
142
|
-
* @param {
|
|
143
|
-
* @return {Promise<import('teen_process').
|
|
149
|
+
* @param {TExecOpts} [opts]
|
|
150
|
+
* @return {Promise<TExecOpts extends TAsyncOpts ? import('teen_process').SubProcess : import('teen_process').TeenProcessExecResult>}
|
|
144
151
|
* Either the result of teen process's `exec` or
|
|
145
152
|
* `SubProcess` instance depending of `opts.asynchronous` value.
|
|
146
153
|
* @throws {Error} If the simctl subcommand command returns non-zero return code.
|
|
147
154
|
*/
|
|
148
|
-
exec(subcommand: string, opts?:
|
|
155
|
+
exec<TExecOpts extends ExecOpts>(subcommand: string, opts?: TExecOpts | undefined): Promise<TExecOpts extends TAsyncOpts ? SubProcess : import("teen_process").TeenProcessExecResult<any>>;
|
|
149
156
|
addMedia: (this: Simctl, filePath: string) => Promise<import("teen_process").TeenProcessExecResult<any>>;
|
|
150
157
|
appInfo: (this: Simctl, bundleId: string) => Promise<string>;
|
|
151
158
|
bootDevice: (this: Simctl) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simctl.d.ts","sourceRoot":"","sources":["../../lib/simctl.js"],"names":[],"mappings":";;;;;UA4Cc,MAAM
|
|
1
|
+
{"version":3,"file":"simctl.d.ts","sourceRoot":"","sources":["../../lib/simctl.js"],"names":[],"mappings":";;;;;UA4Cc,MAAM;;yBAIP;IAAC,YAAY,EAAE,IAAI,CAAA;CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AANjC;;;GAGG;AAEH;;GAEG;AAEH;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AAGH;IAUE;;OAEG;IACH,2CAUC;IAtBD,oBAAoB;IACpB,OADW,KAAK,CACV;IAEN,qBAAqB;IACrB,aADW,MAAM,CACL;IAEZ,sBAAsB;IACtB,WADW,OAAO,CACR;IAWR,sBAAsB;IACtB,OADW,MAAM,QACiC;IAClD,sBAAsB;IACtB,iBADW,MAAM,QAC+D;IAGlF,6BAEC;IAED,0BAEC;IAED,uCAEC;IAED,oCAEC;IAED;;;OAGG;IACH,sDAFa,MAAM,CAQlB;IAED;;OAEG;IACH,gBAFa,QAAQ,MAAM,CAAC,CAc3B;IAED;;;;;;;;;;;OAWG;IACH,6CARW,MAAM,wIA+DhB;IAED,yGAAqC;IAErC,6DAAkC;IAElC,4CAAqC;IAErC,kIAAuD;IAEvD,gLAA2C;IAE3C,8CAA2C;IAE3C,2EAAwC;IAExC,gHAA0D;IAE1D,kEAA4B;IAE5B,6DAAwC;IAExC,iDAAyC;IAEzC,mIAAyD;IACzD,+HAAiD;IACjD,+CAA+C;IAE/C,2FAAqC;IAErC,0GAAuD;IACvD,qHAAqC;IACrC,+HAAuF;IACvF,wHAAyE;IACzE,oDAA6C;IAC7C,qCAAyB;IAEzB,oGAA2C;IAC3C,+CAA+C;IAE/C,mGAAkC;IAElC,uGAA6C;IAE7C,gFAA8C;IAE9C,iFAAkD;IAClD,kFAAoD;IACpD,iFAAkD;IAElD,gEAAiD;IAEjD,gDAAiD;IAEjD,+HAA0C;IAC1C,2FAAgD;IAEhD,gEAA8C;IAE9C,iDAAyC;IACzC,mEAAyC;IAEzC,6DAAwC;CACzC;2BAzR0C,cAAc"}
|
package/build/lib/simctl.js
CHANGED
|
@@ -69,6 +69,9 @@ const DEFAULT_OPTS = {
|
|
|
69
69
|
* @typedef {Object} XCRun
|
|
70
70
|
* @property {string?} path Full path to the xcrun script
|
|
71
71
|
*/
|
|
72
|
+
/**
|
|
73
|
+
* @typedef {{asynchronous: true}} TAsyncOpts
|
|
74
|
+
*/
|
|
72
75
|
/**
|
|
73
76
|
* @typedef {Object} ExecOpts
|
|
74
77
|
* @property {string[]} [args=[]] - The list of additional subcommand arguments.
|
|
@@ -196,16 +199,17 @@ class Simctl {
|
|
|
196
199
|
/**
|
|
197
200
|
* Execute the particular simctl command.
|
|
198
201
|
*
|
|
202
|
+
* @template {ExecOpts} TExecOpts
|
|
199
203
|
* @param {string} subcommand - One of available simctl subcommands.
|
|
200
204
|
* Execute `xcrun simctl` in Terminal to see the full list of available subcommands.
|
|
201
|
-
* @param {
|
|
202
|
-
* @return {Promise<import('teen_process').
|
|
205
|
+
* @param {TExecOpts} [opts]
|
|
206
|
+
* @return {Promise<TExecOpts extends TAsyncOpts ? import('teen_process').SubProcess : import('teen_process').TeenProcessExecResult>}
|
|
203
207
|
* Either the result of teen process's `exec` or
|
|
204
208
|
* `SubProcess` instance depending of `opts.asynchronous` value.
|
|
205
209
|
* @throws {Error} If the simctl subcommand command returns non-zero return code.
|
|
206
210
|
*/
|
|
207
|
-
async exec(subcommand, opts
|
|
208
|
-
let { args = [], env = {}, asynchronous = false, encoding, logErrors = true, architectures, } = opts;
|
|
211
|
+
async exec(subcommand, opts) {
|
|
212
|
+
let { args = [], env = {}, asynchronous = false, encoding, logErrors = true, architectures, } = opts ?? {};
|
|
209
213
|
// run a particular simctl command
|
|
210
214
|
args = [
|
|
211
215
|
'simctl',
|
package/build/lib/simctl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"simctl.js","sourceRoot":"","sources":["../../lib/simctl.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,kDAA0B;AAC1B,mDAA2C;AAC3C,uCAEmB;AACnB,+CAA0D;AAC1D,sEAAsD;AACtD,oEAAoD;AACpD,8DAA8C;AAC9C,0EAA0D;AAC1D,kEAAkD;AAClD,kEAAkD;AAClD,gEAAgD;AAChD,wFAAsE;AACtE,oEAAoD;AACpD,0DAA0C;AAC1C,sEAAsD;AACtD,kEAAkD;AAClD,8DAA8C;AAC9C,oEAAoD;AACpD,kEAAkD;AAClD,oEAAoD;AACpD,oEAAoD;AACpD,8DAA8C;AAC9C,kEAA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AAS,IAAI,CAAC,SAAS,EAAE;gBACjC,uEAAuE;gBACvE,wBAAwB;aACzB;iBAAM,IAAI,CAAC,CAAC,MAAM,EAAE;gBACnB,MAAM,GAAG,GAAG,kBAAkB,UAAU,MAAM,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,CAAC;gBAChE,gBAAG,CAAC,KAAK,CAAC,mBAAU,EAAE,GAAG,CAAC,CAAC;gBAC3B,CAAC,CAAC,OAAO,GAAG,GAAG,CAAC;aACjB;iBAAM;gBACL,gBAAG,CAAC,KAAK,CAAC,mBAAU,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC;aAClC;YACD,MAAM,CAAC,CAAC;SACT;IACH,CAAC;CA+DF;AAGQ,wBAAM;AADf,kBAAe,MAAM,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addmedia.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/addmedia.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;OAWG;IACH,
|
|
1
|
+
{"version":3,"file":"addmedia.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/addmedia.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;OAWG;IACH,mIAIC"}
|
|
@@ -14,8 +14,6 @@ const commands = {};
|
|
|
14
14
|
* @throws {Error} If the `udid` instance property is unset
|
|
15
15
|
*/
|
|
16
16
|
commands.addMedia = async function addMedia(filePath) {
|
|
17
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
18
|
-
// @ts-ignore The returned type is ok
|
|
19
17
|
return await this.exec('addmedia', {
|
|
20
18
|
args: [this.requireUdid('addmedia'), filePath],
|
|
21
19
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addmedia.js","sourceRoot":"","sources":["../../../lib/subcommands/addmedia.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;GAWG;AACH,QAAQ,CAAC,QAAQ,GAAG,KAAK,UAAU,QAAQ,CAAE,QAAQ;IACnD,
|
|
1
|
+
{"version":3,"file":"addmedia.js","sourceRoot":"","sources":["../../../lib/subcommands/addmedia.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;GAWG;AACH,QAAQ,CAAC,QAAQ,GAAG,KAAK,UAAU,QAAQ,CAAE,QAAQ;IACnD,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;QACjC,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC;KAC/C,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appinfo.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/appinfo.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,
|
|
1
|
+
{"version":3,"file":"appinfo.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/appinfo.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,uFAKC"}
|
|
@@ -43,8 +43,6 @@ const commands = {};
|
|
|
43
43
|
* @throws {Error} If the `udid` instance property is unset
|
|
44
44
|
*/
|
|
45
45
|
commands.appInfo = async function appInfo(bundleId) {
|
|
46
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
47
|
-
// @ts-ignore The returned type is ok
|
|
48
46
|
const { stdout } = await this.exec('appinfo', {
|
|
49
47
|
args: [this.requireUdid('appinfo'), bundleId],
|
|
50
48
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"appinfo.js","sourceRoot":"","sources":["../../../lib/subcommands/appinfo.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,QAAQ,CAAC,OAAO,GAAG,KAAK,UAAU,OAAO,CAAE,QAAQ;IACjD,
|
|
1
|
+
{"version":3,"file":"appinfo.js","sourceRoot":"","sources":["../../../lib/subcommands/appinfo.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,QAAQ,CAAC,OAAO,GAAG,KAAK,UAAU,OAAO,CAAE,QAAQ;IACjD,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;QAC1C,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,QAAQ,CAAC;KAC9C,CAAC,CAAC;IACH,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;AAC/B,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstatus.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/bootstatus.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMA;;;;;;;;;;OAUG;IAEH;;;;;;;;;;;;OAYG;IACH,
|
|
1
|
+
{"version":3,"file":"bootstatus.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/bootstatus.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAMA;;;;;;;;;;OAUG;IAEH;;;;;;;;;;;;OAYG;IACH,gJAgFC"}
|
|
@@ -41,8 +41,6 @@ commands.startBootMonitor = async function startBootMonitor(opts = {}) {
|
|
|
41
41
|
if (shouldPreboot) {
|
|
42
42
|
args.push('-b');
|
|
43
43
|
}
|
|
44
|
-
/** @type {import('teen_process').SubProcess} */
|
|
45
|
-
// @ts-ignore The returned type is ok
|
|
46
44
|
const bootMonitor = await this.exec('bootstatus', {
|
|
47
45
|
args,
|
|
48
46
|
asynchronous: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bootstatus.js","sourceRoot":"","sources":["../../../lib/subcommands/bootstatus.js"],"names":[],"mappings":";;;;;AAAA,uDAA4B;AAC5B,uCAA4C;AAG5C,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,gBAAgB,GAAG,KAAK,UAAU,gBAAgB,CAAE,IAAI,GAAG,EAAE;IACpE,MAAM,EACJ,OAAO,GAAG,MAAM,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,aAAa,GACd,GAAG,IAAI,CAAC;IACT,MAAM,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAE5C,IAAI,MAAM,GAAG,EAAE,CAAC;IAChB,IAAI,iBAAiB,GAAG,KAAK,CAAC;IAC9B,IAAI,KAAK,GAAG,IAAI,CAAC;IACjB,IAAI,cAAc,GAAG,IAAI,CAAC;IAC1B,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,CAAC;IACpB,IAAI,aAAa,EAAE;QACjB,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KACjB;IACD,
|
|
1
|
+
{"version":3,"file":"bootstatus.js","sourceRoot":"","sources":["../../../lib/subcommands/bootstatus.js"],"names":[],"mappings":";;;;;AAAA,uDAA4B;AAC5B,uCAA4C;AAG5C,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;GAUG;AAEH;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,gBAAgB,GAAG,KAAK,UAAU,gBAAgB,CAAE,IAAI,GAAG,EAAE;IACpE,MAAM,EACJ,OAAO,GAAG,MAAM,EAChB,sBAAsB,EACtB,kBAAkB,EAClB,UAAU,EAC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;;;;;;;;;;;IAWA;;;;;OAKG;IAEH;;;;;;;;;;;;OAYG;IACH,
|
|
1
|
+
{"version":3,"file":"create.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/create.js"],"names":[],"mappings":";;;;;;;;;;;;;IAWA;;;;;OAKG;IAEH;;;;;;;;;;;;OAYG;IACH,2KAoFC"}
|
|
@@ -87,8 +87,6 @@ commands.createDevice = async function createDevice(name, deviceTypeId, platform
|
|
|
87
87
|
for (const runtimeId of runtimeIds) {
|
|
88
88
|
logger_1.default.debug(logger_1.LOG_PREFIX, `Creating simulator with name '${name}', device type id '${deviceTypeId}' and runtime id '${runtimeId}'`);
|
|
89
89
|
try {
|
|
90
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
91
|
-
// @ts-ignore The returned type is ok
|
|
92
90
|
const { stdout } = await this.exec('create', {
|
|
93
91
|
args: [name, deviceTypeId, runtimeId]
|
|
94
92
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create.js","sourceRoot":"","sources":["../../../lib/subcommands/create.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,oDAA4C;AAC5C,uCAAyC;AACzC,wCAAgE;AAGhE,MAAM,2BAA2B,GAAG,KAAK,CAAC;AAC1C,MAAM,gCAAgC,GAAG,KAAK,CAAC;AAE/C,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;GAKG;AAEH;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,YAAY,GAAG,KAAK,UAAU,YAAY,CAAE,IAAI,EAAE,YAAY,EAAE,eAAe,EAAE,IAAI,GAAG,EAAE;IACjG,MAAM,EACJ,QAAQ,GAAG,2BAA2B,EACtC,OAAO,GAAG,gCAAgC,EAC3C,GAAG,IAAI,CAAC;IAET,IAAI,UAAU,GAAG,EAAE,CAAC;IAEpB,wCAAwC;IACxC,IAAI;QACF,UAAU,CAAC,IAAI,CAAC,MAAM,IAAI,C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AU,EAAE,CAAC,CAAC;QAClD,KAAK,MAAM,SAAS,IAAI,gBAAC,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;YACzC,KAAK,MAAM,MAAM,IAAI,SAAS,EAAE;gBAC9B,IAAI,MAAM,CAAC,IAAI,KAAK,IAAI,EAAE;oBACxB,IAAI,MAAM,CAAC,KAAK,KAAK,UAAU,EAAE;wBAC/B,gBAAgB;wBAChB,MAAM,IAAI,KAAK,CAAC,qBAAqB,IAAI,uBAAuB,CAAC,CAAC;qBACnE;yBAAM;wBACL,2BAA2B;wBAC3B,OAAO;qBACR;iBACF;aACF;SACF;QACD,MAAM,IAAI,KAAK,CAAC,qBAAqB,IAAI,mBAAmB,CAAC,CAAC;IAChE,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_app_container.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/get_app_container.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;;;;;;OAiBG;IACH,
|
|
1
|
+
{"version":3,"file":"get_app_container.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/get_app_container.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;;;;;;OAiBG;IACH,0IAOC"}
|
|
@@ -24,7 +24,6 @@ commands.getAppContainer = async function getAppContainer(bundleId, containerTyp
|
|
|
24
24
|
if (containerType) {
|
|
25
25
|
args.push(containerType);
|
|
26
26
|
}
|
|
27
|
-
// @ts-ignore The returned type is ok
|
|
28
27
|
const { stdout } = await this.exec('get_app_container', { args });
|
|
29
28
|
return (stdout || '').trim();
|
|
30
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get_app_container.js","sourceRoot":"","sources":["../../../lib/subcommands/get_app_container.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAQ,CAAC,eAAe,GAAG,KAAK,UAAU,eAAe,CAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;IACvF,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC/D,IAAI,aAAa,EAAE;QACjB,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAC1B;IACD,
|
|
1
|
+
{"version":3,"file":"get_app_container.js","sourceRoot":"","sources":["../../../lib/subcommands/get_app_container.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;;;;;;GAiBG;AACH,QAAQ,CAAC,eAAe,GAAG,KAAK,UAAU,eAAe,CAAE,QAAQ,EAAE,aAAa,GAAG,IAAI;IACvF,MAAM,IAAI,GAAG,CAAC,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC/D,IAAI,aAAa,EAAE;QACjB,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAC1B;IACD,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAC,IAAI,EAAC,CAAC,CAAC;IAC9D,OAAO,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC;AAC/B,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getenv.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/getenv.js"],"names":[],"mappings":";;IAEA;;;;;;;;;OASG;IACH,
|
|
1
|
+
{"version":3,"file":"getenv.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/getenv.js"],"names":[],"mappings":";;IAEA;;;;;;;;;OASG;IACH,4FAMC"}
|
|
@@ -12,8 +12,6 @@ const commands = {};
|
|
|
12
12
|
* @throws {Error} If the `udid` instance property is unset
|
|
13
13
|
*/
|
|
14
14
|
commands.getEnv = async function getEnv(varName) {
|
|
15
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
16
|
-
// @ts-ignore the returned type is ok
|
|
17
15
|
const { stdout, stderr } = await this.exec('getenv', {
|
|
18
16
|
args: [this.requireUdid('getenv'), varName],
|
|
19
17
|
logErrors: false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getenv.js","sourceRoot":"","sources":["../../../lib/subcommands/getenv.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;GASG;AACH,QAAQ,CAAC,MAAM,GAAG,KAAK,UAAU,MAAM,CAAE,OAAO;IAC9C,
|
|
1
|
+
{"version":3,"file":"getenv.js","sourceRoot":"","sources":["../../../lib/subcommands/getenv.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;GASG;AACH,QAAQ,CAAC,MAAM,GAAG,KAAK,UAAU,MAAM,CAAE,OAAO;IAC9C,MAAM,EAAC,MAAM,EAAE,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;QACjD,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAC3C,SAAS,EAAE,KAAK;KACjB,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC;AAChC,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/launch.js"],"names":[],"mappings":";;IAKA;;;;;;;;;;;;;;OAcG;IACH,
|
|
1
|
+
{"version":3,"file":"launch.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/launch.js"],"names":[],"mappings":";;IAKA;;;;;;;;;;;;;;OAcG;IACH,qHAQC"}
|
|
@@ -24,8 +24,6 @@ const commands = {};
|
|
|
24
24
|
commands.launchApp = async function launchApp(bundleId, tries = 5) {
|
|
25
25
|
// @ts-ignore A string will always be returned
|
|
26
26
|
return await (0, asyncbox_1.retryInterval)(tries, 1000, async () => {
|
|
27
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
28
|
-
// @ts-ignore the returned type is ok
|
|
29
27
|
const { stdout } = await this.exec('launch', {
|
|
30
28
|
args: [this.requireUdid('launch'), bundleId],
|
|
31
29
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"launch.js","sourceRoot":"","sources":["../../../lib/subcommands/launch.js"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AACvB,uCAAyC;AAEzC,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;;;GAcG;AACH,QAAQ,CAAC,SAAS,GAAG,KAAK,UAAU,SAAS,CAAE,QAAQ,EAAE,KAAK,GAAG,CAAC;IAChE,8CAA8C;IAC9C,OAAO,MAAM,IAAA,wBAAa,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE;QACjD,
|
|
1
|
+
{"version":3,"file":"launch.js","sourceRoot":"","sources":["../../../lib/subcommands/launch.js"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AACvB,uCAAyC;AAEzC,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;;;GAcG;AACH,QAAQ,CAAC,SAAS,GAAG,KAAK,UAAU,SAAS,CAAE,QAAQ,EAAE,KAAK,GAAG,CAAC;IAChE,8CAA8C;IAC9C,OAAO,MAAM,IAAA,wBAAa,EAAC,KAAK,EAAE,IAAI,EAAE,KAAK,IAAI,EAAE;QACjD,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;YACzC,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;SAC7C,CAAC,CAAC;QACH,OAAO,gBAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACxB,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/list.js"],"names":[],"mappings":";;;;;UASc,MAAM;;;;UACN,MAAM;;;;WACN,MAAM;;;;SACN,MAAM;;;IALpB;;;;;;OAMG;IAEH;;;;;;;;;;;OAWG;IACH,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/list.js"],"names":[],"mappings":";;;;;UASc,MAAM;;;;UACN,MAAM;;;;WACN,MAAM;;;;SACN,MAAM;;;IALpB;;;;;;OAMG;IAEH;;;;;;;;;;;OAWG;IACH,oIA2DC;IAED;;;;;;;;;;;;;;;;OAgBG;IACH,+IAmEC;IAED;;;;;;;;;OASG;IACH,yJAYC;IAED;;;;;;;;;OASG;IACH,kJAoBC;IAED;;;;;;OAMG;IACH,8EAqBC;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,+DASC"}
|
|
@@ -50,8 +50,6 @@ const commands = {};
|
|
|
50
50
|
* returns non-zero return code.
|
|
51
51
|
*/
|
|
52
52
|
commands.getDevicesByParsing = async function getDevicesByParsing(platform) {
|
|
53
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
54
|
-
// @ts-ignore the returned type is ok
|
|
55
53
|
const { stdout } = await this.exec('list', {
|
|
56
54
|
args: ['devices'],
|
|
57
55
|
});
|
|
@@ -129,8 +127,6 @@ commands.getDevicesByParsing = async function getDevicesByParsing(platform) {
|
|
|
129
127
|
commands.getDevices = async function getDevices(forSdk, platform) {
|
|
130
128
|
let devices = {};
|
|
131
129
|
try {
|
|
132
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
133
|
-
// @ts-ignore the returned type is ok
|
|
134
130
|
const { stdout } = await this.exec('list', {
|
|
135
131
|
args: ['devices', '-j'],
|
|
136
132
|
});
|
|
@@ -204,8 +200,6 @@ commands.getDevices = async function getDevices(forSdk, platform) {
|
|
|
204
200
|
* platform version.
|
|
205
201
|
*/
|
|
206
202
|
commands.getRuntimeForPlatformVersionViaJson = async function getRuntimeForPlatformVersionViaJson(platformVersion, platform = 'iOS') {
|
|
207
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
208
|
-
// @ts-ignore the returned type is ok
|
|
209
203
|
const { stdout } = await this.exec('list', {
|
|
210
204
|
args: ['runtimes', '--json'],
|
|
211
205
|
});
|
|
@@ -230,8 +224,6 @@ commands.getRuntimeForPlatformVersionViaJson = async function getRuntimeForPlatf
|
|
|
230
224
|
commands.getRuntimeForPlatformVersion = async function getRuntimeForPlatformVersion(platformVersion, platform = 'iOS') {
|
|
231
225
|
// Try with parsing
|
|
232
226
|
try {
|
|
233
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
234
|
-
// @ts-ignore The returned type is ok
|
|
235
227
|
const { stdout } = await this.exec('list', {
|
|
236
228
|
args: ['runtimes'],
|
|
237
229
|
});
|
|
@@ -256,8 +248,6 @@ commands.getRuntimeForPlatformVersion = async function getRuntimeForPlatformVers
|
|
|
256
248
|
* @throws {Error} If the corresponding simctl command fails
|
|
257
249
|
*/
|
|
258
250
|
commands.getDeviceTypes = async function getDeviceTypes() {
|
|
259
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
260
|
-
// @ts-ignore The returned type is ok
|
|
261
251
|
const { stdout } = await this.exec('list', {
|
|
262
252
|
args: ['devicetypes', '-j'],
|
|
263
253
|
});
|
|
@@ -316,8 +306,6 @@ commands.getDeviceTypes = async function getDeviceTypes() {
|
|
|
316
306
|
* @throws {Error} If the corresponding simctl command fails
|
|
317
307
|
*/
|
|
318
308
|
commands.list = async function list() {
|
|
319
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
320
|
-
// @ts-ignore The returned type is ok
|
|
321
309
|
const { stdout } = await this.exec('list', {
|
|
322
310
|
args: ['-j'],
|
|
323
311
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../lib/subcommands/list.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,wCAAgE;AAChE,oDAA4C;AAG5C,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AACH,QAAQ,CAAC,mBAAmB,GAAG,KAAK,UAAU,mBAAmB,CAAE,QAAQ;IACzE,
|
|
1
|
+
{"version":3,"file":"list.js","sourceRoot":"","sources":["../../../lib/subcommands/list.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,wCAAgE;AAChE,oDAA4C;AAG5C,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;GAMG;AAEH;;;;;;;;;;;GAWG;AACH,QAAQ,CAAC,mBAAmB,GAAG,KAAK,UAAU,mBAAmB,CAAE,QAAQ;IACzE,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE;QACvC,IAAI,EAAE,CAAC,SAAS,CAAC;KAClB,CAAC,CAAC;IAEH,+BAA+B;IAC/B,gBAAgB;IAChB,kEAAkE;IAClE,UAAU;IACV,gBAAgB;IAChB,kEAAkE;IAClE,UAAU;IACV,yDAAyD;IACzD,iEAAiE;IACjE,MAAM,eAAe,GAAG,gBAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ;QACtD,CAAC,CAAC,IAAI,MAAM,CAAC,oDAAoD,EAAE,KAAK,CAAC;QACzE,CAAC,CAAC,IAAI,MAAM,CAAC,aAAa,gBAAC,CAAC,YAAY,CAA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AAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC;KAC9D;AACH,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openurl.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/openurl.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;OAYG;IACH,
|
|
1
|
+
{"version":3,"file":"openurl.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/openurl.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;OAYG;IACH,6HAIC"}
|
|
@@ -15,8 +15,6 @@ const commands = {};
|
|
|
15
15
|
* @throws {Error} If the `udid` instance property is unset
|
|
16
16
|
*/
|
|
17
17
|
commands.openUrl = async function openUrl(url) {
|
|
18
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
19
|
-
// @ts-ignore The returned type is ok
|
|
20
18
|
return await this.exec('openurl', {
|
|
21
19
|
args: [this.requireUdid('openurl'), url],
|
|
22
20
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"openurl.js","sourceRoot":"","sources":["../../../lib/subcommands/openurl.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,OAAO,GAAG,KAAK,UAAU,OAAO,CAAE,GAAG;IAC5C,
|
|
1
|
+
{"version":3,"file":"openurl.js","sourceRoot":"","sources":["../../../lib/subcommands/openurl.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,OAAO,GAAG,KAAK,UAAU,OAAO,CAAE,GAAG;IAC5C,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;QAChC,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC;KACzC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pbcopy.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/pbcopy.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;OAYG;IACH,
|
|
1
|
+
{"version":3,"file":"pbcopy.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/pbcopy.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;OAYG;IACH,iIAcC"}
|
|
@@ -15,8 +15,6 @@ const commands = {};
|
|
|
15
15
|
* @throws {Error} If the `udid` instance property is unset
|
|
16
16
|
*/
|
|
17
17
|
commands.setPasteboard = async function setPasteboard(content, encoding = 'utf8') {
|
|
18
|
-
/** @type {import('teen_process').SubProcess} */
|
|
19
|
-
// @ts-ignore The returned type is ok
|
|
20
18
|
const pbCopySubprocess = await this.exec('pbcopy', {
|
|
21
19
|
args: [this.requireUdid('pbcopy')],
|
|
22
20
|
asynchronous: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pbcopy.js","sourceRoot":"","sources":["../../../lib/subcommands/pbcopy.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa,CAAE,OAAO,EAAE,QAAQ,GAAG,MAAM;IAC/E,
|
|
1
|
+
{"version":3,"file":"pbcopy.js","sourceRoot":"","sources":["../../../lib/subcommands/pbcopy.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa,CAAE,OAAO,EAAE,QAAQ,GAAG,MAAM;IAC/E,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;QACjD,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAClC,YAAY,EAAE,IAAI;KACnB,CAAC,CAAC;IACH,MAAM,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAChC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,IAAI,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC;IAC3C,IAAI,KAAK,EAAE;QACT,KAAK,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;QACnC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACrB,KAAK,CAAC,GAAG,EAAE,CAAC;KACb;IACD,MAAM,gBAAgB,CAAC;AACzB,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pbpaste.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/pbpaste.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;OAYG;IACH,
|
|
1
|
+
{"version":3,"file":"pbpaste.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/pbpaste.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;OAYG;IACH,0GAMC"}
|
|
@@ -15,8 +15,6 @@ const commands = {};
|
|
|
15
15
|
* @throws {Error} If the `udid` instance property is unset
|
|
16
16
|
*/
|
|
17
17
|
commands.getPasteboard = async function getPasteboard(encoding = 'utf8') {
|
|
18
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
19
|
-
// @ts-ignore The returned type is ok
|
|
20
18
|
const { stdout } = await this.exec('pbpaste', {
|
|
21
19
|
args: [this.requireUdid('pbpaste')],
|
|
22
20
|
encoding,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pbpaste.js","sourceRoot":"","sources":["../../../lib/subcommands/pbpaste.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa,CAAE,QAAQ,GAAG,MAAM;IACtE,
|
|
1
|
+
{"version":3,"file":"pbpaste.js","sourceRoot":"","sources":["../../../lib/subcommands/pbpaste.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;GAYG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa,CAAE,QAAQ,GAAG,MAAM;IACtE,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;QAC1C,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QACnC,QAAQ;KACT,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spawn.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/spawn.js"],"names":[],"mappings":";;IAKA;;;;;;;;;;;OAWG;IACH,
|
|
1
|
+
{"version":3,"file":"spawn.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/spawn.js"],"names":[],"mappings":";;IAKA;;;;;;;;;;;OAWG;IACH,yJASC;IAED;;;;;;;;;OASG;IACH,4IAUC"}
|
|
@@ -21,8 +21,6 @@ commands.spawnProcess = async function spawnProcess(args, env = {}) {
|
|
|
21
21
|
if (lodash_1.default.isEmpty(args)) {
|
|
22
22
|
throw new Error('Spawn arguments are required');
|
|
23
23
|
}
|
|
24
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
25
|
-
// @ts-ignore The returned type is ok
|
|
26
24
|
return await this.exec('spawn', {
|
|
27
25
|
args: [this.requireUdid('spawn'), ...(lodash_1.default.isArray(args) ? args : [args])],
|
|
28
26
|
env,
|
|
@@ -42,8 +40,6 @@ commands.spawnSubProcess = async function spawnSubProcess(args, env = {}) {
|
|
|
42
40
|
if (lodash_1.default.isEmpty(args)) {
|
|
43
41
|
throw new Error('Spawn arguments are required');
|
|
44
42
|
}
|
|
45
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
46
|
-
// @ts-ignore The returned type is ok
|
|
47
43
|
return await this.exec('spawn', {
|
|
48
44
|
args: [this.requireUdid('spawn'), ...(lodash_1.default.isArray(args) ? args : [args])],
|
|
49
45
|
env,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spawn.js","sourceRoot":"","sources":["../../../lib/subcommands/spawn.js"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AAGvB,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;GAWG;AACH,QAAQ,CAAC,YAAY,GAAG,KAAK,UAAU,YAAY,CAAE,IAAI,EAAE,GAAG,GAAG,EAAE;IACjE,IAAI,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACnB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;KACjD;IAED,
|
|
1
|
+
{"version":3,"file":"spawn.js","sourceRoot":"","sources":["../../../lib/subcommands/spawn.js"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AAGvB,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;GAWG;AACH,QAAQ,CAAC,YAAY,GAAG,KAAK,UAAU,YAAY,CAAE,IAAI,EAAE,GAAG,GAAG,EAAE;IACjE,IAAI,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACnB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;KACjD;IAED,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QAC9B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACvE,GAAG;KACJ,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;;;;;;;;GASG;AACH,QAAQ,CAAC,eAAe,GAAG,KAAK,UAAU,eAAe,CAAE,IAAI,EAAE,GAAG,GAAG,EAAE;IACvE,IAAI,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QACnB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;KACjD;IAED,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QAC9B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,gBAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;QACvE,GAAG;QACH,YAAY,EAAE,IAAI;KACnB,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/ui.js"],"names":[],"mappings":";;IAKA;;;;;;;;;OASG;IACH,
|
|
1
|
+
{"version":3,"file":"ui.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/ui.js"],"names":[],"mappings":";;IAKA;;;;;;;;;OASG;IACH,2EAKC;IAED;;;;;;;;;OASG;IACH,6FAIC"}
|
|
@@ -16,8 +16,6 @@ const commands = {};
|
|
|
16
16
|
* @throws {Error} If the `udid` instance property is unset
|
|
17
17
|
*/
|
|
18
18
|
commands.getAppearance = async function getAppearance() {
|
|
19
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
20
|
-
// @ts-ignore We know the returned type is ok
|
|
21
19
|
const { stdout } = await this.exec('ui', {
|
|
22
20
|
args: [this.requireUdid('ui'), 'appearance'],
|
|
23
21
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../../lib/subcommands/ui.js"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AAGvB,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;GASG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa;IACnD,
|
|
1
|
+
{"version":3,"file":"ui.js","sourceRoot":"","sources":["../../../lib/subcommands/ui.js"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AAGvB,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;GASG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa;IACnD,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;QACrC,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC;KAC7C,CAAC,CAAC;IACH,OAAO,gBAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;AACxB,CAAC,CAAC;AAEF;;;;;;;;;GASG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa,CAAE,UAAU;IAC/D,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;QACpB,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC;KACzD,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
|
package/lib/simctl.js
CHANGED
|
@@ -45,6 +45,10 @@ const DEFAULT_OPTS = {
|
|
|
45
45
|
* @property {string?} path Full path to the xcrun script
|
|
46
46
|
*/
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* @typedef {{asynchronous: true}} TAsyncOpts
|
|
50
|
+
*/
|
|
51
|
+
|
|
48
52
|
/**
|
|
49
53
|
* @typedef {Object} ExecOpts
|
|
50
54
|
* @property {string[]} [args=[]] - The list of additional subcommand arguments.
|
|
@@ -61,7 +65,6 @@ const DEFAULT_OPTS = {
|
|
|
61
65
|
* executing xcrun. See https://github.com/appium/appium/issues/18966 for more details.
|
|
62
66
|
*/
|
|
63
67
|
|
|
64
|
-
|
|
65
68
|
/**
|
|
66
69
|
* @typedef {Object} SimctlOpts
|
|
67
70
|
* @property {XCRun} [xcrun] - The xcrun properties. Currently only one property
|
|
@@ -155,15 +158,16 @@ class Simctl {
|
|
|
155
158
|
/**
|
|
156
159
|
* Execute the particular simctl command.
|
|
157
160
|
*
|
|
161
|
+
* @template {ExecOpts} TExecOpts
|
|
158
162
|
* @param {string} subcommand - One of available simctl subcommands.
|
|
159
163
|
* Execute `xcrun simctl` in Terminal to see the full list of available subcommands.
|
|
160
|
-
* @param {
|
|
161
|
-
* @return {Promise<import('teen_process').
|
|
164
|
+
* @param {TExecOpts} [opts]
|
|
165
|
+
* @return {Promise<TExecOpts extends TAsyncOpts ? import('teen_process').SubProcess : import('teen_process').TeenProcessExecResult>}
|
|
162
166
|
* Either the result of teen process's `exec` or
|
|
163
167
|
* `SubProcess` instance depending of `opts.asynchronous` value.
|
|
164
168
|
* @throws {Error} If the simctl subcommand command returns non-zero return code.
|
|
165
169
|
*/
|
|
166
|
-
async exec (subcommand, opts
|
|
170
|
+
async exec (subcommand, opts) {
|
|
167
171
|
let {
|
|
168
172
|
args = [],
|
|
169
173
|
env = {},
|
|
@@ -171,7 +175,7 @@ class Simctl {
|
|
|
171
175
|
encoding,
|
|
172
176
|
logErrors = true,
|
|
173
177
|
architectures,
|
|
174
|
-
} = opts;
|
|
178
|
+
} = opts ?? {};
|
|
175
179
|
// run a particular simctl command
|
|
176
180
|
args = [
|
|
177
181
|
'simctl',
|
|
@@ -13,8 +13,6 @@ const commands = {};
|
|
|
13
13
|
* @throws {Error} If the `udid` instance property is unset
|
|
14
14
|
*/
|
|
15
15
|
commands.addMedia = async function addMedia (filePath) {
|
|
16
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
17
|
-
// @ts-ignore The returned type is ok
|
|
18
16
|
return await this.exec('addmedia', {
|
|
19
17
|
args: [this.requireUdid('addmedia'), filePath],
|
|
20
18
|
});
|
|
@@ -42,8 +42,6 @@ const commands = {};
|
|
|
42
42
|
* @throws {Error} If the `udid` instance property is unset
|
|
43
43
|
*/
|
|
44
44
|
commands.appInfo = async function appInfo (bundleId) {
|
|
45
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
46
|
-
// @ts-ignore The returned type is ok
|
|
47
45
|
const {stdout} = await this.exec('appinfo', {
|
|
48
46
|
args: [this.requireUdid('appinfo'), bundleId],
|
|
49
47
|
});
|
|
@@ -48,8 +48,6 @@ commands.startBootMonitor = async function startBootMonitor (opts = {}) {
|
|
|
48
48
|
if (shouldPreboot) {
|
|
49
49
|
args.push('-b');
|
|
50
50
|
}
|
|
51
|
-
/** @type {import('teen_process').SubProcess} */
|
|
52
|
-
// @ts-ignore The returned type is ok
|
|
53
51
|
const bootMonitor = await this.exec('bootstatus', {
|
|
54
52
|
args,
|
|
55
53
|
asynchronous: true,
|
|
@@ -76,8 +76,6 @@ commands.createDevice = async function createDevice (name, deviceTypeId, platfor
|
|
|
76
76
|
log.debug(LOG_PREFIX,
|
|
77
77
|
`Creating simulator with name '${name}', device type id '${deviceTypeId}' and runtime id '${runtimeId}'`);
|
|
78
78
|
try {
|
|
79
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
80
|
-
// @ts-ignore The returned type is ok
|
|
81
79
|
const {stdout} = await this.exec('create', {
|
|
82
80
|
args: [name, deviceTypeId, runtimeId]
|
|
83
81
|
});
|
|
@@ -23,7 +23,6 @@ commands.getAppContainer = async function getAppContainer (bundleId, containerTy
|
|
|
23
23
|
if (containerType) {
|
|
24
24
|
args.push(containerType);
|
|
25
25
|
}
|
|
26
|
-
// @ts-ignore The returned type is ok
|
|
27
26
|
const {stdout} = await this.exec('get_app_container', {args});
|
|
28
27
|
return (stdout || '').trim();
|
|
29
28
|
};
|
|
@@ -11,8 +11,6 @@ const commands = {};
|
|
|
11
11
|
* @throws {Error} If the `udid` instance property is unset
|
|
12
12
|
*/
|
|
13
13
|
commands.getEnv = async function getEnv (varName) {
|
|
14
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
15
|
-
// @ts-ignore the returned type is ok
|
|
16
14
|
const {stdout, stderr} = await this.exec('getenv', {
|
|
17
15
|
args: [this.requireUdid('getenv'), varName],
|
|
18
16
|
logErrors: false,
|
|
@@ -21,8 +21,6 @@ const commands = {};
|
|
|
21
21
|
commands.launchApp = async function launchApp (bundleId, tries = 5) {
|
|
22
22
|
// @ts-ignore A string will always be returned
|
|
23
23
|
return await retryInterval(tries, 1000, async () => {
|
|
24
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
25
|
-
// @ts-ignore the returned type is ok
|
|
26
24
|
const {stdout} = await this.exec('launch', {
|
|
27
25
|
args: [this.requireUdid('launch'), bundleId],
|
|
28
26
|
});
|
package/lib/subcommands/list.js
CHANGED
|
@@ -26,8 +26,6 @@ const commands = {};
|
|
|
26
26
|
* returns non-zero return code.
|
|
27
27
|
*/
|
|
28
28
|
commands.getDevicesByParsing = async function getDevicesByParsing (platform) {
|
|
29
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
30
|
-
// @ts-ignore the returned type is ok
|
|
31
29
|
const {stdout} = await this.exec('list', {
|
|
32
30
|
args: ['devices'],
|
|
33
31
|
});
|
|
@@ -108,8 +106,6 @@ commands.getDevicesByParsing = async function getDevicesByParsing (platform) {
|
|
|
108
106
|
commands.getDevices = async function getDevices (forSdk, platform) {
|
|
109
107
|
let devices = {};
|
|
110
108
|
try {
|
|
111
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
112
|
-
// @ts-ignore the returned type is ok
|
|
113
109
|
const {stdout} = await this.exec('list', {
|
|
114
110
|
args: ['devices', '-j'],
|
|
115
111
|
});
|
|
@@ -188,8 +184,6 @@ commands.getDevices = async function getDevices (forSdk, platform) {
|
|
|
188
184
|
*/
|
|
189
185
|
commands.getRuntimeForPlatformVersionViaJson = async function getRuntimeForPlatformVersionViaJson (
|
|
190
186
|
platformVersion, platform = 'iOS') {
|
|
191
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
192
|
-
// @ts-ignore the returned type is ok
|
|
193
187
|
const {stdout} = await this.exec('list', {
|
|
194
188
|
args: ['runtimes', '--json'],
|
|
195
189
|
});
|
|
@@ -216,8 +210,6 @@ commands.getRuntimeForPlatformVersion = async function getRuntimeForPlatformVers
|
|
|
216
210
|
platformVersion, platform = 'iOS') {
|
|
217
211
|
// Try with parsing
|
|
218
212
|
try {
|
|
219
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
220
|
-
// @ts-ignore The returned type is ok
|
|
221
213
|
const {stdout} = await this.exec('list', {
|
|
222
214
|
args: ['runtimes'],
|
|
223
215
|
});
|
|
@@ -244,8 +236,6 @@ commands.getRuntimeForPlatformVersion = async function getRuntimeForPlatformVers
|
|
|
244
236
|
* @throws {Error} If the corresponding simctl command fails
|
|
245
237
|
*/
|
|
246
238
|
commands.getDeviceTypes = async function getDeviceTypes () {
|
|
247
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
248
|
-
// @ts-ignore The returned type is ok
|
|
249
239
|
const {stdout} = await this.exec('list', {
|
|
250
240
|
args: ['devicetypes', '-j'],
|
|
251
241
|
});
|
|
@@ -304,8 +294,6 @@ commands.getDeviceTypes = async function getDeviceTypes () {
|
|
|
304
294
|
* @throws {Error} If the corresponding simctl command fails
|
|
305
295
|
*/
|
|
306
296
|
commands.list = async function list () {
|
|
307
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
308
|
-
// @ts-ignore The returned type is ok
|
|
309
297
|
const {stdout} = await this.exec('list', {
|
|
310
298
|
args: ['-j'],
|
|
311
299
|
});
|
|
@@ -14,8 +14,6 @@ const commands = {};
|
|
|
14
14
|
* @throws {Error} If the `udid` instance property is unset
|
|
15
15
|
*/
|
|
16
16
|
commands.openUrl = async function openUrl (url) {
|
|
17
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
18
|
-
// @ts-ignore The returned type is ok
|
|
19
17
|
return await this.exec('openurl', {
|
|
20
18
|
args: [this.requireUdid('openurl'), url],
|
|
21
19
|
});
|
|
@@ -14,8 +14,6 @@ const commands = {};
|
|
|
14
14
|
* @throws {Error} If the `udid` instance property is unset
|
|
15
15
|
*/
|
|
16
16
|
commands.setPasteboard = async function setPasteboard (content, encoding = 'utf8') {
|
|
17
|
-
/** @type {import('teen_process').SubProcess} */
|
|
18
|
-
// @ts-ignore The returned type is ok
|
|
19
17
|
const pbCopySubprocess = await this.exec('pbcopy', {
|
|
20
18
|
args: [this.requireUdid('pbcopy')],
|
|
21
19
|
asynchronous: true,
|
|
@@ -14,8 +14,6 @@ const commands = {};
|
|
|
14
14
|
* @throws {Error} If the `udid` instance property is unset
|
|
15
15
|
*/
|
|
16
16
|
commands.getPasteboard = async function getPasteboard (encoding = 'utf8') {
|
|
17
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
18
|
-
// @ts-ignore The returned type is ok
|
|
19
17
|
const {stdout} = await this.exec('pbpaste', {
|
|
20
18
|
args: [this.requireUdid('pbpaste')],
|
|
21
19
|
encoding,
|
package/lib/subcommands/spawn.js
CHANGED
|
@@ -20,8 +20,6 @@ commands.spawnProcess = async function spawnProcess (args, env = {}) {
|
|
|
20
20
|
throw new Error('Spawn arguments are required');
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
24
|
-
// @ts-ignore The returned type is ok
|
|
25
23
|
return await this.exec('spawn', {
|
|
26
24
|
args: [this.requireUdid('spawn'), ...(_.isArray(args) ? args : [args])],
|
|
27
25
|
env,
|
|
@@ -43,8 +41,6 @@ commands.spawnSubProcess = async function spawnSubProcess (args, env = {}) {
|
|
|
43
41
|
throw new Error('Spawn arguments are required');
|
|
44
42
|
}
|
|
45
43
|
|
|
46
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
47
|
-
// @ts-ignore The returned type is ok
|
|
48
44
|
return await this.exec('spawn', {
|
|
49
45
|
args: [this.requireUdid('spawn'), ...(_.isArray(args) ? args : [args])],
|
|
50
46
|
env,
|
package/lib/subcommands/ui.js
CHANGED
|
@@ -14,8 +14,6 @@ const commands = {};
|
|
|
14
14
|
* @throws {Error} If the `udid` instance property is unset
|
|
15
15
|
*/
|
|
16
16
|
commands.getAppearance = async function getAppearance () {
|
|
17
|
-
/** @type {import('teen_process').TeenProcessExecResult} */
|
|
18
|
-
// @ts-ignore We know the returned type is ok
|
|
19
17
|
const {stdout} = await this.exec('ui', {
|
|
20
18
|
args: [this.requireUdid('ui'), 'appearance'],
|
|
21
19
|
});
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"ios",
|
|
7
7
|
"simctl"
|
|
8
8
|
],
|
|
9
|
-
"version": "7.3.
|
|
9
|
+
"version": "7.3.8",
|
|
10
10
|
"author": "Appium Contributors",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"repository": {
|
|
@@ -73,9 +73,9 @@
|
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@appium/eslint-config-appium": "^8.0.4",
|
|
76
|
-
"@appium/eslint-config-appium-ts": "^0.
|
|
77
|
-
"@appium/tsconfig": "^0.
|
|
78
|
-
"@appium/types": "^0.
|
|
76
|
+
"@appium/eslint-config-appium-ts": "^0.x",
|
|
77
|
+
"@appium/tsconfig": "^0.x",
|
|
78
|
+
"@appium/types": "^0.x",
|
|
79
79
|
"@semantic-release/changelog": "^6.0.1",
|
|
80
80
|
"@semantic-release/git": "^10.0.1",
|
|
81
81
|
"@types/bluebird": "^3.5.38",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"@types/node": "^20.4.7",
|
|
87
87
|
"@types/sinon": "^10.0.16",
|
|
88
88
|
"@types/sinon-chai": "^3.2.9",
|
|
89
|
-
"@types/teen_process": "2.0.
|
|
89
|
+
"@types/teen_process": "^2.0.2",
|
|
90
90
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
91
91
|
"@typescript-eslint/parser": "^5.62.0",
|
|
92
92
|
"appium-xcode": "^5.0.0",
|
|
@@ -94,12 +94,12 @@
|
|
|
94
94
|
"chai-as-promised": "^7.1.1",
|
|
95
95
|
"conventional-changelog-conventionalcommits": "^7.0.1",
|
|
96
96
|
"eslint": "^8.46.0",
|
|
97
|
-
"eslint-config-prettier": "^
|
|
97
|
+
"eslint-config-prettier": "^9.0.0",
|
|
98
98
|
"eslint-import-resolver-typescript": "^3.5.5",
|
|
99
99
|
"eslint-plugin-import": "^2.28.0",
|
|
100
100
|
"eslint-plugin-mocha": "^10.1.0",
|
|
101
101
|
"eslint-plugin-promise": "^6.1.1",
|
|
102
|
-
"lint-staged": "^
|
|
102
|
+
"lint-staged": "^15.0.2",
|
|
103
103
|
"mocha": "^10.0.0",
|
|
104
104
|
"pre-commit": "^1.1.3",
|
|
105
105
|
"prettier": "^3.0.0",
|