nativescript 8.7.0 → 8.8.0-alpha.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 (324) hide show
  1. package/lib/android-tools-info.js +0 -12
  2. package/lib/base-package-manager.js +0 -7
  3. package/lib/bootstrap.js +1 -5
  4. package/lib/bun-package-manager.js +1 -17
  5. package/lib/color.js +0 -3
  6. package/lib/commands/add-platform.js +0 -1
  7. package/lib/commands/apple-login.js +0 -1
  8. package/lib/commands/appstore-list.js +0 -1
  9. package/lib/commands/appstore-upload.js +0 -4
  10. package/lib/commands/build.js +2 -3
  11. package/lib/commands/clean.js +1 -22
  12. package/lib/commands/command-base.js +0 -1
  13. package/lib/commands/config.js +0 -3
  14. package/lib/commands/create-project.js +0 -6
  15. package/lib/commands/debug.js +1 -6
  16. package/lib/commands/deploy.js +2 -3
  17. package/lib/commands/extensibility/install-extension.js +0 -1
  18. package/lib/commands/extensibility/list-extensions.js +0 -1
  19. package/lib/commands/extensibility/uninstall-extension.js +0 -1
  20. package/lib/commands/fonts.js +0 -1
  21. package/lib/commands/generate-assets.js +0 -1
  22. package/lib/commands/generate-help.js +0 -1
  23. package/lib/commands/generate.js +2 -12
  24. package/lib/commands/info.js +0 -1
  25. package/lib/commands/install.js +0 -1
  26. package/lib/commands/list-platforms.js +0 -1
  27. package/lib/commands/migrate.js +0 -1
  28. package/lib/commands/platform-clean.js +0 -1
  29. package/lib/commands/plugin/add-plugin.js +0 -1
  30. package/lib/commands/plugin/build-plugin.js +0 -1
  31. package/lib/commands/plugin/create-plugin.js +0 -5
  32. package/lib/commands/plugin/list-plugins.js +0 -1
  33. package/lib/commands/plugin/remove-plugin.js +0 -2
  34. package/lib/commands/plugin/update-plugin.js +0 -1
  35. package/lib/commands/post-install.js +0 -6
  36. package/lib/commands/prepare.js +2 -3
  37. package/lib/commands/preview.js +0 -2
  38. package/lib/commands/remove-platform.js +0 -1
  39. package/lib/commands/resources/resources-update.js +0 -2
  40. package/lib/commands/run.js +0 -1
  41. package/lib/commands/setup.js +0 -1
  42. package/lib/commands/start.js +0 -1
  43. package/lib/commands/test-init.js +0 -4
  44. package/lib/commands/test.js +2 -9
  45. package/lib/commands/typings.js +76 -4
  46. package/lib/commands/update-platform.js +0 -5
  47. package/lib/commands/update.js +0 -2
  48. package/lib/common/bootstrap.js +0 -1
  49. package/lib/common/child-process.js +0 -3
  50. package/lib/common/codeGeneration/code-entity.js +0 -1
  51. package/lib/common/codeGeneration/code-printer.js +0 -1
  52. package/lib/common/command-params.js +0 -1
  53. package/lib/common/commands/analytics.js +0 -3
  54. package/lib/common/commands/autocompletion.js +0 -3
  55. package/lib/common/commands/device/device-log-stream.js +0 -1
  56. package/lib/common/commands/device/get-file.js +0 -2
  57. package/lib/common/commands/device/list-applications.js +0 -1
  58. package/lib/common/commands/device/list-devices.js +0 -3
  59. package/lib/common/commands/device/list-files.js +0 -2
  60. package/lib/common/commands/device/put-file.js +0 -2
  61. package/lib/common/commands/device/run-application.js +0 -1
  62. package/lib/common/commands/device/stop-application.js +0 -1
  63. package/lib/common/commands/device/uninstall-application.js +0 -1
  64. package/lib/common/commands/doctor.js +2 -3
  65. package/lib/common/commands/generate-messages.js +0 -1
  66. package/lib/common/commands/help.js +0 -1
  67. package/lib/common/commands/package-manager-get.js +0 -1
  68. package/lib/common/commands/package-manager-set.js +0 -1
  69. package/lib/common/commands/post-install.js +0 -1
  70. package/lib/common/commands/preuninstall.js +2 -11
  71. package/lib/common/commands/proxy/proxy-base.js +0 -4
  72. package/lib/common/commands/proxy/proxy-clear.js +0 -1
  73. package/lib/common/commands/proxy/proxy-get.js +0 -1
  74. package/lib/common/commands/proxy/proxy-set.js +0 -1
  75. package/lib/common/common-lib.js +0 -1
  76. package/lib/common/constants.js +0 -11
  77. package/lib/common/decorators.js +0 -48
  78. package/lib/common/dispatchers.js +1 -10
  79. package/lib/common/errors.js +3 -13
  80. package/lib/common/file-system.js +2 -13
  81. package/lib/common/header.js +0 -3
  82. package/lib/common/helpers.js +3 -89
  83. package/lib/common/host-info.js +0 -4
  84. package/lib/common/http-client.js +0 -20
  85. package/lib/common/logger/appenders/cli-appender.js +0 -4
  86. package/lib/common/logger/appenders/emit-appender.js +0 -4
  87. package/lib/common/logger/layouts/cli-layout.js +0 -1
  88. package/lib/common/logger/logger.js +0 -5
  89. package/lib/common/messages/messages.js +0 -6
  90. package/lib/common/mobile/android/android-application-manager.js +1 -20
  91. package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
  92. package/lib/common/mobile/android/android-debug-bridge.js +0 -6
  93. package/lib/common/mobile/android/android-device-file-system.js +0 -4
  94. package/lib/common/mobile/android/android-device-hash-service.js +0 -3
  95. package/lib/common/mobile/android/android-device.js +0 -8
  96. package/lib/common/mobile/android/android-emulator-services.js +1 -2
  97. package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
  98. package/lib/common/mobile/android/android-log-filter.js +0 -4
  99. package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
  100. package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
  101. package/lib/common/mobile/android/genymotion/genymotion-service.js +0 -5
  102. package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
  103. package/lib/common/mobile/android/logcat-helper.js +1 -20
  104. package/lib/common/mobile/application-manager-base.js +0 -6
  105. package/lib/common/mobile/device-emitter.js +0 -4
  106. package/lib/common/mobile/device-log-emitter.js +0 -1
  107. package/lib/common/mobile/device-log-provider-base.js +0 -1
  108. package/lib/common/mobile/device-log-provider.js +0 -23
  109. package/lib/common/mobile/device-platforms-constants.js +0 -1
  110. package/lib/common/mobile/emulator-helper.js +0 -3
  111. package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
  112. package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -1
  113. package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
  114. package/lib/common/mobile/ios/device/ios-device.js +0 -4
  115. package/lib/common/mobile/ios/ios-device-base.js +0 -1
  116. package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
  117. package/lib/common/mobile/ios/ios-log-filter.js +0 -1
  118. package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
  119. package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
  120. package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
  121. package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
  122. package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
  123. package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
  124. package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
  125. package/lib/common/mobile/log-filter.js +0 -2
  126. package/lib/common/mobile/logging-levels.js +0 -1
  127. package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
  128. package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
  129. package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
  130. package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
  131. package/lib/common/mobile/mobile-core/devices-service.js +0 -69
  132. package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
  133. package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
  134. package/lib/common/mobile/mobile-helper.js +0 -1
  135. package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
  136. package/lib/common/opener.js +0 -1
  137. package/lib/common/os-info.js +0 -1
  138. package/lib/common/plist-parser.js +0 -1
  139. package/lib/common/project-helper.js +0 -1
  140. package/lib/common/prompter.js +1 -9
  141. package/lib/common/queue.js +0 -1
  142. package/lib/common/resource-loader.js +0 -1
  143. package/lib/common/services/auto-completion-service.js +1 -13
  144. package/lib/common/services/cancellation.js +1 -2
  145. package/lib/common/services/commands-service.js +6 -17
  146. package/lib/common/services/help-service.js +3 -11
  147. package/lib/common/services/hooks-service.js +0 -13
  148. package/lib/common/services/ios-notification-service.js +0 -1
  149. package/lib/common/services/json-file-settings-service.js +0 -6
  150. package/lib/common/services/lock-service.js +0 -6
  151. package/lib/common/services/message-contract-generator.js +0 -1
  152. package/lib/common/services/messages-service.js +0 -1
  153. package/lib/common/services/micro-templating-service.js +0 -6
  154. package/lib/common/services/net-service.js +0 -3
  155. package/lib/common/services/project-files-manager.js +0 -5
  156. package/lib/common/services/project-files-provider-base.js +0 -1
  157. package/lib/common/services/proxy-service.js +0 -1
  158. package/lib/common/services/qr.js +0 -1
  159. package/lib/common/services/settings-service.js +0 -1
  160. package/lib/common/services/xcode-select-service.js +0 -1
  161. package/lib/common/utils.js +0 -1
  162. package/lib/common/validators/project-name-validator.js +0 -1
  163. package/lib/common/validators/validation-result.js +0 -1
  164. package/lib/common/verify-node-version.js +1 -8
  165. package/lib/common/yok.js +11 -32
  166. package/lib/config.js +1 -22
  167. package/lib/constants-provider.js +0 -1
  168. package/lib/constants.js +0 -53
  169. package/lib/controllers/build-controller.js +3 -4
  170. package/lib/controllers/debug-controller.js +3 -8
  171. package/lib/controllers/deploy-controller.js +0 -1
  172. package/lib/controllers/migrate-controller.js +3 -91
  173. package/lib/controllers/platform-controller.js +1 -9
  174. package/lib/controllers/prepare-controller.js +4 -14
  175. package/lib/controllers/run-controller.js +1 -17
  176. package/lib/controllers/update-controller-base.js +0 -1
  177. package/lib/controllers/update-controller.js +0 -11
  178. package/lib/data/build-data.js +0 -1
  179. package/lib/data/controller-data-base.js +0 -1
  180. package/lib/data/debug-data.js +0 -1
  181. package/lib/data/platform-data.js +0 -1
  182. package/lib/data/prepare-data.js +0 -1
  183. package/lib/data/run-data.js +0 -1
  184. package/lib/detached-processes/cleanup-js-subprocess.js +2 -8
  185. package/lib/detached-processes/cleanup-process.js +14 -18
  186. package/lib/detached-processes/file-log-service.js +1 -2
  187. package/lib/device-path-provider.js +0 -1
  188. package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
  189. package/lib/device-sockets/ios/notification.js +0 -3
  190. package/lib/device-sockets/ios/socket-request-executor.js +0 -3
  191. package/lib/helpers/android-bundle-validator-helper.js +1 -2
  192. package/lib/helpers/deploy-command-helper.js +0 -1
  193. package/lib/helpers/key-command-helper.js +2 -4
  194. package/lib/helpers/livesync-command-helper.js +1 -4
  195. package/lib/helpers/network-connectivity-validator.js +0 -1
  196. package/lib/helpers/options-track-helper.js +2 -3
  197. package/lib/helpers/package-path-helper.js +0 -1
  198. package/lib/helpers/platform-command-helper.js +2 -7
  199. package/lib/helpers/version-validator-helper.js +0 -1
  200. package/lib/key-commands/bootstrap.js +2 -3
  201. package/lib/key-commands/index.js +4 -5
  202. package/lib/nativescript-cli-lib-bootstrap.js +0 -4
  203. package/lib/nativescript-cli-lib.js +0 -1
  204. package/lib/nativescript-cli.js +1 -10
  205. package/lib/node/pbxproj-dom-xcode.js +0 -1
  206. package/lib/node/xcode.js +0 -1
  207. package/lib/node-package-manager.js +1 -11
  208. package/lib/options.js +116 -141
  209. package/lib/package-installation-manager.js +1 -8
  210. package/lib/package-manager.js +0 -2
  211. package/lib/platform-command-param.js +0 -1
  212. package/lib/pnpm-package-manager.js +1 -4
  213. package/lib/project-data.js +0 -12
  214. package/lib/providers/project-files-provider.js +0 -1
  215. package/lib/resolvers/livesync-service-resolver.js +0 -1
  216. package/lib/services/analytics/analytics-broker-process.js +6 -10
  217. package/lib/services/analytics/analytics-broker.js +1 -2
  218. package/lib/services/analytics/analytics-service.js +25 -29
  219. package/lib/services/analytics/google-analytics-provider.js +12 -13
  220. package/lib/services/analytics-settings-service.js +0 -5
  221. package/lib/services/android/android-bundle-tool-service.js +0 -1
  222. package/lib/services/android/gradle-build-args-service.js +2 -9
  223. package/lib/services/android/gradle-build-service.js +0 -1
  224. package/lib/services/android/gradle-command-service.js +0 -1
  225. package/lib/services/android-device-debug-service.js +0 -6
  226. package/lib/services/android-plugin-build-service.js +12 -43
  227. package/lib/services/android-project-service.js +4 -71
  228. package/lib/services/android-resources-migration-service.js +0 -7
  229. package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
  230. package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
  231. package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
  232. package/lib/services/assets-generation/assets-generation-service.js +5 -16
  233. package/lib/services/build-artifacts-service.js +1 -2
  234. package/lib/services/build-data-service.js +0 -1
  235. package/lib/services/build-info-file-service.js +0 -1
  236. package/lib/services/cleanup-service.js +9 -13
  237. package/lib/services/cocoapods-platform-manager.js +0 -9
  238. package/lib/services/cocoapods-service.js +1 -21
  239. package/lib/services/debug-data-service.js +0 -1
  240. package/lib/services/debug-service-base.js +0 -7
  241. package/lib/services/device/device-install-app-service.js +1 -2
  242. package/lib/services/doctor-service.js +6 -21
  243. package/lib/services/extensibility-service.js +0 -8
  244. package/lib/services/files-hash-service.js +0 -1
  245. package/lib/services/hmr-status-service.js +0 -2
  246. package/lib/services/info-service.js +0 -1
  247. package/lib/services/initialize-service.js +1 -5
  248. package/lib/services/ios/export-options-plist-service.js +0 -4
  249. package/lib/services/ios/ios-signing-service.js +0 -4
  250. package/lib/services/ios/spm-service.js +0 -9
  251. package/lib/services/ios/xcodebuild-args-service.js +0 -9
  252. package/lib/services/ios/xcodebuild-command-service.js +0 -1
  253. package/lib/services/ios/xcodebuild-service.js +0 -1
  254. package/lib/services/ios-debugger-port-service.js +0 -1
  255. package/lib/services/ios-device-debug-service.js +0 -1
  256. package/lib/services/ios-entitlements-service.js +0 -1
  257. package/lib/services/ios-extensions-service.js +0 -1
  258. package/lib/services/ios-log-filter.js +0 -20
  259. package/lib/services/ios-native-target-service.js +4 -6
  260. package/lib/services/ios-project-service.js +1 -23
  261. package/lib/services/ios-provision-service.js +0 -3
  262. package/lib/services/ios-watch-app-service.js +0 -1
  263. package/lib/services/ip-service.js +0 -2
  264. package/lib/services/itmstransporter-service.js +0 -1
  265. package/lib/services/karma-execution.js +0 -2
  266. package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
  267. package/lib/services/livesync/android-device-livesync-service.js +0 -2
  268. package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
  269. package/lib/services/livesync/android-livesync-service.js +0 -1
  270. package/lib/services/livesync/android-livesync-tool.js +0 -4
  271. package/lib/services/livesync/device-livesync-service-base.js +0 -2
  272. package/lib/services/livesync/ios-device-livesync-service.js +0 -7
  273. package/lib/services/livesync/ios-livesync-service.js +0 -2
  274. package/lib/services/livesync/livesync-socket.js +0 -1
  275. package/lib/services/livesync/platform-livesync-service-base.js +0 -5
  276. package/lib/services/livesync-process-data-service.js +0 -1
  277. package/lib/services/log-parser-service.js +0 -1
  278. package/lib/services/log-source-map-service.js +0 -15
  279. package/lib/services/marking-mode-service.js +5 -8
  280. package/lib/services/metadata-filtering-service.js +0 -1
  281. package/lib/services/npm-config-service.js +0 -4
  282. package/lib/services/pacote-service.js +0 -7
  283. package/lib/services/performance-service.js +1 -3
  284. package/lib/services/platform/add-platform-service.js +2 -47
  285. package/lib/services/platform/platform-validation-service.js +0 -1
  286. package/lib/services/platform/prepare-native-platform-service.js +2 -5
  287. package/lib/services/platform-environment-requirements.js +3 -8
  288. package/lib/services/platform-project-service-base.js +0 -1
  289. package/lib/services/platforms-data-service.js +0 -1
  290. package/lib/services/plugins-service.js +2 -18
  291. package/lib/services/prepare-data-service.js +0 -1
  292. package/lib/services/project-backup-service.js +0 -4
  293. package/lib/services/project-changes-service.js +3 -12
  294. package/lib/services/project-cleanup-service.js +0 -2
  295. package/lib/services/project-config-service.js +1 -18
  296. package/lib/services/project-data-service.js +7 -36
  297. package/lib/services/project-name-service.js +0 -1
  298. package/lib/services/project-service.js +0 -10
  299. package/lib/services/project-templates-service.js +2 -3
  300. package/lib/services/qr-code-terminal-service.js +0 -1
  301. package/lib/services/require-service.js +0 -1
  302. package/lib/services/start-service.js +0 -1
  303. package/lib/services/temp-service.js +0 -1
  304. package/lib/services/terminal-spinner-service.js +0 -2
  305. package/lib/services/test-execution-service.js +2 -9
  306. package/lib/services/test-initialization-service.js +0 -4
  307. package/lib/services/timeline-profiler-service.js +0 -1
  308. package/lib/services/user-settings-service.js +0 -1
  309. package/lib/services/versions-service.js +4 -6
  310. package/lib/services/watch-ignore-list-service.js +0 -1
  311. package/lib/services/webpack/webpack-compiler-service.js +1 -42
  312. package/lib/services/xcconfig-service.js +0 -2
  313. package/lib/services/xcproj-service.js +0 -1
  314. package/lib/shared-event-bus.js +0 -6
  315. package/lib/sys-info.js +1 -2
  316. package/lib/tools/config-manipulation/config-transformer.js +0 -12
  317. package/lib/tools/node-modules/node-modules-builder.js +0 -1
  318. package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
  319. package/lib/yarn-package-manager.js +0 -1
  320. package/lib/yarn2-package-manager.js +0 -3
  321. package/package.json +1 -1
  322. package/vendor/aab-tool/README.txt +1 -1
  323. package/vendor/aab-tool/bundletool.jar +0 -0
  324. package/vendor/gradle-plugin/build.gradle +21 -15
