node-simctl 7.1.16 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/build/lib/simctl.js +9 -3
- package/build/lib/simctl.js.map +1 -1
- package/build/lib/subcommands/addmedia.js +1 -1
- package/build/lib/subcommands/addmedia.js.map +1 -1
- package/build/lib/subcommands/appinfo.js +1 -1
- package/build/lib/subcommands/appinfo.js.map +1 -1
- package/build/lib/subcommands/bootstatus.js +1 -1
- package/build/lib/subcommands/bootstatus.js.map +1 -1
- package/build/lib/subcommands/create.js +1 -1
- package/build/lib/subcommands/create.js.map +1 -1
- package/build/lib/subcommands/get_app_container.js +1 -1
- package/build/lib/subcommands/get_app_container.js.map +1 -1
- package/build/lib/subcommands/getenv.js +1 -1
- package/build/lib/subcommands/getenv.js.map +1 -1
- package/build/lib/subcommands/io.js +1 -1
- package/build/lib/subcommands/io.js.map +1 -1
- package/build/lib/subcommands/launch.js +1 -1
- package/build/lib/subcommands/launch.js.map +1 -1
- package/build/lib/subcommands/list.js +1 -1
- package/build/lib/subcommands/list.js.map +1 -1
- package/build/lib/subcommands/openurl.js +1 -1
- package/build/lib/subcommands/openurl.js.map +1 -1
- package/build/lib/subcommands/pbcopy.js +1 -1
- package/build/lib/subcommands/pbcopy.js.map +1 -1
- package/build/lib/subcommands/pbpaste.js +1 -1
- package/build/lib/subcommands/pbpaste.js.map +1 -1
- package/build/lib/subcommands/spawn.js +1 -1
- package/build/lib/subcommands/spawn.js.map +1 -1
- package/build/lib/subcommands/ui.js +1 -1
- package/build/lib/subcommands/ui.js.map +1 -1
- package/lib/simctl.js +21 -11
- package/lib/subcommands/addmedia.js +1 -1
- package/lib/subcommands/appinfo.js +1 -1
- package/lib/subcommands/bootstatus.js +8 -8
- package/lib/subcommands/create.js +2 -2
- package/lib/subcommands/get_app_container.js +2 -2
- package/lib/subcommands/getenv.js +1 -1
- package/lib/subcommands/io.js +1 -1
- package/lib/subcommands/launch.js +1 -1
- package/lib/subcommands/list.js +9 -9
- package/lib/subcommands/openurl.js +1 -1
- package/lib/subcommands/pbcopy.js +1 -1
- package/lib/subcommands/pbpaste.js +1 -1
- package/lib/subcommands/spawn.js +4 -4
- package/lib/subcommands/ui.js +1 -1
- package/package.json +2 -2
package/lib/subcommands/list.js
CHANGED
|
@@ -90,11 +90,11 @@ commands.getDevicesByParsing = async function getDevicesByParsing (platform) {
|
|
|
90
90
|
* Parse the list of existing Simulator devices to represent
|
|
91
91
|
* it as convenient mapping for the particular platform version.
|
|
92
92
|
*
|
|
93
|
-
* @param {?
|
|
93
|
+
* @param {string?} forSdk - The sdk version,
|
|
94
94
|
* for which the devices list should be parsed,
|
|
95
95
|
* for example '10.3'.
|
|
96
|
-
* @param {?
|
|
97
|
-
* @return {Object|
|
|
96
|
+
* @param {string?} platform - The platform name, for example 'watchOS'.
|
|
97
|
+
* @return {Promise<Object|DeviceInfo[]>} If _forSdk_ is set then the list
|
|
98
98
|
* of devices for the particular platform version.
|
|
99
99
|
* Otherwise the same result as for {@link getDevicesByParsing}
|
|
100
100
|
* function.
|
|
@@ -176,8 +176,8 @@ commands.getDevices = async function getDevices (forSdk, platform) {
|
|
|
176
176
|
*
|
|
177
177
|
* @param {string} platformVersion - The platform version name,
|
|
178
178
|
* for example '10.3'.
|
|
179
|
-
* @param {?
|
|
180
|
-
* @return {string} The corresponding runtime name for the given
|
|
179
|
+
* @param {string?} platform - The platform name, for example 'watchOS'.
|
|
180
|
+
* @return {Promise<string>} The corresponding runtime name for the given
|
|
181
181
|
* platform version.
|
|
182
182
|
*/
|
|
183
183
|
commands.getRuntimeForPlatformVersionViaJson = async function getRuntimeForPlatformVersionViaJson (
|
|
@@ -199,8 +199,8 @@ commands.getRuntimeForPlatformVersionViaJson = async function getRuntimeForPlatf
|
|
|
199
199
|
*
|
|
200
200
|
* @param {string} platformVersion - The platform version name,
|
|
201
201
|
* for example '10.3'.
|
|
202
|
-
* @param {?
|
|
203
|
-
* @return {string} The corresponding runtime name for the given
|
|
202
|
+
* @param {string?} platform - The platform name, for example 'watchOS'.
|
|
203
|
+
* @return {Promise<string>} The corresponding runtime name for the given
|
|
204
204
|
* platform version.
|
|
205
205
|
*/
|
|
206
206
|
commands.getRuntimeForPlatformVersion = async function getRuntimeForPlatformVersion (
|
|
@@ -228,7 +228,7 @@ commands.getRuntimeForPlatformVersion = async function getRuntimeForPlatformVers
|
|
|
228
228
|
/**
|
|
229
229
|
* Get the list of device types available in the current Xcode installation
|
|
230
230
|
*
|
|
231
|
-
* @return {
|
|
231
|
+
* @return {Promise<string[]>} List of the types of devices available
|
|
232
232
|
* @throws {Error} If the corresponding simctl command fails
|
|
233
233
|
*/
|
|
234
234
|
commands.getDeviceTypes = async function getDeviceTypes () {
|
|
@@ -257,7 +257,7 @@ commands.getDeviceTypes = async function getDeviceTypes () {
|
|
|
257
257
|
/**
|
|
258
258
|
* Get the full list of runtimes, devicetypes, devices and pairs as Object
|
|
259
259
|
*
|
|
260
|
-
* @return {Object} Object containing device types, runtimes devices and pairs.
|
|
260
|
+
* @return {Promise<Object>} Object containing device types, runtimes devices and pairs.
|
|
261
261
|
* The resulting JSON will be like:
|
|
262
262
|
* {
|
|
263
263
|
* "devicetypes" : [
|
|
@@ -7,7 +7,7 @@ const commands = {};
|
|
|
7
7
|
*
|
|
8
8
|
* @param {string} url - The URL scheme to open, for example http://appiom.io
|
|
9
9
|
* will be opened by the built-in mobile browser.
|
|
10
|
-
* @return {ExecResult} Command execution result.
|
|
10
|
+
* @return {Promise<ExecResult>} Command execution result.
|
|
11
11
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
12
12
|
* returns non-zero return code.
|
|
13
13
|
* @throws {Error} If the `udid` instance property is unset
|
|
@@ -6,7 +6,7 @@ const commands = {};
|
|
|
6
6
|
*
|
|
7
7
|
* @since Xcode SDK 8.1
|
|
8
8
|
* @param {string} content - The actual string content to be set.
|
|
9
|
-
* @param {string} encoding [
|
|
9
|
+
* @param {string} encoding [utf8] - The encoding of the given pasteboard content.
|
|
10
10
|
* UTF-8 by default.
|
|
11
11
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
12
12
|
* returns non-zero return code.
|
|
@@ -7,7 +7,7 @@ const commands = {};
|
|
|
7
7
|
* @since Xcode 8.1 SDK
|
|
8
8
|
* @param {string} encoding ['utf-8'] - The encoding of the returned pasteboard content.
|
|
9
9
|
* UTF-8 by default.
|
|
10
|
-
* @return {string} Current content of Simulator pasteboard or an empty string.
|
|
10
|
+
* @return {Promise<string>} Current content of Simulator pasteboard or an empty string.
|
|
11
11
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
12
12
|
* returns non-zero return code.
|
|
13
13
|
* @throws {Error} If the `udid` instance property is unset
|
package/lib/subcommands/spawn.js
CHANGED
|
@@ -7,9 +7,9 @@ const commands = {};
|
|
|
7
7
|
* Spawn the particular process on Simulator.
|
|
8
8
|
* It is required that Simulator is in _booted_ state.
|
|
9
9
|
*
|
|
10
|
-
* @param {string|
|
|
10
|
+
* @param {string|string[]} args - Spawn arguments
|
|
11
11
|
* @param {object} env [{}] - Additional environment variables mapping.
|
|
12
|
-
* @return {ExecResult} Command execution result.
|
|
12
|
+
* @return {Promise<ExecResult>} Command execution result.
|
|
13
13
|
* @throws {Error} If the corresponding simctl subcommand command
|
|
14
14
|
* returns non-zero return code.
|
|
15
15
|
* @throws {Error} If the `udid` instance property is unset
|
|
@@ -29,9 +29,9 @@ commands.spawnProcess = async function spawnProcess (args, env = {}) {
|
|
|
29
29
|
* Prepare SubProcess instance for a new process, which is going to be spawned
|
|
30
30
|
* on Simulator.
|
|
31
31
|
*
|
|
32
|
-
* @param {string|
|
|
32
|
+
* @param {string|string[]} args - Spawn arguments
|
|
33
33
|
* @param {object} env [{}] - Additional environment variables mapping.
|
|
34
|
-
* @return {SubProcess} The instance of the process to be spawned.
|
|
34
|
+
* @return {Promise<SubProcess>} The instance of the process to be spawned.
|
|
35
35
|
* @throws {Error} If the `udid` instance property is unset
|
|
36
36
|
*/
|
|
37
37
|
commands.spawnSubProcess = async function spawnSubProcess (args, env = {}) {
|
package/lib/subcommands/ui.js
CHANGED
|
@@ -7,7 +7,7 @@ const commands = {};
|
|
|
7
7
|
* Retrieves the current UI appearance value from the given simulator
|
|
8
8
|
*
|
|
9
9
|
* @since Xcode 11.4 SDK
|
|
10
|
-
* @return {string} the appearance value, for example 'light' or 'dark'
|
|
10
|
+
* @return {Promise<string>} the appearance value, for example 'light' or 'dark'
|
|
11
11
|
* @throws {Error} if the current SDK version does not support the command
|
|
12
12
|
* or there was an error while getting the value
|
|
13
13
|
* @throws {Error} If the `udid` instance property is unset
|
package/package.json
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"ios",
|
|
7
7
|
"simctl"
|
|
8
8
|
],
|
|
9
|
-
"version": "7.
|
|
9
|
+
"version": "7.2.0",
|
|
10
10
|
"author": "Appium Contributors",
|
|
11
11
|
"license": "Apache-2.0",
|
|
12
12
|
"repository": {
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"lint-staged": "^13.0.3",
|
|
94
94
|
"mocha": "^10.0.0",
|
|
95
95
|
"pre-commit": "^1.1.3",
|
|
96
|
-
"prettier": "^
|
|
96
|
+
"prettier": "^3.0.0",
|
|
97
97
|
"proxyquire": "^2.1.3",
|
|
98
98
|
"semantic-release": "^20.0.2",
|
|
99
99
|
"sinon": "^15.0.0"
|