node-simctl 7.2.2 → 7.3.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 (130) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/build/index.js +9 -17
  3. package/build/lib/helpers.d.ts +13 -0
  4. package/build/lib/helpers.d.ts.map +1 -0
  5. package/build/lib/helpers.js +22 -16
  6. package/build/lib/helpers.js.map +1 -1
  7. package/build/lib/logger.d.ts +4 -0
  8. package/build/lib/logger.d.ts.map +1 -0
  9. package/build/lib/logger.js +13 -19
  10. package/build/lib/logger.js.map +1 -1
  11. package/build/lib/simctl.d.ts +131 -0
  12. package/build/lib/simctl.d.ts.map +1 -0
  13. package/build/lib/simctl.js +170 -94
  14. package/build/lib/simctl.js.map +1 -1
  15. package/build/lib/subcommands/addmedia.d.ts +16 -0
  16. package/build/lib/subcommands/addmedia.d.ts.map +1 -0
  17. package/build/lib/subcommands/addmedia.js +17 -12
  18. package/build/lib/subcommands/addmedia.js.map +1 -1
  19. package/build/lib/subcommands/appinfo.d.ts +45 -0
  20. package/build/lib/subcommands/appinfo.d.ts.map +1 -0
  21. package/build/lib/subcommands/appinfo.js +47 -15
  22. package/build/lib/subcommands/appinfo.js.map +1 -1
  23. package/build/lib/subcommands/boot.d.ts +12 -0
  24. package/build/lib/subcommands/boot.d.ts.map +1 -0
  25. package/build/lib/subcommands/boot.js +47 -22
  26. package/build/lib/subcommands/boot.js.map +1 -1
  27. package/build/lib/subcommands/bootstatus.d.ts +56 -0
  28. package/build/lib/subcommands/bootstatus.d.ts.map +1 -0
  29. package/build/lib/subcommands/bootstatus.js +102 -87
  30. package/build/lib/subcommands/bootstatus.js.map +1 -1
  31. package/build/lib/subcommands/create.d.ts +34 -0
  32. package/build/lib/subcommands/create.d.ts.map +1 -0
  33. package/build/lib/subcommands/create.js +115 -65
  34. package/build/lib/subcommands/create.js.map +1 -1
  35. package/build/lib/subcommands/delete.d.ts +12 -0
  36. package/build/lib/subcommands/delete.d.ts.map +1 -0
  37. package/build/lib/subcommands/delete.js +13 -12
  38. package/build/lib/subcommands/delete.js.map +1 -1
  39. package/build/lib/subcommands/erase.d.ts +15 -0
  40. package/build/lib/subcommands/erase.d.ts.map +1 -0
  41. package/build/lib/subcommands/erase.js +19 -14
  42. package/build/lib/subcommands/erase.js.map +1 -1
  43. package/build/lib/subcommands/get_app_container.d.ts +22 -0
  44. package/build/lib/subcommands/get_app_container.d.ts.map +1 -0
  45. package/build/lib/subcommands/get_app_container.js +26 -19
  46. package/build/lib/subcommands/get_app_container.js.map +1 -1
  47. package/build/lib/subcommands/getenv.d.ts +14 -0
  48. package/build/lib/subcommands/getenv.d.ts.map +1 -0
  49. package/build/lib/subcommands/getenv.js +17 -17
  50. package/build/lib/subcommands/getenv.js.map +1 -1
  51. package/build/lib/subcommands/index.d.ts +3 -0
  52. package/build/lib/subcommands/index.d.ts.map +1 -0
  53. package/build/lib/subcommands/index.js +33 -36
  54. package/build/lib/subcommands/index.js.map +1 -1
  55. package/build/lib/subcommands/install.d.ts +15 -0
  56. package/build/lib/subcommands/install.d.ts.map +1 -0
  57. package/build/lib/subcommands/install.js +16 -12
  58. package/build/lib/subcommands/install.js.map +1 -1
  59. package/build/lib/subcommands/io.d.ts +15 -0
  60. package/build/lib/subcommands/io.d.ts.map +1 -0
  61. package/build/lib/subcommands/io.js +32 -25
  62. package/build/lib/subcommands/io.js.map +1 -1
  63. package/build/lib/subcommands/keychain.d.ts +53 -0
  64. package/build/lib/subcommands/keychain.d.ts.map +1 -0
  65. package/build/lib/subcommands/keychain.js +85 -51
  66. package/build/lib/subcommands/keychain.js.map +1 -1
  67. package/build/lib/subcommands/launch.d.ts +19 -0
  68. package/build/lib/subcommands/launch.d.ts.map +1 -0
  69. package/build/lib/subcommands/launch.js +28 -19
  70. package/build/lib/subcommands/launch.js.map +1 -1
  71. package/build/lib/subcommands/list.d.ts +120 -0
  72. package/build/lib/subcommands/list.d.ts.map +1 -0
  73. package/build/lib/subcommands/list.js +296 -138
  74. package/build/lib/subcommands/list.js.map +1 -1
  75. package/build/lib/subcommands/location.d.ts +20 -0
  76. package/build/lib/subcommands/location.d.ts.map +1 -0
  77. package/build/lib/subcommands/location.js +37 -22
  78. package/build/lib/subcommands/location.js.map +1 -1
  79. package/build/lib/subcommands/openurl.d.ts +17 -0
  80. package/build/lib/subcommands/openurl.d.ts.map +1 -0
  81. package/build/lib/subcommands/openurl.js +18 -12
  82. package/build/lib/subcommands/openurl.js.map +1 -1
  83. package/build/lib/subcommands/pbcopy.d.ts +17 -0
  84. package/build/lib/subcommands/pbcopy.d.ts.map +1 -0
  85. package/build/lib/subcommands/pbcopy.js +26 -20
  86. package/build/lib/subcommands/pbcopy.js.map +1 -1
  87. package/build/lib/subcommands/pbpaste.d.ts +17 -0
  88. package/build/lib/subcommands/pbpaste.d.ts.map +1 -0
  89. package/build/lib/subcommands/pbpaste.js +20 -16
  90. package/build/lib/subcommands/pbpaste.js.map +1 -1
  91. package/build/lib/subcommands/privacy.d.ts +55 -0
  92. package/build/lib/subcommands/privacy.d.ts.map +1 -0
  93. package/build/lib/subcommands/privacy.js +60 -18
  94. package/build/lib/subcommands/privacy.js.map +1 -1
  95. package/build/lib/subcommands/push.d.ts +25 -0
  96. package/build/lib/subcommands/push.d.ts.map +1 -0
  97. package/build/lib/subcommands/push.js +41 -24
  98. package/build/lib/subcommands/push.js.map +1 -1
  99. package/build/lib/subcommands/shutdown.d.ts +12 -0
  100. package/build/lib/subcommands/shutdown.d.ts.map +1 -0
  101. package/build/lib/subcommands/shutdown.js +47 -22
  102. package/build/lib/subcommands/shutdown.js.map +1 -1
  103. package/build/lib/subcommands/spawn.d.ts +26 -0
  104. package/build/lib/subcommands/spawn.d.ts.map +1 -0
  105. package/build/lib/subcommands/spawn.js +42 -26
  106. package/build/lib/subcommands/spawn.js.map +1 -1
  107. package/build/lib/subcommands/terminate.d.ts +15 -0
  108. package/build/lib/subcommands/terminate.d.ts.map +1 -0
  109. package/build/lib/subcommands/terminate.js +16 -12
  110. package/build/lib/subcommands/terminate.js.map +1 -1
  111. package/build/lib/subcommands/ui.d.ts +24 -0
  112. package/build/lib/subcommands/ui.d.ts.map +1 -0
  113. package/build/lib/subcommands/ui.js +32 -20
  114. package/build/lib/subcommands/ui.js.map +1 -1
  115. package/build/lib/subcommands/uninstall.d.ts +16 -0
  116. package/build/lib/subcommands/uninstall.d.ts.map +1 -0
  117. package/build/lib/subcommands/uninstall.js +17 -12
  118. package/build/lib/subcommands/uninstall.js.map +1 -1
  119. package/lib/simctl.js +13 -3
  120. package/lib/subcommands/addmedia.js +1 -1
  121. package/lib/subcommands/bootstatus.js +2 -2
  122. package/lib/subcommands/create.js +2 -2
  123. package/lib/subcommands/erase.js +1 -1
  124. package/lib/subcommands/keychain.js +2 -2
  125. package/lib/subcommands/launch.js +1 -0
  126. package/lib/subcommands/list.js +6 -6
  127. package/lib/subcommands/location.js +1 -1
  128. package/lib/subcommands/openurl.js +1 -1
  129. package/lib/subcommands/spawn.js +2 -2
  130. package/package.json +28 -17