@@ -10,8 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  });
11
11
  };
12
12
  Object.defineProperty(exports, "__esModule", { value: true });
13
- // NOTE: This file is used to call JS functions when cleaning resources used by CLI, after the CLI is killed.
14
- // The instances here are not shared with the ones in main CLI process.
15
13
  const fs = require("fs");
16
14
  const uuid_1 = require("uuid");
17
15
  const file_log_service_1 = require("./file-log-service");
@@ -20,7 +18,6 @@ const pathToBootstrap = process.argv[2];
20
18
  if (!pathToBootstrap || !fs.existsSync(pathToBootstrap)) {
21
19
  throw new Error("Invalid path to bootstrap.");
22
20
  }
23
- // After requiring the bootstrap we can use $injector
24
21
  require(pathToBootstrap);
25
22
  const logFile = process.argv[3];
26
23
  const jsFilePath = process.argv[4];
@@ -44,7 +41,6 @@ catch (err) {
44
41
  const logMessage = (msg, type) => {
45
42
  fileLogService.logData({ message: `[${uniqueId}] ${msg}`, type });
46
43
  };
47
- /* tslint:disable:no-floating-promises */
48
44
  (() => __awaiter(void 0, void 0, void 0, function* () {
49
45
  try {
50
46
  logMessage(`Requiring file ${jsFilePath}`);
@@ -56,13 +52,11 @@ const logMessage = (msg, type) => {
56
52
  logMessage(`Finished execution with data: ${JSON.stringify(data)} to the default function exported by currently required file ${jsFilePath}`);
57
53
  }
58
54
  catch (err) {
59
- logMessage(`Unable to execute action of file ${jsFilePath} when passed data is ${JSON.stringify(data)}. Error is: ${err}.`, "Error" /* FileLogMessageType.Error */);
55
+ logMessage(`Unable to execute action of file ${jsFilePath} when passed data is ${JSON.stringify(data)}. Error is: ${err}.`, "Error");
60
56
  }
61
57
  }
62
58
  }
63
59
  catch (err) {
64
- logMessage(`Unable to require file: ${jsFilePath}. Error is: ${err}.`, "Error" /* FileLogMessageType.Error */);
60
+ logMessage(`Unable to require file: ${jsFilePath}. Error is: ${err}.`, "Error");
65
61
  }
66
62
  }))();
