node-simctl 8.2.9 → 9.0.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 (145) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/build/lib/helpers.js +10 -49
  3. package/build/lib/helpers.js.map +1 -1
  4. package/build/lib/index.d.ts +2 -2
  5. package/build/lib/index.d.ts.map +1 -1
  6. package/build/lib/index.js +3 -6
  7. package/build/lib/index.js.map +1 -1
  8. package/build/lib/logger.d.ts +1 -1
  9. package/build/lib/logger.d.ts.map +1 -1
  10. package/build/lib/logger.js +3 -9
  11. package/build/lib/logger.js.map +1 -1
  12. package/build/lib/simctl.d.ts +26 -26
  13. package/build/lib/simctl.d.ts.map +1 -1
  14. package/build/lib/simctl.js +37 -77
  15. package/build/lib/simctl.js.map +1 -1
  16. package/build/lib/subcommands/addmedia.d.ts +1 -1
  17. package/build/lib/subcommands/addmedia.d.ts.map +1 -1
  18. package/build/lib/subcommands/addmedia.js +1 -4
  19. package/build/lib/subcommands/addmedia.js.map +1 -1
  20. package/build/lib/subcommands/appinfo.d.ts +2 -2
  21. package/build/lib/subcommands/appinfo.d.ts.map +1 -1
  22. package/build/lib/subcommands/appinfo.js +3 -6
  23. package/build/lib/subcommands/appinfo.js.map +1 -1
  24. package/build/lib/subcommands/boot.d.ts +1 -1
  25. package/build/lib/subcommands/boot.d.ts.map +1 -1
  26. package/build/lib/subcommands/boot.js +3 -6
  27. package/build/lib/subcommands/boot.js.map +1 -1
  28. package/build/lib/subcommands/bootstatus.d.ts +2 -2
  29. package/build/lib/subcommands/bootstatus.d.ts.map +1 -1
  30. package/build/lib/subcommands/bootstatus.js +5 -8
  31. package/build/lib/subcommands/bootstatus.js.map +1 -1
  32. package/build/lib/subcommands/create.d.ts +2 -2
  33. package/build/lib/subcommands/create.d.ts.map +1 -1
  34. package/build/lib/subcommands/create.js +9 -12
  35. package/build/lib/subcommands/create.js.map +1 -1
  36. package/build/lib/subcommands/delete.d.ts +1 -1
  37. package/build/lib/subcommands/delete.d.ts.map +1 -1
  38. package/build/lib/subcommands/delete.js +1 -4
  39. package/build/lib/subcommands/delete.js.map +1 -1
  40. package/build/lib/subcommands/erase.d.ts +1 -1
  41. package/build/lib/subcommands/erase.d.ts.map +1 -1
  42. package/build/lib/subcommands/erase.js +3 -6
  43. package/build/lib/subcommands/erase.js.map +1 -1
  44. package/build/lib/subcommands/get_app_container.d.ts +1 -1
  45. package/build/lib/subcommands/get_app_container.d.ts.map +1 -1
  46. package/build/lib/subcommands/get_app_container.js +1 -4
  47. package/build/lib/subcommands/get_app_container.js.map +1 -1
  48. package/build/lib/subcommands/getenv.d.ts +1 -1
  49. package/build/lib/subcommands/getenv.d.ts.map +1 -1
  50. package/build/lib/subcommands/getenv.js +1 -4
  51. package/build/lib/subcommands/getenv.js.map +1 -1
  52. package/build/lib/subcommands/install.d.ts +1 -1
  53. package/build/lib/subcommands/install.d.ts.map +1 -1
  54. package/build/lib/subcommands/install.js +1 -4
  55. package/build/lib/subcommands/install.js.map +1 -1
  56. package/build/lib/subcommands/io.d.ts +1 -1
  57. package/build/lib/subcommands/io.d.ts.map +1 -1
  58. package/build/lib/subcommands/io.js +9 -15
  59. package/build/lib/subcommands/io.js.map +1 -1
  60. package/build/lib/subcommands/keychain.d.ts +2 -2
  61. package/build/lib/subcommands/keychain.d.ts.map +1 -1
  62. package/build/lib/subcommands/keychain.js +12 -20
  63. package/build/lib/subcommands/keychain.js.map +1 -1
  64. package/build/lib/subcommands/launch.d.ts +1 -1
  65. package/build/lib/subcommands/launch.d.ts.map +1 -1
  66. package/build/lib/subcommands/launch.js +3 -6
  67. package/build/lib/subcommands/launch.js.map +1 -1
  68. package/build/lib/subcommands/list.d.ts +2 -2
  69. package/build/lib/subcommands/list.d.ts.map +1 -1
  70. package/build/lib/subcommands/list.js +12 -20
  71. package/build/lib/subcommands/list.js.map +1 -1
  72. package/build/lib/subcommands/location.d.ts +1 -1
  73. package/build/lib/subcommands/location.d.ts.map +1 -1
  74. package/build/lib/subcommands/location.js +2 -6
  75. package/build/lib/subcommands/location.js.map +1 -1
  76. package/build/lib/subcommands/openurl.d.ts +1 -1
  77. package/build/lib/subcommands/openurl.d.ts.map +1 -1
  78. package/build/lib/subcommands/openurl.js +1 -4
  79. package/build/lib/subcommands/openurl.js.map +1 -1
  80. package/build/lib/subcommands/pbcopy.d.ts +1 -1
  81. package/build/lib/subcommands/pbcopy.d.ts.map +1 -1
  82. package/build/lib/subcommands/pbcopy.js +1 -4
  83. package/build/lib/subcommands/pbcopy.js.map +1 -1
  84. package/build/lib/subcommands/pbpaste.d.ts +1 -1
  85. package/build/lib/subcommands/pbpaste.d.ts.map +1 -1
  86. package/build/lib/subcommands/pbpaste.js +1 -4
  87. package/build/lib/subcommands/pbpaste.js.map +1 -1
  88. package/build/lib/subcommands/privacy.d.ts +1 -1
  89. package/build/lib/subcommands/privacy.d.ts.map +1 -1
  90. package/build/lib/subcommands/privacy.js +3 -8
  91. package/build/lib/subcommands/privacy.js.map +1 -1
  92. package/build/lib/subcommands/push.d.ts +1 -1
  93. package/build/lib/subcommands/push.d.ts.map +1 -1
  94. package/build/lib/subcommands/push.js +9 -15
  95. package/build/lib/subcommands/push.js.map +1 -1
  96. package/build/lib/subcommands/shutdown.d.ts +1 -1
  97. package/build/lib/subcommands/shutdown.d.ts.map +1 -1
  98. package/build/lib/subcommands/shutdown.js +3 -6
  99. package/build/lib/subcommands/shutdown.js.map +1 -1
  100. package/build/lib/subcommands/spawn.d.ts +1 -1
  101. package/build/lib/subcommands/spawn.d.ts.map +1 -1
  102. package/build/lib/subcommands/spawn.js +2 -6
  103. package/build/lib/subcommands/spawn.js.map +1 -1
  104. package/build/lib/subcommands/terminate.d.ts +1 -1
  105. package/build/lib/subcommands/terminate.d.ts.map +1 -1
  106. package/build/lib/subcommands/terminate.js +1 -4
  107. package/build/lib/subcommands/terminate.js.map +1 -1
  108. package/build/lib/subcommands/ui.d.ts +1 -1
  109. package/build/lib/subcommands/ui.d.ts.map +1 -1
  110. package/build/lib/subcommands/ui.js +6 -14
  111. package/build/lib/subcommands/ui.js.map +1 -1
  112. package/build/lib/subcommands/uninstall.d.ts +1 -1
  113. package/build/lib/subcommands/uninstall.d.ts.map +1 -1
  114. package/build/lib/subcommands/uninstall.js +1 -4
  115. package/build/lib/subcommands/uninstall.js.map +1 -1
  116. package/build/lib/types.js +1 -2
  117. package/lib/index.ts +2 -2
  118. package/lib/logger.ts +1 -1
  119. package/lib/simctl.ts +28 -28
  120. package/lib/subcommands/addmedia.ts +1 -1
  121. package/lib/subcommands/appinfo.ts +3 -3
  122. package/lib/subcommands/boot.ts +2 -2
  123. package/lib/subcommands/bootstatus.ts +3 -3
  124. package/lib/subcommands/create.ts +4 -4
  125. package/lib/subcommands/delete.ts +1 -1
  126. package/lib/subcommands/erase.ts +1 -1
  127. package/lib/subcommands/get_app_container.ts +1 -1
  128. package/lib/subcommands/getenv.ts +1 -1
  129. package/lib/subcommands/install.ts +1 -1
  130. package/lib/subcommands/io.ts +1 -1
  131. package/lib/subcommands/keychain.ts +2 -2
  132. package/lib/subcommands/launch.ts +1 -1
  133. package/lib/subcommands/list.ts +4 -4
  134. package/lib/subcommands/location.ts +1 -1
  135. package/lib/subcommands/openurl.ts +1 -1
  136. package/lib/subcommands/pbcopy.ts +1 -1
  137. package/lib/subcommands/pbpaste.ts +1 -1
  138. package/lib/subcommands/privacy.ts +1 -1
  139. package/lib/subcommands/push.ts +1 -1
  140. package/lib/subcommands/shutdown.ts +2 -2
  141. package/lib/subcommands/spawn.ts +1 -1
  142. package/lib/subcommands/terminate.ts +1 -1
  143. package/lib/subcommands/ui.ts +1 -1
  144. package/lib/subcommands/uninstall.ts +1 -1
  145. package/package.json +12 -4
