node-simctl 7.1.17 → 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.
Files changed (47) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/lib/simctl.js +9 -3
  3. package/build/lib/simctl.js.map +1 -1
  4. package/build/lib/subcommands/addmedia.js +1 -1
  5. package/build/lib/subcommands/addmedia.js.map +1 -1
  6. package/build/lib/subcommands/appinfo.js +1 -1
  7. package/build/lib/subcommands/appinfo.js.map +1 -1
  8. package/build/lib/subcommands/bootstatus.js +1 -1
  9. package/build/lib/subcommands/bootstatus.js.map +1 -1
  10. package/build/lib/subcommands/create.js +1 -1
  11. package/build/lib/subcommands/create.js.map +1 -1
  12. package/build/lib/subcommands/get_app_container.js +1 -1
  13. package/build/lib/subcommands/get_app_container.js.map +1 -1
  14. package/build/lib/subcommands/getenv.js +1 -1
  15. package/build/lib/subcommands/getenv.js.map +1 -1
  16. package/build/lib/subcommands/io.js +1 -1
  17. package/build/lib/subcommands/io.js.map +1 -1
  18. package/build/lib/subcommands/launch.js +1 -1
  19. package/build/lib/subcommands/launch.js.map +1 -1
  20. package/build/lib/subcommands/list.js +1 -1
  21. package/build/lib/subcommands/list.js.map +1 -1
  22. package/build/lib/subcommands/openurl.js +1 -1
  23. package/build/lib/subcommands/openurl.js.map +1 -1
  24. package/build/lib/subcommands/pbcopy.js +1 -1
  25. package/build/lib/subcommands/pbcopy.js.map +1 -1
  26. package/build/lib/subcommands/pbpaste.js +1 -1
  27. package/build/lib/subcommands/pbpaste.js.map +1 -1
  28. package/build/lib/subcommands/spawn.js +1 -1
  29. package/build/lib/subcommands/spawn.js.map +1 -1
  30. package/build/lib/subcommands/ui.js +1 -1
  31. package/build/lib/subcommands/ui.js.map +1 -1
  32. package/lib/simctl.js +21 -11
  33. package/lib/subcommands/addmedia.js +1 -1
  34. package/lib/subcommands/appinfo.js +1 -1
  35. package/lib/subcommands/bootstatus.js +8 -8
  36. package/lib/subcommands/create.js +2 -2
  37. package/lib/subcommands/get_app_container.js +2 -2
  38. package/lib/subcommands/getenv.js +1 -1
  39. package/lib/subcommands/io.js +1 -1
  40. package/lib/subcommands/launch.js +1 -1
  41. package/lib/subcommands/list.js +9 -9
  42. package/lib/subcommands/openurl.js +1 -1
  43. package/lib/subcommands/pbcopy.js +1 -1
  44. package/lib/subcommands/pbpaste.js +1 -1
  45. package/lib/subcommands/spawn.js +4 -4
  46. package/lib/subcommands/ui.js +1 -1
  47. package/package.json +1 -1
@@ -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 {?string} forSdk - The sdk version,
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 {?string} platform - The platform name, for example 'watchOS'.
97
- * @return {Object|Array<DeviceInfo>} If _forSdk_ is set then the list
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 {?string} platform - The platform name, for example 'watchOS'.
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 {?string} platform - The platform name, for example 'watchOS'.
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 {Array<string>} List of the types of devices available
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 [utf'] - The encoding of the given pasteboard content.
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
@@ -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|Array<string>} args - Spawn arguments
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|Array<string>} args - Spawn arguments
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 = {}) {
@@ -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.1.17",
9
+ "version": "7.2.0",
10
10
  "author": "Appium Contributors",
11
11
  "license": "Apache-2.0",
12
12
  "repository": {