67
- /* tslint:enable:no-floating-promises */
68
- //# sourceMappingURL=cleanup-js-subprocess.js.map
@@ -9,8 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- // NOTE: This file is used to clean up resources used by CLI, when the CLI is killed.
13
- // The instances here are not shared with the ones in main CLI process.
14
12
  const fs = require("fs");
15
13
  const path = require("path");
16
14
  const shelljs = require("shelljs");
@@ -22,7 +20,6 @@ if (!pathToBootstrap || !fs.existsSync(pathToBootstrap)) {
22
20
  throw new Error("Invalid path to bootstrap.");
23
21
  }
24
22
  const logFile = process.argv[3];
25
- // After requiring the bootstrap we can use $injector
26
23
  require(pathToBootstrap);
27
24
  const fileLogService = yok_1.injector.resolve(file_log_service_1.FileLogService, {
28
25
  logFile,
@@ -75,7 +72,7 @@ const executeJSCleanup = (jsCommand) => __awaiter(void 0, void 0, void 0, functi
75
72
  catch (err) {
76
73
  fileLogService.logData({
77
74
  message: `Unable to execute action for file ${jsCommand.filePath} with data ${JSON.stringify(jsCommand.data)}. Error is: ${err}.`,
78
- type: "Error" /* FileLogMessageType.Error */,
75
+ type: "Error",
79
76
  });
80
77
  }
81
78
  });
@@ -100,7 +97,7 @@ const executeCleanup = () => __awaiter(void 0, void 0, void 0, function* () {
100
97
  catch (err) {
101
98
  fileLogService.logData({
102
99
  message: `Unable to execute command: ${JSON.stringify(commandInfo)}. Error is: ${err}.`,
103
- type: "Error" /* FileLogMessageType.Error */,
100
+ type: "Error",
104
101
  });
105
102
  }
106
103
  }
@@ -114,7 +111,7 @@ const executeCleanup = () => __awaiter(void 0, void 0, void 0, function* () {
114
111
  catch (err) {
115
112
  fileLogService.logData({
116
113
  message: `Unable to delete files: ${JSON.stringify(filesToDelete)}. Error is: ${err}.`,
117
- type: "Error" /* FileLogMessageType.Error */,
114
+ type: "Error",
118
115
  });
119
116
  }
120
117
  }
@@ -236,36 +233,36 @@ process.on("message", (cleanupProcessMessage) => __awaiter(void 0, void 0, void
236
233
  message: `cleanup-process received message of type: ${JSON.stringify(cleanupProcessMessage)}`,
237
234
  });
238
235
  switch (cleanupProcessMessage.messageType) {
239
- case "AddCleanCommand" /* CleanupProcessMessage.AddCleanCommand */:
236
+ case "AddCleanCommand":
240
237
  addCleanupAction(cleanupProcessMessage.commandInfo);
241
238
  break;
242
- case "RemoveCleanCommand" /* CleanupProcessMessage.RemoveCleanCommand */:
239
+ case "RemoveCleanCommand":
243
240
  removeCleanupAction(cleanupProcessMessage.commandInfo);
244
241
  break;
245
- case "AddRequest" /* CleanupProcessMessage.AddRequest */:
242
+ case "AddRequest":
246
243
  addRequest(cleanupProcessMessage.requestInfo);
247
244
  break;
248
- case "RemoveRequest" /* CleanupProcessMessage.RemoveRequest */:
245
+ case "RemoveRequest":
249
246
  removeRequest(cleanupProcessMessage.requestInfo);
250
247
  break;
251
- case "AddDeleteFileAction" /* CleanupProcessMessage.AddDeleteFileAction */:
248
+ case "AddDeleteFileAction":
252
249
  addDeleteAction(cleanupProcessMessage.filePath);
253
250
  break;
254
- case "RemoveDeleteFileAction" /* CleanupProcessMessage.RemoveDeleteFileAction */:
251
+ case "RemoveDeleteFileAction":
255
252
  removeDeleteAction(cleanupProcessMessage.filePath);
256
253
  break;
257
- case "AddJSFileToRequire" /* CleanupProcessMessage.AddJSFileToRequire */:
254
+ case "AddJSFileToRequire":
258
255
  const jsCleanupMessage = cleanupProcessMessage;
259
256
  addJSFile(jsCleanupMessage.jsCommand);
260
257
  break;
261
- case "RemoveJSFileToRequire" /* CleanupProcessMessage.RemoveJSFileToRequire */:
258
+ case "RemoveJSFileToRequire":
262
259
  const msgToRemove = cleanupProcessMessage;
263
260
  removeJSFile(msgToRemove.jsCommand);
264
261
  break;
265
262
  default:
266
263
  fileLogService.logData({
267
264
  message: `Unable to handle message of type ${cleanupProcessMessage.messageType}. Full message is ${JSON.stringify(cleanupProcessMessage)}`,
268
- type: "Error" /* FileLogMessageType.Error */,
265
+ type: "Error",
269
266
  });
270
267
  break;
271
268
  }
@@ -279,7 +276,6 @@ process.on("disconnect", () => __awaiter(void 0, void 0, void 0, function* () {
279
276
  process.exit();
280
277
  }));
281
278
  fileLogService.logData({
282
- message: `cleanup-process will send ${"ProcessReadyToReceive" /* DetachedProcessMessages.ProcessReadyToReceive */} message`,
279
+ message: `cleanup-process will send ${"ProcessReadyToReceive"} message`,
283
280
  });
284
- process.send("ProcessReadyToReceive" /* DetachedProcessMessages.ProcessReadyToReceive */);
285
- //# sourceMappingURL=cleanup-process.js.map
281
+ process.send("ProcessReadyToReceive");
@@ -11,11 +11,10 @@ class FileLogService {
11
11
  logData(fileLoggingMessage) {
12
12
  if (this.logFile && fileLoggingMessage && fileLoggingMessage.message) {
13
13
  fileLoggingMessage.type =
14
- fileLoggingMessage.type || "Info" /* FileLogMessageType.Info */;
14
+ fileLoggingMessage.type || "Info";
15
15
  const formattedDate = (0, helpers_1.getFixedLengthDateString)();
16
16
  this.$fs.appendFile(this.logFile, `[${formattedDate}] [${fileLoggingMessage.type}] ${fileLoggingMessage.message}${os_1.EOL}`);
17
17
  }
18
18
  }
19
19
  }
20
20
  exports.FileLogService = FileLogService;
21
- //# sourceMappingURL=file-log-service.js.map
@@ -58,4 +58,3 @@ class DevicePathProvider {
58
58
  }
59
59
  exports.DevicePathProvider = DevicePathProvider;
60
60
  yok_1.injector.register("devicePathProvider", DevicePathProvider);
61
- //# sourceMappingURL=device-path-provider.js.map
@@ -88,7 +88,6 @@ class AppDebugSocketProxyFactory extends events_1.EventEmitter {
88
88
  const existingWebProxy = this.deviceWebServers[`${device.deviceInfo.identifier}-${appId}`];
89
89
  const result = existingWebProxy ||
90
90
  (yield this.addWebSocketProxy(device, appId, projectName, projectDir));
91
- // TODO: do not remove till VSCode waits for this message in order to reattach
92
91
  this.$logger.info("Opened localhost " + result.options.port);
93
92
  return result;
94
93
  });
@@ -101,13 +100,8 @@ class AppDebugSocketProxyFactory extends events_1.EventEmitter {
101
100
  if (existingServer) {
102
101
  this.$errors.fail(`Web socket proxy is already running for device '${device.deviceInfo.identifier}' and app '${appId}'`);
103
102
  }
104
- // NOTE: We will try to provide command line options to select ports, at least on the localhost.
105
103
  const localPort = yield this.$net.getAvailablePortInRange(41000);
106
104
  this.$logger.info("\nSetting up debugger proxy...\nPress Ctrl + C to terminate, or disconnect.\n");
107
- // NB: When the inspector frontend connects we might not have connected to the inspector backend yet.
108
- // That's why we use the verifyClient callback of the websocket server to stall the upgrade request until we connect.
109
- // We store the socket that connects us to the device in the upgrade request object itself and later on retrieve it
110
- // in the connection callback.
111
105
  let currentAppSocket = null;
112
106
  let currentWebSocket = null;
113
107
  const server = new ws.Server({
@@ -221,4 +215,3 @@ class AppDebugSocketProxyFactory extends events_1.EventEmitter {
221
215
  }
222
216
  exports.AppDebugSocketProxyFactory = AppDebugSocketProxyFactory;
223
217
  yok_1.injector.register("appDebugSocketProxyFactory", AppDebugSocketProxyFactory);
224
- //# sourceMappingURL=app-debug-socket-proxy-factory.js.map
@@ -6,8 +6,6 @@ const constants_1 = require("../../common/constants");
6
6
  const yok_1 = require("../../common/yok");
7
7
  class IOSNotification extends events_1.EventEmitter {
8
8
  getAttachRequest(appId, deviceId) {
9
- // It could be too early to emit this event, but we rely that if you construct attach request,
10
- // you will execute it immediately.
11
9
  this.emit(constants_1.ATTACH_REQUEST_EVENT_NAME, { deviceId, appId });
12
10
  return this.formatNotification(IOSNotification.ATTACH_REQUEST_NOTIFICATION_NAME, appId);
13
11
  }
@@ -30,4 +28,3 @@ IOSNotification.ATTACH_REQUEST_NOTIFICATION_NAME = "AttachRequest";
30
28
  IOSNotification.READY_FOR_ATTACH_NOTIFICATION_NAME = "ReadyForAttach";
31
29
  exports.IOSNotification = IOSNotification;
32
30
  yok_1.injector.register("iOSNotification", IOSNotification);
33
- //# sourceMappingURL=notification.js.map
@@ -39,8 +39,6 @@ class IOSSocketRequestExecutor {
39
39
  return __awaiter(this, void 0, void 0, function* () {
40
40
  let isSuccessful = false;
41
41
  try {
42
- // We should create this promise here because we need to send the ObserveNotification on the device
43
- // before we send the PostNotification.
44
42
  const socket = yield this.$iOSNotificationService.postNotification(deviceId, successfulyExecutedNotificationName, constants.IOS_OBSERVE_NOTIFICATION_COMMAND_TYPE);
45
43
  const notificationPromise = this.$iOSNotificationService.awaitNotification(deviceId, +socket, timeout);
46
44
  yield this.$iOSNotificationService.postNotification(deviceId, mainRequestName);
@@ -56,4 +54,3 @@ class IOSSocketRequestExecutor {
56
54
  }
57
55
  exports.IOSSocketRequestExecutor = IOSSocketRequestExecutor;
58
56
  yok_1.injector.register("iOSSocketRequestExecutor", IOSSocketRequestExecutor);
59
- //# sourceMappingURL=socket-request-executor.js.map
@@ -22,7 +22,7 @@ class AndroidBundleValidatorHelper extends version_validator_helper_1.VersionVal
22
22
  }
23
23
  validateRuntimeVersion(projectData) {
24
24
  if (this.$options.aab) {
25
- const runtimePackage = this.$projectDataService.getRuntimePackage(projectData.projectDir, "android" /* PlatformTypes.android */);
25
+ const runtimePackage = this.$projectDataService.getRuntimePackage(projectData.projectDir, "android");
26
26
  const androidRuntimeVersion = runtimePackage
27
27
  ? runtimePackage.version
28
28
  : "";
@@ -50,4 +50,3 @@ AndroidBundleValidatorHelper.MIN_RUNTIME_VERSION = "5.0.0";
50
50
  AndroidBundleValidatorHelper.MIN_ANDROID_WITH_AAB_SUPPORT = "4.4.0";
51
51
  exports.AndroidBundleValidatorHelper = AndroidBundleValidatorHelper;
52
52
  yok_1.injector.register("androidBundleValidatorHelper", AndroidBundleValidatorHelper);
53
- //# sourceMappingURL=android-bundle-validator-helper.js.map
@@ -68,4 +68,3 @@ class DeployCommandHelper {
68
68
  }
69
69
  exports.DeployCommandHelper = DeployCommandHelper;
70
70
  yok_1.injector.register("deployCommandHelper", DeployCommandHelper);
71
- //# sourceMappingURL=deploy-command-helper.js.map
@@ -17,8 +17,7 @@ class KeyCommandHelper {
17
17
  this.overrides = {};
18
18
  this.onKeyPressed = (data) => __awaiter(this, void 0, void 0, function* () {
19
19
  const key = data.toString();
20
- // Allow Ctrl + C always.
21
- if (this.keyCommandExecutionBlocked && key !== "\u0003" /* SpecialKeys.CtrlC */)
20
+ if (this.keyCommandExecutionBlocked && key !== "\u0003")
22
21
  return;
23
22
  try {
24
23
  const exists = yok_1.injector.getRegisteredKeyCommandsNames().includes(key);
@@ -41,7 +40,7 @@ class KeyCommandHelper {
41
40
  return;
42
41
  }
43
42
  }
44
- if (keyCommand.key !== "\u0003" /* SpecialKeys.CtrlC */) {
43
+ if (keyCommand.key !== "\u0003") {
45
44
  const line = ` ${color_1.color.dim("→")} ${color_1.color.bold(keyCommand.key)} — ${keyCommand.description}`;
46
45
  const lineLength = (0, color_1.stripColors)(line).length - 1;
47
46
  console.log(color_1.color.dim(` ┌${"─".repeat(lineLength)}┐`));
@@ -123,4 +122,3 @@ class KeyCommandHelper {
123
122
  }
124
123
  exports.default = KeyCommandHelper;
125
124
  yok_1.injector.register("keyCommandHelper", KeyCommandHelper);
126
- //# sourceMappingURL=key-command-helper.js.map
@@ -34,7 +34,6 @@ class LiveSyncCommandHelper {
34
34
  get $platformsDataService() {
35
35
  return this.$injector.resolve("platformsDataService");
36
36
  }
37
- // TODO: Remove this and replace it with buildData
38
37
  getLiveSyncData(projectDir) {
39
38
  const liveSyncInfo = {
40
39
  projectDir,
@@ -67,7 +66,6 @@ class LiveSyncCommandHelper {
67
66
  }
68
67
  createDeviceDescriptors(devices, platform, additionalOptions) {
69
68
  return __awaiter(this, void 0, void 0, function* () {
70
- // Now let's take data for each device:
71
69
  const deviceDescriptors = devices.map((d) => {
72
70
  const outputPath = additionalOptions &&
73
71
  additionalOptions.getOutputDirectory &&
@@ -141,7 +139,7 @@ class LiveSyncCommandHelper {
141
139
  const remainingDevicesToSync = devices.map((d) => d.deviceInfo.identifier);
142
140
  _.remove(remainingDevicesToSync, (d) => d === data.deviceIdentifier);
143
141
  if (remainingDevicesToSync.length === 0 && !data.keepProcessAlive) {
144
- process.exit(134 /* ErrorCodes.ALL_DEVICES_DISCONNECTED */);
142
+ process.exit(134);
145
143
  }
146
144
  }));
147
145
  });
@@ -220,4 +218,3 @@ class LiveSyncCommandHelper {
220
218
  }
221
219
  exports.LiveSyncCommandHelper = LiveSyncCommandHelper;
222
220
  yok_1.injector.register("liveSyncCommandHelper", LiveSyncCommandHelper);
223
- //# sourceMappingURL=livesync-command-helper.js.map
@@ -45,4 +45,3 @@ NetworkConnectivityValidator.NO_INTERNET_ERROR_CODE = "ENOTFOUND";
45
45
  NetworkConnectivityValidator.NO_INTERNET_ERROR_MESSAGE = "No internet connection. Check your internet settings and try again.";
46
46
  exports.NetworkConnectivityValidator = NetworkConnectivityValidator;
47
47
  yok_1.injector.register("networkConnectivityValidator", NetworkConnectivityValidator);
48
- //# sourceMappingURL=network-connectivity-validator.js.map
@@ -21,7 +21,7 @@ class OptionsTracker {
21
21
  return __awaiter(this, void 0, void 0, function* () {
22
22
  const trackObject = this.getTrackObject(options);
23
23
  yield this.$analyticsService.trackEventActionInGoogleAnalytics({
24
- action: "Options" /* TrackActionNames.Options */,
24
+ action: "Options",
25
25
  additionalData: JSON.stringify(trackObject),
26
26
  });
27
27
  });
@@ -69,7 +69,7 @@ class OptionsTracker {
69
69
  return true;
70
70
  }
71
71
  const optionDef = options[key];
72
- if (optionDef && optionDef.type === "boolean" /* OptionType.Boolean */) {
72
+ if (optionDef && optionDef.type === "boolean") {
73
73
  if ((optionDef.default !== true && value === false) ||
74
74
  (optionDef.default === true && value === true)) {
75
75
  return true;
@@ -86,4 +86,3 @@ OptionsTracker.PATH_REPLACE_VALUE = "_localpath";
86
86
  OptionsTracker.SIZE_EXEEDED_REPLACE_VALUE = "sizeExceeded";
87
87
  exports.OptionsTracker = OptionsTracker;
88
88
  yok_1.injector.register("optionsTracker", OptionsTracker);
89
- //# sourceMappingURL=options-track-helper.js.map
@@ -4,4 +4,3 @@ exports.resolvePackageJSONPath = exports.resolvePackagePath = void 0;
4
4
  const resolve_package_path_1 = require("@rigor789/resolve-package-path");
5
5
  Object.defineProperty(exports, "resolvePackagePath", { enumerable: true, get: function () { return resolve_package_path_1.resolvePackagePath; } });
6
6
  Object.defineProperty(exports, "resolvePackageJSONPath", { enumerable: true, get: function () { return resolve_package_path_1.resolvePackageJSONPath; } });
7
- //# sourceMappingURL=package-path-helper.js.map
@@ -75,10 +75,6 @@ class PlatformCommandHelper {
75
75
  const platformDir = path.join(projectData.platformsDir, platform.toLowerCase());
76
76
  this.$fs.deleteDirectory(platformDir);
77
77
  yield this.$packageInstallationManager.uninstall(platformData.frameworkPackageName, projectData.projectDir);
78
- // this.$projectDataService.removeNSProperty(
79
- // projectData.projectDir,
80
- // platformData.frameworkPackageName
81
- // );
82
78
  this.$logger.info(`Platform ${platform} successfully removed.`);
83
79
  }
84
80
  catch (err) {
@@ -120,7 +116,7 @@ class PlatformCommandHelper {
120
116
  const installedPlatforms = this.getInstalledPlatforms(projectData);
121
117
  return _.filter(this.$mobileHelper.platformNames, (p) => {
122
118
  return (installedPlatforms.indexOf(p) < 0 &&
123
- this.$platformValidationService.isPlatformSupportedForOS(p, projectData)); // Only those not already installed
119
+ this.$platformValidationService.isPlatformSupportedForOS(p, projectData));
124
120
  });
125
121
  }
126
122
  getPreparedPlatforms(projectData) {
@@ -144,7 +140,7 @@ class PlatformCommandHelper {
144
140
  return true;
145
141
  }
146
142
  return (prepareInfo.nativePlatformStatus !==
147
- "1" /* constants.NativePlatformStatus.requiresPlatformAdd */);
143
+ "1");
148
144
  }
149
145
  updatePlatform(platform, version, projectData) {
150
146
  return __awaiter(this, void 0, void 0, function* () {
@@ -194,4 +190,3 @@ class PlatformCommandHelper {
194
190
  }
195
191
  exports.PlatformCommandHelper = PlatformCommandHelper;
196
192
  yok_1.injector.register("platformCommandHelper", PlatformCommandHelper);
197
- //# sourceMappingURL=platform-command-helper.js.map
@@ -23,4 +23,3 @@ class VersionValidatorHelper {
23
23
  }
24
24
  }
25
25
  exports.VersionValidatorHelper = VersionValidatorHelper;
26
- //# sourceMappingURL=version-validator-helper.js.map
@@ -13,10 +13,9 @@ yok_1.injector.requireKeyCommand("R", path);
13
13
  yok_1.injector.requireKeyCommand("w", path);
14
14
  yok_1.injector.requireKeyCommand("c", path);
15
15
  yok_1.injector.requireKeyCommand("n", path);
16
- yok_1.injector.requireKeyCommand("?" /* SpecialKeys.QuestionMark */, path);
17
- yok_1.injector.requireKeyCommand("\u0003" /* SpecialKeys.CtrlC */, path);
16
+ yok_1.injector.requireKeyCommand("?", path);
17
+ yok_1.injector.requireKeyCommand("\u0003", path);
18
18
  yok_1.injector.requireCommand("open|ios", path);
19
19
  yok_1.injector.requireCommand("open|android", path);
20
20
  yok_1.injector.requireCommand("open|visionos", path);
21
21
  yok_1.injector.requireCommand("open|vision", path);
22
- //# sourceMappingURL=bootstrap.js.map
@@ -327,7 +327,7 @@ class ShiftR {
327
327
  exports.ShiftR = ShiftR;
328
328
  class CtrlC {
329
329
  constructor() {
330
- this.key = "\u0003" /* SpecialKeys.CtrlC */;
330
+ this.key = "\u0003";
331
331
  this.platform = "all";
332
332
  this.group = "Development Workflow";
333
333
  this.willBlockKeyCommandExecution = false;
@@ -406,7 +406,7 @@ exports.N = N;
406
406
  class QuestionMark {
407
407
  constructor($keyCommandHelper) {
408
408
  this.$keyCommandHelper = $keyCommandHelper;
409
- this.key = "?" /* SpecialKeys.QuestionMark */;
409
+ this.key = "?";
410
410
  this.platform = "all";
411
411
  this.description = "Show this help";
412
412
  this.group = "Development Workflow";
@@ -448,10 +448,9 @@ yok_1.injector.registerKeyCommand("w", W);
448
448
  yok_1.injector.registerKeyCommand("c", C);
449
449
  yok_1.injector.registerKeyCommand("A", ShiftA);
450
450
  yok_1.injector.registerKeyCommand("n", N);
451
- yok_1.injector.registerKeyCommand("?" /* SpecialKeys.QuestionMark */, QuestionMark);
452
- yok_1.injector.registerKeyCommand("\u0003" /* SpecialKeys.CtrlC */, CtrlC);
451
+ yok_1.injector.registerKeyCommand("?", QuestionMark);
452
+ yok_1.injector.registerKeyCommand("\u0003", CtrlC);
453
453
  yok_1.injector.registerCommand("open|ios", OpenIOSCommand);
454
454
  yok_1.injector.registerCommand("open|visionos", OpenVisionOSCommand);
455
455
  yok_1.injector.registerCommand("open|vision", OpenVisionOSCommand);
456
456
  yok_1.injector.registerCommand("open|android", OpenAndroidCommand);
457
- //# sourceMappingURL=index.js.map
@@ -3,10 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const yok_1 = require("./common/yok");
4
4
  require("./bootstrap");
5
5
  yok_1.injector.overrideAlreadyRequiredModule = true;
6
- // Temporary!!! Should not require appbuilder's entry point of mobile-cli-lib,
7
- // but once we separate logics in mobile-cli-lib, we should be able to require only specific bootstrap.
8
- // Use this hack for now, as this will allow requiring {N} CLI as library directly and executing some device specific operations.
9
6
  yok_1.injector.requirePublicClass("deviceEmitter", "./common/mobile/device-emitter");
10
7
  yok_1.injector.requirePublicClass("deviceLogProvider", "./common/mobile/device-log-emitter");
11
8
  yok_1.injector.resolve("staticConfig").disableAnalytics = true;
12
- //# sourceMappingURL=nativescript-cli-lib-bootstrap.js.map
@@ -3,4 +3,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const yok_1 = require("./common/yok");
4
4
  require("./nativescript-cli-lib-bootstrap");
5
5
  module.exports = yok_1.injector.publicApi;
6
- //# sourceMappingURL=nativescript-cli-lib.js.map
@@ -18,7 +18,7 @@ const errors_1 = require("./common/errors");
18
18
  const helpers_1 = require("./common/helpers");
19
19
  const yok_1 = require("./common/yok");
20
20
  const color_1 = require("./color");
21
- (0, errors_1.installUncaughtExceptionListener)(process.exit.bind(process, 120 /* ErrorCodes.UNCAUGHT */));
21
+ (0, errors_1.installUncaughtExceptionListener)(process.exit.bind(process, 120));
22
22
  const logger = yok_1.injector.resolve("logger");
23
23
  exports.originalProcessOn = process.on.bind(process);
24
24
  process.on = (event, listener) => {
@@ -32,10 +32,8 @@ process.on = (event, listener) => {
32
32
  return (0, exports.originalProcessOn)(event, listener);
33
33
  }
34
34
  };
35
- /* tslint:disable:no-floating-promises */
36
35
  (() => __awaiter(void 0, void 0, void 0, function* () {
37
36
  if (process.argv.includes("--get-yargs-completions")) {
38
- // This is a special case when we want to get the yargs completions as fast as possible...
39
37
  yok_1.injector.resolve("$options");
40
38
  return;
41
39
  }
@@ -52,13 +50,6 @@ process.on = (event, listener) => {
52
50
  logger.trace("Unable to load extensions. Error is: ", err);
53
51
  }
54
52
  const commandDispatcher = yok_1.injector.resolve("commandDispatcher");
55
- // unused...
56
- // const messages: IMessagesService = injector.resolve("$messagesService");
57
- // messages.pathsToMessageJsonFiles = [
58
- // /* Place client-specific json message file paths here */
59
- // ];
60
53
  yield commandDispatcher.dispatchCommand();
61
54
  yok_1.injector.dispose();
62
55
  }))();
63
- /* tslint:enable:no-floating-promises */
64
- //# sourceMappingURL=nativescript-cli.js.map
@@ -3,4 +3,3 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const pbxprojDomXcodeModule = require("pbxproj-dom/xcode");
4
4
  const yok_1 = require("../common/yok");
5
5
  yok_1.injector.register("pbxprojDomXcode", pbxprojDomXcodeModule);
6
- //# sourceMappingURL=pbxproj-dom-xcode.js.map
package/lib/node/xcode.js CHANGED
@@ -5,4 +5,3 @@ const xcode = require("nativescript-dev-xcode");
5
5
  exports.xcode = xcode;
6
6
  const yok_1 = require("../common/yok");
7
7
  yok_1.injector.register("xcode", xcode);
8
- //# sourceMappingURL=xcode.js.map
@@ -47,12 +47,8 @@ class NodePackageManager extends base_package_manager_1.BasePackageManager {
47
47
  }
48
48
  params = params.concat(flags);
49
49
  const cwd = pathToSave;
50
- // Npm creates `etc` directory in installation dir when --prefix is passed
51
- // https://github.com/npm/npm/issues/11486
52
- // we should delete it if it was created because of us
53
50
  const etcDirectoryLocation = (0, path_1.join)(cwd, "etc");
54
51
  const etcExistsPriorToInstallation = this.$fs.exists(etcDirectoryLocation);
55
- //TODO: plamen5kov: workaround is here for a reason (remove whole file later)
56
52
  if (config.path) {
57
53
  let relativePathFromCwdToSource = "";
58
54
  if (config.frameworkPath) {
@@ -68,13 +64,9 @@ class NodePackageManager extends base_package_manager_1.BasePackageManager {
68
64
  }
69
65
  catch (err) {
70
66
  if (err.message && err.message.indexOf("EPEERINVALID") !== -1) {
71
- // Not installed peer dependencies are treated by npm 2 as errors, but npm 3 treats them as warnings.
72
- // We'll show them as warnings and let the user install them in case they are needed.
73
67
  this.$logger.warn(err.message);
74
68
  }
75
69
  else {
76
- // All other errors should be handled by the caller code.
77
- // Revert package.json contents to preserve valid state
78
70
  this.$fs.writeJson(packageJsonPath, jsonContentBefore);
79
71
  throw err;
80
72
  }
@@ -102,7 +94,7 @@ class NodePackageManager extends base_package_manager_1.BasePackageManager {
102
94
  }
103
95
  view(packageName, config) {
104
96
  return __awaiter(this, void 0, void 0, function* () {
105
- const wrappedConfig = _.extend({}, config, { json: true }); // always require view response as JSON
97
+ const wrappedConfig = _.extend({}, config, { json: true });
106
98
  const flags = this.getFlagsString(wrappedConfig, false);
107
99
  let viewResult;
108
100
  try {
@@ -121,7 +113,6 @@ class NodePackageManager extends base_package_manager_1.BasePackageManager {
121
113
  }
122
114
  searchNpms(keyword) {
123
115
  return __awaiter(this, void 0, void 0, function* () {
124
- // TODO: Fix the generation of url - in case it contains @ or / , the call may fail.
125
116
  const httpRequestResult = yield this.$httpClient.httpRequest(`https://api.npms.io/v2/search?q=keywords:${keyword}`);
126
117
  const result = JSON.parse(httpRequestResult.body);
127
118
  return result;
@@ -163,4 +154,3 @@ __decorate([
163
154
  ], NodePackageManager.prototype, "getCachePath", null);
164
155
  exports.NodePackageManager = NodePackageManager;
165
156
  yok_1.injector.register("npm", NodePackageManager);
166
- //# sourceMappingURL=node-package-manager.js.map