node-simctl 7.3.3 → 7.3.5

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 (51) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/build/lib/helpers.d.ts +6 -3
  3. package/build/lib/helpers.d.ts.map +1 -1
  4. package/build/lib/helpers.js +8 -5
  5. package/build/lib/helpers.js.map +1 -1
  6. package/build/lib/simctl.d.ts +50 -38
  7. package/build/lib/simctl.d.ts.map +1 -1
  8. package/build/lib/simctl.js +25 -18
  9. package/build/lib/simctl.js.map +1 -1
  10. package/build/lib/subcommands/bootstatus.d.ts +16 -16
  11. package/build/lib/subcommands/bootstatus.d.ts.map +1 -1
  12. package/build/lib/subcommands/bootstatus.js +7 -7
  13. package/build/lib/subcommands/create.d.ts +9 -9
  14. package/build/lib/subcommands/create.d.ts.map +1 -1
  15. package/build/lib/subcommands/create.js +3 -3
  16. package/build/lib/subcommands/erase.d.ts +2 -2
  17. package/build/lib/subcommands/erase.d.ts.map +1 -1
  18. package/build/lib/subcommands/erase.js +1 -1
  19. package/build/lib/subcommands/get_app_container.d.ts +2 -2
  20. package/build/lib/subcommands/get_app_container.d.ts.map +1 -1
  21. package/build/lib/subcommands/get_app_container.js +1 -1
  22. package/build/lib/subcommands/keychain.d.ts +7 -7
  23. package/build/lib/subcommands/keychain.d.ts.map +1 -1
  24. package/build/lib/subcommands/keychain.js +3 -3
  25. package/build/lib/subcommands/launch.d.ts +2 -2
  26. package/build/lib/subcommands/launch.d.ts.map +1 -1
  27. package/build/lib/subcommands/launch.js +1 -1
  28. package/build/lib/subcommands/list.d.ts +9 -9
  29. package/build/lib/subcommands/list.d.ts.map +1 -1
  30. package/build/lib/subcommands/list.js +5 -5
  31. package/build/lib/subcommands/pbcopy.d.ts +2 -2
  32. package/build/lib/subcommands/pbcopy.d.ts.map +1 -1
  33. package/build/lib/subcommands/pbcopy.js +1 -1
  34. package/build/lib/subcommands/pbpaste.d.ts +2 -2
  35. package/build/lib/subcommands/pbpaste.d.ts.map +1 -1
  36. package/build/lib/subcommands/pbpaste.js +1 -1
  37. package/build/lib/subcommands/spawn.d.ts +2 -2
  38. package/build/lib/subcommands/spawn.js +2 -2
  39. package/lib/helpers.js +9 -9
  40. package/lib/simctl.js +29 -20
  41. package/lib/subcommands/bootstatus.js +7 -7
  42. package/lib/subcommands/create.js +3 -3
  43. package/lib/subcommands/erase.js +1 -1
  44. package/lib/subcommands/get_app_container.js +1 -1
  45. package/lib/subcommands/keychain.js +3 -3
  46. package/lib/subcommands/launch.js +1 -1
  47. package/lib/subcommands/list.js +5 -5
  48. package/lib/subcommands/pbcopy.js +1 -1
  49. package/lib/subcommands/pbpaste.js +1 -1
  50. package/lib/subcommands/spawn.js +2 -2
  51. package/package.json +3 -3
@@ -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 [utf8] - 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.
@@ -5,7 +5,7 @@ const commands = {};
5
5
  * It is required that Simulator is in _booted_ state.
6
6
  *
7
7
  * @since Xcode 8.1 SDK
8
- * @param {string} encoding ['utf-8'] - The encoding of the returned pasteboard content.
8
+ * @param {string} [encoding='utf8'] - The encoding of the returned pasteboard content.
9
9
  * UTF-8 by default.
10
10
  * @return {Promise<string>} Current content of Simulator pasteboard or an empty string.
11
11
  * @throws {Error} If the corresponding simctl subcommand command
@@ -8,7 +8,7 @@ const commands = {};
8
8
  * It is required that Simulator is in _booted_ state.
9
9
  *
10
10
  * @param {string|string[]} args - Spawn arguments
11
- * @param {object} env [{}] - Additional environment variables mapping.
11
+ * @param {object} [env={}] - Additional environment variables mapping.
12
12
  * @return {Promise<import('teen_process').TeenProcessExecResult>} Command execution result.
13
13
  * @throws {Error} If the corresponding simctl subcommand command
14
14
  * returns non-zero return code.
@@ -30,7 +30,7 @@ commands.spawnProcess = async function spawnProcess (args, env = {}) {
30
30
  * on Simulator.
31
31
  *
32
32
  * @param {string|string[]} args - Spawn arguments
33
- * @param {object} env [{}] - Additional environment variables mapping.
33
+ * @param {object} [env={}] - Additional environment variables mapping.
34
34
  * @return {Promise<import('teen_process').SubProcess>} The instance of the process to be spawned.
35
35
  * @throws {Error} If the `udid` instance property is unset
36
36
  */
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "ios",
7
7
  "simctl"
8
8
  ],
9
- "version": "7.3.3",
9
+ "version": "7.3.5",
10
10
  "author": "Appium Contributors",
11
11
  "license": "Apache-2.0",
12
12
  "repository": {
@@ -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.0",
89
+ "@types/teen_process": "2.0.1",
90
90
  "@typescript-eslint/eslint-plugin": "^5.62.0",
91
91
  "@typescript-eslint/parser": "^5.62.0",
92
92
  "appium-xcode": "^5.0.0",
@@ -105,7 +105,7 @@
105
105
  "prettier": "^3.0.0",
106
106
  "proxyquire": "^2.1.3",
107
107
  "semantic-release": "^21.1.0",
108
- "sinon": "^15.0.0",
108
+ "sinon": "^16.0.0",
109
109
  "ts-node": "^10.9.1",
110
110
  "typescript": "^5.1.6"
111
111
  }