@microsoft/teamsfx-core 1.1.2 → 1.1.3-alpha.b985a359.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.
- package/build/common/armInterface.d.ts +1 -1
- package/build/common/armInterface.d.ts.map +1 -1
- package/build/common/constants.d.ts +3 -2
- package/build/common/constants.d.ts.map +1 -1
- package/build/common/constants.js +3 -2
- package/build/common/constants.js.map +1 -1
- package/build/common/deps-checker/checkerFactory.d.ts +8 -0
- package/build/common/deps-checker/checkerFactory.d.ts.map +1 -0
- package/build/common/deps-checker/checkerFactory.js +32 -0
- package/build/common/deps-checker/checkerFactory.js.map +1 -0
- package/build/common/deps-checker/constant/helpLink.d.ts +11 -0
- package/build/common/deps-checker/constant/helpLink.d.ts.map +1 -0
- package/build/common/deps-checker/constant/helpLink.js +16 -0
- package/build/common/deps-checker/constant/helpLink.js.map +1 -0
- package/build/common/deps-checker/constant/message.d.ts +29 -0
- package/build/common/deps-checker/constant/message.d.ts.map +1 -0
- package/build/common/deps-checker/constant/message.js +57 -0
- package/build/common/deps-checker/constant/message.js.map +1 -0
- package/build/common/deps-checker/constant/telemetry.d.ts +41 -0
- package/build/common/deps-checker/constant/telemetry.d.ts.map +1 -0
- package/build/common/deps-checker/constant/telemetry.js +49 -0
- package/build/common/deps-checker/constant/telemetry.js.map +1 -0
- package/build/common/deps-checker/depsChecker.d.ts +24 -0
- package/build/common/deps-checker/depsChecker.d.ts.map +1 -0
- package/build/common/deps-checker/depsChecker.js +13 -0
- package/build/common/deps-checker/depsChecker.js.map +1 -0
- package/build/common/deps-checker/depsError.d.ts +17 -0
- package/build/common/deps-checker/depsError.d.ts.map +1 -0
- package/build/common/deps-checker/depsError.js +42 -0
- package/build/common/deps-checker/depsError.js.map +1 -0
- package/build/common/deps-checker/depsLogger.d.ts +11 -0
- package/build/common/deps-checker/depsLogger.d.ts.map +1 -0
- package/build/common/deps-checker/depsLogger.js +5 -0
- package/build/common/deps-checker/depsLogger.js.map +1 -0
- package/build/common/deps-checker/depsManager.d.ts +35 -0
- package/build/common/deps-checker/depsManager.d.ts.map +1 -0
- package/build/common/deps-checker/depsManager.js +82 -0
- package/build/common/deps-checker/depsManager.js.map +1 -0
- package/build/common/deps-checker/depsTelemetry.d.ts +10 -0
- package/build/common/deps-checker/depsTelemetry.d.ts.map +1 -0
- package/build/common/deps-checker/depsTelemetry.js +5 -0
- package/build/common/deps-checker/depsTelemetry.js.map +1 -0
- package/build/common/deps-checker/internal/dotnetChecker.d.ts +50 -0
- package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/dotnetChecker.js +406 -0
- package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -0
- package/build/common/deps-checker/internal/funcToolChecker.d.ts +40 -0
- package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/funcToolChecker.js +279 -0
- package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -0
- package/build/common/deps-checker/internal/ngrokChecker.d.ts +28 -0
- package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/ngrokChecker.js +183 -0
- package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts +40 -0
- package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -0
- package/build/common/deps-checker/internal/nodeChecker.js +144 -0
- package/build/common/deps-checker/internal/nodeChecker.js.map +1 -0
- package/build/common/deps-checker/util/cpUtils.d.ts +24 -0
- package/build/common/deps-checker/util/cpUtils.d.ts.map +1 -0
- package/build/common/deps-checker/util/cpUtils.js +99 -0
- package/build/common/deps-checker/util/cpUtils.js.map +1 -0
- package/build/common/deps-checker/util/progressIndicator.d.ts +3 -0
- package/build/common/deps-checker/util/progressIndicator.d.ts.map +1 -0
- package/build/common/deps-checker/util/progressIndicator.js +18 -0
- package/build/common/deps-checker/util/progressIndicator.js.map +1 -0
- package/build/common/deps-checker/util/system.d.ts +5 -0
- package/build/common/deps-checker/util/system.d.ts.map +1 -0
- package/build/common/deps-checker/util/system.js +24 -0
- package/build/common/deps-checker/util/system.js.map +1 -0
- package/build/common/index.d.ts +1 -0
- package/build/common/index.d.ts.map +1 -1
- package/build/common/index.js +1 -0
- package/build/common/index.js.map +1 -1
- package/build/common/local/constants.d.ts +109 -0
- package/build/common/local/constants.d.ts.map +1 -0
- package/build/common/local/constants.js +115 -0
- package/build/common/local/constants.js.map +1 -0
- package/build/common/local/localEnvManager.d.ts +19 -0
- package/build/common/local/localEnvManager.d.ts.map +1 -0
- package/build/common/local/localEnvManager.js +85 -0
- package/build/common/local/localEnvManager.js.map +1 -0
- package/build/{plugins/resource/localdebug/localEnvMulti.d.ts → common/local/localEnvProvider.d.ts} +5 -4
- package/build/common/local/localEnvProvider.d.ts.map +1 -0
- package/build/{plugins/resource/localdebug/localEnvMulti.js → common/local/localEnvProvider.js} +19 -15
- package/build/common/local/localEnvProvider.js.map +1 -0
- package/build/common/local/localSettingsHelper.d.ts +3 -0
- package/build/common/local/localSettingsHelper.d.ts.map +1 -0
- package/build/common/local/localSettingsHelper.js +129 -0
- package/build/common/local/localSettingsHelper.js.map +1 -0
- package/build/common/local/npmLogHelper.d.ts +11 -0
- package/build/common/local/npmLogHelper.d.ts.map +1 -0
- package/build/common/local/npmLogHelper.js +82 -0
- package/build/common/local/npmLogHelper.js.map +1 -0
- package/build/common/local/packageJsonHelper.d.ts +4 -0
- package/build/common/local/packageJsonHelper.d.ts.map +1 -0
- package/build/common/local/packageJsonHelper.js +36 -0
- package/build/common/local/packageJsonHelper.js.map +1 -0
- package/build/common/local/portChecker.d.ts +3 -0
- package/build/common/local/portChecker.d.ts.map +1 -0
- package/build/common/local/portChecker.js +100 -0
- package/build/common/local/portChecker.js.map +1 -0
- package/build/common/local/projectSettingsHelper.d.ts +10 -0
- package/build/common/local/projectSettingsHelper.d.ts.map +1 -0
- package/build/common/local/projectSettingsHelper.js +34 -0
- package/build/common/local/projectSettingsHelper.js.map +1 -0
- package/build/common/localSettingsProvider.d.ts +3 -3
- package/build/common/localSettingsProvider.d.ts.map +1 -1
- package/build/common/localSettingsProvider.js +12 -10
- package/build/common/localSettingsProvider.js.map +1 -1
- package/build/common/samples-config.json +14 -0
- package/build/common/templatesActions.d.ts +2 -0
- package/build/common/templatesActions.d.ts.map +1 -1
- package/build/common/templatesActions.js +33 -1
- package/build/common/templatesActions.js.map +1 -1
- package/build/common/tools.d.ts +9 -4
- package/build/common/tools.d.ts.map +1 -1
- package/build/common/tools.js +21 -77
- package/build/common/tools.js.map +1 -1
- package/build/core/SolutionPluginContainer.d.ts +2 -1
- package/build/core/SolutionPluginContainer.d.ts.map +1 -1
- package/build/core/SolutionPluginContainer.js +9 -1
- package/build/core/SolutionPluginContainer.js.map +1 -1
- package/build/core/dependencyChecker.d.ts +1 -0
- package/build/core/dependencyChecker.d.ts.map +1 -0
- package/build/core/dependencyChecker.js +2 -0
- package/build/core/dependencyChecker.js.map +1 -0
- package/build/core/downloadSample.d.ts +9 -0
- package/build/core/downloadSample.d.ts.map +1 -0
- package/build/core/downloadSample.js +150 -0
- package/build/core/downloadSample.js.map +1 -0
- package/build/core/environment.d.ts +5 -5
- package/build/core/environment.d.ts.map +1 -1
- package/build/core/environment.js +40 -25
- package/build/core/environment.js.map +1 -1
- package/build/core/error.d.ts +2 -1
- package/build/core/error.d.ts.map +1 -1
- package/build/core/error.js +7 -3
- package/build/core/error.js.map +1 -1
- package/build/core/index.d.ts +53 -15
- package/build/core/index.d.ts.map +1 -1
- package/build/core/index.js +689 -575
- package/build/core/index.js.map +1 -1
- package/build/core/middleware/concurrentLocker.d.ts.map +1 -1
- package/build/core/middleware/concurrentLocker.js +23 -12
- package/build/core/middleware/concurrentLocker.js.map +1 -1
- package/build/core/middleware/envInfoLoader.d.ts +5 -1
- package/build/core/middleware/envInfoLoader.d.ts.map +1 -1
- package/build/core/middleware/envInfoLoader.js +52 -46
- package/build/core/middleware/envInfoLoader.js.map +1 -1
- package/build/core/middleware/envInfoLoaderV3.d.ts +3 -0
- package/build/core/middleware/envInfoLoaderV3.d.ts.map +1 -0
- package/build/core/middleware/envInfoLoaderV3.js +64 -0
- package/build/core/middleware/envInfoLoaderV3.js.map +1 -0
- package/build/core/middleware/envInfoWriter.js +14 -31
- package/build/core/middleware/envInfoWriter.js.map +1 -1
- package/build/core/middleware/envInfoWriterV3.d.ts +6 -0
- package/build/core/middleware/envInfoWriterV3.d.ts.map +1 -0
- package/build/core/middleware/envInfoWriterV3.js +63 -0
- package/build/core/middleware/envInfoWriterV3.js.map +1 -0
- package/build/core/middleware/errorHandler.d.ts.map +1 -1
- package/build/core/middleware/errorHandler.js +3 -5
- package/build/core/middleware/errorHandler.js.map +1 -1
- package/build/core/middleware/localSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/localSettingsLoader.js +1 -2
- package/build/core/middleware/localSettingsLoader.js.map +1 -1
- package/build/core/middleware/localSettingsWriter.d.ts.map +1 -1
- package/build/core/middleware/localSettingsWriter.js +7 -18
- package/build/core/middleware/localSettingsWriter.js.map +1 -1
- package/build/core/middleware/projectMigrator.d.ts.map +1 -1
- package/build/core/middleware/projectMigrator.js +25 -57
- package/build/core/middleware/projectMigrator.js.map +1 -1
- package/build/core/middleware/projectSettingsLoader.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsLoader.js +3 -6
- package/build/core/middleware/projectSettingsLoader.js.map +1 -1
- package/build/core/middleware/projectSettingsLoaderV3.d.ts +4 -0
- package/build/core/middleware/projectSettingsLoaderV3.d.ts.map +1 -0
- package/build/core/middleware/projectSettingsLoaderV3.js +49 -0
- package/build/core/middleware/projectSettingsLoaderV3.js.map +1 -0
- package/build/core/middleware/projectSettingsWriter.d.ts.map +1 -1
- package/build/core/middleware/projectSettingsWriter.js +5 -12
- package/build/core/middleware/projectSettingsWriter.js.map +1 -1
- package/build/core/middleware/projectUpgrader.d.ts.map +1 -1
- package/build/core/middleware/projectUpgrader.js +7 -15
- package/build/core/middleware/projectUpgrader.js.map +1 -1
- package/build/core/middleware/questionModel.d.ts +14 -1
- package/build/core/middleware/questionModel.d.ts.map +1 -1
- package/build/core/middleware/questionModel.js +319 -23
- package/build/core/middleware/questionModel.js.map +1 -1
- package/build/core/middleware/solutionLoader.d.ts +3 -2
- package/build/core/middleware/solutionLoader.d.ts.map +1 -1
- package/build/core/middleware/solutionLoader.js +21 -23
- package/build/core/middleware/solutionLoader.js.map +1 -1
- package/build/core/middleware/solutionLoaderV3.d.ts +4 -0
- package/build/core/middleware/solutionLoaderV3.d.ts.map +1 -0
- package/build/core/middleware/solutionLoaderV3.js +19 -0
- package/build/core/middleware/solutionLoaderV3.js.map +1 -0
- package/build/core/question.d.ts +9 -1
- package/build/core/question.d.ts.map +1 -1
- package/build/core/question.js +113 -3
- package/build/core/question.js.map +1 -1
- package/build/core/tools.d.ts +2 -1
- package/build/core/tools.d.ts.map +1 -1
- package/build/core/tools.js +19 -10
- package/build/core/tools.js.map +1 -1
- package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
- package/build/plugins/resource/aad/plugin.js +3 -12
- package/build/plugins/resource/aad/plugin.js.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
- package/build/plugins/resource/apim/managers/apimManager.js +5 -7
- package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.d.ts +1 -1
- package/build/plugins/resource/appstudio/appStudio.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/appStudio.js +106 -85
- package/build/plugins/resource/appstudio/appStudio.js.map +1 -1
- package/build/plugins/resource/appstudio/constants.d.ts +6 -1
- package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/constants.js +6 -1
- package/build/plugins/resource/appstudio/constants.js.map +1 -1
- package/build/plugins/resource/appstudio/errors.d.ts +1 -1
- package/build/plugins/resource/appstudio/errors.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/errors.js +2 -1
- package/build/plugins/resource/appstudio/errors.js.map +1 -1
- package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/index.js +15 -12
- package/build/plugins/resource/appstudio/index.js.map +1 -1
- package/build/plugins/resource/appstudio/plugin.d.ts +2 -3
- package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/plugin.js +233 -443
- package/build/plugins/resource/appstudio/plugin.js.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.d.ts.map +1 -1
- package/build/plugins/resource/appstudio/utils/telemetry.js +12 -16
- package/build/plugins/resource/appstudio/utils/telemetry.js.map +1 -1
- package/build/plugins/resource/appstudio/v3/index.d.ts +49 -0
- package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -0
- package/build/plugins/resource/appstudio/v3/index.js +51 -0
- package/build/plugins/resource/appstudio/v3/index.js.map +1 -0
- package/build/plugins/resource/bot/index.d.ts.map +1 -1
- package/build/plugins/resource/bot/index.js +5 -1
- package/build/plugins/resource/bot/index.js.map +1 -1
- package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
- package/build/plugins/resource/bot/plugin.js +9 -11
- package/build/plugins/resource/bot/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/constants.d.ts +1 -7
- package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
- package/build/plugins/resource/frontend/constants.js +2 -9
- package/build/plugins/resource/frontend/constants.js.map +1 -1
- package/build/plugins/resource/frontend/env.d.ts +21 -0
- package/build/plugins/resource/frontend/env.d.ts.map +1 -0
- package/build/plugins/resource/frontend/env.js +82 -0
- package/build/plugins/resource/frontend/env.js.map +1 -0
- package/build/plugins/resource/frontend/ops/deploy.d.ts +2 -1
- package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
- package/build/plugins/resource/frontend/ops/deploy.js +2 -2
- package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
- package/build/plugins/resource/frontend/plugin.d.ts +2 -0
- package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
- package/build/plugins/resource/frontend/plugin.js +28 -16
- package/build/plugins/resource/frontend/plugin.js.map +1 -1
- package/build/plugins/resource/frontend/utils/environment-utils.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils/environment-utils.js +4 -2
- package/build/plugins/resource/frontend/utils/environment-utils.js.map +1 -1
- package/build/plugins/resource/frontend/utils.d.ts +6 -1
- package/build/plugins/resource/frontend/utils.d.ts.map +1 -1
- package/build/plugins/resource/frontend/utils.js +17 -6
- package/build/plugins/resource/frontend/utils.js.map +1 -1
- package/build/plugins/resource/function/plugin.d.ts.map +1 -1
- package/build/plugins/resource/function/plugin.js +7 -9
- package/build/plugins/resource/function/plugin.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/checker.js +2 -2
- package/build/plugins/resource/function/utils/depsChecker/checker.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts +2 -2
- package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/common.js +6 -6
- package/build/plugins/resource/function/utils/depsChecker/common.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +3 -2
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +3 -2
- package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +1 -1
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +1 -23
- package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +1 -1
- package/build/plugins/resource/identity/index.d.ts.map +1 -1
- package/build/plugins/resource/identity/index.js +11 -13
- package/build/plugins/resource/identity/index.js.map +1 -1
- package/build/plugins/resource/keyvault/plugin.d.ts.map +1 -1
- package/build/plugins/resource/keyvault/plugin.js +7 -9
- package/build/plugins/resource/keyvault/plugin.js.map +1 -1
- package/build/plugins/resource/localdebug/index.d.ts +0 -7
- package/build/plugins/resource/localdebug/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/index.js +3 -501
- package/build/plugins/resource/localdebug/index.js.map +1 -1
- package/build/plugins/resource/localdebug/util/error.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/util/error.js +1 -1
- package/build/plugins/resource/localdebug/util/error.js.map +1 -1
- package/build/plugins/resource/localdebug/util/localService.d.ts +0 -1
- package/build/plugins/resource/localdebug/util/localService.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/util/localService.js +1 -40
- package/build/plugins/resource/localdebug/util/localService.js.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.d.ts.map +1 -1
- package/build/plugins/resource/localdebug/v2/index.js +39 -1
- package/build/plugins/resource/localdebug/v2/index.js.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/plugin.js +7 -9
- package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
- package/build/plugins/resource/simpleauth/utils/common.d.ts.map +1 -1
- package/build/plugins/resource/simpleauth/utils/common.js +3 -1
- package/build/plugins/resource/simpleauth/utils/common.js.map +1 -1
- package/build/plugins/resource/sql/config.d.ts +0 -1
- package/build/plugins/resource/sql/config.d.ts.map +1 -1
- package/build/plugins/resource/sql/config.js +0 -1
- package/build/plugins/resource/sql/config.js.map +1 -1
- package/build/plugins/resource/sql/constants.d.ts +1 -0
- package/build/plugins/resource/sql/constants.d.ts.map +1 -1
- package/build/plugins/resource/sql/constants.js +1 -0
- package/build/plugins/resource/sql/constants.js.map +1 -1
- package/build/plugins/resource/sql/errors.d.ts +3 -1
- package/build/plugins/resource/sql/errors.d.ts.map +1 -1
- package/build/plugins/resource/sql/errors.js +3 -1
- package/build/plugins/resource/sql/errors.js.map +1 -1
- package/build/plugins/resource/sql/managementClient.d.ts +3 -1
- package/build/plugins/resource/sql/managementClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/managementClient.js +11 -20
- package/build/plugins/resource/sql/managementClient.js.map +1 -1
- package/build/plugins/resource/sql/plugin.d.ts +3 -0
- package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
- package/build/plugins/resource/sql/plugin.js +41 -36
- package/build/plugins/resource/sql/plugin.js.map +1 -1
- package/build/plugins/resource/sql/results.d.ts +2 -2
- package/build/plugins/resource/sql/results.d.ts.map +1 -1
- package/build/plugins/resource/sql/results.js +4 -4
- package/build/plugins/resource/sql/results.js.map +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts +1 -1
- package/build/plugins/resource/sql/sqlClient.d.ts.map +1 -1
- package/build/plugins/resource/sql/sqlClient.js +33 -46
- package/build/plugins/resource/sql/sqlClient.js.map +1 -1
- package/build/plugins/resource/sql/utils/checkInput.js +2 -2
- package/build/plugins/resource/sql/utils/checkInput.js.map +1 -1
- package/build/plugins/resource/sql/utils/message.d.ts +0 -1
- package/build/plugins/resource/sql/utils/message.d.ts.map +1 -1
- package/build/plugins/resource/sql/utils/message.js +0 -1
- package/build/plugins/resource/sql/utils/message.js.map +1 -1
- package/build/plugins/resource/utils4v2.d.ts.map +1 -1
- package/build/plugins/resource/utils4v2.js +0 -4
- package/build/plugins/resource/utils4v2.js.map +1 -1
- package/build/plugins/solution/fx-solution/arm.d.ts +18 -11
- package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/arm.js +390 -131
- package/build/plugins/solution/fx-solution/arm.js.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts +13 -2
- package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/commonQuestions.js +24 -26
- package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/debug/constants.d.ts +14 -0
- package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/constants.js +22 -0
- package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/error.d.ts +9 -0
- package/build/plugins/solution/fx-solution/debug/error.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/error.js +36 -0
- package/build/plugins/solution/fx-solution/debug/error.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts +4 -0
- package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js +233 -0
- package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +5 -0
- package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/scaffolding.js +164 -0
- package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/certificate.d.ts +2 -2
- package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/certificate.js +8 -9
- package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/codespace.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/codespace.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/codespace.js +0 -0
- package/build/plugins/solution/fx-solution/debug/util/codespace.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/launch.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/launch.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/launch.js +1 -1
- package/build/plugins/solution/fx-solution/debug/util/launch.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/localService.d.ts +3 -0
- package/build/plugins/solution/fx-solution/debug/util/localService.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/localService.js +52 -0
- package/build/plugins/solution/fx-solution/debug/util/localService.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/ngrok.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/ngrok.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/ngrok.js +2 -2
- package/build/plugins/solution/fx-solution/debug/util/ngrok.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/process.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/process.js +0 -0
- package/build/plugins/solution/fx-solution/debug/util/process.js.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/settings.d.ts +2 -0
- package/build/plugins/solution/fx-solution/debug/util/settings.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/debug/util/settings.js +22 -0
- package/build/plugins/solution/fx-solution/debug/util/settings.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/tasks.d.ts +0 -0
- package/build/plugins/solution/fx-solution/debug/util/tasks.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug/util}/tasks.js +11 -11
- package/build/plugins/solution/fx-solution/debug/util/tasks.js.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/telemetry.d.ts +7 -6
- package/build/plugins/solution/fx-solution/debug/util/telemetry.d.ts.map +1 -0
- package/build/plugins/{resource/localdebug → solution/fx-solution/debug}/util/telemetry.js +16 -19
- package/build/plugins/solution/fx-solution/debug/util/telemetry.js.map +1 -0
- package/build/plugins/solution/fx-solution/index.d.ts +1 -0
- package/build/plugins/solution/fx-solution/index.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/index.js +1 -0
- package/build/plugins/solution/fx-solution/index.js.map +1 -1
- package/build/plugins/solution/fx-solution/question.d.ts +2 -2
- package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/question.js +2 -32
- package/build/plugins/solution/fx-solution/question.js.map +1 -1
- package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/solution.js +14 -5
- package/build/plugins/solution/fx-solution/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.d.ts +2 -2
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.js +13 -14
- package/build/plugins/solution/fx-solution/utils/depsChecker/bicepChecker.js.map +1 -1
- package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts +2 -2
- package/build/plugins/solution/fx-solution/utils/progressHelper.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/utils/progressHelper.js +4 -4
- package/build/plugins/solution/fx-solution/utils/progressHelper.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/constants.d.ts +2 -0
- package/build/plugins/solution/fx-solution/v2/constants.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v2/constants.js +7 -0
- package/build/plugins/solution/fx-solution/v2/constants.js.map +1 -0
- package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -1
- package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js +7 -4
- package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/getQuestions.js +67 -25
- package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/listAllCollaborators.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provision.js +9 -1
- package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js +12 -1
- package/build/plugins/solution/fx-solution/v2/provisionLocal.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/scaffolding.js +5 -0
- package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.d.ts.map +1 -1
- package/build/plugins/solution/fx-solution/v2/solution.js +2 -1
- package/build/plugins/solution/fx-solution/v2/solution.js.map +1 -1
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts +6 -0
- package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addModule.js +35 -0
- package/build/plugins/solution/fx-solution/v3/addModule.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts +37 -0
- package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/addResource.js +260 -0
- package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts +20 -0
- package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/constants.js +25 -0
- package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts +6 -0
- package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/deploy.js +78 -0
- package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/error.d.ts +11 -0
- package/build/plugins/solution/fx-solution/v3/error.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/error.js +23 -0
- package/build/plugins/solution/fx-solution/v3/error.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/init.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/init.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/init.js +35 -0
- package/build/plugins/solution/fx-solution/v3/init.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/provision.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/provision.js +124 -0
- package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js +13 -0
- package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/publish.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/publish.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/publish.js +15 -0
- package/build/plugins/solution/fx-solution/v3/publish.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/questions.d.ts +16 -0
- package/build/plugins/solution/fx-solution/v3/questions.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/questions.js +86 -0
- package/build/plugins/solution/fx-solution/v3/questions.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +27 -0
- package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/scaffold.js +241 -0
- package/build/plugins/solution/fx-solution/v3/scaffold.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/solution.d.ts +32 -0
- package/build/plugins/solution/fx-solution/v3/solution.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/solution.js +45 -0
- package/build/plugins/solution/fx-solution/v3/solution.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts +4 -0
- package/build/plugins/solution/fx-solution/v3/userTask.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/userTask.js +15 -0
- package/build/plugins/solution/fx-solution/v3/userTask.js.map +1 -0
- package/build/plugins/solution/fx-solution/v3/utils.d.ts +3 -0
- package/build/plugins/solution/fx-solution/v3/utils.d.ts.map +1 -0
- package/build/plugins/solution/fx-solution/v3/utils.js +16 -0
- package/build/plugins/solution/fx-solution/v3/utils.js.map +1 -0
- package/build/plugins/solution/index.d.ts +1 -0
- package/build/plugins/solution/index.d.ts.map +1 -1
- package/build/plugins/solution/index.js +1 -0
- package/build/plugins/solution/index.js.map +1 -1
- package/build/plugins/solution/spfx-solution/constants.d.ts +2 -0
- package/build/plugins/solution/spfx-solution/constants.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/constants.js +7 -0
- package/build/plugins/solution/spfx-solution/constants.js.map +1 -0
- package/build/plugins/solution/spfx-solution/index.d.ts +2 -0
- package/build/plugins/solution/spfx-solution/index.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/index.js +5 -0
- package/build/plugins/solution/spfx-solution/index.js.map +1 -0
- package/build/plugins/solution/spfx-solution/init.d.ts +3 -0
- package/build/plugins/solution/spfx-solution/init.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/init.js +20 -0
- package/build/plugins/solution/spfx-solution/init.js.map +1 -0
- package/build/plugins/solution/spfx-solution/questions.d.ts +6 -0
- package/build/plugins/solution/spfx-solution/questions.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/questions.js +36 -0
- package/build/plugins/solution/spfx-solution/questions.js.map +1 -0
- package/build/plugins/solution/spfx-solution/scaffolding.d.ts +17 -0
- package/build/plugins/solution/spfx-solution/scaffolding.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/scaffolding.js +29 -0
- package/build/plugins/solution/spfx-solution/scaffolding.js.map +1 -0
- package/build/plugins/solution/spfx-solution/solution.d.ts +23 -0
- package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -0
- package/build/plugins/solution/spfx-solution/solution.js +29 -0
- package/build/plugins/solution/spfx-solution/solution.js.map +1 -0
- package/package.json +20 -5
- package/resource/deps-checker/dotnet-install.ps1 +1095 -0
- package/resource/deps-checker/dotnet-install.sh +1222 -0
- package/resource/strings.json +0 -1
- package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +16 -16
- package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -1
- package/templates/plugins/resource/apim/bicep/provision.template.bicep +1 -1
- package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +28 -29
- package/templates/plugins/resource/bot/bicep/config.template.bicep +1 -1
- package/templates/plugins/resource/bot/bicep/provision.template.bicep +2 -2
- package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -1
- package/templates/plugins/resource/function/bicep/config.template.bicep +1 -1
- package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +33 -31
- package/templates/plugins/resource/function/bicep/provision.template.bicep +2 -2
- package/templates/plugins/resource/identity/bicep/provision.template.bicep +1 -1
- package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +1 -0
- package/templates/plugins/resource/keyvault/bicep/provision.template.bicep +4 -2
- package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +1 -1
- package/templates/plugins/resource/simpleauth/bicep/provision.template.bicep +2 -2
- package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +20 -24
- package/templates/plugins/resource/simpleauth/version.txt +2 -1
- package/templates/plugins/resource/sql/bicep/provision.template.bicep +1 -1
- package/build/plugins/resource/localdebug/certificate.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/certificate.js.map +0 -1
- package/build/plugins/resource/localdebug/launch.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/launch.js.map +0 -1
- package/build/plugins/resource/localdebug/legacyPlugin.d.ts +0 -6
- package/build/plugins/resource/localdebug/legacyPlugin.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/legacyPlugin.js +0 -208
- package/build/plugins/resource/localdebug/legacyPlugin.js.map +0 -1
- package/build/plugins/resource/localdebug/localEnvMulti.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/localEnvMulti.js.map +0 -1
- package/build/plugins/resource/localdebug/settings.d.ts +0 -2
- package/build/plugins/resource/localdebug/settings.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/settings.js +0 -18
- package/build/plugins/resource/localdebug/settings.js.map +0 -1
- package/build/plugins/resource/localdebug/tasks.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/tasks.js.map +0 -1
- package/build/plugins/resource/localdebug/util/codespace.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/util/codespace.js.map +0 -1
- package/build/plugins/resource/localdebug/util/ngrok.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/util/ngrok.js.map +0 -1
- package/build/plugins/resource/localdebug/util/process.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/util/process.js.map +0 -1
- package/build/plugins/resource/localdebug/util/telemetry.d.ts.map +0 -1
- package/build/plugins/resource/localdebug/util/telemetry.js.map +0 -1
- package/templates/azure/config.bicep +0 -25
- package/templates/azure/main.bicep +0 -20
- package/templates/azure/provision/azureSql.bicep +0 -39
- package/templates/azure/provision/frontendHosting.bicep +0 -23
- package/templates/azure/provision/function.bicep +0 -79
- package/templates/azure/provision/simpleAuth.bicep +0 -44
- package/templates/azure/provision.bicep +0 -58
- package/templates/azure/teamsFx/bot.bicep +0 -34
- package/templates/azure/teamsFx/function.bicep +0 -71
- package/templates/azure/teamsFx/simpleAuth.bicep +0 -40
- package/templates/plugins/resource/aad/bicep/param.template.bicep +0 -6
- package/templates/plugins/resource/aad/bicep/variables.template.bicep +0 -13
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.FunctionNodeChecker = exports.AzureNodeChecker = exports.SPFxNodeChecker = exports.NodeChecker = void 0;
|
|
6
|
+
const depsError_1 = require("../depsError");
|
|
7
|
+
const cpUtils_1 = require("../util/cpUtils");
|
|
8
|
+
const telemetry_1 = require("../constant/telemetry");
|
|
9
|
+
const message_1 = require("../constant/message");
|
|
10
|
+
const teamsfx_api_1 = require("@microsoft/teamsfx-api");
|
|
11
|
+
const helpLink_1 = require("../constant/helpLink");
|
|
12
|
+
const NodeName = "Node.js";
|
|
13
|
+
class NodeVersion {
|
|
14
|
+
constructor(version, majorVersion) {
|
|
15
|
+
this.version = version;
|
|
16
|
+
this.majorVersion = majorVersion;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
class NodeChecker {
|
|
20
|
+
constructor(logger, telemetry) {
|
|
21
|
+
this._logger = logger;
|
|
22
|
+
this._telemetry = telemetry;
|
|
23
|
+
}
|
|
24
|
+
async isInstalled() {
|
|
25
|
+
const supportedVersions = await this.getSupportedVersions();
|
|
26
|
+
this._logger.debug(`NodeChecker checking for supported versions: '${JSON.stringify(supportedVersions)}'`);
|
|
27
|
+
const currentVersion = await getInstalledNodeVersion();
|
|
28
|
+
if (currentVersion === null) {
|
|
29
|
+
this._telemetry.sendUserErrorEvent(telemetry_1.DepsCheckerEvent.nodeNotFound, "Node.js can't be found.");
|
|
30
|
+
throw new depsError_1.NodeNotFoundError(message_1.Messages.NodeNotFound, this._nodeNotFoundHelpLink);
|
|
31
|
+
}
|
|
32
|
+
if (!NodeChecker.isVersionSupported(supportedVersions, currentVersion)) {
|
|
33
|
+
const supportedVersionsString = supportedVersions.map((v) => "v" + v).join(" ,");
|
|
34
|
+
this._telemetry.sendUserErrorEvent(this._nodeNotSupportedEvent, `Node.js ${currentVersion.version} is not supported.`);
|
|
35
|
+
throw new depsError_1.NodeNotSupportedError(message_1.Messages.NodeNotSupported.split("@CurrentVersion")
|
|
36
|
+
.join(currentVersion.version)
|
|
37
|
+
.split("@SupportedVersions")
|
|
38
|
+
.join(supportedVersionsString), await this.getNodeNotSupportedHelpLink());
|
|
39
|
+
}
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
async resolve() {
|
|
43
|
+
try {
|
|
44
|
+
if (!(await this.isInstalled())) {
|
|
45
|
+
await this.install();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
catch (error) {
|
|
49
|
+
await this._logger.printDetailLog();
|
|
50
|
+
await this._logger.error(`${error.message}, error = '${error}'`);
|
|
51
|
+
if (error instanceof depsError_1.DepsCheckerError) {
|
|
52
|
+
return teamsfx_api_1.err(error);
|
|
53
|
+
}
|
|
54
|
+
return teamsfx_api_1.err(new depsError_1.DepsCheckerError(error.message, helpLink_1.nodeNotFoundHelpLink));
|
|
55
|
+
}
|
|
56
|
+
finally {
|
|
57
|
+
this._logger.cleanup();
|
|
58
|
+
}
|
|
59
|
+
return teamsfx_api_1.ok(true);
|
|
60
|
+
}
|
|
61
|
+
async install() {
|
|
62
|
+
return Promise.resolve();
|
|
63
|
+
}
|
|
64
|
+
async getDepsInfo() {
|
|
65
|
+
return {
|
|
66
|
+
name: NodeName,
|
|
67
|
+
isLinuxSupported: true,
|
|
68
|
+
supportedVersions: await this.getSupportedVersions(),
|
|
69
|
+
details: new Map(),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
static isVersionSupported(supportedVersion, version) {
|
|
73
|
+
return supportedVersion.includes(version.majorVersion);
|
|
74
|
+
}
|
|
75
|
+
async command() {
|
|
76
|
+
return "node";
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
exports.NodeChecker = NodeChecker;
|
|
80
|
+
async function getInstalledNodeVersion() {
|
|
81
|
+
try {
|
|
82
|
+
const output = await cpUtils_1.cpUtils.executeCommand(undefined, undefined, undefined, "node", "--version");
|
|
83
|
+
return getNodeVersion(output);
|
|
84
|
+
}
|
|
85
|
+
catch (error) {
|
|
86
|
+
return null;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function getNodeVersion(output) {
|
|
90
|
+
var _a;
|
|
91
|
+
const regex = /v(?<major_version>\d+)\.(?<minor_version>\d+)\.(?<patch_version>\d+)/gm;
|
|
92
|
+
const match = regex.exec(output);
|
|
93
|
+
if (!match) {
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
const majorVersion = (_a = match.groups) === null || _a === void 0 ? void 0 : _a.major_version;
|
|
97
|
+
if (!majorVersion) {
|
|
98
|
+
return null;
|
|
99
|
+
}
|
|
100
|
+
return new NodeVersion(match[0], majorVersion);
|
|
101
|
+
}
|
|
102
|
+
class SPFxNodeChecker extends NodeChecker {
|
|
103
|
+
constructor() {
|
|
104
|
+
super(...arguments);
|
|
105
|
+
this._nodeNotFoundHelpLink = helpLink_1.nodeNotFoundHelpLink;
|
|
106
|
+
this._nodeNotSupportedEvent = telemetry_1.DepsCheckerEvent.nodeNotSupportedForSPFx;
|
|
107
|
+
}
|
|
108
|
+
async getNodeNotSupportedHelpLink() {
|
|
109
|
+
return helpLink_1.nodeNotSupportedForSPFxHelpLink;
|
|
110
|
+
}
|
|
111
|
+
async getSupportedVersions() {
|
|
112
|
+
return ["10", "12", "14"];
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.SPFxNodeChecker = SPFxNodeChecker;
|
|
116
|
+
class AzureNodeChecker extends NodeChecker {
|
|
117
|
+
constructor() {
|
|
118
|
+
super(...arguments);
|
|
119
|
+
this._nodeNotFoundHelpLink = helpLink_1.nodeNotFoundHelpLink;
|
|
120
|
+
this._nodeNotSupportedEvent = telemetry_1.DepsCheckerEvent.nodeNotSupportedForAzure;
|
|
121
|
+
}
|
|
122
|
+
async getNodeNotSupportedHelpLink() {
|
|
123
|
+
return helpLink_1.nodeNotSupportedForAzureHelpLink;
|
|
124
|
+
}
|
|
125
|
+
async getSupportedVersions() {
|
|
126
|
+
return ["10", "12", "14", "16"];
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
exports.AzureNodeChecker = AzureNodeChecker;
|
|
130
|
+
class FunctionNodeChecker extends NodeChecker {
|
|
131
|
+
constructor() {
|
|
132
|
+
super(...arguments);
|
|
133
|
+
this._nodeNotFoundHelpLink = helpLink_1.nodeNotFoundHelpLink;
|
|
134
|
+
this._nodeNotSupportedEvent = telemetry_1.DepsCheckerEvent.nodeNotSupportedForAzure;
|
|
135
|
+
}
|
|
136
|
+
async getNodeNotSupportedHelpLink() {
|
|
137
|
+
return helpLink_1.nodeNotSupportedForFunctionsHelpLink;
|
|
138
|
+
}
|
|
139
|
+
async getSupportedVersions() {
|
|
140
|
+
return ["10", "12", "14"];
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.FunctionNodeChecker = FunctionNodeChecker;
|
|
144
|
+
//# sourceMappingURL=nodeChecker.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"nodeChecker.js","sourceRoot":"","sources":["../../../../src/common/deps-checker/internal/nodeChecker.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,4CAA0F;AAC1F,6CAA0C;AAC1C,qDAAyD;AAIzD,iDAA+C;AAC/C,wDAAyD;AACzD,mDAK8B;AAE9B,MAAM,QAAQ,GAAG,SAAS,CAAC;AAE3B,MAAM,WAAW;IAIf,YAAY,OAAe,EAAE,YAAoB;QAC/C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACnC,CAAC;CACF;AAED,MAAsB,WAAW;IAS/B,YAAY,MAAkB,EAAE,SAAwB;QACtD,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,SAAS,CAAC;IAC9B,CAAC;I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PW,KAAK,CAAC,2BAA2B;QACzC,OAAO,+CAAoC,CAAC;IAC9C,CAAC;IAES,KAAK,CAAC,oBAAoB;QAClC,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;IAC5B,CAAC;CACF;AAXD,kDAWC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import * as cp from "child_process";
|
|
3
|
+
export interface DebugLogger {
|
|
4
|
+
debug(message: string): Promise<boolean>;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace cpUtils {
|
|
7
|
+
function executeCommand(workingDirectory: string | undefined, logger: DebugLogger | undefined, options: cp.SpawnOptions | undefined, command: string, ...args: string[]): Promise<string>;
|
|
8
|
+
function tryExecuteCommand(workingDirectory: string | undefined, logger: DebugLogger | undefined, additionalOptions: cp.SpawnOptions | undefined, command: string, ...args: string[]): Promise<ICommandResult>;
|
|
9
|
+
interface ICommandResult {
|
|
10
|
+
code: number;
|
|
11
|
+
cmdOutput: string;
|
|
12
|
+
cmdOutputIncludingStderr: string;
|
|
13
|
+
formattedArgs: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Ensures spaces and special characters (most notably $) are preserved
|
|
17
|
+
*/
|
|
18
|
+
function wrapArgInQuotes(arg: string): string;
|
|
19
|
+
/**
|
|
20
|
+
* timeout with millisecond
|
|
21
|
+
*/
|
|
22
|
+
function withTimeout(millis: number, promise: Promise<any>, msg: string): Promise<any>;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=cpUtils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cpUtils.d.ts","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/cpUtils.ts"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,MAAM,eAAe,CAAC;AAGpC,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAC1C;AAED,yBAAiB,OAAO,CAAC;IACvB,SAAsB,cAAc,CAClC,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,MAAM,EAAE,WAAW,GAAG,SAAS,EAC/B,OAAO,EAAE,EAAE,CAAC,YAAY,GAAG,SAAS,EACpC,OAAO,EAAE,MAAM,EACf,GAAG,IAAI,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,MAAM,CAAC,CAkBjB;IAED,SAAsB,iBAAiB,CACrC,gBAAgB,EAAE,MAAM,GAAG,SAAS,EACpC,MAAM,EAAE,WAAW,GAAG,SAAS,EAC/B,iBAAiB,EAAE,EAAE,CAAC,YAAY,GAAG,SAAS,EAC9C,OAAO,EAAE,MAAM,EACf,GAAG,IAAI,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,cAAc,CAAC,CAwEzB;IAED,UAAiB,cAAc;QAC7B,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,wBAAwB,EAAE,MAAM,CAAC;QACjC,aAAa,EAAE,MAAM,CAAC;KACvB;IAID;;OAEG;IACH,SAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEnD;IAED;;OAEG;IACH,SAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAO5F;CACF"}
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* eslint-disable @typescript-eslint/no-namespace */
|
|
3
|
+
// Copyright (c) Microsoft Corporation.
|
|
4
|
+
// Licensed under the MIT license.
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.cpUtils = void 0;
|
|
7
|
+
const tslib_1 = require("tslib");
|
|
8
|
+
const cp = tslib_1.__importStar(require("child_process"));
|
|
9
|
+
const os = tslib_1.__importStar(require("os"));
|
|
10
|
+
var cpUtils;
|
|
11
|
+
(function (cpUtils) {
|
|
12
|
+
async function executeCommand(workingDirectory, logger, options, command, ...args) {
|
|
13
|
+
const result = await tryExecuteCommand(workingDirectory, logger, options, command, ...args);
|
|
14
|
+
if (result.code !== 0) {
|
|
15
|
+
const errorMessage = `Failed to run command: "${command} ${result.formattedArgs}", code: "${result.code}",
|
|
16
|
+
output: "${result.cmdOutput}", error: "${result.cmdOutputIncludingStderr}"`;
|
|
17
|
+
await (logger === null || logger === void 0 ? void 0 : logger.debug(errorMessage));
|
|
18
|
+
throw new Error(errorMessage);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
await (logger === null || logger === void 0 ? void 0 : logger.debug(`Finished running command: "${command} ${result.formattedArgs}".`));
|
|
22
|
+
}
|
|
23
|
+
return result.cmdOutput;
|
|
24
|
+
}
|
|
25
|
+
cpUtils.executeCommand = executeCommand;
|
|
26
|
+
async function tryExecuteCommand(workingDirectory, logger, additionalOptions, command, ...args) {
|
|
27
|
+
return await new Promise((resolve, reject) => {
|
|
28
|
+
var _a, _b;
|
|
29
|
+
let cmdOutput = "";
|
|
30
|
+
let cmdOutputIncludingStderr = "";
|
|
31
|
+
const formattedArgs = args.join(" ");
|
|
32
|
+
workingDirectory = workingDirectory || os.tmpdir();
|
|
33
|
+
const options = {
|
|
34
|
+
cwd: workingDirectory,
|
|
35
|
+
shell: true,
|
|
36
|
+
};
|
|
37
|
+
Object.assign(options, additionalOptions);
|
|
38
|
+
const childProc = cp.spawn(command, args, options);
|
|
39
|
+
let timer;
|
|
40
|
+
if (options.timeout && options.timeout > 0) {
|
|
41
|
+
// timeout only exists for exec not spawn
|
|
42
|
+
timer = setTimeout(() => {
|
|
43
|
+
childProc.kill();
|
|
44
|
+
logger === null || logger === void 0 ? void 0 : logger.debug(`Stop exec due to timeout, command: "${command} ${formattedArgs}", options = '${JSON.stringify(options)}'`);
|
|
45
|
+
reject(new Error(`Exec command: "${command} ${formattedArgs}" timeout, ${options.timeout} ms`));
|
|
46
|
+
}, options.timeout);
|
|
47
|
+
}
|
|
48
|
+
logger === null || logger === void 0 ? void 0 : logger.debug(`Running command: "${command} ${formattedArgs}", options = '${JSON.stringify(options)}'`);
|
|
49
|
+
(_a = childProc.stdout) === null || _a === void 0 ? void 0 : _a.on("data", (data) => {
|
|
50
|
+
data = data.toString();
|
|
51
|
+
cmdOutput = cmdOutput.concat(data);
|
|
52
|
+
cmdOutputIncludingStderr = cmdOutputIncludingStderr.concat(data);
|
|
53
|
+
});
|
|
54
|
+
(_b = childProc.stderr) === null || _b === void 0 ? void 0 : _b.on("data", (data) => {
|
|
55
|
+
data = data.toString();
|
|
56
|
+
cmdOutputIncludingStderr = cmdOutputIncludingStderr.concat(data);
|
|
57
|
+
});
|
|
58
|
+
childProc.on("error", (error) => {
|
|
59
|
+
logger === null || logger === void 0 ? void 0 : logger.debug(`Failed to run command '${command} ${formattedArgs}': cmdOutputIncludingStderr: '${cmdOutputIncludingStderr}', error: ${error}`);
|
|
60
|
+
if (timer) {
|
|
61
|
+
clearTimeout(timer);
|
|
62
|
+
}
|
|
63
|
+
reject(error);
|
|
64
|
+
});
|
|
65
|
+
childProc.on("close", (code) => {
|
|
66
|
+
logger === null || logger === void 0 ? void 0 : logger.debug(`Command finished with outputs, cmdOutputIncludingStderr: '${cmdOutputIncludingStderr}'`);
|
|
67
|
+
if (timer) {
|
|
68
|
+
clearTimeout(timer);
|
|
69
|
+
}
|
|
70
|
+
resolve({
|
|
71
|
+
code,
|
|
72
|
+
cmdOutput,
|
|
73
|
+
cmdOutputIncludingStderr,
|
|
74
|
+
formattedArgs,
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
cpUtils.tryExecuteCommand = tryExecuteCommand;
|
|
80
|
+
const quotationMark = process.platform === "win32" ? '"' : "'";
|
|
81
|
+
/**
|
|
82
|
+
* Ensures spaces and special characters (most notably $) are preserved
|
|
83
|
+
*/
|
|
84
|
+
function wrapArgInQuotes(arg) {
|
|
85
|
+
return quotationMark + arg + quotationMark;
|
|
86
|
+
}
|
|
87
|
+
cpUtils.wrapArgInQuotes = wrapArgInQuotes;
|
|
88
|
+
/**
|
|
89
|
+
* timeout with millisecond
|
|
90
|
+
*/
|
|
91
|
+
function withTimeout(millis, promise, msg) {
|
|
92
|
+
return Promise.race([
|
|
93
|
+
promise,
|
|
94
|
+
new Promise((resolve, reject) => setTimeout(() => reject(new Error(`${msg}, ${millis} ms`)), millis)),
|
|
95
|
+
]);
|
|
96
|
+
}
|
|
97
|
+
cpUtils.withTimeout = withTimeout;
|
|
98
|
+
})(cpUtils = exports.cpUtils || (exports.cpUtils = {}));
|
|
99
|
+
//# sourceMappingURL=cpUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cpUtils.js","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/cpUtils.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,uCAAuC;AACvC,kCAAkC;;;;AAElC,0DAAoC;AACpC,+CAAyB;AAMzB,IAAiB,OAAO,CAsIvB;AAtID,WAAiB,OAAO;IACf,KAAK,UAAU,cAAc,CAClC,gBAAoC,EACpC,MAA+B,EAC/B,OAAoC,EACpC,OAAe,EACf,GAAG,IAAc;QAEjB,MAAM,MAAM,GAAmB,MAAM,iBAAiB,CACpD,gBAAgB,EAChB,MAAM,EACN,OAAO,EACP,OAAO,EACP,GAAG,IAAI,CACR,CAAC;QACF,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC,EAAE;YACrB,MAAM,YAAY,GAAG,2BAA2B,OAAO,IAAI,MAAM,CAAC,aAAa,aAAa,MAAM,CAAC,IAAI;uCACtE,MAAM,CAAC,SAAS,cAAc,MAAM,CAAC,wBAAwB,GAAG,CAAC;YAClG,MAAM,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAC,YAAY,CAAC,CAAA,CAAC;YAClC,MAAM,I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MAAM,uBAAN,MAAM,CAAE,KAAK,CACX,6DAA6D,wBAAwB,GAAG,CACzF,CAAC;gBACF,IAAI,KAAK,EAAE;oBACT,YAAY,CAAC,KAAK,CAAC,CAAC;iBACrB;gBACD,OAAO,CAAC;oBACN,IAAI;oBACJ,SAAS;oBACT,wBAAwB;oBACxB,aAAa;iBACd,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC,CACF,CAAC;IACJ,CAAC;IA9EqB,yBAAiB,oBA8EtC,CAAA;IASD,MAAM,aAAa,GAAW,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC;IAEvE;;OAEG;IACH,SAAgB,eAAe,CAAC,GAAW;QACzC,OAAO,aAAa,GAAG,GAAG,GAAG,aAAa,CAAC;IAC7C,CAAC;IAFe,uBAAe,kBAE9B,CAAA;IAED;;OAEG;IACH,SAAgB,WAAW,CAAC,MAAc,EAAE,OAAqB,EAAE,GAAW;QAC5E,OAAO,OAAO,CAAC,IAAI,CAAC;YAClB,OAAO;YACP,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,CAC9B,UAAU,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,GAAG,GAAG,KAAK,MAAM,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CACpE;SACF,CAAC,CAAC;IACL,CAAC;IAPe,mBAAW,cAO1B,CAAA;AACH,CAAC,EAtIgB,OAAO,GAAP,eAAO,KAAP,eAAO,QAsIvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progressIndicator.d.ts","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/progressIndicator.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAI3C,wBAAsB,wBAAwB,CAC5C,QAAQ,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,EAC7B,MAAM,EAAE,UAAU,GACjB,OAAO,CAAC,IAAI,CAAC,CAQf"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.runWithProgressIndicator = void 0;
|
|
6
|
+
const downloadIndicatorInterval = 1000; // same as vscode-dotnet-runtime
|
|
7
|
+
async function runWithProgressIndicator(callback, logger) {
|
|
8
|
+
const timer = setInterval(async () => await logger.append("."), downloadIndicatorInterval);
|
|
9
|
+
try {
|
|
10
|
+
await callback();
|
|
11
|
+
}
|
|
12
|
+
finally {
|
|
13
|
+
clearTimeout(timer);
|
|
14
|
+
await logger.appendLine("");
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
exports.runWithProgressIndicator = runWithProgressIndicator;
|
|
18
|
+
//# sourceMappingURL=progressIndicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progressIndicator.js","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/progressIndicator.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAIlC,MAAM,yBAAyB,GAAG,IAAI,CAAC,CAAC,gCAAgC;AAEjE,KAAK,UAAU,wBAAwB,CAC5C,QAA6B,EAC7B,MAAkB;IAElB,MAAM,KAAK,GAAG,WAAW,CAAC,KAAK,IAAI,EAAE,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,yBAAyB,CAAC,CAAC;IAC3F,IAAI;QACF,MAAM,QAAQ,EAAE,CAAC;KAClB;YAAS;QACR,YAAY,CAAC,KAAK,CAAC,CAAC;QACpB,MAAM,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;KAC7B;AACH,CAAC;AAXD,4DAWC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.d.ts","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/system.ts"],"names":[],"mappings":"AAKA,wBAAgB,SAAS,IAAI,OAAO,CAEnC;AAED,wBAAgB,OAAO,IAAI,OAAO,CAEjC;AAED,wBAAgB,OAAO,IAAI,OAAO,CAEjC;AAED,wBAAgB,OAAO,IAAI,OAAO,CAEjC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT license.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.isArm64 = exports.isLinux = exports.isMacOS = exports.isWindows = void 0;
|
|
6
|
+
const tslib_1 = require("tslib");
|
|
7
|
+
const os = tslib_1.__importStar(require("os"));
|
|
8
|
+
function isWindows() {
|
|
9
|
+
return os.type() === "Windows_NT";
|
|
10
|
+
}
|
|
11
|
+
exports.isWindows = isWindows;
|
|
12
|
+
function isMacOS() {
|
|
13
|
+
return os.type() === "Darwin";
|
|
14
|
+
}
|
|
15
|
+
exports.isMacOS = isMacOS;
|
|
16
|
+
function isLinux() {
|
|
17
|
+
return os.type() === "Linux";
|
|
18
|
+
}
|
|
19
|
+
exports.isLinux = isLinux;
|
|
20
|
+
function isArm64() {
|
|
21
|
+
return os.arch() === "arm64";
|
|
22
|
+
}
|
|
23
|
+
exports.isArm64 = isArm64;
|
|
24
|
+
//# sourceMappingURL=system.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system.js","sourceRoot":"","sources":["../../../../src/common/deps-checker/util/system.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,+CAAyB;AAEzB,SAAgB,SAAS;IACvB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,YAAY,CAAC;AACpC,CAAC;AAFD,8BAEC;AAED,SAAgB,OAAO;IACrB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,QAAQ,CAAC;AAChC,CAAC;AAFD,0BAEC;AAED,SAAgB,OAAO;IACrB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,OAAO,CAAC;AAC/B,CAAC;AAFD,0BAEC;AAED,SAAgB,OAAO;IACrB,OAAO,EAAE,CAAC,IAAI,EAAE,KAAK,OAAO,CAAC;AAC/B,CAAC;AAFD,0BAEC"}
|
package/build/common/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAIA,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC"}
|
package/build/common/index.js
CHANGED
|
@@ -6,6 +6,7 @@ const tslib_1 = require("tslib");
|
|
|
6
6
|
tslib_1.__exportStar(require("./tools"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./correlator"), exports);
|
|
8
8
|
tslib_1.__exportStar(require("./globalState"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./local/localEnvManager"), exports);
|
|
9
10
|
tslib_1.__exportStar(require("./permissionInterface"), exports);
|
|
10
11
|
tslib_1.__exportStar(require("./samples"), exports);
|
|
11
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,kDAAwB;AACxB,uDAA6B;AAC7B,wDAA8B;AAC9B,gEAAsC;AACtC,oDAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,kDAAwB;AACxB,uDAA6B;AAC7B,wDAA8B;AAC9B,kEAAwC;AACxC,gEAAsC;AACtC,oDAA0B"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export declare class FolderName {
|
|
2
|
+
static readonly Frontend = "tabs";
|
|
3
|
+
static readonly Bot = "bot";
|
|
4
|
+
static readonly Function = "api";
|
|
5
|
+
}
|
|
6
|
+
export declare const LocalEnvAuthKeys: Readonly<{
|
|
7
|
+
ClientId: string;
|
|
8
|
+
ClientSecret: string;
|
|
9
|
+
IdentifierUri: string;
|
|
10
|
+
AadMetadataAddress: string;
|
|
11
|
+
OauthAuthority: string;
|
|
12
|
+
TabEndpoint: string;
|
|
13
|
+
AllowedAppIds: string;
|
|
14
|
+
Urls: string;
|
|
15
|
+
ServicePath: string;
|
|
16
|
+
}>;
|
|
17
|
+
export declare const LocalEnvBackendKeys: Readonly<{
|
|
18
|
+
WebJobsStorage: string;
|
|
19
|
+
FuncWorkerRuntime: string;
|
|
20
|
+
AuthorityHost: string;
|
|
21
|
+
TenantId: string;
|
|
22
|
+
ClientId: string;
|
|
23
|
+
ClientSecret: string;
|
|
24
|
+
SqlEndpoint: string;
|
|
25
|
+
SqlDbName: string;
|
|
26
|
+
SqlUserName: string;
|
|
27
|
+
SqlPassword: string;
|
|
28
|
+
IdentityId: string;
|
|
29
|
+
ApiEndpoint: string;
|
|
30
|
+
ApplicationIdUri: string;
|
|
31
|
+
AllowedAppIds: string;
|
|
32
|
+
}>;
|
|
33
|
+
export declare const LocalEnvBotKeys: Readonly<{
|
|
34
|
+
BotId: string;
|
|
35
|
+
BotPassword: string;
|
|
36
|
+
ClientId: string;
|
|
37
|
+
ClientSecret: string;
|
|
38
|
+
TenantID: string;
|
|
39
|
+
OauthAuthority: string;
|
|
40
|
+
LoginEndpoint: string;
|
|
41
|
+
SqlEndpoint: string;
|
|
42
|
+
SqlDbName: string;
|
|
43
|
+
SqlUserName: string;
|
|
44
|
+
SqlPassword: string;
|
|
45
|
+
IdentityId: string;
|
|
46
|
+
ApiEndpoint: string;
|
|
47
|
+
ApplicationIdUri: string;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const LocalEnvCertKeys: Readonly<{
|
|
50
|
+
SslCrtFile: string;
|
|
51
|
+
SslKeyFile: string;
|
|
52
|
+
}>;
|
|
53
|
+
export declare const LocalEnvFrontendKeys: Readonly<{
|
|
54
|
+
Browser: string;
|
|
55
|
+
Https: string;
|
|
56
|
+
Port: string;
|
|
57
|
+
TeamsFxEndpoint: string;
|
|
58
|
+
LoginUrl: string;
|
|
59
|
+
FuncEndpoint: string;
|
|
60
|
+
FuncName: string;
|
|
61
|
+
ClientId: string;
|
|
62
|
+
}>;
|
|
63
|
+
export declare const LocalEnvBotKeysMigratedFromV1: Readonly<{
|
|
64
|
+
BotId: string;
|
|
65
|
+
BotPassword: string;
|
|
66
|
+
}>;
|
|
67
|
+
export declare const LocalSettingsTeamsAppKeys: Readonly<{
|
|
68
|
+
TenantId: string;
|
|
69
|
+
TeamsAppId: string;
|
|
70
|
+
}>;
|
|
71
|
+
export declare const LocalSettingsAuthKeys: Readonly<{
|
|
72
|
+
ClientId: string;
|
|
73
|
+
ClientSecret: string;
|
|
74
|
+
ObjectId: string;
|
|
75
|
+
Oauth2PermissionScopeId: string;
|
|
76
|
+
OauthAuthority: string;
|
|
77
|
+
OauthHost: string;
|
|
78
|
+
ApplicationIdUris: string;
|
|
79
|
+
SimpleAuthFilePath: string;
|
|
80
|
+
SimpleAuthEnvironmentVariableParams: string;
|
|
81
|
+
SimpleAuthServiceEndpoint: string;
|
|
82
|
+
}>;
|
|
83
|
+
export declare const LocalSettingsFrontendKeys: Readonly<{
|
|
84
|
+
TabDomain: string;
|
|
85
|
+
TabEndpoint: string;
|
|
86
|
+
Browser: string;
|
|
87
|
+
Https: string;
|
|
88
|
+
TrustDevCert: string;
|
|
89
|
+
SslCertFile: string;
|
|
90
|
+
SslKeyFile: string;
|
|
91
|
+
}>;
|
|
92
|
+
export declare const LocalSettingsBackendKeys: Readonly<{
|
|
93
|
+
FunctionEndpoint: string;
|
|
94
|
+
FunctionName: string;
|
|
95
|
+
SqlEndpoint: string;
|
|
96
|
+
SqlDatabaseName: string;
|
|
97
|
+
SqlUserName: string;
|
|
98
|
+
SqlPassword: string;
|
|
99
|
+
}>;
|
|
100
|
+
export declare const LocalSettingsBotKeys: Readonly<{
|
|
101
|
+
SkipNgrok: string;
|
|
102
|
+
BotId: string;
|
|
103
|
+
BotPassword: string;
|
|
104
|
+
BotAadObjectId: string;
|
|
105
|
+
BotRedirectUri: string;
|
|
106
|
+
BotDomain: string;
|
|
107
|
+
BotEndpoint: string;
|
|
108
|
+
}>;
|
|
109
|
+
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../src/common/local/constants.ts"],"names":[],"mappings":"AAIA,qBAAa,UAAU;IACrB,MAAM,CAAC,QAAQ,CAAC,QAAQ,UAAU;IAClC,MAAM,CAAC,QAAQ,CAAC,GAAG,SAAS;IAC5B,MAAM,CAAC,QAAQ,CAAC,QAAQ,SAAS;CAClC;AAED,eAAO,MAAM,gBAAgB;;;;;;;;;;EAU3B,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;EAe9B,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;EAe1B,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;EAG3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;EAS/B,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;EAGxC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;EAGpC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;EAWhC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;EAQpC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;EAOnC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;EAQ/B,CAAC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT license.
|
|
3
|
+
"use strict";
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.LocalSettingsBotKeys = exports.LocalSettingsBackendKeys = exports.LocalSettingsFrontendKeys = exports.LocalSettingsAuthKeys = exports.LocalSettingsTeamsAppKeys = exports.LocalEnvBotKeysMigratedFromV1 = exports.LocalEnvFrontendKeys = exports.LocalEnvCertKeys = exports.LocalEnvBotKeys = exports.LocalEnvBackendKeys = exports.LocalEnvAuthKeys = exports.FolderName = void 0;
|
|
6
|
+
class FolderName {
|
|
7
|
+
}
|
|
8
|
+
exports.FolderName = FolderName;
|
|
9
|
+
FolderName.Frontend = "tabs";
|
|
10
|
+
FolderName.Bot = "bot";
|
|
11
|
+
FolderName.Function = "api";
|
|
12
|
+
exports.LocalEnvAuthKeys = Object.freeze({
|
|
13
|
+
ClientId: "AUTH_CLIENT_ID",
|
|
14
|
+
ClientSecret: "AUTH_CLIENT_SECRET",
|
|
15
|
+
IdentifierUri: "AUTH_IDENTIFIER_URI",
|
|
16
|
+
AadMetadataAddress: "AUTH_AAD_METADATA_ADDRESS",
|
|
17
|
+
OauthAuthority: "AUTH_OAUTH_AUTHORITY",
|
|
18
|
+
TabEndpoint: "AUTH_TAB_APP_ENDPOINT",
|
|
19
|
+
AllowedAppIds: "AUTH_ALLOWED_APP_IDS",
|
|
20
|
+
Urls: "AUTH_urls",
|
|
21
|
+
ServicePath: "AUTH_SERVICE_PATH",
|
|
22
|
+
});
|
|
23
|
+
exports.LocalEnvBackendKeys = Object.freeze({
|
|
24
|
+
WebJobsStorage: "BACKEND_AzureWebJobsStorage",
|
|
25
|
+
FuncWorkerRuntime: "BACKEND_FUNCTIONS_WORKER_RUNTIME",
|
|
26
|
+
AuthorityHost: "BACKEND_M365_AUTHORITY_HOST",
|
|
27
|
+
TenantId: "BACKEND_M365_TENANT_ID",
|
|
28
|
+
ClientId: "BACKEND_M365_CLIENT_ID",
|
|
29
|
+
ClientSecret: "BACKEND_M365_CLIENT_SECRET",
|
|
30
|
+
SqlEndpoint: "BACKEND_SQL_ENDPOINT",
|
|
31
|
+
SqlDbName: "BACKEND_SQL_DATABASE_NAME",
|
|
32
|
+
SqlUserName: "BACKEND_SQL_USER_NAME",
|
|
33
|
+
SqlPassword: "BACKEND_SQL_PASSWORD",
|
|
34
|
+
IdentityId: "BACKEND_IDENTITY_ID",
|
|
35
|
+
ApiEndpoint: "BACKEND_API_ENDPOINT",
|
|
36
|
+
ApplicationIdUri: "BACKEND_M365_APPLICATION_ID_URI",
|
|
37
|
+
AllowedAppIds: "BACKEND_ALLOWED_APP_IDS",
|
|
38
|
+
});
|
|
39
|
+
exports.LocalEnvBotKeys = Object.freeze({
|
|
40
|
+
BotId: "BOT_BOT_ID",
|
|
41
|
+
BotPassword: "BOT_BOT_PASSWORD",
|
|
42
|
+
ClientId: "BOT_M365_CLIENT_ID",
|
|
43
|
+
ClientSecret: "BOT_M365_CLIENT_SECRET",
|
|
44
|
+
TenantID: "BOT_M365_TENANT_ID",
|
|
45
|
+
OauthAuthority: "BOT_M365_AUTHORITY_HOST",
|
|
46
|
+
LoginEndpoint: "BOT_INITIATE_LOGIN_ENDPOINT",
|
|
47
|
+
SqlEndpoint: "BOT_SQL_ENDPOINT",
|
|
48
|
+
SqlDbName: "BOT_SQL_DATABASE_NAME",
|
|
49
|
+
SqlUserName: "BOT_SQL_USER_NAME",
|
|
50
|
+
SqlPassword: "BOT_SQL_PASSWORD",
|
|
51
|
+
IdentityId: "BOT_IDENTITY_ID",
|
|
52
|
+
ApiEndpoint: "BOT_API_ENDPOINT",
|
|
53
|
+
ApplicationIdUri: "BOT_M365_APPLICATION_ID_URI",
|
|
54
|
+
});
|
|
55
|
+
exports.LocalEnvCertKeys = Object.freeze({
|
|
56
|
+
SslCrtFile: "FRONTEND_SSL_CRT_FILE",
|
|
57
|
+
SslKeyFile: "FRONTEND_SSL_KEY_FILE",
|
|
58
|
+
});
|
|
59
|
+
exports.LocalEnvFrontendKeys = Object.freeze({
|
|
60
|
+
Browser: "FRONTEND_BROWSER",
|
|
61
|
+
Https: "FRONTEND_HTTPS",
|
|
62
|
+
Port: "FRONTEND_PORT",
|
|
63
|
+
TeamsFxEndpoint: "FRONTEND_REACT_APP_TEAMSFX_ENDPOINT",
|
|
64
|
+
LoginUrl: "FRONTEND_REACT_APP_START_LOGIN_PAGE_URL",
|
|
65
|
+
FuncEndpoint: "FRONTEND_REACT_APP_FUNC_ENDPOINT",
|
|
66
|
+
FuncName: "FRONTEND_REACT_APP_FUNC_NAME",
|
|
67
|
+
ClientId: "FRONTEND_REACT_APP_CLIENT_ID",
|
|
68
|
+
});
|
|
69
|
+
exports.LocalEnvBotKeysMigratedFromV1 = Object.freeze({
|
|
70
|
+
BotId: "BOT_BotId",
|
|
71
|
+
BotPassword: "BOT_BotPassword",
|
|
72
|
+
});
|
|
73
|
+
exports.LocalSettingsTeamsAppKeys = Object.freeze({
|
|
74
|
+
TenantId: "tenantId",
|
|
75
|
+
TeamsAppId: "teamsAppId",
|
|
76
|
+
});
|
|
77
|
+
exports.LocalSettingsAuthKeys = Object.freeze({
|
|
78
|
+
ClientId: "clientId",
|
|
79
|
+
ClientSecret: "clientSecret",
|
|
80
|
+
ObjectId: "objectId",
|
|
81
|
+
Oauth2PermissionScopeId: "oauth2PermissionScopeId",
|
|
82
|
+
OauthAuthority: "oauthAuthority",
|
|
83
|
+
OauthHost: "oauthHost",
|
|
84
|
+
ApplicationIdUris: "applicationIdUris",
|
|
85
|
+
SimpleAuthFilePath: "simpleAuthFilePath",
|
|
86
|
+
SimpleAuthEnvironmentVariableParams: "SimpleAuthEnvironmentVariableParams",
|
|
87
|
+
SimpleAuthServiceEndpoint: "AuthServiceEndpoint",
|
|
88
|
+
});
|
|
89
|
+
exports.LocalSettingsFrontendKeys = Object.freeze({
|
|
90
|
+
TabDomain: "tabDomain",
|
|
91
|
+
TabEndpoint: "tabEndpoint",
|
|
92
|
+
Browser: "browser",
|
|
93
|
+
Https: "https",
|
|
94
|
+
TrustDevCert: "trustDevCert",
|
|
95
|
+
SslCertFile: "sslCertFile",
|
|
96
|
+
SslKeyFile: "sslKeyFile",
|
|
97
|
+
});
|
|
98
|
+
exports.LocalSettingsBackendKeys = Object.freeze({
|
|
99
|
+
FunctionEndpoint: "functionEndpoint",
|
|
100
|
+
FunctionName: "functionName",
|
|
101
|
+
SqlEndpoint: "sqlEndpoint",
|
|
102
|
+
SqlDatabaseName: "sqlDatabaseName",
|
|
103
|
+
SqlUserName: "sqlUserName",
|
|
104
|
+
SqlPassword: "sqlPassword",
|
|
105
|
+
});
|
|
106
|
+
exports.LocalSettingsBotKeys = Object.freeze({
|
|
107
|
+
SkipNgrok: "skipNgrok",
|
|
108
|
+
BotId: "botId",
|
|
109
|
+
BotPassword: "botPassword",
|
|
110
|
+
BotAadObjectId: "botAadObjectId",
|
|
111
|
+
BotRedirectUri: "botRedirectUri",
|
|
112
|
+
BotDomain: "botDomain",
|
|
113
|
+
BotEndpoint: "botEndpoint",
|
|
114
|
+
});
|
|
115
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/common/local/constants.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAClC,YAAY,CAAC;;;AAEb,MAAa,UAAU;;AAAvB,gCAIC;AAHiB,mBAAQ,GAAG,MAAM,CAAC;AAClB,cAAG,GAAG,KAAK,CAAC;AACZ,mBAAQ,GAAG,KAAK,CAAC;AAGtB,QAAA,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AAM,CAAC;IACpD,gBAAgB,EAAE,kBAAkB;IACpC,YAAY,EAAE,cAAc;IAC5B,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,iBAAiB;IAClC,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC;AAEU,QAAA,oBAAoB,GAAG,MAAM,CAAC,MAAM,CAAC;IAChD,SAAS,EAAE,WAAW;IACtB,KAAK,EAAE,OAAO;IACd,WAAW,EAAE,aAAa;IAC1B,cAAc,EAAE,gBAAgB;IAChC,cAAc,EAAE,gBAAgB;IAChC,SAAS,EAAE,WAAW;IACtB,WAAW,EAAE,aAAa;CAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Json, LogProvider, ProjectSettings, TelemetryReporter } from "@microsoft/teamsfx-api";
|
|
2
|
+
import { NpmInstallLogInfo } from "./npmLogHelper";
|
|
3
|
+
export declare class LocalEnvManager {
|
|
4
|
+
private readonly logger;
|
|
5
|
+
private readonly telemetry;
|
|
6
|
+
constructor(logger?: LogProvider, telemetry?: TelemetryReporter);
|
|
7
|
+
getLaunchInput(localSettings: Json | undefined): any;
|
|
8
|
+
getLocalDebugEnvs(projectPath: string, projectSettings: ProjectSettings, localSettings: Json | undefined): Promise<Record<string, string>>;
|
|
9
|
+
getNpmInstallLogInfo(): Promise<NpmInstallLogInfo | undefined>;
|
|
10
|
+
getPortsInUse(projectPath: string, projectSettings: ProjectSettings): Promise<number[]>;
|
|
11
|
+
getProgrammingLanguage(projectSettings: ProjectSettings): string | undefined;
|
|
12
|
+
getSkipNgrokConfig(localSettings: Json | undefined): boolean;
|
|
13
|
+
getLocalSettings(projectPath: string, cryptoOption?: {
|
|
14
|
+
projectId: string;
|
|
15
|
+
}): Promise<Json | undefined>;
|
|
16
|
+
getProjectSettings(projectPath: string): Promise<ProjectSettings>;
|
|
17
|
+
private retry;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=localEnvManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"localEnvManager.d.ts","sourceRoot":"","sources":["../../../src/common/local/localEnvManager.ts"],"names":[],"mappings":"AAIA,OAAO,EAGL,IAAI,EACJ,WAAW,EACX,eAAe,EAEf,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAwB,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAMzE,qBAAa,eAAe;IAC1B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAA0B;IACjD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAgC;gBAE9C,MAAM,CAAC,EAAE,WAAW,EAAE,SAAS,CAAC,EAAE,iBAAiB;IAKxD,cAAc,CAAC,aAAa,EAAE,IAAI,GAAG,SAAS,GAAG,GAAG;IAM9C,iBAAiB,CAC5B,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,eAAe,EAChC,aAAa,EAAE,IAAI,GAAG,SAAS,GAC9B,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAIrB,oBAAoB,IAAI,OAAO,CAAC,iBAAiB,GAAG,SAAS,CAAC;IAI9D,aAAa,CACxB,WAAW,EAAE,MAAM,EACnB,eAAe,EAAE,eAAe,GAC/B,OAAO,CAAC,MAAM,EAAE,CAAC;IAIb,sBAAsB,CAAC,eAAe,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS;IAI5E,kBAAkB,CAAC,aAAa,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO;IAItD,gBAAgB,CAC3B,WAAW,EAAE,MAAM,EACnB,YAAY,CAAC,EAAE;QAAE,SAAS,EAAE,MAAM,CAAA;KAAE,GACnC,OAAO,CAAC,IAAI,GAAG,SAAS,CAAC;IAQf,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;YA0BhE,KAAK;CAiBpB"}
|