nativescript 9.1.0-alpha.15 → 9.1.0-alpha.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2571 -0
- package/bin/tns +65 -1
- package/config/config.json +2 -1
- package/config/test-deps-versions-generated.json +1 -1
- package/contracts/package.json +4 -0
- package/docs/build-jekyll-md.sh +1 -1
- package/docs/man_pages/config/config-set.md +2 -0
- package/docs/man_pages/project/testing/build-android.md +1 -1
- package/lib/android-tools-info.d.ts +19 -0
- package/lib/android-tools-info.js +0 -12
- package/lib/base-package-manager.d.ts +28 -0
- package/lib/base-package-manager.js +0 -7
- package/lib/bootstrap.js +3 -6
- package/lib/bun-package-manager.d.ts +16 -0
- package/lib/bun-package-manager.js +1 -14
- package/lib/color.d.ts +39 -0
- package/lib/color.js +0 -4
- package/lib/commands/add-platform.d.ts +14 -0
- package/lib/commands/add-platform.js +0 -1
- package/lib/commands/apple-login.d.ts +14 -0
- package/lib/commands/apple-login.js +0 -1
- package/lib/commands/appstore-list.d.ts +21 -0
- package/lib/commands/appstore-list.js +0 -1
- package/lib/commands/appstore-upload.d.ts +25 -0
- package/lib/commands/appstore-upload.js +0 -3
- package/lib/commands/build.d.ts +58 -0
- package/lib/commands/build.js +3 -3
- package/lib/commands/clean.d.ts +21 -0
- package/lib/commands/clean.js +1 -22
- package/lib/commands/command-base.d.ts +16 -0
- package/lib/commands/command-base.js +0 -1
- package/lib/commands/config.d.ts +30 -0
- package/lib/commands/config.js +0 -5
- package/lib/commands/create-project.d.ts +42 -0
- package/lib/commands/create-project.js +0 -6
- package/lib/commands/debug.d.ts +53 -0
- package/lib/commands/debug.js +2 -6
- package/lib/commands/deploy.d.ts +32 -0
- package/lib/commands/deploy.js +3 -3
- package/lib/commands/embedding/embed.d.ts +27 -0
- package/lib/commands/embedding/embed.js +0 -7
- package/lib/commands/extensibility/install-extension.d.ts +10 -0
- package/lib/commands/extensibility/install-extension.js +0 -1
- package/lib/commands/extensibility/list-extensions.d.ts +9 -0
- package/lib/commands/extensibility/list-extensions.js +0 -1
- package/lib/commands/extensibility/uninstall-extension.d.ts +10 -0
- package/lib/commands/extensibility/uninstall-extension.js +0 -1
- package/lib/commands/fonts.d.ts +12 -0
- package/lib/commands/fonts.js +0 -1
- package/lib/commands/generate-assets.d.ts +29 -0
- package/lib/commands/generate-assets.js +0 -1
- package/lib/commands/generate-help.d.ts +8 -0
- package/lib/commands/generate-help.js +0 -1
- package/lib/commands/generate.d.ts +12 -0
- package/lib/commands/generate.js +1 -48
- package/lib/commands/hooks/common.d.ts +22 -0
- package/lib/commands/hooks/common.js +1 -2
- package/lib/commands/hooks/hooks-lock.d.ts +24 -0
- package/lib/commands/hooks/hooks-lock.js +0 -1
- package/lib/commands/hooks/hooks.d.ts +17 -0
- package/lib/commands/hooks/hooks.js +0 -1
- package/lib/commands/info.d.ts +8 -0
- package/lib/commands/info.js +0 -1
- package/lib/commands/install.d.ts +25 -0
- package/lib/commands/install.js +0 -1
- package/lib/commands/list-platforms.d.ts +11 -0
- package/lib/commands/list-platforms.js +0 -1
- package/lib/commands/migrate.d.ts +13 -0
- package/lib/commands/migrate.js +0 -1
- package/lib/commands/native-add.d.ts +49 -0
- package/lib/commands/native-add.js +0 -5
- package/lib/commands/platform-clean.d.ts +17 -0
- package/lib/commands/platform-clean.js +0 -1
- package/lib/commands/plugin/add-plugin.d.ts +13 -0
- package/lib/commands/plugin/add-plugin.js +0 -1
- package/lib/commands/plugin/build-plugin.d.ts +18 -0
- package/lib/commands/plugin/build-plugin.js +0 -1
- package/lib/commands/plugin/create-plugin.d.ts +30 -0
- package/lib/commands/plugin/create-plugin.js +0 -5
- package/lib/commands/plugin/list-plugins.d.ts +12 -0
- package/lib/commands/plugin/list-plugins.js +0 -1
- package/lib/commands/plugin/remove-plugin.d.ts +14 -0
- package/lib/commands/plugin/remove-plugin.js +0 -2
- package/lib/commands/plugin/update-plugin.d.ts +13 -0
- package/lib/commands/plugin/update-plugin.js +0 -1
- package/lib/commands/post-install.d.ts +16 -0
- package/lib/commands/post-install.js +0 -6
- package/lib/commands/prepare.d.ts +40 -0
- package/lib/commands/prepare.js +4 -9
- package/lib/commands/preview.d.ts +18 -0
- package/lib/commands/preview.js +1 -2
- package/lib/commands/remove-platform.d.ts +14 -0
- package/lib/commands/remove-platform.js +0 -1
- package/lib/commands/resources/resources-update.d.ts +13 -0
- package/lib/commands/resources/resources-update.js +0 -2
- package/lib/commands/run.d.ts +61 -0
- package/lib/commands/run.js +0 -1
- package/lib/commands/setup.d.ts +8 -0
- package/lib/commands/setup.js +0 -1
- package/lib/commands/start.d.ts +9 -0
- package/lib/commands/start.js +0 -1
- package/lib/commands/test-init.js +0 -4
- package/lib/commands/test.js +3 -9
- package/lib/commands/typings.d.ts +22 -0
- package/lib/commands/typings.js +1 -2
- package/lib/commands/update-platform.d.ts +17 -0
- package/lib/commands/update-platform.js +0 -5
- package/lib/commands/update.d.ts +21 -0
- package/lib/commands/update.js +0 -2
- package/lib/commands/widget.d.ts +24 -0
- package/lib/commands/widget.js +0 -19
- package/lib/common/bootstrap.js +0 -1
- package/lib/common/child-process.d.ts +17 -0
- package/lib/common/child-process.js +0 -3
- package/lib/common/codeGeneration/code-entity.d.ts +22 -0
- package/lib/common/codeGeneration/code-entity.js +0 -1
- package/lib/common/codeGeneration/code-printer.d.ts +10 -0
- package/lib/common/codeGeneration/code-printer.js +0 -1
- package/lib/common/command-params.d.ts +14 -0
- package/lib/common/command-params.js +0 -1
- package/lib/common/commands/analytics.d.ts +30 -0
- package/lib/common/commands/analytics.js +0 -3
- package/lib/common/commands/autocompletion.d.ts +35 -0
- package/lib/common/commands/autocompletion.js +0 -3
- package/lib/common/commands/device/device-log-stream.d.ts +16 -0
- package/lib/common/commands/device/device-log-stream.js +0 -1
- package/lib/common/commands/device/get-file.d.ts +14 -0
- package/lib/common/commands/device/get-file.js +0 -2
- package/lib/common/commands/device/list-applications.d.ts +10 -0
- package/lib/common/commands/device/list-applications.js +0 -1
- package/lib/common/commands/device/list-devices.d.ts +16 -0
- package/lib/common/commands/device/list-devices.js +0 -3
- package/lib/common/commands/device/list-files.d.ts +14 -0
- package/lib/common/commands/device/list-files.js +0 -2
- package/lib/common/commands/device/put-file.d.ts +14 -0
- package/lib/common/commands/device/put-file.js +0 -2
- package/lib/common/commands/device/run-application.d.ts +13 -0
- package/lib/common/commands/device/run-application.js +0 -1
- package/lib/common/commands/device/stop-application.d.ts +10 -0
- package/lib/common/commands/device/stop-application.js +0 -1
- package/lib/common/commands/device/uninstall-application.d.ts +10 -0
- package/lib/common/commands/device/uninstall-application.js +0 -1
- package/lib/common/commands/doctor.d.ts +23 -0
- package/lib/common/commands/doctor.js +3 -3
- package/lib/common/commands/generate-messages.d.ts +13 -0
- package/lib/common/commands/generate-messages.js +0 -1
- package/lib/common/commands/help.d.ts +14 -0
- package/lib/common/commands/help.js +0 -1
- package/lib/common/commands/package-manager-get.d.ts +10 -0
- package/lib/common/commands/package-manager-get.js +0 -1
- package/lib/common/commands/package-manager-set.d.ts +11 -0
- package/lib/common/commands/package-manager-set.js +0 -1
- package/lib/common/commands/post-install.d.ts +9 -0
- package/lib/common/commands/post-install.js +0 -1
- package/lib/common/commands/preuninstall.d.ts +16 -0
- package/lib/common/commands/preuninstall.js +2 -11
- package/lib/common/commands/proxy/proxy-base.d.ts +13 -0
- package/lib/common/commands/proxy/proxy-base.js +0 -4
- package/lib/common/commands/proxy/proxy-clear.d.ts +9 -0
- package/lib/common/commands/proxy/proxy-clear.js +0 -1
- package/lib/common/commands/proxy/proxy-get.d.ts +9 -0
- package/lib/common/commands/proxy/proxy-get.js +0 -1
- package/lib/common/commands/proxy/proxy-set.d.ts +23 -0
- package/lib/common/commands/proxy/proxy-set.js +0 -1
- package/lib/common/common-lib.js +0 -1
- package/lib/common/constants.d.ts +117 -0
- package/lib/common/constants.js +14 -12
- package/lib/common/contracts/command-registry.d.ts +35 -0
- package/lib/common/contracts/command-registry.js +16 -0
- package/lib/common/contracts/index.d.ts +5 -0
- package/lib/common/contracts/index.js +11 -0
- package/lib/common/contracts/key-command-registry.d.ts +7 -0
- package/lib/common/contracts/key-command-registry.js +16 -0
- package/lib/common/contracts/module-registry.d.ts +4 -0
- package/lib/common/contracts/module-registry.js +16 -0
- package/lib/common/contracts/public-api-builder.d.ts +5 -0
- package/lib/common/contracts/public-api-builder.js +16 -0
- package/lib/common/declarations.d.ts +49 -118
- package/lib/common/decorators.d.ts +13 -0
- package/lib/common/decorators.js +0 -48
- package/lib/common/define-command.d.ts +53 -0
- package/lib/common/define-command.js +147 -0
- package/lib/common/define-hook.d.ts +29 -0
- package/lib/common/define-hook.js +101 -0
- package/lib/common/definitions/commands.d.ts +7 -0
- package/lib/common/definitions/extensibility.d.ts +7 -0
- package/lib/common/definitions/key-commands.d.ts +15 -52
- package/lib/common/definitions/key-commands.js +8 -0
- package/lib/common/definitions/yok.d.ts +43 -35
- package/lib/common/deprecation.d.ts +12 -0
- package/lib/common/deprecation.js +56 -0
- package/lib/common/di/contract.d.ts +7 -0
- package/lib/common/di/contract.js +34 -0
- package/lib/common/di/forward-ref.d.ts +2 -0
- package/lib/common/di/forward-ref.js +15 -0
- package/lib/common/di/index.d.ts +8 -0
- package/lib/common/di/index.js +19 -0
- package/lib/common/di/inject.d.ts +8 -0
- package/lib/common/di/inject.js +41 -0
- package/lib/common/di/injector.d.ts +38 -0
- package/lib/common/di/injector.js +268 -0
- package/lib/common/di/providers.d.ts +30 -0
- package/lib/common/di/providers.js +7 -0
- package/lib/common/dispatchers.d.ts +21 -0
- package/lib/common/dispatchers.js +1 -10
- package/lib/common/enums.d.ts +34 -0
- package/lib/common/enums.js +42 -0
- package/lib/common/errors.d.ts +15 -0
- package/lib/common/errors.js +4 -13
- package/lib/common/file-system.d.ts +77 -0
- package/lib/common/file-system.js +2 -13
- package/lib/common/header.d.ts +1 -0
- package/lib/common/header.js +0 -3
- package/lib/common/helpers.d.ts +62 -0
- package/lib/common/helpers.js +6 -92
- package/lib/common/host-info.d.ts +24 -0
- package/lib/common/host-info.js +0 -4
- package/lib/common/http-client.d.ts +14 -0
- package/lib/common/http-client.js +11 -20
- package/lib/common/logger/appenders/cli-appender.d.ts +2 -0
- package/lib/common/logger/appenders/cli-appender.js +0 -4
- package/lib/common/logger/appenders/emit-appender.d.ts +5 -0
- package/lib/common/logger/appenders/emit-appender.js +0 -4
- package/lib/common/logger/layouts/cli-layout.d.ts +2 -0
- package/lib/common/logger/layouts/cli-layout.js +0 -1
- package/lib/common/logger/logger.d.ts +24 -0
- package/lib/common/logger/logger.js +0 -5
- package/lib/common/messages/messages.d.ts +7 -0
- package/lib/common/messages/messages.js +0 -6
- package/lib/common/mobile/android/android-application-manager.d.ts +31 -0
- package/lib/common/mobile/android/android-application-manager.js +1 -20
- package/lib/common/mobile/android/android-debug-bridge-result-handler.d.ts +9 -0
- package/lib/common/mobile/android/android-debug-bridge-result-handler.js +0 -1
- package/lib/common/mobile/android/android-debug-bridge.d.ts +24 -0
- package/lib/common/mobile/android/android-debug-bridge.js +0 -6
- package/lib/common/mobile/android/android-device-file-system.d.ts +26 -0
- package/lib/common/mobile/android/android-device-file-system.js +0 -4
- package/lib/common/mobile/android/android-device-hash-service.d.ts +23 -0
- package/lib/common/mobile/android/android-device-hash-service.js +0 -3
- package/lib/common/mobile/android/android-device.d.ts +24 -0
- package/lib/common/mobile/android/android-device.js +0 -8
- package/lib/common/mobile/android/android-emulator-services.d.ts +23 -0
- package/lib/common/mobile/android/android-emulator-services.js +1 -2
- package/lib/common/mobile/android/android-ini-file-parser.d.ts +8 -0
- package/lib/common/mobile/android/android-ini-file-parser.js +0 -9
- package/lib/common/mobile/android/android-log-filter.d.ts +11 -0
- package/lib/common/mobile/android/android-log-filter.js +0 -4
- package/lib/common/mobile/android/android-virtual-device-service.d.ts +37 -0
- package/lib/common/mobile/android/android-virtual-device-service.js +0 -26
- package/lib/common/mobile/android/device-android-debug-bridge.d.ts +18 -0
- package/lib/common/mobile/android/device-android-debug-bridge.js +0 -1
- package/lib/common/mobile/android/genymotion/genymotion-service.d.ts +26 -0
- package/lib/common/mobile/android/genymotion/genymotion-service.js +1 -6
- package/lib/common/mobile/android/genymotion/virtualbox-service.d.ts +13 -0
- package/lib/common/mobile/android/genymotion/virtualbox-service.js +0 -11
- package/lib/common/mobile/android/logcat-helper.d.ts +17 -0
- package/lib/common/mobile/android/logcat-helper.js +0 -13
- package/lib/common/mobile/application-manager-base.d.ts +27 -0
- package/lib/common/mobile/application-manager-base.js +0 -6
- package/lib/common/mobile/device-emitter.d.ts +8 -0
- package/lib/common/mobile/device-emitter.js +0 -4
- package/lib/common/mobile/device-log-emitter.d.ts +9 -0
- package/lib/common/mobile/device-log-emitter.js +0 -1
- package/lib/common/mobile/device-log-provider-base.d.ts +21 -0
- package/lib/common/mobile/device-log-provider-base.js +0 -1
- package/lib/common/mobile/device-log-provider.d.ts +21 -0
- package/lib/common/mobile/device-log-provider.js +0 -23
- package/lib/common/mobile/device-platforms-constants.d.ts +8 -0
- package/lib/common/mobile/device-platforms-constants.js +0 -1
- package/lib/common/mobile/emulator-helper.d.ts +32 -0
- package/lib/common/mobile/emulator-helper.js +0 -3
- package/lib/common/mobile/ios/device/ios-application-manager.d.ts +27 -0
- package/lib/common/mobile/ios/device/ios-application-manager.js +0 -3
- package/lib/common/mobile/ios/device/ios-device-file-system.d.ts +19 -0
- package/lib/common/mobile/ios/device/ios-device-file-system.js +0 -9
- package/lib/common/mobile/ios/device/ios-device-operations.d.ts +29 -0
- package/lib/common/mobile/ios/device/ios-device-operations.js +0 -4
- package/lib/common/mobile/ios/device/ios-device.d.ts +32 -0
- package/lib/common/mobile/ios/device/ios-device.js +0 -4
- package/lib/common/mobile/ios/ios-device-base.d.ts +24 -0
- package/lib/common/mobile/ios/ios-device-base.js +0 -1
- package/lib/common/mobile/ios/ios-device-product-name-mapper.js +0 -2
- package/lib/common/mobile/ios/ios-log-filter.d.ts +6 -0
- package/lib/common/mobile/ios/ios-log-filter.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-emulator-services.d.ts +1 -0
- package/lib/common/mobile/ios/simulator/ios-emulator-services.js +0 -4
- package/lib/common/mobile/ios/simulator/ios-sim-resolver.d.ts +7 -0
- package/lib/common/mobile/ios/simulator/ios-sim-resolver.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.d.ts +27 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-application-manager.js +0 -6
- package/lib/common/mobile/ios/simulator/ios-simulator-device.d.ts +27 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-device.js +0 -5
- package/lib/common/mobile/ios/simulator/ios-simulator-file-system.d.ts +16 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-file-system.js +0 -1
- package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.d.ts +15 -0
- package/lib/common/mobile/ios/simulator/ios-simulator-log-provider.js +0 -1
- package/lib/common/mobile/local-to-device-path-data-factory.d.ts +3 -0
- package/lib/common/mobile/local-to-device-path-data-factory.js +0 -1
- package/lib/common/mobile/log-filter.d.ts +13 -0
- package/lib/common/mobile/log-filter.js +0 -2
- package/lib/common/mobile/logging-levels.d.ts +4 -0
- package/lib/common/mobile/logging-levels.js +0 -1
- package/lib/common/mobile/mobile-core/android-device-discovery.d.ts +16 -0
- package/lib/common/mobile/mobile-core/android-device-discovery.js +0 -2
- package/lib/common/mobile/mobile-core/android-emulator-discovery.d.ts +11 -0
- package/lib/common/mobile/mobile-core/android-emulator-discovery.js +0 -3
- package/lib/common/mobile/mobile-core/android-process-service.d.ts +33 -0
- package/lib/common/mobile/mobile-core/android-process-service.js +0 -32
- package/lib/common/mobile/mobile-core/device-discovery.d.ts +12 -0
- package/lib/common/mobile/mobile-core/device-discovery.js +0 -1
- package/lib/common/mobile/mobile-core/devices-service.d.ts +99 -0
- package/lib/common/mobile/mobile-core/devices-service.js +0 -69
- package/lib/common/mobile/mobile-core/ios-device-discovery.d.ts +12 -0
- package/lib/common/mobile/mobile-core/ios-device-discovery.js +0 -2
- package/lib/common/mobile/mobile-core/ios-simulator-discovery.d.ts +20 -0
- package/lib/common/mobile/mobile-core/ios-simulator-discovery.js +0 -3
- package/lib/common/mobile/mobile-helper.d.ts +22 -0
- package/lib/common/mobile/mobile-helper.js +0 -1
- package/lib/common/mobile/wp8/wp8-emulator-services.d.ts +1 -0
- package/lib/common/mobile/wp8/wp8-emulator-services.js +0 -1
- package/lib/common/opener.d.ts +4 -0
- package/lib/common/opener.js +0 -1
- package/lib/common/os-info.d.ts +7 -0
- package/lib/common/os-info.js +0 -1
- package/lib/common/plist-parser.d.ts +5 -0
- package/lib/common/plist-parser.js +0 -1
- package/lib/common/project-helper.d.ts +15 -0
- package/lib/common/project-helper.js +0 -1
- package/lib/common/prompter.d.ts +23 -0
- package/lib/common/prompter.js +1 -9
- package/lib/common/queue.d.ts +8 -0
- package/lib/common/queue.js +0 -1
- package/lib/common/resource-loader.d.ts +10 -0
- package/lib/common/resource-loader.js +0 -1
- package/lib/common/services/analytics/google-analytics-custom-dimensions.d.ts +8 -15
- package/lib/common/services/analytics/google-analytics-custom-dimensions.js +13 -0
- package/lib/common/services/auto-completion-service.d.ts +36 -0
- package/lib/common/services/auto-completion-service.js +1 -13
- package/lib/common/services/cancellation.d.ts +1 -0
- package/lib/common/services/cancellation.js +2 -2
- package/lib/common/services/command-definition-adapter.d.ts +6 -0
- package/lib/common/services/command-definition-adapter.js +141 -0
- package/lib/common/services/commands-service.d.ts +30 -0
- package/lib/common/services/commands-service.js +10 -18
- package/lib/common/services/help-service.d.ts +46 -0
- package/lib/common/services/help-service.js +4 -11
- package/lib/common/services/hooks-service.d.ts +40 -0
- package/lib/common/services/hooks-service.js +110 -64
- package/lib/common/services/ios-notification-service.d.ts +7 -0
- package/lib/common/services/ios-notification-service.js +0 -1
- package/lib/common/services/json-file-settings-service.d.ts +24 -0
- package/lib/common/services/json-file-settings-service.js +0 -6
- package/lib/common/services/lock-service.d.ts +18 -0
- package/lib/common/services/lock-service.js +0 -6
- package/lib/common/services/message-contract-generator.d.ts +8 -0
- package/lib/common/services/message-contract-generator.js +0 -1
- package/lib/common/services/messages-service.d.ts +15 -0
- package/lib/common/services/messages-service.js +0 -1
- package/lib/common/services/micro-templating-service.d.ts +12 -0
- package/lib/common/services/micro-templating-service.js +0 -6
- package/lib/common/services/net-service.d.ts +13 -0
- package/lib/common/services/net-service.js +0 -3
- package/lib/common/services/project-files-manager.d.ts +14 -0
- package/lib/common/services/project-files-manager.js +0 -5
- package/lib/common/services/project-files-provider-base.d.ts +12 -0
- package/lib/common/services/project-files-provider-base.js +0 -1
- package/lib/common/services/proxy-service.d.ts +12 -0
- package/lib/common/services/proxy-service.js +0 -1
- package/lib/common/services/qr.d.ts +7 -0
- package/lib/common/services/qr.js +0 -1
- package/lib/common/services/settings-service.d.ts +10 -0
- package/lib/common/services/settings-service.js +0 -1
- package/lib/common/services/xcode-select-service.d.ts +12 -0
- package/lib/common/services/xcode-select-service.js +0 -1
- package/lib/common/utils.d.ts +10 -0
- package/lib/common/utils.js +0 -1
- package/lib/common/validators/project-name-validator.d.ts +18 -0
- package/lib/common/validators/project-name-validator.js +0 -1
- package/lib/common/validators/validation-result.d.ts +7 -0
- package/lib/common/validators/validation-result.js +0 -1
- package/lib/common/verify-node-version.d.ts +3 -0
- package/lib/common/verify-node-version.js +2 -8
- package/lib/common/yok.d.ts +60 -0
- package/lib/common/yok.js +173 -165
- package/lib/config.d.ts +45 -0
- package/lib/config.js +3 -23
- package/lib/constants-provider.d.ts +4 -0
- package/lib/constants-provider.js +0 -1
- package/lib/constants.d.ts +331 -0
- package/lib/constants.js +59 -58
- package/lib/contracts/doctor-service.d.ts +20 -0
- package/lib/contracts/doctor-service.js +16 -0
- package/lib/contracts/index.d.ts +14 -0
- package/lib/contracts/index.js +32 -0
- package/lib/contracts/project-name-service.d.ts +5 -0
- package/lib/contracts/project-name-service.js +16 -0
- package/lib/controllers/build-controller.d.ts +23 -0
- package/lib/controllers/build-controller.js +3 -4
- package/lib/controllers/debug-controller.d.ts +31 -0
- package/lib/controllers/debug-controller.js +3 -8
- package/lib/controllers/deploy-controller.d.ts +7 -0
- package/lib/controllers/deploy-controller.js +0 -1
- package/lib/controllers/migrate-controller.d.ts +67 -0
- package/lib/controllers/migrate-controller.js +4 -90
- package/lib/controllers/platform-controller.d.ts +20 -0
- package/lib/controllers/platform-controller.js +2 -9
- package/lib/controllers/prepare-controller.d.ts +45 -0
- package/lib/controllers/prepare-controller.js +8 -24
- package/lib/controllers/run-controller.d.ts +57 -0
- package/lib/controllers/run-controller.js +1 -81
- package/lib/controllers/update-controller-base.d.ts +27 -0
- package/lib/controllers/update-controller-base.js +0 -1
- package/lib/controllers/update-controller.d.ts +36 -0
- package/lib/controllers/update-controller.js +0 -11
- package/lib/data/build-data.d.ts +33 -0
- package/lib/data/build-data.js +0 -1
- package/lib/data/controller-data-base.d.ts +8 -0
- package/lib/data/controller-data-base.js +0 -1
- package/lib/data/debug-data.d.ts +2 -0
- package/lib/data/debug-data.js +0 -1
- package/lib/data/platform-data.d.ts +7 -0
- package/lib/data/platform-data.js +0 -1
- package/lib/data/prepare-data.d.ts +22 -0
- package/lib/data/prepare-data.js +0 -1
- package/lib/data/run-data.d.ts +6 -0
- package/lib/data/run-data.js +0 -1
- package/lib/declarations.d.ts +2 -1
- package/lib/definitions/ios.d.ts +36 -1
- package/lib/definitions/project.d.ts +1 -6
- package/lib/definitions/system-warnings.d.ts +3 -3
- package/lib/definitions/system-warnings.js +8 -0
- package/lib/detached-processes/cleanup-js-subprocess.d.ts +2 -0
- package/lib/detached-processes/cleanup-js-subprocess.js +3 -8
- package/lib/detached-processes/cleanup-process.d.ts +1 -0
- package/lib/detached-processes/cleanup-process.js +15 -18
- package/lib/detached-processes/detached-process-enums.d.ts +15 -67
- package/lib/detached-processes/detached-process-enums.js +24 -0
- package/lib/detached-processes/file-log-service.d.ts +7 -0
- package/lib/detached-processes/file-log-service.js +2 -2
- package/lib/device-path-provider.d.ts +9 -0
- package/lib/device-path-provider.js +0 -1
- package/lib/device-sockets/ios/app-debug-socket-proxy-factory.d.ts +22 -0
- package/lib/device-sockets/ios/app-debug-socket-proxy-factory.js +0 -7
- package/lib/device-sockets/ios/notification.d.ts +13 -0
- package/lib/device-sockets/ios/notification.js +0 -3
- package/lib/device-sockets/ios/socket-request-executor.d.ts +11 -0
- package/lib/device-sockets/ios/socket-request-executor.js +0 -3
- package/lib/helpers/android-bundle-validator-helper.d.ts +18 -0
- package/lib/helpers/android-bundle-validator-helper.js +1 -2
- package/lib/helpers/deploy-command-helper.d.ts +16 -0
- package/lib/helpers/deploy-command-helper.js +0 -1
- package/lib/helpers/key-command-helper.d.ts +13 -0
- package/lib/helpers/key-command-helper.js +3 -4
- package/lib/helpers/livesync-command-helper.d.ts +36 -0
- package/lib/helpers/livesync-command-helper.js +2 -4
- package/lib/helpers/network-connectivity-validator.d.ts +12 -0
- package/lib/helpers/network-connectivity-validator.js +0 -1
- package/lib/helpers/options-track-helper.d.ts +14 -0
- package/lib/helpers/options-track-helper.js +4 -3
- package/lib/helpers/package-path-helper.d.ts +2 -0
- package/lib/helpers/package-path-helper.js +0 -1
- package/lib/helpers/platform-command-helper.d.ts +35 -0
- package/lib/helpers/platform-command-helper.js +2 -7
- package/lib/helpers/version-validator-helper.d.ts +8 -0
- package/lib/helpers/version-validator-helper.js +0 -1
- package/lib/key-commands/bootstrap.d.ts +1 -0
- package/lib/key-commands/bootstrap.js +3 -3
- package/lib/key-commands/index.d.ts +166 -0
- package/lib/key-commands/index.js +5 -5
- package/lib/nativescript-cli-lib-bootstrap.d.ts +1 -0
- package/lib/nativescript-cli-lib-bootstrap.js +0 -4
- package/lib/nativescript-cli-lib.d.ts +1 -0
- package/lib/nativescript-cli-lib.js +0 -1
- package/lib/nativescript-cli.d.ts +1 -0
- package/lib/nativescript-cli.js +2 -11
- package/lib/node/pbxproj-dom-xcode.d.ts +4 -0
- package/lib/node/pbxproj-dom-xcode.js +0 -1
- package/lib/node/xcode.d.ts +2 -0
- package/lib/node/xcode.js +0 -1
- package/lib/node-package-manager.d.ts +16 -0
- package/lib/node-package-manager.js +1 -11
- package/lib/options.d.ts +33 -0
- package/lib/options.js +186 -183
- package/lib/package-installation-manager.d.ts +30 -0
- package/lib/package-installation-manager.js +1 -8
- package/lib/package-manager.d.ts +32 -0
- package/lib/package-manager.js +0 -2
- package/lib/platform-command-param.d.ts +10 -0
- package/lib/platform-command-param.js +0 -1
- package/lib/pnpm-package-manager.d.ts +16 -0
- package/lib/pnpm-package-manager.js +1 -4
- package/lib/project-data.d.ts +58 -0
- package/lib/project-data.js +0 -12
- package/lib/providers/project-files-provider.d.ts +12 -0
- package/lib/providers/project-files-provider.js +0 -1
- package/lib/resolvers/livesync-service-resolver.d.ts +9 -0
- package/lib/resolvers/livesync-service-resolver.js +0 -1
- package/lib/services/analytics/analytics-broker-process.d.ts +1 -0
- package/lib/services/analytics/analytics-broker-process.js +8 -10
- package/lib/services/analytics/analytics-broker.d.ts +11 -0
- package/lib/services/analytics/analytics-broker.js +2 -2
- package/lib/services/analytics/analytics-service.d.ts +46 -0
- package/lib/services/analytics/analytics-service.js +29 -29
- package/lib/services/analytics/google-analytics-provider.d.ts +22 -0
- package/lib/services/analytics/google-analytics-provider.js +96 -92
- package/lib/services/analytics-settings-service.d.ts +1 -0
- package/lib/services/analytics-settings-service.js +0 -5
- package/lib/services/android/android-bundle-tool-service.d.ts +27 -0
- package/lib/services/android/android-bundle-tool-service.js +102 -4
- package/lib/services/android/gradle-build-args-service.d.ts +17 -0
- package/lib/services/android/gradle-build-args-service.js +0 -3
- package/lib/services/android/gradle-build-service.d.ts +12 -0
- package/lib/services/android/gradle-build-service.js +0 -1
- package/lib/services/android/gradle-command-service.d.ts +11 -0
- package/lib/services/android/gradle-command-service.js +0 -1
- package/lib/services/android-device-debug-service.d.ts +30 -0
- package/lib/services/android-device-debug-service.js +0 -6
- package/lib/services/android-plugin-build-service.d.ts +55 -0
- package/lib/services/android-plugin-build-service.js +2 -31
- package/lib/services/android-project-service.d.ts +75 -0
- package/lib/services/android-project-service.js +4 -71
- package/lib/services/android-resources-migration-service.d.ts +17 -0
- package/lib/services/android-resources-migration-service.js +0 -7
- package/lib/services/apple-portal/apple-portal-application-service.d.ts +12 -0
- package/lib/services/apple-portal/apple-portal-application-service.js +0 -1
- package/lib/services/apple-portal/apple-portal-cookie-service.d.ts +10 -0
- package/lib/services/apple-portal/apple-portal-cookie-service.js +0 -1
- package/lib/services/apple-portal/apple-portal-session-service.d.ts +19 -0
- package/lib/services/apple-portal/apple-portal-session-service.js +4 -6
- package/lib/services/apple-portal/srp/srp-wrapper.d.ts +29 -0
- package/lib/services/apple-portal/srp/srp-wrapper.js +1 -4
- package/lib/services/assets-generation/assets-generation-service.d.ts +24 -0
- package/lib/services/assets-generation/assets-generation-service.js +13 -11
- package/lib/services/build-artifacts-service.d.ts +16 -0
- package/lib/services/build-artifacts-service.js +1 -2
- package/lib/services/build-data-service.d.ts +7 -0
- package/lib/services/build-data-service.js +0 -1
- package/lib/services/build-info-file-service.d.ts +16 -0
- package/lib/services/build-info-file-service.js +0 -1
- package/lib/services/bundler/bundler-compiler-service.d.ts +50 -0
- package/lib/services/bundler/bundler-compiler-service.js +3 -145
- package/lib/services/bundler/bundler.d.ts +75 -0
- package/lib/services/bundler/bundler.js +0 -1
- package/lib/services/cleanup-service.d.ts +29 -0
- package/lib/services/cleanup-service.js +10 -13
- package/lib/services/cocoapods-platform-manager.d.ts +17 -0
- package/lib/services/cocoapods-platform-manager.js +0 -9
- package/lib/services/cocoapods-service.d.ts +47 -0
- package/lib/services/cocoapods-service.js +1 -21
- package/lib/services/debug-data-service.d.ts +7 -0
- package/lib/services/debug-data-service.js +0 -1
- package/lib/services/debug-service-base.d.ts +12 -0
- package/lib/services/debug-service-base.js +0 -7
- package/lib/services/device/device-install-app-service.d.ts +19 -0
- package/lib/services/device/device-install-app-service.js +1 -2
- package/lib/services/doctor-service.d.ts +51 -0
- package/lib/services/doctor-service.js +20 -32
- package/lib/services/extensibility-service.d.ts +36 -0
- package/lib/services/extensibility-service.js +126 -13
- package/lib/services/files-hash-service.d.ts +17 -0
- package/lib/services/files-hash-service.js +0 -1
- package/lib/services/hmr-status-service.d.ts +19 -0
- package/lib/services/hmr-status-service.js +0 -2
- package/lib/services/info-service.d.ts +6 -0
- package/lib/services/info-service.js +0 -1
- package/lib/services/initialize-service.d.ts +8 -0
- package/lib/services/initialize-service.js +2 -5
- package/lib/services/ios/export-options-plist-service.d.ts +13 -0
- package/lib/services/ios/export-options-plist-service.js +0 -4
- package/lib/services/ios/ios-signing-service.d.ts +33 -0
- package/lib/services/ios/ios-signing-service.js +0 -4
- package/lib/services/ios/spm-pbxproj-service.d.ts +16 -0
- package/lib/services/ios/spm-pbxproj-service.js +234 -0
- package/lib/services/ios/spm-service.d.ts +35 -0
- package/lib/services/ios/spm-service.js +10 -138
- package/lib/services/ios/xcodebuild-args-service.d.ts +20 -0
- package/lib/services/ios/xcodebuild-args-service.js +0 -29
- package/lib/services/ios/xcodebuild-command-service.d.ts +17 -0
- package/lib/services/ios/xcodebuild-command-service.js +0 -3
- package/lib/services/ios/xcodebuild-service.d.ts +13 -0
- package/lib/services/ios/xcodebuild-service.js +1 -2
- package/lib/services/ios-debugger-port-service.d.ts +20 -0
- package/lib/services/ios-debugger-port-service.js +0 -1
- package/lib/services/ios-device-debug-service.d.ts +29 -0
- package/lib/services/ios-device-debug-service.js +0 -1
- package/lib/services/ios-entitlements-service.d.ts +19 -0
- package/lib/services/ios-entitlements-service.js +3 -4
- package/lib/services/ios-extensions-service.d.ts +12 -0
- package/lib/services/ios-extensions-service.js +0 -1
- package/lib/services/ios-log-filter.d.ts +11 -0
- package/lib/services/ios-log-filter.js +0 -20
- package/lib/services/ios-native-target-service.d.ts +14 -0
- package/lib/services/ios-native-target-service.js +5 -6
- package/lib/services/ios-project-service.d.ts +108 -0
- package/lib/services/ios-project-service.js +9 -135
- package/lib/services/ios-provision-service.d.ts +18 -0
- package/lib/services/ios-provision-service.js +0 -3
- package/lib/services/ios-watch-app-service.d.ts +39 -0
- package/lib/services/ios-watch-app-service.js +18 -75
- package/lib/services/ip-service.d.ts +10 -0
- package/lib/services/ip-service.js +0 -2
- package/lib/services/itmstransporter-service.d.ts +26 -0
- package/lib/services/itmstransporter-service.js +0 -1
- package/lib/services/karma-execution.d.ts +1 -0
- package/lib/services/karma-execution.js +0 -2
- package/lib/services/livesync/android-device-livesync-service-base.d.ts +19 -0
- package/lib/services/livesync/android-device-livesync-service-base.js +0 -1
- package/lib/services/livesync/android-device-livesync-service.d.ts +24 -0
- package/lib/services/livesync/android-device-livesync-service.js +0 -2
- package/lib/services/livesync/android-device-livesync-sockets-service.d.ts +36 -0
- package/lib/services/livesync/android-device-livesync-sockets-service.js +0 -3
- package/lib/services/livesync/android-livesync-service.d.ts +16 -0
- package/lib/services/livesync/android-livesync-service.js +0 -1
- package/lib/services/livesync/android-livesync-tool.d.ts +58 -0
- package/lib/services/livesync/android-livesync-tool.js +0 -4
- package/lib/services/livesync/device-livesync-service-base.d.ts +13 -0
- package/lib/services/livesync/device-livesync-service-base.js +0 -2
- package/lib/services/livesync/ios-device-livesync-service.d.ts +28 -0
- package/lib/services/livesync/ios-device-livesync-service.js +0 -7
- package/lib/services/livesync/ios-livesync-service.d.ts +17 -0
- package/lib/services/livesync/ios-livesync-service.js +0 -55
- package/lib/services/livesync/livesync-socket.d.ts +5 -0
- package/lib/services/livesync/livesync-socket.js +0 -1
- package/lib/services/livesync/platform-livesync-service-base.d.ts +25 -0
- package/lib/services/livesync/platform-livesync-service-base.js +0 -5
- package/lib/services/livesync-process-data-service.d.ts +10 -0
- package/lib/services/livesync-process-data-service.js +0 -1
- package/lib/services/log-parser-service.d.ts +11 -0
- package/lib/services/log-parser-service.js +0 -1
- package/lib/services/log-source-map-service.d.ts +28 -0
- package/lib/services/log-source-map-service.js +0 -15
- package/lib/services/marking-mode-service.d.ts +12 -0
- package/lib/services/marking-mode-service.js +10 -8
- package/lib/services/metadata-filtering-service.d.ts +19 -0
- package/lib/services/metadata-filtering-service.js +0 -1
- package/lib/services/npm-config-service.d.ts +7 -0
- package/lib/services/npm-config-service.js +0 -4
- package/lib/services/pacote-service.d.ts +16 -0
- package/lib/services/pacote-service.js +0 -7
- package/lib/services/performance-service.d.ts +19 -0
- package/lib/services/performance-service.js +2 -3
- package/lib/services/platform/add-platform-service.d.ts +21 -0
- package/lib/services/platform/add-platform-service.js +2 -49
- package/lib/services/platform/platform-validation-service.d.ts +17 -0
- package/lib/services/platform/platform-validation-service.js +0 -1
- package/lib/services/platform/prepare-native-platform-service.d.ts +15 -0
- package/lib/services/platform/prepare-native-platform-service.js +3 -5
- package/lib/services/platform-environment-requirements.d.ts +15 -0
- package/lib/services/platform-environment-requirements.js +4 -8
- package/lib/services/platform-project-service-base.d.ts +14 -0
- package/lib/services/platform-project-service-base.js +0 -1
- package/lib/services/platforms-data-service.d.ts +9 -0
- package/lib/services/platforms-data-service.js +0 -1
- package/lib/services/plugins-service.d.ts +60 -0
- package/lib/services/plugins-service.js +2 -20
- package/lib/services/prepare-data-service.d.ts +7 -0
- package/lib/services/prepare-data-service.js +0 -1
- package/lib/services/project-backup-service.d.ts +12 -0
- package/lib/services/project-backup-service.js +0 -4
- package/lib/services/project-changes-service.d.ts +30 -0
- package/lib/services/project-changes-service.js +3 -14
- package/lib/services/project-cleanup-service.d.ts +13 -0
- package/lib/services/project-cleanup-service.js +0 -2
- package/lib/services/project-config-service.d.ts +33 -0
- package/lib/services/project-config-service.js +35 -32
- package/lib/services/project-data-service.d.ts +48 -0
- package/lib/services/project-data-service.js +7 -36
- package/lib/services/project-name-service.d.ts +16 -0
- package/lib/services/project-name-service.js +4 -5
- package/lib/services/project-service.d.ts +34 -0
- package/lib/services/project-service.js +0 -10
- package/lib/services/project-templates-service.d.ts +18 -0
- package/lib/services/project-templates-service.js +2 -3
- package/lib/services/qr-code-terminal-service.d.ts +5 -0
- package/lib/services/qr-code-terminal-service.js +0 -1
- package/lib/services/require-service.d.ts +3 -0
- package/lib/services/require-service.js +0 -1
- package/lib/services/start-service.d.ts +30 -0
- package/lib/services/start-service.js +0 -1
- package/lib/services/temp-service.d.ts +14 -0
- package/lib/services/temp-service.js +0 -3
- package/lib/services/terminal-spinner-service.d.ts +5 -0
- package/lib/services/terminal-spinner-service.js +0 -2
- package/lib/services/test-execution-service.d.ts +26 -0
- package/lib/services/test-execution-service.js +3 -9
- package/lib/services/test-initialization-service.d.ts +10 -0
- package/lib/services/test-initialization-service.js +0 -4
- package/lib/services/timeline-profiler-service.d.ts +18 -0
- package/lib/services/timeline-profiler-service.js +0 -1
- package/lib/services/user-settings-service.d.ts +14 -0
- package/lib/services/user-settings-service.js +0 -1
- package/lib/services/versions-service.d.ts +5 -0
- package/lib/services/versions-service.js +5 -6
- package/lib/services/watch-ignore-list-service.d.ts +7 -0
- package/lib/services/watch-ignore-list-service.js +0 -1
- package/lib/services/xcconfig-service.d.ts +15 -0
- package/lib/services/xcconfig-service.js +45 -12
- package/lib/services/xcproj-service.d.ts +1 -0
- package/lib/services/xcproj-service.js +0 -1
- package/lib/shared-event-bus.d.ts +1 -0
- package/lib/shared-event-bus.js +0 -6
- package/lib/sys-info.d.ts +18 -0
- package/lib/sys-info.js +2 -2
- package/lib/tools/config-manipulation/config-transformer.d.ts +28 -0
- package/lib/tools/config-manipulation/config-transformer.js +15 -19
- package/lib/tools/node-modules/node-modules-builder.d.ts +9 -0
- package/lib/tools/node-modules/node-modules-builder.js +0 -1
- package/lib/tools/node-modules/node-modules-dependencies-builder.d.ts +10 -0
- package/lib/tools/node-modules/node-modules-dependencies-builder.js +0 -6
- package/lib/tools/plist-merge/plist-session.d.ts +30 -0
- package/lib/tools/plist-merge/plist-session.js +92 -0
- package/lib/yarn-package-manager.d.ts +16 -0
- package/lib/yarn-package-manager.js +0 -1
- package/lib/yarn2-package-manager.d.ts +18 -0
- package/lib/yarn2-package-manager.js +0 -3
- package/package.json +11 -118
- package/postinstall.js +7 -2
- package/lib/.d.ts +0 -504
- package/lib/services/analytics/google-analytics-cross-client-custom-dimensions.d.ts +0 -6
- package/node_modules/debug/LICENSE +0 -20
- package/node_modules/debug/README.md +0 -481
- package/node_modules/debug/package.json +0 -64
- package/node_modules/debug/src/browser.js +0 -272
- package/node_modules/debug/src/common.js +0 -292
- package/node_modules/debug/src/index.js +0 -10
- package/node_modules/debug/src/node.js +0 -263
- package/node_modules/ms/index.js +0 -162
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/package.json +0 -38
- package/node_modules/ms/readme.md +0 -59
- package/node_modules/universal-analytics/.travis.yml +0 -11
- package/node_modules/universal-analytics/AcceptableParams.md +0 -757
- package/node_modules/universal-analytics/HISTORY.md +0 -170
- package/node_modules/universal-analytics/Makefile +0 -5
- package/node_modules/universal-analytics/README.md +0 -651
- package/node_modules/universal-analytics/index.js +0 -2
- package/node_modules/universal-analytics/lib/config.js +0 -171
- package/node_modules/universal-analytics/lib/index.js +0 -563
- package/node_modules/universal-analytics/lib/request.js +0 -73
- package/node_modules/universal-analytics/lib/utils.js +0 -29
- package/node_modules/universal-analytics/package.json +0 -33
- package/node_modules/universal-analytics/test/_enqueue.js +0 -144
- package/node_modules/universal-analytics/test/event.js +0 -346
- package/node_modules/universal-analytics/test/exception.js +0 -233
- package/node_modules/universal-analytics/test/index.js +0 -141
- package/node_modules/universal-analytics/test/item.js +0 -550
- package/node_modules/universal-analytics/test/middleware.js +0 -119
- package/node_modules/universal-analytics/test/mocha.opts +0 -3
- package/node_modules/universal-analytics/test/pageview.js +0 -286
- package/node_modules/universal-analytics/test/send.js +0 -232
- package/node_modules/universal-analytics/test/set.js +0 -68
- package/node_modules/universal-analytics/test/timing.js +0 -363
- package/node_modules/universal-analytics/test/transaction.js +0 -371
- package/node_modules/uuid/LICENSE.md +0 -9
- package/node_modules/uuid/README.md +0 -510
- package/node_modules/uuid/dist/cjs/index.d.ts +0 -15
- package/node_modules/uuid/dist/cjs/index.js +0 -31
- package/node_modules/uuid/dist/cjs/max.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/max.js +0 -3
- package/node_modules/uuid/dist/cjs/md5.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/md5.js +0 -13
- package/node_modules/uuid/dist/cjs/native.d.ts +0 -6
- package/node_modules/uuid/dist/cjs/native.js +0 -4
- package/node_modules/uuid/dist/cjs/nil.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/nil.js +0 -3
- package/node_modules/uuid/dist/cjs/package.json +0 -1
- package/node_modules/uuid/dist/cjs/parse.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/parse.js +0 -11
- package/node_modules/uuid/dist/cjs/regex.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/regex.js +0 -3
- package/node_modules/uuid/dist/cjs/rng.d.ts +0 -1
- package/node_modules/uuid/dist/cjs/rng.js +0 -13
- package/node_modules/uuid/dist/cjs/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/sha1.js +0 -13
- package/node_modules/uuid/dist/cjs/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/cjs/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs/types.d.ts +0 -21
- package/node_modules/uuid/dist/cjs/types.js +0 -2
- package/node_modules/uuid/dist/cjs/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs/v1.d.ts +0 -11
- package/node_modules/uuid/dist/cjs/v1.js +0 -87
- package/node_modules/uuid/dist/cjs/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs/v3.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v3.js +0 -14
- package/node_modules/uuid/dist/cjs/v35.d.ts +0 -7
- package/node_modules/uuid/dist/cjs/v35.js +0 -41
- package/node_modules/uuid/dist/cjs/v4.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v4.js +0 -29
- package/node_modules/uuid/dist/cjs/v5.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v5.js +0 -14
- package/node_modules/uuid/dist/cjs/v6.d.ts +0 -4
- package/node_modules/uuid/dist/cjs/v6.js +0 -19
- package/node_modules/uuid/dist/cjs/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs/v7.d.ts +0 -9
- package/node_modules/uuid/dist/cjs/v7.js +0 -69
- package/node_modules/uuid/dist/cjs/validate.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/validate.js +0 -7
- package/node_modules/uuid/dist/cjs/version.d.ts +0 -2
- package/node_modules/uuid/dist/cjs/version.js +0 -10
- package/node_modules/uuid/dist/cjs-browser/index.d.ts +0 -15
- package/node_modules/uuid/dist/cjs-browser/index.js +0 -31
- package/node_modules/uuid/dist/cjs-browser/max.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/max.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/md5.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/md5.js +0 -137
- package/node_modules/uuid/dist/cjs-browser/native.d.ts +0 -4
- package/node_modules/uuid/dist/cjs-browser/native.js +0 -4
- package/node_modules/uuid/dist/cjs-browser/nil.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/nil.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/package.json +0 -1
- package/node_modules/uuid/dist/cjs-browser/parse.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/parse.js +0 -11
- package/node_modules/uuid/dist/cjs-browser/regex.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/regex.js +0 -3
- package/node_modules/uuid/dist/cjs-browser/rng.d.ts +0 -1
- package/node_modules/uuid/dist/cjs-browser/rng.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/sha1.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/cjs-browser/stringify.js +0 -39
- package/node_modules/uuid/dist/cjs-browser/types.d.ts +0 -21
- package/node_modules/uuid/dist/cjs-browser/types.js +0 -2
- package/node_modules/uuid/dist/cjs-browser/uuid-bin.js +0 -72
- package/node_modules/uuid/dist/cjs-browser/v1.d.ts +0 -11
- package/node_modules/uuid/dist/cjs-browser/v1.js +0 -87
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/v1ToV6.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v3.d.ts +0 -9
- package/node_modules/uuid/dist/cjs-browser/v3.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v35.d.ts +0 -7
- package/node_modules/uuid/dist/cjs-browser/v35.js +0 -41
- package/node_modules/uuid/dist/cjs-browser/v4.d.ts +0 -4
- package/node_modules/uuid/dist/cjs-browser/v4.js +0 -29
- package/node_modules/uuid/dist/cjs-browser/v5.d.ts +0 -9
- package/node_modules/uuid/dist/cjs-browser/v5.js +0 -14
- package/node_modules/uuid/dist/cjs-browser/v6.d.ts +0 -4
- package/node_modules/uuid/dist/cjs-browser/v6.js +0 -19
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/v6ToV1.js +0 -13
- package/node_modules/uuid/dist/cjs-browser/v7.d.ts +0 -9
- package/node_modules/uuid/dist/cjs-browser/v7.js +0 -69
- package/node_modules/uuid/dist/cjs-browser/validate.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/validate.js +0 -7
- package/node_modules/uuid/dist/cjs-browser/version.d.ts +0 -2
- package/node_modules/uuid/dist/cjs-browser/version.js +0 -10
- package/node_modules/uuid/dist/esm/bin/uuid +0 -2
- package/node_modules/uuid/dist/esm/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm/index.js +0 -14
- package/node_modules/uuid/dist/esm/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm/max.js +0 -1
- package/node_modules/uuid/dist/esm/md5.d.ts +0 -4
- package/node_modules/uuid/dist/esm/md5.js +0 -11
- package/node_modules/uuid/dist/esm/native.d.ts +0 -6
- package/node_modules/uuid/dist/esm/native.js +0 -2
- package/node_modules/uuid/dist/esm/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm/nil.js +0 -1
- package/node_modules/uuid/dist/esm/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm/parse.js +0 -9
- package/node_modules/uuid/dist/esm/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm/regex.js +0 -1
- package/node_modules/uuid/dist/esm/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm/rng.js +0 -10
- package/node_modules/uuid/dist/esm/sha1.d.ts +0 -4
- package/node_modules/uuid/dist/esm/sha1.js +0 -11
- package/node_modules/uuid/dist/esm/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm/stringify.js +0 -35
- package/node_modules/uuid/dist/esm/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm/uuid-bin.js +0 -70
- package/node_modules/uuid/dist/esm/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm/v1.js +0 -83
- package/node_modules/uuid/dist/esm/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v1ToV6.js +0 -10
- package/node_modules/uuid/dist/esm/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v3.js +0 -9
- package/node_modules/uuid/dist/esm/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm/v35.js +0 -36
- package/node_modules/uuid/dist/esm/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v4.js +0 -27
- package/node_modules/uuid/dist/esm/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v5.js +0 -9
- package/node_modules/uuid/dist/esm/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm/v6.js +0 -17
- package/node_modules/uuid/dist/esm/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm/v6ToV1.js +0 -10
- package/node_modules/uuid/dist/esm/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm/v7.js +0 -65
- package/node_modules/uuid/dist/esm/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm/validate.js +0 -5
- package/node_modules/uuid/dist/esm/version.d.ts +0 -2
- package/node_modules/uuid/dist/esm/version.js +0 -8
- package/node_modules/uuid/dist/esm-browser/index.d.ts +0 -15
- package/node_modules/uuid/dist/esm-browser/index.js +0 -14
- package/node_modules/uuid/dist/esm-browser/max.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/max.js +0 -1
- package/node_modules/uuid/dist/esm-browser/md5.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/md5.js +0 -135
- package/node_modules/uuid/dist/esm-browser/native.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/native.js +0 -2
- package/node_modules/uuid/dist/esm-browser/nil.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/nil.js +0 -1
- package/node_modules/uuid/dist/esm-browser/parse.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/parse.js +0 -9
- package/node_modules/uuid/dist/esm-browser/regex.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/regex.js +0 -1
- package/node_modules/uuid/dist/esm-browser/rng.d.ts +0 -1
- package/node_modules/uuid/dist/esm-browser/rng.js +0 -11
- package/node_modules/uuid/dist/esm-browser/sha1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/sha1.js +0 -70
- package/node_modules/uuid/dist/esm-browser/stringify.d.ts +0 -3
- package/node_modules/uuid/dist/esm-browser/stringify.js +0 -35
- package/node_modules/uuid/dist/esm-browser/types.d.ts +0 -21
- package/node_modules/uuid/dist/esm-browser/uuid-bin.js +0 -70
- package/node_modules/uuid/dist/esm-browser/v1.d.ts +0 -11
- package/node_modules/uuid/dist/esm-browser/v1.js +0 -83
- package/node_modules/uuid/dist/esm-browser/v1ToV6.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +0 -10
- package/node_modules/uuid/dist/esm-browser/v3.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v3.js +0 -9
- package/node_modules/uuid/dist/esm-browser/v35.d.ts +0 -7
- package/node_modules/uuid/dist/esm-browser/v35.js +0 -36
- package/node_modules/uuid/dist/esm-browser/v4.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v4.js +0 -27
- package/node_modules/uuid/dist/esm-browser/v5.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v5.js +0 -9
- package/node_modules/uuid/dist/esm-browser/v6.d.ts +0 -4
- package/node_modules/uuid/dist/esm-browser/v6.js +0 -17
- package/node_modules/uuid/dist/esm-browser/v6ToV1.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +0 -10
- package/node_modules/uuid/dist/esm-browser/v7.d.ts +0 -9
- package/node_modules/uuid/dist/esm-browser/v7.js +0 -65
- package/node_modules/uuid/dist/esm-browser/validate.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/validate.js +0 -5
- package/node_modules/uuid/dist/esm-browser/version.d.ts +0 -2
- package/node_modules/uuid/dist/esm-browser/version.js +0 -8
- package/node_modules/uuid/package.json +0 -132
- package/vendor/aab-tool/LICENSE +0 -202
- package/vendor/aab-tool/README.txt +0 -1
- package/vendor/aab-tool/bundletool.jar +0 -0
- /package/{node_modules/uuid/dist/cjs-browser/uuid-bin.d.ts → lib/bootstrap.d.ts} +0 -0
- /package/{node_modules/uuid/dist/cjs/uuid-bin.d.ts → lib/commands/test-init.d.ts} +0 -0
- /package/{node_modules/uuid/dist/esm-browser/types.js → lib/commands/test.d.ts} +0 -0
- /package/{node_modules/uuid/dist/esm-browser/uuid-bin.d.ts → lib/common/bootstrap.d.ts} +0 -0
- /package/{node_modules/uuid/dist/esm/types.js → lib/common/common-lib.d.ts} +0 -0
- /package/{node_modules/uuid/dist/esm/uuid-bin.d.ts → lib/common/mobile/ios/ios-device-product-name-mapper.d.ts} +0 -0
|
@@ -11,6 +11,9 @@ const path = require("path");
|
|
|
11
11
|
const util = require("util");
|
|
12
12
|
const _ = require("lodash");
|
|
13
13
|
const helpers_1 = require("../helpers");
|
|
14
|
+
const deprecation_1 = require("../deprecation");
|
|
15
|
+
const define_hook_1 = require("../define-hook");
|
|
16
|
+
const inject_1 = require("../di/inject");
|
|
14
17
|
const constants_1 = require("../../constants");
|
|
15
18
|
const yok_1 = require("../yok");
|
|
16
19
|
const color_1 = require("../../color");
|
|
@@ -52,20 +55,19 @@ class HooksService {
|
|
|
52
55
|
}
|
|
53
56
|
}
|
|
54
57
|
static formatHookName(commandName) {
|
|
55
|
-
// Remove everything after | (including the pipe)
|
|
56
58
|
return commandName.replace(/\|[\s\S]*$/, "");
|
|
57
59
|
}
|
|
58
|
-
executeBeforeHooks(commandName, hookArguments) {
|
|
60
|
+
executeBeforeHooks(commandName, hookArguments, options) {
|
|
59
61
|
const beforeHookName = `before-${HooksService.formatHookName(commandName)}`;
|
|
60
62
|
const traceMessage = `BeforeHookName for command ${commandName} is ${beforeHookName}`;
|
|
61
|
-
return this.executeHooks(beforeHookName, traceMessage, hookArguments);
|
|
63
|
+
return this.executeHooks(beforeHookName, traceMessage, hookArguments, !!(options && options.consumesMiddlewares));
|
|
62
64
|
}
|
|
63
65
|
executeAfterHooks(commandName, hookArguments) {
|
|
64
66
|
const afterHookName = `after-${HooksService.formatHookName(commandName)}`;
|
|
65
67
|
const traceMessage = `AfterHookName for command ${commandName} is ${afterHookName}`;
|
|
66
|
-
return this.executeHooks(afterHookName, traceMessage, hookArguments);
|
|
68
|
+
return this.executeHooks(afterHookName, traceMessage, hookArguments, false);
|
|
67
69
|
}
|
|
68
|
-
async executeHooks(hookName, traceMessage, hookArguments) {
|
|
70
|
+
async executeHooks(hookName, traceMessage, hookArguments, consumesMiddlewares) {
|
|
69
71
|
if (this.$config.DISABLE_HOOKS || !this.$options.hooks) {
|
|
70
72
|
return;
|
|
71
73
|
}
|
|
@@ -81,11 +83,11 @@ class HooksService {
|
|
|
81
83
|
const results = [];
|
|
82
84
|
try {
|
|
83
85
|
for (const hooksDirectory of this.hooksDirectories) {
|
|
84
|
-
results.push(await this.executeHooksInDirectory(hooksDirectory, hookName, hookArguments));
|
|
86
|
+
results.push(await this.executeHooksInDirectory(hooksDirectory, hookName, hookArguments, consumesMiddlewares));
|
|
85
87
|
}
|
|
86
88
|
const customHooks = this.getCustomHooksByName(hookName);
|
|
87
89
|
for (const hook of customHooks) {
|
|
88
|
-
results.push(await this.executeHook(this.$projectHelper.projectDir, hookName, hook, hookArguments));
|
|
90
|
+
results.push(await this.executeHook(this.$projectHelper.projectDir, hookName, hook, hookArguments, consumesMiddlewares));
|
|
89
91
|
}
|
|
90
92
|
}
|
|
91
93
|
catch (err) {
|
|
@@ -98,7 +100,8 @@ class HooksService {
|
|
|
98
100
|
const ext = path.extname(hook.fullPath).toLowerCase();
|
|
99
101
|
return ext === ".mjs";
|
|
100
102
|
}
|
|
101
|
-
async executeHook(directoryPath, hookName, hook, hookArguments) {
|
|
103
|
+
async executeHook(directoryPath, hookName, hook, hookArguments, consumesMiddlewares) {
|
|
104
|
+
var _a;
|
|
102
105
|
hookArguments = hookArguments || {};
|
|
103
106
|
let result;
|
|
104
107
|
const relativePath = path.relative(directoryPath, hook.fullPath);
|
|
@@ -124,43 +127,62 @@ class HooksService {
|
|
|
124
127
|
hookEntryPoint = hookFn;
|
|
125
128
|
}
|
|
126
129
|
else {
|
|
127
|
-
|
|
130
|
+
const hookModule = require(hook.fullPath);
|
|
131
|
+
hookEntryPoint =
|
|
132
|
+
hookModule && typeof hookModule.default === "function"
|
|
133
|
+
? hookModule.default
|
|
134
|
+
: hookModule;
|
|
128
135
|
}
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
136
|
+
const definitionCandidate = (_a = (hookEntryPoint && hookEntryPoint.default)) !== null && _a !== void 0 ? _a : hookEntryPoint;
|
|
137
|
+
if (Array.isArray(definitionCandidate)) {
|
|
138
|
+
throw new Error(`${hook.fullPath} exports an array, which is not a supported hook entry point. Export a single hook definition or function per file.`);
|
|
139
|
+
}
|
|
140
|
+
if ((0, define_hook_1.isHookDefinition)(definitionCandidate)) {
|
|
141
|
+
result = await this.executeHookDefinition(definitionCandidate, hookName, hook, hookArguments, consumesMiddlewares);
|
|
134
142
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
// if that is the case then pass it directly to the hook instead of trying to resolve $projectData via injector
|
|
139
|
-
// This helps make hooks stateless
|
|
140
|
-
const projectDataHookArg = hookArguments["hookArgs"] && hookArguments["hookArgs"]["projectData"];
|
|
141
|
-
if (projectDataHookArg) {
|
|
142
|
-
hookArguments["projectData"] = hookArguments["$projectData"] =
|
|
143
|
-
projectDataHookArg;
|
|
143
|
+
else if (typeof hookEntryPoint !== "function") {
|
|
144
|
+
this.$logger.warn(`${hook.fullPath} will NOT be executed because it does not export a function.`);
|
|
145
|
+
return;
|
|
144
146
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
this
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
else {
|
|
148
|
+
this.$logger.trace(`Validating ${hookName} arguments.`);
|
|
149
|
+
const invalidArguments = this.validateHookArguments(hookEntryPoint, hook.fullPath);
|
|
150
|
+
if (invalidArguments.length) {
|
|
151
|
+
this.$logger.warn(`${hook.fullPath} will NOT be executed because it has invalid arguments - ${color_1.color.grey(invalidArguments.join(", "))}.`);
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
const projectDataHookArg = hookArguments["hookArgs"] && hookArguments["hookArgs"]["projectData"];
|
|
155
|
+
if (projectDataHookArg) {
|
|
156
|
+
hookArguments["projectData"] = hookArguments["$projectData"] =
|
|
157
|
+
projectDataHookArg;
|
|
150
158
|
}
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
159
|
+
const usesParamNameInjection = (hookEntryPoint.$inject.args).some((argument) => argument !== this.hookArgsName);
|
|
160
|
+
if (usesParamNameInjection) {
|
|
161
|
+
(0, deprecation_1.reportDeprecation)({
|
|
162
|
+
api: "hooks.param-name-signature",
|
|
163
|
+
detail: hook.fullPath,
|
|
164
|
+
logger: this.$logger,
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
const maybePromise = this.$injector.resolve(hookEntryPoint, hookArguments);
|
|
168
|
+
if (maybePromise) {
|
|
169
|
+
this.$logger.trace("Hook promises to signal completion");
|
|
170
|
+
try {
|
|
171
|
+
result = await maybePromise;
|
|
156
172
|
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
173
|
+
catch (err) {
|
|
174
|
+
if (err &&
|
|
175
|
+
_.isBoolean(err.stopExecution) &&
|
|
176
|
+
err.errorAsWarning === true) {
|
|
177
|
+
this.$logger.warn(err.message || err);
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
this.$logger.error(err);
|
|
181
|
+
throw (err || new Error(`Failed to execute hook: ${hook.fullPath}.`));
|
|
182
|
+
}
|
|
161
183
|
}
|
|
184
|
+
this.$logger.trace("Hook completed");
|
|
162
185
|
}
|
|
163
|
-
this.$logger.trace("Hook completed");
|
|
164
186
|
}
|
|
165
187
|
}
|
|
166
188
|
else {
|
|
@@ -179,18 +201,47 @@ class HooksService {
|
|
|
179
201
|
]);
|
|
180
202
|
return result;
|
|
181
203
|
}
|
|
182
|
-
async
|
|
204
|
+
async executeHookDefinition(definition, hookName, hook, hookArguments, consumesMiddlewares) {
|
|
205
|
+
if (definition.name !== hookName) {
|
|
206
|
+
this.$logger.warn(`${hook.fullPath} will NOT be executed: it defines the "${definition.name}" hook but is placed at the "${hookName}" hook point.`);
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
const { context, middlewares } = (0, define_hook_1.createHookInvocation)(hookArguments, {
|
|
210
|
+
hookName,
|
|
211
|
+
consumesMiddlewares,
|
|
212
|
+
});
|
|
213
|
+
try {
|
|
214
|
+
const returnedValue = await (0, inject_1.runInInjectionContext)(this.$injector, () => definition.run(context));
|
|
215
|
+
if (typeof returnedValue === "function") {
|
|
216
|
+
this.$logger.warn(`${hook.fullPath} returned a function. Returning a middleware is the legacy convention and is ignored for hook definitions — use ctx.wrap() instead.`);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
catch (err) {
|
|
220
|
+
if (err &&
|
|
221
|
+
_.isBoolean(err.stopExecution) &&
|
|
222
|
+
err.errorAsWarning === true) {
|
|
223
|
+
this.$logger.warn(err.message || err);
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
this.$logger.error(err);
|
|
227
|
+
throw err || new Error(`Failed to execute hook: ${hook.fullPath}.`);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
this.$logger.trace("Hook completed");
|
|
231
|
+
return middlewares.length ? middlewares : undefined;
|
|
232
|
+
}
|
|
233
|
+
async executeHooksInDirectory(directoryPath, hookName, hookArguments, consumesMiddlewares) {
|
|
183
234
|
hookArguments = hookArguments || {};
|
|
184
235
|
const results = [];
|
|
185
236
|
const hooks = this.getHooksByName(directoryPath, hookName);
|
|
186
237
|
for (let i = 0; i < hooks.length; ++i) {
|
|
187
238
|
const hook = hooks[i];
|
|
188
|
-
const result = await this.executeHook(directoryPath, hookName, hook, hookArguments);
|
|
239
|
+
const result = await this.executeHook(directoryPath, hookName, hook, hookArguments, consumesMiddlewares);
|
|
189
240
|
if (result) {
|
|
190
241
|
results.push(result);
|
|
191
242
|
}
|
|
192
243
|
}
|
|
193
|
-
return results;
|
|
244
|
+
return _.flatten(results);
|
|
194
245
|
}
|
|
195
246
|
getCustomHooksByName(hookName) {
|
|
196
247
|
const hooks = [];
|
|
@@ -260,7 +311,6 @@ class HooksService {
|
|
|
260
311
|
interpreter = sheBangMatch[1];
|
|
261
312
|
}
|
|
262
313
|
if (interpreter) {
|
|
263
|
-
// Likewise, make /usr/bin/bash work like "bash".
|
|
264
314
|
shMatch = interpreter.match(/bin\/((?:ba)?sh)$/);
|
|
265
315
|
}
|
|
266
316
|
if (shMatch) {
|
|
@@ -274,26 +324,27 @@ class HooksService {
|
|
|
274
324
|
}
|
|
275
325
|
shouldExecuteInProcess(scriptSource) {
|
|
276
326
|
try {
|
|
277
|
-
const
|
|
278
|
-
const
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
statement.expression.type !== "AssignmentExpression") {
|
|
283
|
-
return;
|
|
327
|
+
const ts = require("typescript");
|
|
328
|
+
const sourceFile = ts.createSourceFile("hook.js", scriptSource, ts.ScriptTarget.Latest, false, ts.ScriptKind.JS);
|
|
329
|
+
const isExportsTarget = (node) => {
|
|
330
|
+
if (!ts.isPropertyAccessExpression(node)) {
|
|
331
|
+
return false;
|
|
284
332
|
}
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
left.object &&
|
|
288
|
-
left.object.type === "Identifier" &&
|
|
289
|
-
left.object.name === "module" &&
|
|
290
|
-
left.property &&
|
|
291
|
-
left.property.type === "Identifier" &&
|
|
292
|
-
left.property.name === "exports") {
|
|
293
|
-
inproc = true;
|
|
333
|
+
if (!ts.isIdentifier(node.expression)) {
|
|
334
|
+
return false;
|
|
294
335
|
}
|
|
336
|
+
const object = node.expression.text;
|
|
337
|
+
const property = node.name.text;
|
|
338
|
+
return ((object === "module" && property === "exports") ||
|
|
339
|
+
(object === "exports" && property === "default"));
|
|
340
|
+
};
|
|
341
|
+
return sourceFile.statements.some((statement) => {
|
|
342
|
+
return (ts.isExpressionStatement(statement) &&
|
|
343
|
+
ts.isBinaryExpression(statement.expression) &&
|
|
344
|
+
statement.expression.operatorToken.kind ===
|
|
345
|
+
ts.SyntaxKind.EqualsToken &&
|
|
346
|
+
isExportsTarget(statement.expression.left));
|
|
295
347
|
});
|
|
296
|
-
return inproc;
|
|
297
348
|
}
|
|
298
349
|
catch (err) {
|
|
299
350
|
return false;
|
|
@@ -301,7 +352,6 @@ class HooksService {
|
|
|
301
352
|
}
|
|
302
353
|
validateHookArguments(hookConstructor, hookFullPath) {
|
|
303
354
|
const invalidArguments = [];
|
|
304
|
-
// We need to annotate the hook in order to have the arguments of the constructor.
|
|
305
355
|
(0, helpers_1.annotate)(hookConstructor);
|
|
306
356
|
_.each(hookConstructor.$inject.args, (argument) => {
|
|
307
357
|
try {
|
|
@@ -322,12 +372,8 @@ HooksService.HOOKS_DIRECTORY_NAME = "hooks";
|
|
|
322
372
|
__decorate([
|
|
323
373
|
(0, decorators_1.memoize)({
|
|
324
374
|
shouldCache() {
|
|
325
|
-
// only cache if we have hooks directories, the only case to
|
|
326
|
-
// not have hooks directories is when the project dir is
|
|
327
|
-
// not set yet, ie. when creating a project.
|
|
328
375
|
return !!this.hooksDirectories.length;
|
|
329
376
|
},
|
|
330
377
|
})
|
|
331
378
|
], HooksService.prototype, "initialize", null);
|
|
332
379
|
yok_1.injector.register("hooksService", HooksService);
|
|
333
|
-
//# sourceMappingURL=hooks-service.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IiOSNotificationService } from "../declarations";
|
|
2
|
+
export declare class IOSNotificationService implements IiOSNotificationService {
|
|
3
|
+
private $iosDeviceOperations;
|
|
4
|
+
constructor($iosDeviceOperations: IIOSDeviceOperations);
|
|
5
|
+
awaitNotification(deviceIdentifier: string, socket: number, timeout: number): Promise<string>;
|
|
6
|
+
postNotification(deviceIdentifier: string, notification: string, commandType?: string): Promise<number>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { IFileSystem } from "../declarations";
|
|
2
|
+
import { IJsonFileSettingsService } from "../definitions/json-file-settings-service";
|
|
3
|
+
export declare class JsonFileSettingsService implements IJsonFileSettingsService {
|
|
4
|
+
private $fs;
|
|
5
|
+
private $lockService;
|
|
6
|
+
private $logger;
|
|
7
|
+
private jsonSettingsFilePath;
|
|
8
|
+
protected jsonSettingsData: any;
|
|
9
|
+
private get lockFilePath();
|
|
10
|
+
constructor(jsonFileSettingsPath: string, $fs: IFileSystem, $lockService: ILockService, $logger: ILogger);
|
|
11
|
+
getSettingValue<T>(settingName: string, cacheOpts?: {
|
|
12
|
+
cacheTimeout: number;
|
|
13
|
+
}): Promise<T>;
|
|
14
|
+
saveSetting<T>(key: string, value: T, cacheOpts?: {
|
|
15
|
+
useCaching: boolean;
|
|
16
|
+
}): Promise<void>;
|
|
17
|
+
removeSetting(key: string): Promise<void>;
|
|
18
|
+
saveSettings(data?: any, cacheOpts?: {
|
|
19
|
+
useCaching: boolean;
|
|
20
|
+
}): Promise<void>;
|
|
21
|
+
loadUserSettingsFile(): Promise<void>;
|
|
22
|
+
private loadUserSettingsData;
|
|
23
|
+
private getUnexistingDirectories;
|
|
24
|
+
}
|
|
@@ -25,8 +25,6 @@ class JsonFileSettingsService {
|
|
|
25
25
|
const dataToReturn = data.modifiedByCacheMechanism ? data.value : data;
|
|
26
26
|
if (cacheOpts && cacheOpts.cacheTimeout) {
|
|
27
27
|
if (!data.modifiedByCacheMechanism) {
|
|
28
|
-
// If data has no cache, but we want to check the timeout, consider the data as outdated.
|
|
29
|
-
// this should be a really rare case
|
|
30
28
|
return null;
|
|
31
29
|
}
|
|
32
30
|
const currentTime = Date.now();
|
|
@@ -84,8 +82,6 @@ class JsonFileSettingsService {
|
|
|
84
82
|
if (!this.$fs.exists(this.jsonSettingsFilePath)) {
|
|
85
83
|
const unexistingDirs = this.getUnexistingDirectories(this.jsonSettingsFilePath);
|
|
86
84
|
this.$fs.writeFile(this.jsonSettingsFilePath, null);
|
|
87
|
-
// when running under 'sudo' we create the <path to home dir>/.local/share/.nativescript-cli dir with root as owner
|
|
88
|
-
// and other Applications cannot access this directory anymore. (bower/heroku/etc)
|
|
89
85
|
if (process.env.SUDO_USER) {
|
|
90
86
|
for (const dir of unexistingDirs) {
|
|
91
87
|
await this.$fs.setCurrentUserAsOwner(dir, process.env.SUDO_USER);
|
|
@@ -105,7 +101,6 @@ class JsonFileSettingsService {
|
|
|
105
101
|
const unexistingDirs = [];
|
|
106
102
|
let currentDir = path.join(filePath, "..");
|
|
107
103
|
while (true) {
|
|
108
|
-
// this directory won't be created.
|
|
109
104
|
if (this.$fs.exists(currentDir)) {
|
|
110
105
|
break;
|
|
111
106
|
}
|
|
@@ -117,4 +112,3 @@ class JsonFileSettingsService {
|
|
|
117
112
|
}
|
|
118
113
|
exports.JsonFileSettingsService = JsonFileSettingsService;
|
|
119
114
|
yok_1.injector.register("jsonFileSettingsService", JsonFileSettingsService, false);
|
|
120
|
-
//# sourceMappingURL=json-file-settings-service.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { IFileSystem, ISettingsService } from "../declarations";
|
|
2
|
+
import { ICleanupService } from "../../definitions/cleanup-service";
|
|
3
|
+
export declare class LockService implements ILockService {
|
|
4
|
+
private $fs;
|
|
5
|
+
private $settingsService;
|
|
6
|
+
private $cleanupService;
|
|
7
|
+
private get defaultLockFilePath();
|
|
8
|
+
private getAbsoluteLockFilePath;
|
|
9
|
+
private get defaultLockParams();
|
|
10
|
+
constructor($fs: IFileSystem, $settingsService: ISettingsService, $cleanupService: ICleanupService);
|
|
11
|
+
executeActionWithLock<T>(action: () => Promise<T>, lockFilePath?: string, lockOpts?: ILockOptions): Promise<T>;
|
|
12
|
+
lock(lockFilePath?: string, lockOpts?: ILockOptions): Promise<() => void>;
|
|
13
|
+
unlock(lockFilePath?: string): Promise<void>;
|
|
14
|
+
private cleanLock;
|
|
15
|
+
private getPathsForCleanupAction;
|
|
16
|
+
private getLockFileSettings;
|
|
17
|
+
private getShortFileLock;
|
|
18
|
+
}
|
|
@@ -22,7 +22,6 @@ class LockService {
|
|
|
22
22
|
}
|
|
23
23
|
get defaultLockParams() {
|
|
24
24
|
const lockParams = {
|
|
25
|
-
// https://www.npmjs.com/package/retry#retrytimeoutsoptions
|
|
26
25
|
retriesObj: { retries: 13, minTimeout: 100, maxTimeout: 1000, factor: 2 },
|
|
27
26
|
stale: 10 * 1000,
|
|
28
27
|
realpath: false,
|
|
@@ -73,8 +72,6 @@ class LockService {
|
|
|
73
72
|
}
|
|
74
73
|
}
|
|
75
74
|
getPathsForCleanupAction(lockPath) {
|
|
76
|
-
// The proper-lockfile creates directory with the passed name and `.lock` at the end.
|
|
77
|
-
// Ensure we will take care of it as well.
|
|
78
75
|
return [lockPath, `${lockPath}.lock`];
|
|
79
76
|
}
|
|
80
77
|
getLockFileSettings(filePath, fileOpts) {
|
|
@@ -90,7 +87,6 @@ class LockService {
|
|
|
90
87
|
fileOpts.retriesObj.retries = fileOpts.retries;
|
|
91
88
|
}
|
|
92
89
|
if (fileOpts.retryWait) {
|
|
93
|
-
// backwards compatibility
|
|
94
90
|
fileOpts.retriesObj.minTimeout = fileOpts.retriesObj.maxTimeout =
|
|
95
91
|
fileOpts.retryWait;
|
|
96
92
|
}
|
|
@@ -113,6 +109,4 @@ __decorate([
|
|
|
113
109
|
(0, decorators_1.cache)()
|
|
114
110
|
], LockService.prototype, "defaultLockFilePath", null);
|
|
115
111
|
yok_1.injector.register("lockService", LockService);
|
|
116
|
-
// backwards compatibility
|
|
117
112
|
yok_1.injector.register("lockfile", LockService);
|
|
118
|
-
//# sourceMappingURL=lock-service.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IServiceContractGenerator, IFileSystem, IMessagesService, IServiceContractClientCode } from "../declarations";
|
|
2
|
+
export declare class MessageContractGenerator implements IServiceContractGenerator {
|
|
3
|
+
private $fs;
|
|
4
|
+
private $messagesService;
|
|
5
|
+
constructor($fs: IFileSystem, $messagesService: IMessagesService);
|
|
6
|
+
generate(): Promise<IServiceContractClientCode>;
|
|
7
|
+
private generateFileRecursive;
|
|
8
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IMessagesService, IFileSystem } from "../declarations";
|
|
2
|
+
export declare class MessagesService implements IMessagesService {
|
|
3
|
+
private $fs;
|
|
4
|
+
private _pathsToMessageJsonFiles;
|
|
5
|
+
private _messageJsonFilesContentsCache;
|
|
6
|
+
private get pathToDefaultMessageJson();
|
|
7
|
+
private get messageJsonFilesContents();
|
|
8
|
+
constructor($fs: IFileSystem);
|
|
9
|
+
get pathsToMessageJsonFiles(): string[];
|
|
10
|
+
set pathsToMessageJsonFiles(pathsToMessageJsonFiles: string[]);
|
|
11
|
+
getMessage(id: string, ...args: string[]): string;
|
|
12
|
+
private getMessageFromJsonRecursive;
|
|
13
|
+
private refreshMessageJsonContentsCache;
|
|
14
|
+
private getFormatedMessage;
|
|
15
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IInjector } from "../definitions/yok";
|
|
2
|
+
import { IMicroTemplateService } from "../declarations";
|
|
3
|
+
export declare class MicroTemplateService implements IMicroTemplateService {
|
|
4
|
+
private $injector;
|
|
5
|
+
private dynamicCallRegex;
|
|
6
|
+
constructor($injector: IInjector);
|
|
7
|
+
parseContent(data: string, options: {
|
|
8
|
+
isHtml: boolean;
|
|
9
|
+
}): Promise<string>;
|
|
10
|
+
private isPlatform;
|
|
11
|
+
private getLocalVariables;
|
|
12
|
+
}
|
|
@@ -9,15 +9,11 @@ const _ = require("lodash");
|
|
|
9
9
|
class MicroTemplateService {
|
|
10
10
|
constructor($injector) {
|
|
11
11
|
this.$injector = $injector;
|
|
12
|
-
// Injector's dynamicCallRegex doesn't have 'g' option, which we need here.
|
|
13
|
-
// Use ( ) in order to use $1 to get whole expression later
|
|
14
12
|
this.dynamicCallRegex = new RegExp(util.format("(%s)", this.$injector.dynamicCallRegex.source), "g");
|
|
15
13
|
}
|
|
16
14
|
async parseContent(data, options) {
|
|
17
15
|
const localVariables = this.getLocalVariables(options);
|
|
18
16
|
const compiledTemplate = _.template(data.replace(this.dynamicCallRegex, 'this.$injector.getDynamicCallData("$1")'));
|
|
19
|
-
// When debugging parsing, uncomment the line below:
|
|
20
|
-
// console.log(compiledTemplate.source);
|
|
21
17
|
return await compiledTemplate.apply(this, [localVariables]);
|
|
22
18
|
}
|
|
23
19
|
isPlatform(...args) {
|
|
@@ -26,7 +22,6 @@ class MicroTemplateService {
|
|
|
26
22
|
}
|
|
27
23
|
getLocalVariables(options) {
|
|
28
24
|
const isHtml = options.isHtml;
|
|
29
|
-
// in html help we want to show all help. Only CONSOLE specific help(wrapped in if(isConsole) ) must be omitted
|
|
30
25
|
const localVariables = {
|
|
31
26
|
constants,
|
|
32
27
|
};
|
|
@@ -41,4 +36,3 @@ class MicroTemplateService {
|
|
|
41
36
|
}
|
|
42
37
|
exports.MicroTemplateService = MicroTemplateService;
|
|
43
38
|
yok_1.injector.register("microTemplateService", MicroTemplateService);
|
|
44
|
-
//# sourceMappingURL=micro-templating-service.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IErrors, INet, IChildProcess, IOsInfo, IWaitForPortListenData } from "../declarations";
|
|
2
|
+
export declare class Net implements INet {
|
|
3
|
+
private $errors;
|
|
4
|
+
private $childProcess;
|
|
5
|
+
private $logger;
|
|
6
|
+
private $osInfo;
|
|
7
|
+
private static DEFAULT_INTERVAL;
|
|
8
|
+
constructor($errors: IErrors, $childProcess: IChildProcess, $logger: ILogger, $osInfo: IOsInfo);
|
|
9
|
+
getFreePort(): Promise<number>;
|
|
10
|
+
isPortAvailable(port: number): Promise<boolean>;
|
|
11
|
+
getAvailablePortInRange(startPort: number, endPort?: number): Promise<number>;
|
|
12
|
+
waitForPortToListen(waitForPortListenData: IWaitForPortListenData): Promise<boolean>;
|
|
13
|
+
}
|
|
@@ -14,7 +14,6 @@ class Net {
|
|
|
14
14
|
}
|
|
15
15
|
async getFreePort() {
|
|
16
16
|
const server = net.createServer((sock) => {
|
|
17
|
-
/* empty - noone will connect here */
|
|
18
17
|
});
|
|
19
18
|
return new Promise((resolve, reject) => {
|
|
20
19
|
let isResolved = false;
|
|
@@ -46,7 +45,6 @@ class Net {
|
|
|
46
45
|
});
|
|
47
46
|
server.once("close", () => {
|
|
48
47
|
if (!isResolved) {
|
|
49
|
-
// "close" will be emitted right after "error"
|
|
50
48
|
isResolved = true;
|
|
51
49
|
resolve(true);
|
|
52
50
|
}
|
|
@@ -120,4 +118,3 @@ class Net {
|
|
|
120
118
|
exports.Net = Net;
|
|
121
119
|
Net.DEFAULT_INTERVAL = 1000;
|
|
122
120
|
yok_1.injector.register("net", Net);
|
|
123
|
-
//# sourceMappingURL=net-service.js.map
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { IFileSystem, IProjectFilesManager, IProjectFilesProvider, IFsStats, IProjectFilesConfig } from "../declarations";
|
|
2
|
+
export declare class ProjectFilesManager implements IProjectFilesManager {
|
|
3
|
+
private $fs;
|
|
4
|
+
private $localToDevicePathDataFactory;
|
|
5
|
+
private $logger;
|
|
6
|
+
private $projectFilesProvider;
|
|
7
|
+
constructor($fs: IFileSystem, $localToDevicePathDataFactory: Mobile.ILocalToDevicePathDataFactory, $logger: ILogger, $projectFilesProvider: IProjectFilesProvider);
|
|
8
|
+
getProjectFiles(projectFilesPath: string, excludedProjectDirsAndFiles?: string[], filter?: (filePath: string, stat: IFsStats) => boolean, opts?: any): string[];
|
|
9
|
+
isFileExcluded(filePath: string, excludedProjectDirsAndFiles?: string[]): boolean;
|
|
10
|
+
createLocalToDevicePaths(deviceAppData: Mobile.IDeviceAppData, projectFilesPath: string, files: string[], excludedProjectDirsAndFiles: string[], projectFilesConfig?: IProjectFilesConfig): Promise<Mobile.ILocalToDevicePathData[]>;
|
|
11
|
+
processPlatformSpecificFiles(directoryPath: string, platform: string, projectFilesConfig: IProjectFilesConfig, excludedDirs?: string[]): void;
|
|
12
|
+
private processPlatformSpecificFilesCore;
|
|
13
|
+
private getFileName;
|
|
14
|
+
}
|
|
@@ -53,7 +53,6 @@ class ProjectFilesManager {
|
|
|
53
53
|
this.processPlatformSpecificFilesCore(platform, files, projectFilesConfig);
|
|
54
54
|
}
|
|
55
55
|
processPlatformSpecificFilesCore(platform, files, projectFilesConfig) {
|
|
56
|
-
// Renames the files that have `platform` as substring and removes the files from other platform
|
|
57
56
|
_.each(files, (filePath) => {
|
|
58
57
|
const projectFileInfo = this.$projectFilesProvider.getProjectFileInfo(filePath, platform, projectFilesConfig);
|
|
59
58
|
if (!projectFileInfo.shouldIncludeFile) {
|
|
@@ -61,7 +60,6 @@ class ProjectFilesManager {
|
|
|
61
60
|
}
|
|
62
61
|
else if (projectFileInfo.onDeviceFileName) {
|
|
63
62
|
const onDeviceFilePath = path.join(path.dirname(filePath), projectFileInfo.onDeviceFileName);
|
|
64
|
-
// Fix .js.map entries
|
|
65
63
|
const extension = path.extname(projectFileInfo.onDeviceFileName);
|
|
66
64
|
if (onDeviceFilePath !== filePath) {
|
|
67
65
|
if (extension === ".js" || extension === ".map") {
|
|
@@ -75,8 +73,6 @@ class ProjectFilesManager {
|
|
|
75
73
|
fileContent = fileContent.replace(new RegExp(oldName, "g"), newName);
|
|
76
74
|
this.$fs.writeFile(filePath, fileContent);
|
|
77
75
|
}
|
|
78
|
-
// Rename the file
|
|
79
|
-
// this.$fs.rename is not called as it is error prone on some systems with slower hard drives and rigorous antivirus software
|
|
80
76
|
this.$fs.writeFile(onDeviceFilePath, this.$fs.readText(filePath));
|
|
81
77
|
this.$fs.deleteFile(filePath);
|
|
82
78
|
}
|
|
@@ -89,4 +85,3 @@ class ProjectFilesManager {
|
|
|
89
85
|
}
|
|
90
86
|
exports.ProjectFilesManager = ProjectFilesManager;
|
|
91
87
|
yok_1.injector.register("projectFilesManager", ProjectFilesManager);
|
|
92
|
-
//# sourceMappingURL=project-files-manager.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IOptions } from "../../declarations";
|
|
2
|
+
import { IProjectFilesConfig, IProjectFilesProvider, IProjectFileInfo } from "../declarations";
|
|
3
|
+
export declare abstract class ProjectFilesProviderBase implements IProjectFilesProvider {
|
|
4
|
+
private $mobileHelper;
|
|
5
|
+
protected $options: IOptions;
|
|
6
|
+
abstract isFileExcluded(filePath: string): boolean;
|
|
7
|
+
abstract mapFilePath(filePath: string, platform: string, projectData: any, projectFilesConfig: IProjectFilesConfig): string;
|
|
8
|
+
constructor($mobileHelper: Mobile.IMobileHelper, $options: IOptions);
|
|
9
|
+
getPreparedFilePath(filePath: string, projectFilesConfig?: IProjectFilesConfig): string;
|
|
10
|
+
getProjectFileInfo(filePath: string, platform: string, projectFilesConfig?: IProjectFilesConfig): IProjectFileInfo;
|
|
11
|
+
private parseFile;
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IProxyService, ISettingsService, IProxyLibSettings, IProxySettings } from "../declarations";
|
|
2
|
+
export declare class ProxyService implements IProxyService {
|
|
3
|
+
private $settingsService;
|
|
4
|
+
private $staticConfig;
|
|
5
|
+
private proxyCacheFilePath;
|
|
6
|
+
private credentialsKey;
|
|
7
|
+
constructor($settingsService: ISettingsService, $staticConfig: Config.IStaticConfig);
|
|
8
|
+
setCache(settings: IProxyLibSettings): Promise<void>;
|
|
9
|
+
getCache(): Promise<IProxySettings>;
|
|
10
|
+
clearCache(): Promise<void>;
|
|
11
|
+
getInfo(): Promise<string>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IQrCodeGenerator } from "../declarations";
|
|
2
|
+
export declare class QrCodeGenerator implements IQrCodeGenerator {
|
|
3
|
+
private $staticConfig;
|
|
4
|
+
private $logger;
|
|
5
|
+
constructor($staticConfig: Config.IStaticConfig, $logger: ILogger);
|
|
6
|
+
generateDataUri(data: string): Promise<string>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { IHostInfo, ISettingsService, IConfigurationSettings } from "../declarations";
|
|
2
|
+
export declare class SettingsService implements ISettingsService {
|
|
3
|
+
private $staticConfig;
|
|
4
|
+
private $hostInfo;
|
|
5
|
+
private _profileDir;
|
|
6
|
+
constructor($staticConfig: Config.IStaticConfig, $hostInfo: IHostInfo);
|
|
7
|
+
setSettings(settings: IConfigurationSettings): void;
|
|
8
|
+
getProfileDir(): string;
|
|
9
|
+
private getDefaultProfileDir;
|
|
10
|
+
}
|