node-simctl 8.1.5 → 8.1.6

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 (94) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/lib/helpers.d.ts.map +1 -1
  3. package/build/lib/helpers.js.map +1 -1
  4. package/build/lib/logger.js.map +1 -1
  5. package/build/lib/simctl.d.ts.map +1 -1
  6. package/build/lib/simctl.js +5 -2
  7. package/build/lib/simctl.js.map +1 -1
  8. package/build/lib/subcommands/addmedia.d.ts.map +1 -1
  9. package/build/lib/subcommands/addmedia.js.map +1 -1
  10. package/build/lib/subcommands/appinfo.d.ts.map +1 -1
  11. package/build/lib/subcommands/appinfo.js.map +1 -1
  12. package/build/lib/subcommands/boot.d.ts.map +1 -1
  13. package/build/lib/subcommands/boot.js +1 -1
  14. package/build/lib/subcommands/boot.js.map +1 -1
  15. package/build/lib/subcommands/bootstatus.d.ts.map +1 -1
  16. package/build/lib/subcommands/bootstatus.js.map +1 -1
  17. package/build/lib/subcommands/create.d.ts.map +1 -1
  18. package/build/lib/subcommands/create.js +2 -2
  19. package/build/lib/subcommands/create.js.map +1 -1
  20. package/build/lib/subcommands/delete.d.ts.map +1 -1
  21. package/build/lib/subcommands/delete.js +1 -1
  22. package/build/lib/subcommands/erase.d.ts.map +1 -1
  23. package/build/lib/subcommands/erase.js +1 -1
  24. package/build/lib/subcommands/erase.js.map +1 -1
  25. package/build/lib/subcommands/get_app_container.d.ts.map +1 -1
  26. package/build/lib/subcommands/getenv.d.ts.map +1 -1
  27. package/build/lib/subcommands/getenv.js.map +1 -1
  28. package/build/lib/subcommands/install.d.ts.map +1 -1
  29. package/build/lib/subcommands/install.js.map +1 -1
  30. package/build/lib/subcommands/io.d.ts.map +1 -1
  31. package/build/lib/subcommands/io.js.map +1 -1
  32. package/build/lib/subcommands/keychain.d.ts.map +1 -1
  33. package/build/lib/subcommands/keychain.js +2 -2
  34. package/build/lib/subcommands/keychain.js.map +1 -1
  35. package/build/lib/subcommands/launch.d.ts.map +1 -1
  36. package/build/lib/subcommands/launch.js.map +1 -1
  37. package/build/lib/subcommands/list.d.ts.map +1 -1
  38. package/build/lib/subcommands/list.js +4 -3
  39. package/build/lib/subcommands/list.js.map +1 -1
  40. package/build/lib/subcommands/location.d.ts.map +1 -1
  41. package/build/lib/subcommands/location.js.map +1 -1
  42. package/build/lib/subcommands/openurl.d.ts.map +1 -1
  43. package/build/lib/subcommands/openurl.js.map +1 -1
  44. package/build/lib/subcommands/pbcopy.d.ts.map +1 -1
  45. package/build/lib/subcommands/pbcopy.js +2 -2
  46. package/build/lib/subcommands/pbcopy.js.map +1 -1
  47. package/build/lib/subcommands/pbpaste.d.ts.map +1 -1
  48. package/build/lib/subcommands/pbpaste.js.map +1 -1
  49. package/build/lib/subcommands/privacy.d.ts.map +1 -1
  50. package/build/lib/subcommands/privacy.js.map +1 -1
  51. package/build/lib/subcommands/push.d.ts.map +1 -1
  52. package/build/lib/subcommands/push.js.map +1 -1
  53. package/build/lib/subcommands/shutdown.d.ts.map +1 -1
  54. package/build/lib/subcommands/shutdown.js.map +1 -1
  55. package/build/lib/subcommands/spawn.d.ts.map +1 -1
  56. package/build/lib/subcommands/spawn.js +2 -2
  57. package/build/lib/subcommands/spawn.js.map +1 -1
  58. package/build/lib/subcommands/terminate.d.ts.map +1 -1
  59. package/build/lib/subcommands/terminate.js.map +1 -1
  60. package/build/lib/subcommands/ui.d.ts.map +1 -1
  61. package/build/lib/subcommands/ui.js.map +1 -1
  62. package/build/lib/subcommands/uninstall.d.ts.map +1 -1
  63. package/build/lib/subcommands/uninstall.js.map +1 -1
  64. package/build/lib/types.d.ts.map +1 -1
  65. package/lib/helpers.ts +9 -8
  66. package/lib/logger.ts +2 -2
  67. package/lib/simctl.ts +34 -32
  68. package/lib/subcommands/addmedia.ts +6 -3
  69. package/lib/subcommands/appinfo.ts +5 -5
  70. package/lib/subcommands/boot.ts +4 -4
  71. package/lib/subcommands/bootstatus.ts +82 -80
  72. package/lib/subcommands/create.ts +22 -20
  73. package/lib/subcommands/delete.ts +3 -4
  74. package/lib/subcommands/erase.ts +10 -8
  75. package/lib/subcommands/get_app_container.ts +3 -4
  76. package/lib/subcommands/getenv.ts +2 -3
  77. package/lib/subcommands/install.ts +2 -3
  78. package/lib/subcommands/io.ts +4 -5
  79. package/lib/subcommands/keychain.ts +21 -24
  80. package/lib/subcommands/launch.ts +7 -4
  81. package/lib/subcommands/list.ts +48 -38
  82. package/lib/subcommands/location.ts +5 -6
  83. package/lib/subcommands/openurl.ts +3 -3
  84. package/lib/subcommands/pbcopy.ts +6 -7
  85. package/lib/subcommands/pbpaste.ts +5 -3
  86. package/lib/subcommands/privacy.ts +8 -5
  87. package/lib/subcommands/push.ts +4 -5
  88. package/lib/subcommands/shutdown.ts +3 -4
  89. package/lib/subcommands/spawn.ts +8 -9
  90. package/lib/subcommands/terminate.ts +2 -3
  91. package/lib/subcommands/ui.ts +7 -8
  92. package/lib/subcommands/uninstall.ts +2 -3
  93. package/lib/types.ts +1 -2
  94. package/package.json +3 -1