@@ -1,30 +1,45 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- require("source-map-support/register");
2
+ Object.defineProperty(exports, "__esModule", { value: true });
8
3
  const commands = {};
4
+ /**
5
+ * Formats the given location argument for simctl usage
6
+ *
7
+ * @param {string} name Argument name
8
+ * @param {string|number} value Location argument value
9
+ * @returns {string} Formatted value, for example -73.768254
10
+ */
9
11
  function formatArg(name, value) {
10
- const flt = parseFloat(value);
11
- if (isNaN(flt)) {
12
- throw new TypeError(`${name} must be a valid number, got '${value}' instead`);
13
- }
14
- return flt.toFixed(7);
12
+ const flt = parseFloat(`${value}`);
13
+ if (isNaN(flt)) {
14
+ throw new TypeError(`${name} must be a valid number, got '${value}' instead`);
15
+ }
16
+ return flt.toFixed(7);
15
17
  }
18
+ /**
19
+ * Set the Simulator location to a specific latitude and longitude.
20
+ * This functionality is only available since Xcode 14.
21
+ *
22
+ * @param {string|number} latitude Location latitude value
23
+ * @param {string|number} longitude Location longitude value
24
+ * @throws {Error} If the corresponding simctl subcommand command
25
+ * returns non-zero return code.
26
+ * @throws {TypeError} If any of the arguments is not a valid value.
27
+ */
16
28
  commands.setLocation = async function setLocation(latitude, longitude) {
17
- const lat = formatArg('latitude', latitude);
18
- const lon = formatArg('longitude', longitude);
19
- await this.exec('location', {
20
- args: [this.requireUdid('location'), 'set', `${lat},${lon}`]
21
- });
29
+ const lat = formatArg('latitude', latitude);
30
+ const lon = formatArg('longitude', longitude);
31
+ await this.exec('location', {
32
+ args: [this.requireUdid('location'), 'set', `${lat},${lon}`],
33
+ });
22
34
  };
35
+ /**
36
+ * Stop any running scenario and clear any simulated location.
37
+ * This functionality is only available since Xcode 14.
38
+ */
23
39
  commands.clearLocation = async function clearLocation() {
24
- await this.exec('location', {
25
- args: [this.requireUdid('location'), 'clear']
26
- });
40
+ await this.exec('location', {
41
+ args: [this.requireUdid('location'), 'clear'],
42
+ });
27
43
  };
