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.
- package/CHANGELOG.md +6 -0
- package/build/lib/helpers.d.ts.map +1 -1
- package/build/lib/helpers.js.map +1 -1
- package/build/lib/logger.js.map +1 -1
- package/build/lib/simctl.d.ts.map +1 -1
- package/build/lib/simctl.js +5 -2
- package/build/lib/simctl.js.map +1 -1
- package/build/lib/subcommands/addmedia.d.ts.map +1 -1
- 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.map +1 -1
- package/build/lib/subcommands/boot.d.ts.map +1 -1
- package/build/lib/subcommands/boot.js +1 -1
- package/build/lib/subcommands/boot.js.map +1 -1
- package/build/lib/subcommands/bootstatus.d.ts.map +1 -1
- 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 +2 -2
- package/build/lib/subcommands/create.js.map +1 -1
- package/build/lib/subcommands/delete.d.ts.map +1 -1
- package/build/lib/subcommands/delete.js +1 -1
- package/build/lib/subcommands/erase.d.ts.map +1 -1
- package/build/lib/subcommands/erase.js +1 -1
- package/build/lib/subcommands/erase.js.map +1 -1
- package/build/lib/subcommands/get_app_container.d.ts.map +1 -1
- package/build/lib/subcommands/getenv.d.ts.map +1 -1
- package/build/lib/subcommands/getenv.js.map +1 -1
- package/build/lib/subcommands/install.d.ts.map +1 -1
- package/build/lib/subcommands/install.js.map +1 -1
- package/build/lib/subcommands/io.d.ts.map +1 -1
- package/build/lib/subcommands/io.js.map +1 -1
- package/build/lib/subcommands/keychain.d.ts.map +1 -1
- package/build/lib/subcommands/keychain.js +2 -2
- package/build/lib/subcommands/keychain.js.map +1 -1
- package/build/lib/subcommands/launch.d.ts.map +1 -1
- 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 +4 -3
- package/build/lib/subcommands/list.js.map +1 -1
- package/build/lib/subcommands/location.d.ts.map +1 -1
- package/build/lib/subcommands/location.js.map +1 -1
- package/build/lib/subcommands/openurl.d.ts.map +1 -1
- 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 +2 -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.map +1 -1
- package/build/lib/subcommands/privacy.d.ts.map +1 -1
- package/build/lib/subcommands/privacy.js.map +1 -1
- package/build/lib/subcommands/push.d.ts.map +1 -1
- package/build/lib/subcommands/push.js.map +1 -1
- package/build/lib/subcommands/shutdown.d.ts.map +1 -1
- package/build/lib/subcommands/shutdown.js.map +1 -1
- package/build/lib/subcommands/spawn.d.ts.map +1 -1
- package/build/lib/subcommands/spawn.js +2 -2
- package/build/lib/subcommands/spawn.js.map +1 -1
- package/build/lib/subcommands/terminate.d.ts.map +1 -1
- package/build/lib/subcommands/terminate.js.map +1 -1
- package/build/lib/subcommands/ui.d.ts.map +1 -1
- package/build/lib/subcommands/ui.js.map +1 -1
- package/build/lib/subcommands/uninstall.d.ts.map +1 -1
- package/build/lib/subcommands/uninstall.js.map +1 -1
- package/build/lib/types.d.ts.map +1 -1
- package/lib/helpers.ts +9 -8
- package/lib/logger.ts +2 -2
- package/lib/simctl.ts +34 -32
- package/lib/subcommands/addmedia.ts +6 -3
- package/lib/subcommands/appinfo.ts +5 -5
- package/lib/subcommands/boot.ts +4 -4
- package/lib/subcommands/bootstatus.ts +82 -80
- package/lib/subcommands/create.ts +22 -20
- package/lib/subcommands/delete.ts +3 -4
- package/lib/subcommands/erase.ts +10 -8
- package/lib/subcommands/get_app_container.ts +3 -4
- package/lib/subcommands/getenv.ts +2 -3
- package/lib/subcommands/install.ts +2 -3
- package/lib/subcommands/io.ts +4 -5
- package/lib/subcommands/keychain.ts +21 -24
- package/lib/subcommands/launch.ts +7 -4
- package/lib/subcommands/list.ts +48 -38
- package/lib/subcommands/location.ts +5 -6
- package/lib/subcommands/openurl.ts +3 -3
- package/lib/subcommands/pbcopy.ts +6 -7
- package/lib/subcommands/pbpaste.ts +5 -3
- package/lib/subcommands/privacy.ts +8 -5
- package/lib/subcommands/push.ts +4 -5
- package/lib/subcommands/shutdown.ts +3 -4
- package/lib/subcommands/spawn.ts +8 -9
- package/lib/subcommands/terminate.ts +2 -3
- package/lib/subcommands/ui.ts +7 -8
- package/lib/subcommands/uninstall.ts +2 -3
- package/lib/types.ts +1 -2
- package/package.json +3 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
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
|
|
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
|
-
|
package/lib/subcommands/ui.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _ from 'lodash';
|
|
2
|
-
import type {
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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 {
|
|
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
|
|
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 {
|
|
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.
|
|
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\""
|