@@ -1,4 +1,4 @@
1
- import type { Simctl } from '../simctl';
1
+ import type {Simctl} from '../simctl';
2
2
 
3
3
  /**
4
4
  * Terminate the given running application on Simulator.
@@ -10,9 +10,8 @@ import type { Simctl } from '../simctl';
10
10
  * returns non-zero return code.
11
11
  * @throws {Error} If the `udid` instance property is unset
12
12
  */
13
- export async function terminateApp (this: Simctl, bundleId: string): Promise<void> {
13
+ export async function terminateApp(this: Simctl, bundleId: string): Promise<void> {
14
14
  await this.exec('terminate', {
15
15
  args: [this.requireUdid('terminate'), bundleId],
16
16
  });
17
17
  }
18
-
@@ -1,5 +1,5 @@
1
1
  import _ from 'lodash';
2
- import type { Simctl } from '../simctl';
2
+ import type {Simctl} from '../simctl';
3
3
 
4
4
  /**
5
5
  * Retrieves the current UI appearance value from the given simulator
@@ -10,7 +10,7 @@ import type { Simctl } from '../simctl';
10
10
  * or there was an error while getting the value
11
11
  * @throws {Error} If the `udid` instance property is unset
12
12
  */
13
- export async function getAppearance (this: Simctl): Promise<string> {
13
+ export async function getAppearance(this: Simctl): Promise<string> {
14
14
  const {stdout} = await this.exec('ui', {
15
15
  args: [this.requireUdid('ui'), 'appearance'],
16
16
  });
@@ -26,7 +26,7 @@ export async function getAppearance (this: Simctl): Promise<string> {
26
26
  * or there was an error while getting the value
27
27
  * @throws {Error} If the `udid` instance property is unset
28
28
  */
29
- export async function setAppearance (this: Simctl, appearance: string): Promise<void> {
29
+ export async function setAppearance(this: Simctl, appearance: string): Promise<void> {
30
30
  await this.exec('ui', {
31
31
  args: [this.requireUdid('ui'), 'appearance', appearance],
32
32
  });
@@ -48,7 +48,7 @@ export async function setAppearance (this: Simctl, appearance: string): Promise<
48
48
  * or there was an error while getting the value.
49
49
  * @throws {Error} If the `udid` instance property is unset
50
50
  */
51
- export async function getIncreaseContrast (this: Simctl): Promise<string> {
51
+ export async function getIncreaseContrast(this: Simctl): Promise<string> {
52
52
  const {stdout} = await this.exec('ui', {
53
53
  args: [this.requireUdid('ui'), 'increase_contrast'],
54
54
  });
@@ -68,7 +68,7 @@ export async function getIncreaseContrast (this: Simctl): Promise<string> {
68
68
  * or the given value was invalid for the command.
69
69
  * @throws {Error} If the `udid` instance property is unset
70
70
  */
71
- export async function setIncreaseContrast (this: Simctl, increaseContrast: string): Promise<void> {
71
+ export async function setIncreaseContrast(this: Simctl, increaseContrast: string): Promise<void> {
72
72
  await this.exec('ui', {
73
73
  args: [this.requireUdid('ui'), 'increase_contrast', increaseContrast],
74
74
  });
@@ -95,7 +95,7 @@ export async function setIncreaseContrast (this: Simctl, increaseContrast: strin
95
95
  * or there was an error while getting the value.
96
96
  * @throws {Error} If the `udid` instance property is unset
97
97
  */
98
- export async function getContentSize (this: Simctl): Promise<string> {
98
+ export async function getContentSize(this: Simctl): Promise<string> {
99
99
  const {stdout} = await this.exec('ui', {
100
100
  args: [this.requireUdid('ui'), 'content_size'],
101
101
  });
@@ -124,9 +124,8 @@ export async function getContentSize (this: Simctl): Promise<string> {
124
124
  * or the given value was invalid for the command.
125
125
  * @throws {Error} If the `udid` instance property is unset
126
126
  */
127
- export async function setContentSize (this: Simctl, contentSizeAction: string): Promise<void> {
127
+ export async function setContentSize(this: Simctl, contentSizeAction: string): Promise<void> {
128
128
  await this.exec('ui', {
129
129
  args: [this.requireUdid('ui'), 'content_size', contentSizeAction],
130
130
  });
131
131
  }
132
-
@@ -1,4 +1,4 @@
1
- import type { Simctl } from '../simctl';
1
+ import type {Simctl} from '../simctl';
2
2
 
3
3
  /**
4
4
  * Remove the particular application package from Simulator.
@@ -11,9 +11,8 @@ import type { Simctl } from '../simctl';
11
11
  * returns non-zero return code.
12
12
  * @throws {Error} If the `udid` instance property is unset
13
13
  */
14
- export async function removeApp (this: Simctl, bundleId: string): Promise<void> {
14
+ export async function removeApp(this: Simctl, bundleId: string): Promise<void> {
15
15
  await this.exec('uninstall', {
16
16
  args: [this.requireUdid('uninstall'), bundleId],
17
17
  });
18
18
  }
19
-
package/lib/types.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { SubProcess, TeenProcessExecResult } from 'teen_process';
1
+ import type {SubProcess, TeenProcessExecResult} from 'teen_process';
2
2
 
3
3
  /**
4
4
  * XCRun configuration
@@ -240,4 +240,3 @@ export interface AppInfo {
240
240
  */
241
241
  SBAppTags?: string[];
242
242
  }
243
-
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "ios",
7
7
  "simctl"
8
8
  ],
9
- "version": "8.1.5",
9
+ "version": "8.1.6",
10
10
  "author": "Appium Contributors",
11
11
  "license": "Apache-2.0",
12
12
  "repository": {
@@ -50,6 +50,8 @@
50
50
  "dev": "npm run build -- --watch",
51
51
  "lint": "eslint .",
52
52
  "lint:fix": "npm run lint -- --fix",
53
+ "format": "prettier -w ./lib ./test",
54
+ "format:check": "prettier --check ./lib ./test",
53
55
  "prepare": "npm run build",
54
56
  "test": "mocha --exit --timeout 1m \"./test/unit/**/*-specs.ts\"",
55
57
  "e2e-test": "mocha --exit --timeout 5m \"./test/e2e/**/*-specs.ts\""