28
- var _default = commands;
29
- exports.default = _default;
30
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJjb21tYW5kcyIsImZvcm1hdEFyZyIsIm5hbWUiLCJ2YWx1ZSIsImZsdCIsInBhcnNlRmxvYXQiLCJpc05hTiIsIlR5cGVFcnJvciIsInRvRml4ZWQiLCJzZXRMb2NhdGlvbiIsImxhdGl0dWRlIiwibG9uZ2l0dWRlIiwibGF0IiwibG9uIiwiZXhlYyIsImFyZ3MiLCJyZXF1aXJlVWRpZCIsImNsZWFyTG9jYXRpb24iLCJfZGVmYXVsdCIsImV4cG9ydHMiLCJkZWZhdWx0Il0sInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL3N1YmNvbW1hbmRzL2xvY2F0aW9uLmpzIl0sInNvdXJjZXNDb250ZW50IjpbImNvbnN0IGNvbW1hbmRzID0ge307XG5cbi8qKlxuICogRm9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map
@@ -1 +1 @@
1
- {"version":3,"file":"location.js","names":["commands","formatArg","name","value","flt","parseFloat","isNaN","TypeError","toFixed","setLocation","latitude","longitude","lat","lon","exec","args","requireUdid","clearLocation","_default","exports","default"],"sources":["../../../lib/subcommands/location.js"],"sourcesContent":["const commands = {};\n\n/**\n * Formats the given location argument for simctl usage\n *\n * @param {string} name Argument name\n * @param {string|number} value Location argument value\n * @returns {string} Formatted value, for example -73.768254\n */\nfunction formatArg (name, value) {\n const flt = parseFloat(value);\n if (isNaN(flt)) {\n throw new TypeError(`${name} must be a valid number, got '${value}' instead`);\n }\n return flt.toFixed(7);\n}\n\n/**\n * Set the Simulator location to a specific latitude and longitude.\n * This functionality is only available since Xcode 14.\n *\n * @param {string|number} latitude Location latitude value\n * @param {string|number} longitude Location longitude value\n * @throws {Error} If the corresponding simctl subcommand command\n * returns non-zero return code.\n * @throws {TypeError} If any of the arguments is not a valid value.\n */\ncommands.setLocation = async function setLocation (latitude, longitude) {\n const lat = formatArg('latitude', latitude);\n const lon = formatArg('longitude', longitude);\n await this.exec('location', {\n args: [this.requireUdid('location'), 'set', `${lat},${lon}`],\n });\n};\n\n/**\n * Stop any running scenario and clear any simulated location.\n * This functionality is only available since Xcode 14.\n */\ncommands.clearLocation = async function clearLocation () {\n await this.exec('location', {\n args: [this.requireUdid('location'), 'clear'],\n });\n};\n\nexport default commands;\n"],"mappings":";;;;;;;AAAA,MAAMA,QAAQ,GAAG,CAAC,CAAC;AASnB,SAASC,SAASA,CAAEC,IAAI,EAAEC,KAAK,EAAE;EAC/B,MAAMC,GAAG,GAAGC,UAAU,CAACF,KAAK,CAAC;EAC7B,IAAIG,KAAK,CAACF,GAAG,CAAC,EAAE;IACd,MAAM,IAAIG,SAAS,CAAE,GAAEL,IAAK,iCAAgCC,KAAM,WAAU,CAAC;EAC/E;EACA,OAAOC,GAAG,CAACI,OAAO,CAAC,CAAC,CAAC;AACvB;AAYAR,QAAQ,CAACS,WAAW,GAAG,eAAeA,WAAW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AC;IAC5C,MAAM,GAAG,GAAG,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IAC9C,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;QAC1B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,GAAG,GAAG,IAAI,GAAG,EAAE,CAAC;KAC7D,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;;GAGG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa;IACnD,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE;QAC1B,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;KAC9C,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -0,0 +1,17 @@
1
+ export default commands;
2
+ declare namespace commands {
3
+ /**
4
+ * Open URL scheme on Simulator. iOS will automatically try
5
+ * to find a matching application, which supports the given scheme.
6
+ * It is required that Simulator is in _booted_ state.
7
+ *
8
+ * @param {string} url - The URL scheme to open, for example http://appiom.io
9
+ * will be opened by the built-in mobile browser.
10
+ * @return {Promise<import('teen_process').TeenProcessExecResult>} Command execution result.
11
+ * @throws {Error} If the corresponding simctl subcommand command
12
+ * returns non-zero return code.
13
+ * @throws {Error} If the `udid` instance property is unset
14
+ */
15
+ function openUrl(url: string): Promise<import("teen_process").TeenProcessExecResult<any>>;
16
+ }
17
+ //# sourceMappingURL=openurl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openurl.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/openurl.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;OAWG;IACH,0FAIC"}
@@ -1,16 +1,22 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- require("source-map-support/register");
2
+ Object.defineProperty(exports, "__esModule", { value: true });
8
3
  const commands = {};
4
+ /**
5
+ * Open URL scheme on Simulator. iOS will automatically try
6
+ * to find a matching application, which supports the given scheme.
7
+ * It is required that Simulator is in _booted_ state.
8
+ *
9
+ * @param {string} url - The URL scheme to open, for example http://appiom.io
10
+ * will be opened by the built-in mobile browser.
11
+ * @return {Promise<import('teen_process').TeenProcessExecResult>} Command execution result.
12
+ * @throws {Error} If the corresponding simctl subcommand command
13
+ * returns non-zero return code.
14
+ * @throws {Error} If the `udid` instance property is unset
15
+ */
9
16
  commands.openUrl = async function openUrl(url) {
10
- return await this.exec('openurl', {
11
- args: [this.requireUdid('openurl'), url]
12
- });
17
+ return await this.exec('openurl', {
18
+ args: [this.requireUdid('openurl'), url],
19
+ });
13
20
  };
14
- var _default = commands;
15
- exports.default = _default;
16
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJjb21tYW5kcyIsIm9wZW5VcmwiLCJ1cmwiLCJleGVjIiwiYXJncyIsInJlcXVpcmVVZGlkIiwiX2RlZmF1bHQiLCJleHBvcnRzIiwiZGVmYXVsdCJdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9zdWJjb21tYW5kcy9vcGVudXJsLmpzIl0sInNvdXJjZXNDb250ZW50IjpbImNvbnN0IGNvbW1hbmRzID0ge307XG5cbi8qKlxuICogT3BlbiBVUkwgc2NoZW1lIG9uIFNpbXVsYXRvci4gaU9TIHdpbGwgYXV0b21hdGljYWxseSB0cnlcbiAqIHRvIGZpbmQgYSBtYXRjaGluZyBhcHBsaWNhdGlvbiwgd2hpY2ggc3VwcG9ydHMgdGhlIGdpdmVuIHNjaGVtZS5cbiAqIEl0IGlzIHJlcXVpcmVkIHRoYXQgU2ltdWxhdG9yIGlzIGluIF9ib290ZWRfIHN0YXRlLlxuICpcbiAqIEBwYXJhbSB7c3RyaW5nfSB1cmwgLSBUaGUgVVJMIHNjaGVtZSB0byBvcGVuLCBmb3IgZXhhbX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QUYsUUFBQSJ9
21
+ exports.default = commands;
22
+ //# sourceMappingURL=openurl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"openurl.js","names":["commands","openUrl","url","exec","args","requireUdid","_default","exports","default"],"sources":["../../../lib/subcommands/openurl.js"],"sourcesContent":["const commands = {};\n\n/**\n * Open URL scheme on Simulator. iOS will automatically try\n * to find a matching application, which supports the given scheme.\n * It is required that Simulator is in _booted_ state.\n *\n * @param {string} url - The URL scheme to open, for example http://appiom.io\n * will be opened by the built-in mobile browser.\n * @return {Promise<ExecResult>} Command execution result.\n * @throws {Error} If the corresponding simctl subcommand command\n * returns non-zero return code.\n * @throws {Error} If the `udid` instance property is unset\n */\ncommands.openUrl = async function openUrl (url) {\n return await this.exec('openurl', {\n args: [this.requireUdid('openurl'), url],\n });\n};\n\nexport default commands;\n"],"mappings":";;;;;;;AAAA,MAAMA,QAAQ,GAAG,CAAC,CAAC;AAcnBA,QAAQ,CAACC,OAAO,GAAG,eAAeA,OAAOA,CAAEC,GAAG,EAAE;EAC9C,OAAO,MAAM,IAAI,CAACC,IAAI,CAAC,SAAS,EAAE;IAChCC,IAAI,EAAE,CAAC,IAAI,CAACC,WAAW,CAAC,SAAS,CAAC,EAAEH,GAAG;EACzC,CAAC,CAAC;AACJ,CAAC;AAAC,IAAAI,QAAA,GAEaN,QAAQ;AAAAO,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"openurl.js","sourceRoot":"","sources":["../../../lib/subcommands/openurl.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;GAWG;AACH,QAAQ,CAAC,OAAO,GAAG,KAAK,UAAU,OAAO,CAAE,GAAG;IAC5C,OAAO,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;QAChC,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE,GAAG,CAAC;KACzC,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -0,0 +1,17 @@
1
+ export default commands;
2
+ declare namespace commands {
3
+ /**
4
+ * Set the content of Simulator pasteboard.
5
+ * It is required that Simulator is in _booted_ state.
6
+ *
7
+ * @since Xcode SDK 8.1
8
+ * @param {string} content - The actual string content to be set.
9
+ * @param {string} encoding [utf8] - The encoding of the given pasteboard content.
10
+ * UTF-8 by default.
11
+ * @throws {Error} If the corresponding simctl subcommand command
12
+ * returns non-zero return code.
13
+ * @throws {Error} If the `udid` instance property is unset
14
+ */
15
+ function setPasteboard(content: string, encoding?: string): Promise<void>;
16
+ }
17
+ //# sourceMappingURL=pbcopy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pbcopy.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/pbcopy.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;OAWG;IACH,0EAYC"}
@@ -1,24 +1,30 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- require("source-map-support/register");
2
+ Object.defineProperty(exports, "__esModule", { value: true });
8
3
  const commands = {};
4
+ /**
5
+ * Set the content of Simulator pasteboard.
6
+ * It is required that Simulator is in _booted_ state.
7
+ *
8
+ * @since Xcode SDK 8.1
9
+ * @param {string} content - The actual string content to be set.
10
+ * @param {string} encoding [utf8] - The encoding of the given pasteboard content.
11
+ * UTF-8 by default.
12
+ * @throws {Error} If the corresponding simctl subcommand command
13
+ * returns non-zero return code.
14
+ * @throws {Error} If the `udid` instance property is unset
15
+ */
9
16
  commands.setPasteboard = async function setPasteboard(content, encoding = 'utf8') {
10
- const pbCopySubprocess = await this.exec('pbcopy', {
11
- args: [this.requireUdid('pbcopy')],
12
- asynchronous: true
13
- });
14
- await pbCopySubprocess.start(0);
15
- const exitCodeVerifier = pbCopySubprocess.join();
16
- const stdin = pbCopySubprocess.proc.stdin;
17
- stdin.setEncoding(encoding);
18
- stdin.write(content);
19
- stdin.end();
20
- await exitCodeVerifier;
17
+ const pbCopySubprocess = await this.exec('pbcopy', {
18
+ args: [this.requireUdid('pbcopy')],
19
+ asynchronous: true,
20
+ });
21
+ await pbCopySubprocess.start(0);
22
+ const exitCodeVerifier = pbCopySubprocess.join();
23
+ const stdin = pbCopySubprocess.proc.stdin;
24
+ stdin.setEncoding(encoding);
25
+ stdin.write(content);
26
+ stdin.end();
27
+ await exitCodeVerifier;
21
28
  };
22
- var _default = commands;
23
- exports.default = _default;
24
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJjb21tYW5kcyIsInNldFBhc3RlYm9hcmQiLCJjb250ZW50IiwiZW5jb2RpbmciLCJwYkNvcHlTdWJwcm9jZXNzIiwiZXhlYyIsImFyZ3MiLCJyZXF1aXJlVWRpZCIsImFzeW5jaHJvbm91cyIsInN0YXJ0IiwiZXhpdENvZGVWZXJpZmllciIsImpvaW4iLCJzdGRpbiIsInByb2MiLCJzZXRFbmNvZGluZyIsIndyaXRlIiwiZW5kIiwiX2RlZmF1bHQiLCJleHBvcnRzIiwiZGVmYXVsdCJdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9zdWJjb21tYW5kcy9wYmNvcHkuanMiXSwic291cmNlc0NvbnRlbnQiOlsiY29uc3QgY29tbWFuZHMgPSB7fTtcblxuLyoqXG4gKiBTZXQgdGhlIGNvbnRlbnQgb2YgU2ltdWxhdG9yIHBhc3RlYm9hcmQuXG4gKiBJdCBpcyByZXF1aXJlZCB0aGF0IFNpbXVsYXRvciBpcyBpbiBfYm9vdGVkXyBzdGF0ZS5cbiAqXG4gKiBAc2luY2UgWGNvZGUgU0RLIDguMVxuICogQHBhcmFtIHtzdHJpbmd9IGNvbnRlbnQgLSBUaGUgYWN0dWFsIHN0cmluZyBjb250ZW50IHRvIGJlIHNldC5cbiAqIEBwYXJhbSB7c3RyaW5nfSBlbmNvZGluZyBbdXRmOF0gLS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0FBQyxDQUFDO0FBY25CQSxRQUFRLENBQUNDLGFBQWEsR0FBRyxlQUFlQSxhQUFhQSxDQUFFQyxPQUFPLEVBQUVDLFFBQVEsR0FBRyxNQUFNLEVBQUU7RUFDakYsTUFBTUMsZ0JBQWdCLEdBQUcsTUFBTSxJQUFJLENBQUNDLElBQUksQ0FBQyxRQUFRLEVBQUU7SUFDakRDLElBQUksRUFBRSxDQUFDLElBQUksQ0FBQ0MsV0FBVyxDQUFDLFFBQVEsQ0FBQyxDQUFDO0lBQ2xDQyxZQUFZLEVBQUU7RUFDaEIsQ0FBQyxDQUFDO0VBQ0YsTUFBTUosZ0JBQWdCLENBQUNLLEtBQUssQ0FBQyxDQUFDLENBQUM7RUFDL0IsTUFBTUMsZ0JBQWdCLEdBQUdOLGdCQUFnQixDQUFDTyxJQUFJLENBQUMsQ0FBQztFQUNoRCxNQUFNQyxLQUFLLEdBQUdSLGdCQUFnQixDQUFDUyxJQUFJLENBQUNELEtBQUs7RUFDekNBLEtBQUssQ0FBQ0UsV0FBVyxDQUFDWCxRQUFRLENBQUM7RUFDM0JTLEtBQUssQ0FBQ0csS0FBSyxDQUFDYixPQUFPLENBQUM7RUFDcEJVLEtBQUssQ0FBQ0ksR0FBRyxDQUFDLENBQUM7RUFDWCxNQUFNTixnQkFBZ0I7QUFDeEIsQ0FBQztBQUFDLElBQUFPLFFBQUEsR0FFYWpCLFFBQVE7QUFBQWtCLE9BQUEsQ0FBQUMsT0FBQSxHQUFBRixRQUFBIn0=
29
+ exports.default = commands;
30
+ //# sourceMappingURL=pbcopy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pbcopy.js","names":["commands","setPasteboard","content","encoding","pbCopySubprocess","exec","args","requireUdid","asynchronous","start","exitCodeVerifier","join","stdin","proc","setEncoding","write","end","_default","exports","default"],"sources":["../../../lib/subcommands/pbcopy.js"],"sourcesContent":["const commands = {};\n\n/**\n * Set the content of Simulator pasteboard.\n * It is required that Simulator is in _booted_ state.\n *\n * @since Xcode SDK 8.1\n * @param {string} content - The actual string content to be set.\n * @param {string} encoding [utf8] - The encoding of the given pasteboard content.\n * UTF-8 by default.\n * @throws {Error} If the corresponding simctl subcommand command\n * returns non-zero return code.\n * @throws {Error} If the `udid` instance property is unset\n */\ncommands.setPasteboard = async function setPasteboard (content, encoding = 'utf8') {\n const pbCopySubprocess = await this.exec('pbcopy', {\n args: [this.requireUdid('pbcopy')],\n asynchronous: true,\n });\n await pbCopySubprocess.start(0);\n const exitCodeVerifier = pbCopySubprocess.join();\n const stdin = pbCopySubprocess.proc.stdin;\n stdin.setEncoding(encoding);\n stdin.write(content);\n stdin.end();\n await exitCodeVerifier;\n};\n\nexport default commands;\n"],"mappings":";;;;;;;AAAA,MAAMA,QAAQ,GAAG,CAAC,CAAC;AAcnBA,QAAQ,CAACC,aAAa,GAAG,eAAeA,aAAaA,CAAEC,OAAO,EAAEC,QAAQ,GAAG,MAAM,EAAE;EACjF,MAAMC,gBAAgB,GAAG,MAAM,IAAI,CAACC,IAAI,CAAC,QAAQ,EAAE;IACjDC,IAAI,EAAE,CAAC,IAAI,CAACC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAClCC,YAAY,EAAE;EAChB,CAAC,CAAC;EACF,MAAMJ,gBAAgB,CAACK,KAAK,CAAC,CAAC,CAAC;EAC/B,MAAMC,gBAAgB,GAAGN,gBAAgB,CAACO,IAAI,CAAC,CAAC;EAChD,MAAMC,KAAK,GAAGR,gBAAgB,CAACS,IAAI,CAACD,KAAK;EACzCA,KAAK,CAACE,WAAW,CAACX,QAAQ,CAAC;EAC3BS,KAAK,CAACG,KAAK,CAACb,OAAO,CAAC;EACpBU,KAAK,CAACI,GAAG,CAAC,CAAC;EACX,MAAMN,gBAAgB;AACxB,CAAC;AAAC,IAAAO,QAAA,GAEajB,QAAQ;AAAAkB,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"pbcopy.js","sourceRoot":"","sources":["../../../lib/subcommands/pbcopy.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;GAWG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa,CAAE,OAAO,EAAE,QAAQ,GAAG,MAAM;IAC/E,MAAM,gBAAgB,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE;QACjD,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;QAClC,YAAY,EAAE,IAAI;KACnB,CAAC,CAAC;IACH,MAAM,gBAAgB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAChC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,IAAI,EAAE,CAAC;IACjD,MAAM,KAAK,GAAG,gBAAgB,CAAC,IAAI,CAAC,KAAK,CAAC;IAC1C,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC5B,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;IACrB,KAAK,CAAC,GAAG,EAAE,CAAC;IACZ,MAAM,gBAAgB,CAAC;AACzB,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -0,0 +1,17 @@
1
+ export default commands;
2
+ declare namespace commands {
3
+ /**
4
+ * Get the content of Simulator pasteboard.
5
+ * It is required that Simulator is in _booted_ state.
6
+ *
7
+ * @since Xcode 8.1 SDK
8
+ * @param {string} encoding ['utf-8'] - The encoding of the returned pasteboard content.
9
+ * UTF-8 by default.
10
+ * @return {Promise<string>} Current content of Simulator pasteboard or an empty string.
11
+ * @throws {Error} If the corresponding simctl subcommand command
12
+ * returns non-zero return code.
13
+ * @throws {Error} If the `udid` instance property is unset
14
+ */
15
+ function getPasteboard(encoding?: string): Promise<string>;
16
+ }
17
+ //# sourceMappingURL=pbpaste.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pbpaste.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/pbpaste.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;OAWG;IACH,2DAMC"}
@@ -1,20 +1,24 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- require("source-map-support/register");
2
+ Object.defineProperty(exports, "__esModule", { value: true });
8
3
  const commands = {};
4
+ /**
5
+ * Get the content of Simulator pasteboard.
6
+ * It is required that Simulator is in _booted_ state.
7
+ *
8
+ * @since Xcode 8.1 SDK
9
+ * @param {string} encoding ['utf-8'] - The encoding of the returned pasteboard content.
10
+ * UTF-8 by default.
11
+ * @return {Promise<string>} Current content of Simulator pasteboard or an empty string.
12
+ * @throws {Error} If the corresponding simctl subcommand command
13
+ * returns non-zero return code.
14
+ * @throws {Error} If the `udid` instance property is unset
15
+ */
9
16
  commands.getPasteboard = async function getPasteboard(encoding = 'utf8') {
10
- const {
11
- stdout
12
- } = await this.exec('pbpaste', {
13
- args: [this.requireUdid('pbpaste')],
14
- encoding
15
- });
16
- return stdout;
17
+ const { stdout } = await this.exec('pbpaste', {
18
+ args: [this.requireUdid('pbpaste')],
19
+ encoding,
20
+ });
21
+ return stdout;
17
22
  };
18
- var _default = commands;
19
- exports.default = _default;
20
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJjb21tYW5kcyIsImdldFBhc3RlYm9hcmQiLCJlbmNvZGluZyIsInN0ZG91dCIsImV4ZWMiLCJhcmdzIiwicmVxdWlyZVVkaWQiLCJfZGVmYXVsdCIsImV4cG9ydHMiLCJkZWZhdWx0Il0sInNvdXJjZXMiOlsiLi4vLi4vLi4vbGliL3N1YmNvbW1hbmRzL3BicGFzdGUuanMiXSwic291cmNlc0NvbnRlbnQiOlsiY29uc3QgY29tbWFuZHMgPSB7fTtcblxuLyoqXG4gKiBHZXQgdGhlIGNvbnRlbnQgb2YgU2ltdWxhdG9yIHBhc3RlYm9hcmQuXG4gKiBJdCBpcyByZXF1aXJlZCB0aG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lQSxhQUFhQSxDQUFFQyxRQUFRLEdBQUcsTUFBTSxFQUFFO0VBQ3hFLE1BQU07SUFBQ0M7RUFBTSxDQUFDLEdBQUcsTUFBTSxJQUFJLENBQUNDLElBQUksQ0FBQyxTQUFTLEVBQUU7SUFDMUNDLElBQUksRUFBRSxDQUFDLElBQUksQ0FBQ0MsV0FBVyxDQUFDLFNBQVMsQ0FBQyxDQUFDO0lBQ25DSjtFQUNGLENBQUMsQ0FBQztFQUNGLE9BQU9DLE1BQU07QUFDZixDQUFDO0FBQUMsSUFBQUksUUFBQSxHQUVhUCxRQUFRO0FBQUFRLE9BQUEsQ0FBQUMsT0FBQSxHQUFBRixRQUFBIn0=
23
+ exports.default = commands;
24
+ //# sourceMappingURL=pbpaste.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pbpaste.js","names":["commands","getPasteboard","encoding","stdout","exec","args","requireUdid","_default","exports","default"],"sources":["../../../lib/subcommands/pbpaste.js"],"sourcesContent":["const commands = {};\n\n/**\n * Get the content of Simulator pasteboard.\n * It is required that Simulator is in _booted_ state.\n *\n * @since Xcode 8.1 SDK\n * @param {string} encoding ['utf-8'] - The encoding of the returned pasteboard content.\n * UTF-8 by default.\n * @return {Promise<string>} Current content of Simulator pasteboard or an empty string.\n * @throws {Error} If the corresponding simctl subcommand command\n * returns non-zero return code.\n * @throws {Error} If the `udid` instance property is unset\n */\ncommands.getPasteboard = async function getPasteboard (encoding = 'utf8') {\n const {stdout} = await this.exec('pbpaste', {\n args: [this.requireUdid('pbpaste')],\n encoding,\n });\n return stdout;\n};\n\nexport default commands;\n"],"mappings":";;;;;;;AAAA,MAAMA,QAAQ,GAAG,CAAC,CAAC;AAcnBA,QAAQ,CAACC,aAAa,GAAG,eAAeA,aAAaA,CAAEC,QAAQ,GAAG,MAAM,EAAE;EACxE,MAAM;IAACC;EAAM,CAAC,GAAG,MAAM,IAAI,CAACC,IAAI,CAAC,SAAS,EAAE;IAC1CC,IAAI,EAAE,CAAC,IAAI,CAACC,WAAW,CAAC,SAAS,CAAC,CAAC;IACnCJ;EACF,CAAC,CAAC;EACF,OAAOC,MAAM;AACf,CAAC;AAAC,IAAAI,QAAA,GAEaP,QAAQ;AAAAQ,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"pbpaste.js","sourceRoot":"","sources":["../../../lib/subcommands/pbpaste.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;GAWG;AACH,QAAQ,CAAC,aAAa,GAAG,KAAK,UAAU,aAAa,CAAE,QAAQ,GAAG,MAAM;IACtE,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;QAC1C,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;QACnC,QAAQ;KACT,CAAC,CAAC;IACH,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -0,0 +1,55 @@
1
+ export default commands;
2
+ declare namespace commands {
3
+ /**
4
+ * Grants the given permission on the app with the given bundle identifier
5
+ *
6
+ * @since Xcode 11.4 SDK
7
+ * @param {string} bundleId the identifier of the application whose
8
+ * privacy settings are going to be changed
9
+ * @param {string} perm one of possible permission values:
10
+ * - all: Apply the action to all services.
11
+ * - calendar: Allow access to calendar.
12
+ * - contacts-limited: Allow access to basic contact info.
13
+ * - contacts: Allow access to full contact details.
14
+ * - location: Allow access to location services when app is in use.
15
+ * - location-always: Allow access to location services at all times.
16
+ * - photos-add: Allow adding photos to the photo library.
17
+ * - photos: Allow full access to the photo library.
18
+ * - media-library: Allow access to the media library.
19
+ * - microphone: Allow access to audio input.
20
+ * - motion: Allow access to motion and fitness data.
21
+ * - reminders: Allow access to reminders.
22
+ * - siri: Allow use of the app with Siri.
23
+ * @throws {Error} if the current SDK version does not support the command
24
+ * or there was an error while granting the permission
25
+ * @throws {Error} If the `udid` instance property is unset
26
+ */
27
+ function grantPermission(bundleId: string, perm: string): Promise<void>;
28
+ /**
29
+ * Revokes the given permission on the app with the given bundle identifier
30
+ * after it has been granted
31
+ *
32
+ * @since Xcode 11.4 SDK
33
+ * @param {string} bundleId the identifier of the application whose
34
+ * privacy settings are going to be changed
35
+ * @param {string} perm one of possible permission values (see `grantPermission`)
36
+ * @throws {Error} if the current SDK version does not support the command
37
+ * or there was an error while revoking the permission
38
+ * @throws {Error} If the `udid` instance property is unset
39
+ */
40
+ function revokePermission(bundleId: string, perm: string): Promise<void>;
41
+ /**
42
+ * Resets the given permission on the app with the given bundle identifier
43
+ * to its default state
44
+ *
45
+ * @since Xcode 11.4 SDK
46
+ * @param {string} bundleId the identifier of the application whose
47
+ * privacy settings are going to be changed
48
+ * @param {string} perm one of possible permission values (see `grantPermission`)
49
+ * @throws {Error} if the current SDK version does not support the command
50
+ * or there was an error while resetting the permission
51
+ * @throws {Error} If the `udid` instance property is unset
52
+ */
53
+ function resetPermission(bundleId: string, perm: string): Promise<void>;
54
+ }
55
+ //# sourceMappingURL=privacy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"privacy.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/privacy.js"],"names":[],"mappings":";;IAEA;;;;;;;;;;;;;;;;;;;;;;;OAuBG;IACH,wEAIC;IAED;;;;;;;;;;;OAWG;IACH,yEAIC;IAED;;;;;;;;;;;OAWG;IACH,wEAIC"}
@@ -1,26 +1,68 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
7
- require("source-map-support/register");
2
+ Object.defineProperty(exports, "__esModule", { value: true });
8
3
  const commands = {};
4
+ /**
5
+ * Grants the given permission on the app with the given bundle identifier
6
+ *
7
+ * @since Xcode 11.4 SDK
8
+ * @param {string} bundleId the identifier of the application whose
9
+ * privacy settings are going to be changed
10
+ * @param {string} perm one of possible permission values:
11
+ * - all: Apply the action to all services.
12
+ * - calendar: Allow access to calendar.
13
+ * - contacts-limited: Allow access to basic contact info.
14
+ * - contacts: Allow access to full contact details.
15
+ * - location: Allow access to location services when app is in use.
16
+ * - location-always: Allow access to location services at all times.
17
+ * - photos-add: Allow adding photos to the photo library.
18
+ * - photos: Allow full access to the photo library.
19
+ * - media-library: Allow access to the media library.
20
+ * - microphone: Allow access to audio input.
21
+ * - motion: Allow access to motion and fitness data.
22
+ * - reminders: Allow access to reminders.
23
+ * - siri: Allow use of the app with Siri.
24
+ * @throws {Error} if the current SDK version does not support the command
25
+ * or there was an error while granting the permission
26
+ * @throws {Error} If the `udid` instance property is unset
27
+ */
9
28
  commands.grantPermission = async function grantPermission(bundleId, perm) {
10
- await this.exec('privacy', {
11
- args: [this.requireUdid('privacy grant'), 'grant', perm, bundleId]
12
- });
29
+ await this.exec('privacy', {
30
+ args: [this.requireUdid('privacy grant'), 'grant', perm, bundleId],
31
+ });
13
32
  };
33
+ /**
34
+ * Revokes the given permission on the app with the given bundle identifier
35
+ * after it has been granted
36
+ *
37
+ * @since Xcode 11.4 SDK
38
+ * @param {string} bundleId the identifier of the application whose
39
+ * privacy settings are going to be changed
40
+ * @param {string} perm one of possible permission values (see `grantPermission`)
41
+ * @throws {Error} if the current SDK version does not support the command
42
+ * or there was an error while revoking the permission
43
+ * @throws {Error} If the `udid` instance property is unset
44
+ */
14
45
  commands.revokePermission = async function revokePermission(bundleId, perm) {
15
- await this.exec('privacy', {
16
- args: [this.requireUdid('privacy revoke'), 'revoke', perm, bundleId]
17
- });
46
+ await this.exec('privacy', {
47
+ args: [this.requireUdid('privacy revoke'), 'revoke', perm, bundleId],
48
+ });
18
49
  };
50
+ /**
51
+ * Resets the given permission on the app with the given bundle identifier
52
+ * to its default state
53
+ *
54
+ * @since Xcode 11.4 SDK
55
+ * @param {string} bundleId the identifier of the application whose
56
+ * privacy settings are going to be changed
57
+ * @param {string} perm one of possible permission values (see `grantPermission`)
58
+ * @throws {Error} if the current SDK version does not support the command
59
+ * or there was an error while resetting the permission
60
+ * @throws {Error} If the `udid` instance property is unset
61
+ */
19
62
  commands.resetPermission = async function resetPermission(bundleId, perm) {
20
- await this.exec('privacy', {
21
- args: [this.requireUdid('private reset'), 'reset', perm, bundleId]
22
- });
63
+ await this.exec('privacy', {
64
+ args: [this.requireUdid('private reset'), 'reset', perm, bundleId],
65
+ });
23
66
  };
24
- var _default = commands;
25
- exports.default = _default;
26
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJjb21tYW5kcyIsImdyYW50UGVybWlzc2lvbiIsImJ1bmRsZUlkIiwicGVybSIsImV4ZWMiLCJhcmdzIiwicmVxdWlyZVVkaWQiLCJyZXZva2VQZXJtaXNzaW9uIiwicmVzZXRQZXJtaXNzaW9uIiwiX2RlZmF1bHQiLCJleHBvcnRzIiwiZGVmYXVsdCJdLCJzb3VyY2VzIjpbIi4uLy4uLy4uL2xpYi9zdWJjb21tYW5kcy9wcml2YWN5LmpzIl0sInNvdXJjZXNDb250ZW50IjpbImNvbnN0IGNvbW1hbmRzID0ge307XG5cbi8qKlxuICogR3JhbnRzIHRoZSBnaXZlbiBwZXJtaXNzaW9uIG9uIHRoZSBhcHAgd2l0aCB0aGUgZ2l2ZW4gYnVuZGxlIGlkZW50aWZpZXJcbiAqXG4gKiBAc2luY2UgWGNvZGUgMTEuNCBTREtcbiAqIEBwYXJhbSB7c3RyaW5nfSBidW5kbGVJZCB0aGUgaWRlbnRpZmllciBvZiB0aGUgYXBwbGljYXRpb24gd2hvc2VcbiAqIHByaXZhY3kgc2V0dGluZ3MgYXJlIGdvaW5nIHRvIGJlIGNoYW5nZWRcbiAqIEBwYXJhbSB7c3RyaW5nfSBwZXJtIG9uZSBvZiBwb3NzaWJsZSBwZXJtaXNzaW9uIHZhbHVlczpcbiAqIC0gYWxsOiBBcHBseSB0aGUgYWN0aW9uIHRvIGFsbCBzZXJ2aWNlcy5cbiAqIC0gY2FsZW5kYXI6IEFsbG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BQyxFQUFFLE9BQU8sRUFBRUgsSUFBSSxFQUFFRCxRQUFRO0VBQ25FLENBQUMsQ0FBQztBQUNKLENBQUM7QUFBQyxJQUFBTyxRQUFBLEdBRWFULFFBQVE7QUFBQVUsT0FBQSxDQUFBQyxPQUFBLEdBQUFGLFFBQUEifQ==
67
+ exports.default = commands;
68
+ //# sourceMappingURL=privacy.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"privacy.js","names":["commands","grantPermission","bundleId","perm","exec","args","requireUdid","revokePermission","resetPermission","_default","exports","default"],"sources":["../../../lib/subcommands/privacy.js"],"sourcesContent":["const commands = {};\n\n/**\n * Grants the given permission on the app with the given bundle identifier\n *\n * @since Xcode 11.4 SDK\n * @param {string} bundleId the identifier of the application whose\n * privacy settings are going to be changed\n * @param {string} perm one of possible permission values:\n * - all: Apply the action to all services.\n * - calendar: Allow access to calendar.\n * - contacts-limited: Allow access to basic contact info.\n * - contacts: Allow access to full contact details.\n * - location: Allow access to location services when app is in use.\n * - location-always: Allow access to location services at all times.\n * - photos-add: Allow adding photos to the photo library.\n * - photos: Allow full access to the photo library.\n * - media-library: Allow access to the media library.\n * - microphone: Allow access to audio input.\n * - motion: Allow access to motion and fitness data.\n * - reminders: Allow access to reminders.\n * - siri: Allow use of the app with Siri.\n * @throws {Error} if the current SDK version does not support the command\n * or there was an error while granting the permission\n * @throws {Error} If the `udid` instance property is unset\n */\ncommands.grantPermission = async function grantPermission (bundleId, perm) {\n await this.exec('privacy', {\n args: [this.requireUdid('privacy grant'), 'grant', perm, bundleId],\n });\n};\n\n/**\n * Revokes the given permission on the app with the given bundle identifier\n * after it has been granted\n *\n * @since Xcode 11.4 SDK\n * @param {string} bundleId the identifier of the application whose\n * privacy settings are going to be changed\n * @param {string} perm one of possible permission values (see `grantPermission`)\n * @throws {Error} if the current SDK version does not support the command\n * or there was an error while revoking the permission\n * @throws {Error} If the `udid` instance property is unset\n */\ncommands.revokePermission = async function revokePermission (bundleId, perm) {\n await this.exec('privacy', {\n args: [this.requireUdid('privacy revoke'), 'revoke', perm, bundleId],\n });\n};\n\n/**\n * Resets the given permission on the app with the given bundle identifier\n * to its default state\n *\n * @since Xcode 11.4 SDK\n * @param {string} bundleId the identifier of the application whose\n * privacy settings are going to be changed\n * @param {string} perm one of possible permission values (see `grantPermission`)\n * @throws {Error} if the current SDK version does not support the command\n * or there was an error while resetting the permission\n * @throws {Error} If the `udid` instance property is unset\n */\ncommands.resetPermission = async function resetPermission (bundleId, perm) {\n await this.exec('privacy', {\n args: [this.requireUdid('private reset'), 'reset', perm, bundleId],\n });\n};\n\nexport default commands;\n"],"mappings":";;;;;;;AAAA,MAAMA,QAAQ,GAAG,CAAC,CAAC;AA0BnBA,QAAQ,CAACC,eAAe,GAAG,eAAeA,eAAeA,CAAEC,QAAQ,EAAEC,IAAI,EAAE;EACzE,MAAM,IAAI,CAACC,IAAI,CAAC,SAAS,EAAE;IACzBC,IAAI,EAAE,CAAC,IAAI,CAACC,WAAW,CAAC,eAAe,CAAC,EAAE,OAAO,EAAEH,IAAI,EAAED,QAAQ;EACnE,CAAC,CAAC;AACJ,CAAC;AAcDF,QAAQ,CAACO,gBAAgB,GAAG,eAAeA,gBAAgBA,CAAEL,QAAQ,EAAEC,IAAI,EAAE;EAC3E,MAAM,IAAI,CAACC,IAAI,CAAC,SAAS,EAAE;IACzBC,IAAI,EAAE,CAAC,IAAI,CAACC,WAAW,CAAC,gBAAgB,CAAC,EAAE,QAAQ,EAAEH,IAAI,EAAED,QAAQ;EACrE,CAAC,CAAC;AACJ,CAAC;AAcDF,QAAQ,CAACQ,eAAe,GAAG,eAAeA,eAAeA,CAAEN,QAAQ,EAAEC,IAAI,EAAE;EACzE,MAAM,IAAI,CAACC,IAAI,CAAC,SAAS,EAAE;IACzBC,IAAI,EAAE,CAAC,IAAI,CAACC,WAAW,CAAC,eAAe,CAAC,EAAE,OAAO,EAAEH,IAAI,EAAED,QAAQ;EACnE,CAAC,CAAC;AACJ,CAAC;AAAC,IAAAO,QAAA,GAEaT,QAAQ;AAAAU,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
1
+ {"version":3,"file":"privacy.js","sourceRoot":"","sources":["../../../lib/subcommands/privacy.js"],"names":[],"mappings":";;AAAA,MAAM,QAAQ,GAAG,EAAE,CAAC;AAEpB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,QAAQ,CAAC,eAAe,GAAG,KAAK,UAAU,eAAe,CAAE,QAAQ,EAAE,IAAI;IACvE,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;QACzB,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC;KACnE,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,QAAQ,CAAC,gBAAgB,GAAG,KAAK,UAAU,gBAAgB,CAAE,QAAQ,EAAE,IAAI;IACzE,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;QACzB,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,gBAAgB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,CAAC;KACrE,CAAC,CAAC;AACL,CAAC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,QAAQ,CAAC,eAAe,GAAG,KAAK,UAAU,eAAe,CAAE,QAAQ,EAAE,IAAI;IACvE,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;QACzB,IAAI,EAAE,CAAC,IAAI,CAAC,WAAW,CAAC,eAAe,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,CAAC;KACnE,CAAC,CAAC;AACL,CAAC,CAAC;AAEF,kBAAe,QAAQ,CAAC"}
@@ -0,0 +1,25 @@
1
+ export default commands;
2
+ declare namespace commands {
3
+ /**
4
+ * Send a simulated push notification
5
+ *
6
+ * @since Xcode 11.4 SDK
7
+ * @param {Object} payload - The object that describes Apple push notification content.
8
+ * It must contain a top-level "Simulator Target Bundle" key with a string value matching
9
+ * the target application‘s bundle identifier and "aps" key with valid Apple Push Notification values.
10
+ * For example:
11
+ * {
12
+ * "Simulator Target Bundle": "com.apple.Preferences",
13
+ * "aps": {
14
+ * "alert": "This is a simulated notification!",
15
+ * "badge": 3,
16
+ * "sound": "default"
17
+ * }
18
+ * }
19
+ * @throws {Error} if the current SDK version does not support the command
20
+ * or there was an error while pushing the notification
21
+ * @throws {Error} If the `udid` instance property is unset
22
+ */
23
+ function pushNotification(payload: any): Promise<void>;
24
+ }
25
+ //# sourceMappingURL=push.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"push.d.ts","sourceRoot":"","sources":["../../../lib/subcommands/push.js"],"names":[],"mappings":";;IAQA;;;;;;;;;;;;;;;;;;;OAmBG;IACH,uDAUC"}
@@ -1,28 +1,45 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.default = void 0;
8
- require("source-map-support/register");
9
- var _rimraf = require("rimraf");
10
- var _uuid = require("uuid");
11
- var _path = _interopRequireDefault(require("path"));
12
- var _os = _interopRequireDefault(require("os"));
13
- var _promises = _interopRequireDefault(require("fs/promises"));
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const rimraf_1 = require("rimraf");
7
+ const uuid_1 = require("uuid");
8
+ const path_1 = __importDefault(require("path"));
9
+ const os_1 = __importDefault(require("os"));
10
+ const promises_1 = __importDefault(require("fs/promises"));
14
11
  const commands = {};
12
+ /**
13
+ * Send a simulated push notification
14
+ *
15
+ * @since Xcode 11.4 SDK
16
+ * @param {Object} payload - The object that describes Apple push notification content.
17
+ * It must contain a top-level "Simulator Target Bundle" key with a string value matching
18
+ * the target application‘s bundle identifier and "aps" key with valid Apple Push Notification values.
19
+ * For example:
20
+ * {
21
+ * "Simulator Target Bundle": "com.apple.Preferences",
22
+ * "aps": {
23
+ * "alert": "This is a simulated notification!",
24
+ * "badge": 3,
25
+ * "sound": "default"
26
+ * }
27
+ * }
28
+ * @throws {Error} if the current SDK version does not support the command
29
+ * or there was an error while pushing the notification
30
+ * @throws {Error} If the `udid` instance property is unset
31
+ */
15
32
  commands.pushNotification = async function pushNotification(payload) {
16
- const dstPath = _path.default.resolve(_os.default.tmpdir(), `${(0, _uuid.v4)()}.json`);
17
- try {
18
- await _promises.default.writeFile(dstPath, JSON.stringify(payload), 'utf8');
19
- await this.exec('push', {
20
- args: [this.requireUdid('push'), dstPath]
21
- });
22
- } finally {
23
- await (0, _rimraf.rimraf)(dstPath);
24
- }
33
+ const dstPath = path_1.default.resolve(os_1.default.tmpdir(), `${(0, uuid_1.v4)()}.json`);
34
+ try {
35
+ await promises_1.default.writeFile(dstPath, JSON.stringify(payload), 'utf8');
36
+ await this.exec('push', {
37
+ args: [this.requireUdid('push'), dstPath],
38
+ });
39
+ }
40
+ finally {
41
+ await (0, rimraf_1.rimraf)(dstPath);
42
+ }
25
43
  };
26
- var _default = commands;
27
- exports.default = _default;
28
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfcmltcmFmIiwicmVxdWlyZSIsIl91dWlkIiwiX3BhdGgiLCJfaW50ZXJvcFJlcXVpcmVEZWZhdWx0IiwiX29zIiwiX3Byb21pc2VzIiwiY29tbWFuZHMiLCJwdXNoTm90aWZpY2F0aW9uIiwicGF5bG9hZCIsImRzdFBhdGgiLCJwYXRoIiwicmVzb2x2ZSIsIm9zIiwidG1wZGlyIiwidXVpZFY0IiwiZnMiLCJ3cml0ZUZpbGUiLCJKU09OIiwic3RyaW5naWZ5IiwiZXhlYyIsImFyZ3MiLCJyZXF1aXJlVWRpZCIsInJpbXJhZiIsIl9kZWZhdWx0IiwiZXhwb3J0cyIsImRlZmF1bHQ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UFFQSxNQUFNTSxRQUFRLEdBQUcsQ0FBQyxDQUFDO0FBc0JuQkEsUUFBUSxDQUFDQyxnQkFBZ0IsR0FBRyxlQUFlQSxnQkFBZ0JBLENBQUVDLE9BQU8sRUFBRTtFQUNwRSxNQUFNQyxPQUFPLEdBQUdDLGFBQUksQ0FBQ0MsT0FBTyxDQUFDQyxXQUFFLENBQUNDLE1BQU0sQ0FBQyxDQUFDLEVBQUcsR0FBRSxJQUFBQyxRQUFNLEVBQUMsQ0FBRSxPQUFNLENBQUM7RUFDN0QsSUFBSTtJQUNGLE1BQU1DLGlCQUFFLENBQUNDLFNBQVMsQ0FBQ1AsT0FBTyxFQUFFUSxJQUFJLENBQUNDLFNBQVMsQ0FBQ1YsT0FBTyxDQUFDLEVBQUUsTUFBTSxDQUFDO0lBQzVELE1BQU0sSUFBSSxDQUFDVyxJQUFJLENBQUMsTUFBTSxFQUFFO01BQ3RCQyxJQUFJLEVBQUUsQ0FBQyxJQUFJLENBQUNDLFdBQVcsQ0FBQyxNQUFNLENBQUMsRUFBRVosT0FBTztJQUMxQyxDQUFDLENBQUM7RUFDSixDQUFDLFNBQVM7SUFDUixNQUFNLElBQUFhLGNBQU0sRUFBQ2IsT0FBTyxDQUFDO0VBQ3ZCO0FBQ0YsQ0FBQztBQUFDLElBQUFjLFFBQUEsR0FFYWpCLFFBQVE7QUFBQWtCLE9BQUEsQ0FBQUMsT0FBQSxHQUFBRixRQUFBIn0=
44
+ exports.default = commands;
45
+ //# sourceMappingURL=push.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"push.js","names":["_rimraf","require","_uuid","_path","_interopRequireDefault","_os","_promises","commands","pushNotification","payload","dstPath","path","resolve","os","tmpdir","uuidV4","fs","writeFile","JSON","stringify","exec","args","requireUdid","rimraf","_default","exports","default"],"sources":["../../../lib/subcommands/push.js"],"sourcesContent":["import { rimraf } from 'rimraf';\nimport { v4 as uuidV4 } from 'uuid';\nimport path from 'path';\nimport os from 'os';\nimport fs from 'fs/promises';\n\nconst commands = {};\n\n/**\n * Send a simulated push notification\n *\n * @since Xcode 11.4 SDK\n * @param {Object} payload - The object that describes Apple push notification content.\n * It must contain a top-level \"Simulator Target Bundle\" key with a string value matching\n * the target application‘s bundle identifier and \"aps\" key with valid Apple Push Notification values.\n * For example:\n * {\n * \"Simulator Target Bundle\": \"com.apple.Preferences\",\n * \"aps\": {\n * \"alert\": \"This is a simulated notification!\",\n * \"badge\": 3,\n * \"sound\": \"default\"\n * }\n * }\n * @throws {Error} if the current SDK version does not support the command\n * or there was an error while pushing the notification\n * @throws {Error} If the `udid` instance property is unset\n */\ncommands.pushNotification = async function pushNotification (payload) {\n const dstPath = path.resolve(os.tmpdir(), `${uuidV4()}.json`);\n try {\n await fs.writeFile(dstPath, JSON.stringify(payload), 'utf8');\n await this.exec('push', {\n args: [this.requireUdid('push'), dstPath],\n });\n } finally {\n await rimraf(dstPath);\n }\n};\n\nexport default commands;\n"],"mappings":";;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,KAAA,GAAAD,OAAA;AACA,IAAAE,KAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,GAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,SAAA,GAAAF,sBAAA,CAAAH,OAAA;AAEA,MAAMM,QAAQ,GAAG,CAAC,CAAC;AAsBnBA,QAAQ,CAACC,gBAAgB,GAAG,eAAeA,gBAAgBA,CAAEC,OAAO,EAAE;EACpE,MAAMC,OAAO,GAAGC,aAAI,CAACC,OAAO,CAACC,WAAE,CAACC,MAAM,CAAC,CAAC,EAAG,GAAE,IAAAC,QAAM,EAAC,CAAE,OAAM,CAAC;EAC7D,IAAI;IACF,MAAMC,iBAAE,CAACC,SAAS,CAACP,OAAO,EAAEQ,IAAI,CAACC,SAAS,CAACV,OAAO,CAAC,EAAE,MAAM,CAAC;IAC5D,MAAM,IAAI,CAACW,IAAI,CAAC,MAAM,EAAE;MACtBC,IAAI,EAAE,CA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