@@ -1 +1 @@
1
- {"version":3,"file":"ui.js","sourceRoot":"","sources":["../../../lib/subcommands/ui.ts"],"names":[],"mappings":";;AAWA,sCAKC;AAWD,sCAIC;AAkBD,kDAKC;AAeD,kDAIC;AAuB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;;;;;;;;;;;GAYG;AACH,MAAM,CAAC,KAAK,UAAU,mBAAmB,CAAe,gBAAwB;IAC9E,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;QACpB,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,mBAAmB,EAAE,gBAAgB,CAAC;KACtE,CAAC,CAAC;AACL,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc;IAClC,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;QACrC,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,cAAc,CAAC;KAC/C,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;AACvB,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAe,iBAAyB;IAC1E,MAAM,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;QACpB,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,cAAc,EAAE,iBAAiB,CAAC;KAClE,CAAC,CAAC;AACL,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { Simctl } from '../simctl';
1
+ import type { Simctl } from '../simctl.js';
2
2
  /**
3
3
  * Remove the particular application package from Simulator.
4
4
  * It is required that Simulator is in _booted_ state and
@@ -1 +1 @@
1
- {"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/uninstall.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,WAAW,CAAC;AAEtC;;;;;;;;;;GAUG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAI7E"}
1
+ {"version":3,"file":"uninstall.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/uninstall.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,MAAM,EAAC,MAAM,cAAc,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,wBAAsB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAI7E"}
@@ -1,6 +1,3 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.removeApp = removeApp;
4
1
  /**
5
2
  * Remove the particular application package from Simulator.
6
3
  * It is required that Simulator is in _booted_ state and
@@ -12,7 +9,7 @@ exports.removeApp = removeApp;
12
9
  * returns non-zero return code.
13
10
  * @throws {Error} If the `udid` instance property is unset
14
11
  */
15
- async function removeApp(bundleId) {
12
+ export async function removeApp(bundleId) {
16
13
  await this.exec('uninstall', {
17
14
  args: [this.requireUdid('uninstall'), bundleId],
18
15
  });
@@ -1 +1 @@
1
- {"version":3,"file":"uninstall.js","sourceRoot":"","sources":["../../../lib/subcommands/uninstall.ts"],"names":[],"mappings":";;AAaA,8BAIC;AAfD;;;;;;;;;;GAUG;AACI,KAAK,UAAU,SAAS,CAAe,QAAgB;IAC5D,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;QAC3B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC;KAChD,CAAC,CAAC;AACL,CAAC"}
1
+ {"version":3,"file":"uninstall.js","sourceRoot":"","sources":["../../../lib/subcommands/uninstall.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAAe,QAAgB;IAC5D,MAAM,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE;QAC3B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC,EAAE,QAAQ,CAAC;KAChD,CAAC,CAAC;AACL,CAAC"}
@@ -1,3 +1,2 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
1
+ export {};
3
2
  //# sourceMappingURL=types.js.map
package/lib/index.ts CHANGED
@@ -1,4 +1,4 @@
1
- import {Simctl} from './simctl';
1
+ import {Simctl} from './simctl.js';
2
2
  export type {
3
3
  SimctlOpts,
4
4
  DeviceInfo,
@@ -7,7 +7,7 @@ export type {
7
7
  CertOptions,
8
8
  XCRun,
9
9
  AppInfo,
10
- } from './types';
10
+ } from './types.js';
11
11
 
12
12
  export {Simctl};
13
13
  export default Simctl;
package/lib/logger.ts CHANGED
@@ -1,4 +1,4 @@
1
- import appiumLogger from '@appium/logger';
1
+ import {log as appiumLogger} from '@appium/logger';
2
2
 
3
3
  export const LOG_PREFIX = 'simctl';
4
4
 
package/lib/simctl.ts CHANGED
@@ -1,33 +1,33 @@
1
1
  import which from 'which';
2
- import {log, LOG_PREFIX} from './logger';
3
- import {DEFAULT_EXEC_TIMEOUT, getXcrunBinary} from './helpers';
2
+ import {log, LOG_PREFIX} from './logger.js';
3
+ import {DEFAULT_EXEC_TIMEOUT, getXcrunBinary} from './helpers.js';
4
4
  import {exec as tpExec, SubProcess} from 'teen_process';
5
- import * as addmediaCommands from './subcommands/addmedia';
6
- import * as appinfoCommands from './subcommands/appinfo';
7
- import * as bootCommands from './subcommands/boot';
8
- import * as bootstatusCommands from './subcommands/bootstatus';
9
- import * as createCommands from './subcommands/create';
10
- import * as deleteCommands from './subcommands/delete';
11
- import * as eraseCommands from './subcommands/erase';
12
- import * as getappcontainerCommands from './subcommands/get_app_container';
13
- import * as installCommands from './subcommands/install';
14
- import * as ioCommands from './subcommands/io';
15
- import * as keychainCommands from './subcommands/keychain';
16
- import * as launchCommands from './subcommands/launch';
17
- import * as listCommands from './subcommands/list';
18
- import * as openurlCommands from './subcommands/openurl';
19
- import * as pbcopyCommands from './subcommands/pbcopy';
20
- import * as pbpasteCommands from './subcommands/pbpaste';
21
- import * as privacyCommands from './subcommands/privacy';
22
- import * as pushCommands from './subcommands/push';
23
- import * as envCommands from './subcommands/getenv';
24
- import * as shutdownCommands from './subcommands/shutdown';
25
- import * as spawnCommands from './subcommands/spawn';
26
- import * as terminateCommands from './subcommands/terminate';
27
- import * as uiCommands from './subcommands/ui';
28
- import * as uninstallCommands from './subcommands/uninstall';
29
- import * as locationCommands from './subcommands/location';
30
- import type {XCRun, ExecOpts, SimctlOpts, ExecResult} from './types';
5
+ import * as addmediaCommands from './subcommands/addmedia.js';
6
+ import * as appinfoCommands from './subcommands/appinfo.js';
7
+ import * as bootCommands from './subcommands/boot.js';
8
+ import * as bootstatusCommands from './subcommands/bootstatus.js';
9
+ import * as createCommands from './subcommands/create.js';
10
+ import * as deleteCommands from './subcommands/delete.js';
11
+ import * as eraseCommands from './subcommands/erase.js';
12
+ import * as getappcontainerCommands from './subcommands/get_app_container.js';
13
+ import * as installCommands from './subcommands/install.js';
14
+ import * as ioCommands from './subcommands/io.js';
15
+ import * as keychainCommands from './subcommands/keychain.js';
16
+ import * as launchCommands from './subcommands/launch.js';
17
+ import * as listCommands from './subcommands/list.js';
18
+ import * as openurlCommands from './subcommands/openurl.js';
19
+ import * as pbcopyCommands from './subcommands/pbcopy.js';
20
+ import * as pbpasteCommands from './subcommands/pbpaste.js';
21
+ import * as privacyCommands from './subcommands/privacy.js';
22
+ import * as pushCommands from './subcommands/push.js';
23
+ import * as envCommands from './subcommands/getenv.js';
24
+ import * as shutdownCommands from './subcommands/shutdown.js';
25
+ import * as spawnCommands from './subcommands/spawn.js';
26
+ import * as terminateCommands from './subcommands/terminate.js';
27
+ import * as uiCommands from './subcommands/ui.js';
28
+ import * as uninstallCommands from './subcommands/uninstall.js';
29
+ import * as locationCommands from './subcommands/location.js';
30
+ import type {XCRun, ExecOpts, SimctlOpts, ExecResult} from './types.js';
31
31
 
32
32
  const SIMCTL_ENV_PREFIX = 'SIMCTL_CHILD_';
33
33
 
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
  import type {TeenProcessExecResult} from 'teen_process';
3
3
 
4
4
  /**
@@ -1,6 +1,6 @@
1
- import type {Simctl} from '../simctl';
2
- import type {AppInfo} from '../types';
3
- import {convertPlistToJson} from '../helpers';
1
+ import type {Simctl} from '../simctl.js';
2
+ import type {AppInfo} from '../types.js';
3
+ import {convertPlistToJson} from '../helpers.js';
4
4
 
5
5
  /**
6
6
  * Get information about an app installed on the simulator
@@ -1,5 +1,5 @@
1
- import {log, LOG_PREFIX} from '../logger';
2
- import type {Simctl} from '../simctl';
1
+ import {log, LOG_PREFIX} from '../logger.js';
2
+ import type {Simctl} from '../simctl.js';
3
3
 
4
4
  /**
5
5
  * Boot the particular Simulator if it is not running.
@@ -1,7 +1,7 @@
1
- import {log, LOG_PREFIX} from '../logger';
1
+ import {log, LOG_PREFIX} from '../logger.js';
2
2
  import {waitForCondition} from 'asyncbox';
3
- import type {Simctl} from '../simctl';
4
- import type {BootMonitorOptions} from '../types';
3
+ import type {Simctl} from '../simctl.js';
4
+ import type {BootMonitorOptions} from '../types.js';
5
5
  import type {SubProcess} from 'teen_process';
6
6
 
7
7
  /**
@@ -1,8 +1,8 @@
1
- import {log, LOG_PREFIX} from '../logger';
1
+ import {log, LOG_PREFIX} from '../logger.js';
2
2
  import {retryInterval} from 'asyncbox';
3
- import {SIM_RUNTIME_NAME, normalizeVersion} from '../helpers';
4
- import type {Simctl} from '../simctl';
5
- import type {SimCreationOpts} from '../types';
3
+ import {SIM_RUNTIME_NAME, normalizeVersion} from '../helpers.js';
4
+ import type {Simctl} from '../simctl.js';
5
+ import type {SimCreationOpts} from '../types.js';
6
6
 
7
7
  const SIM_RUNTIME_NAME_SUFFIX_IOS = 'iOS';
8
8
  const DEFAULT_CREATE_SIMULATOR_TIMEOUT = 10000;
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
 
3
3
  /**
4
4
  * Delete the particular Simulator from available devices list.
@@ -1,5 +1,5 @@
1
1
  import {retryInterval} from 'asyncbox';
2
- import type {Simctl} from '../simctl';
2
+ import type {Simctl} from '../simctl.js';
3
3
 
4
4
  /**
5
5
  * Reset the content and settings of the particular Simulator.
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
 
3
3
  /**
4
4
  * Get the full path to the particular application container
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
 
3
3
  /**
4
4
  * Retrieves the value of a Simulator environment variable
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
 
3
3
  /**
4
4
  * Install the particular application package on Simulator.
@@ -3,7 +3,7 @@ import {randomUUID} from 'node:crypto';
3
3
  import path from 'node:path';
4
4
  import os from 'node:os';
5
5
  import fs from 'node:fs/promises';
6
- import type {Simctl} from '../simctl';
6
+ import type {Simctl} from '../simctl.js';
7
7
 
8
8
  /**
9
9
  * Gets base64 screenshot for device
@@ -3,8 +3,8 @@ import fs from 'node:fs/promises';
3
3
  import {randomUUID} from 'node:crypto';
4
4
  import path from 'node:path';
5
5
  import {rimraf} from 'rimraf';
6
- import type {Simctl} from '../simctl';
7
- import type {CertOptions} from '../types';
6
+ import type {Simctl} from '../simctl.js';
7
+ import type {CertOptions} from '../types.js';
8
8
 
9
9
  /**
10
10
  * Adds the given certificate to the Trusted Root Store on the simulator
@@ -1,5 +1,5 @@
1
1
  import {retryInterval} from 'asyncbox';
2
- import type {Simctl} from '../simctl';
2
+ import type {Simctl} from '../simctl.js';
3
3
 
4
4
  /**
5
5
  * Execute the particular application package on Simulator.
@@ -1,7 +1,7 @@
1
- import {SIM_RUNTIME_NAME, normalizeVersion} from '../helpers';
2
- import {log, LOG_PREFIX} from '../logger';
3
- import type {Simctl} from '../simctl';
4
- import type {DeviceInfo} from '../types';
1
+ import {SIM_RUNTIME_NAME, normalizeVersion} from '../helpers.js';
2
+ import {log, LOG_PREFIX} from '../logger.js';
3
+ import type {Simctl} from '../simctl.js';
4
+ import type {DeviceInfo} from '../types.js';
5
5
 
6
6
  /**
7
7
  * Parse the list of existing Simulator devices to represent
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
 
3
3
  /**
4
4
  * Set the Simulator location to a specific latitude and longitude.
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
  import type {TeenProcessExecResult} from 'teen_process';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
  import type {SubProcess} from 'teen_process';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
 
3
3
  /**
4
4
  * Get the content of Simulator pasteboard.
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
 
3
3
  /**
4
4
  * Grants the given permission on the app with the given bundle identifier
@@ -3,7 +3,7 @@ import {randomUUID} from 'node:crypto';
3
3
  import path from 'node:path';
4
4
  import os from 'node:os';
5
5
  import fs from 'node:fs/promises';
6
- import type {Simctl} from '../simctl';
6
+ import type {Simctl} from '../simctl.js';
7
7
 
8
8
  /**
9
9
  * Send a simulated push notification
@@ -1,5 +1,5 @@
1
- import {log, LOG_PREFIX} from '../logger';
2
- import type {Simctl} from '../simctl';
1
+ import {log, LOG_PREFIX} from '../logger.js';
2
+ import type {Simctl} from '../simctl.js';
3
3
 
4
4
  /**
5
5
  * Shutdown the given Simulator if it is running.
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
  import type {TeenProcessExecResult, SubProcess} from 'teen_process';
3
3
 
4
4
  /**
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
 
3
3
  /**
4
4
  * Terminate the given running application on Simulator.
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
 
3
3
  /**
4
4
  * Retrieves the current UI appearance value from the given simulator
@@ -1,4 +1,4 @@
1
- import type {Simctl} from '../simctl';
1
+ import type {Simctl} from '../simctl.js';
2
2
 
3
3
  /**
4
4
  * Remove the particular application package from Simulator.
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "ios",
7
7
  "simctl"
8
8
  ],
9
- "version": "8.2.9",
9
+ "version": "9.0.0",
10
10
  "author": "Appium Contributors",
11
11
  "license": "Apache-2.0",
12
12
  "repository": {
@@ -48,8 +48,8 @@
48
48
  "format": "prettier -w ./lib ./test",
49
49
  "format:check": "prettier --check ./lib ./test",
50
50
  "prepare": "npm run build",
51
- "test": "node --test --test-timeout=60000 \"./build/test/unit/**/*.spec.js\"",
52
- "e2e-test": "node --test --test-force-exit --test-concurrency=1 --test-timeout=300000 \"./build/test/e2e/**/*.spec.js\""
51
+ "test": "node --enable-source-maps --test --test-timeout=60000 \"./build/test/unit/**/*.spec.js\"",
52
+ "e2e-test": "node --enable-source-maps --test --test-force-exit --test-concurrency=1 --test-timeout=300000 \"./build/test/e2e/**/*.spec.js\""
53
53
  },
54
54
  "prettier": {
55
55
  "bracketSpacing": false,
@@ -77,5 +77,13 @@
77
77
  "sinon": "^22.0.0",
78
78
  "typescript": "^6.0.2"
79
79
  },
80
- "types": "./build/lib/index.d.ts"
80
+ "types": "./build/lib/index.d.ts",
81
+ "type": "module",
82
+ "exports": {
83
+ ".": {
84
+ "types": "./build/lib/index.d.ts",
85
+ "import": "./build/lib/index.js"
86
+ },
87
+ "./package.json": "./package.json"
88
+ }
81
89
  }