@microsoft/teamsfx-core 1.2.0 → 1.2.2-alpha.eb4575da.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (520) hide show
  1. package/build/common/armInterface.d.ts +0 -20
  2. package/build/common/armInterface.d.ts.map +1 -1
  3. package/build/common/deps-checker/depsChecker.d.ts +1 -0
  4. package/build/common/deps-checker/depsChecker.d.ts.map +1 -1
  5. package/build/common/deps-checker/depsChecker.js.map +1 -1
  6. package/build/common/deps-checker/depsManager.d.ts +2 -1
  7. package/build/common/deps-checker/depsManager.d.ts.map +1 -1
  8. package/build/common/deps-checker/depsManager.js +12 -7
  9. package/build/common/deps-checker/depsManager.js.map +1 -1
  10. package/build/common/deps-checker/index.d.ts +1 -0
  11. package/build/common/deps-checker/index.d.ts.map +1 -1
  12. package/build/common/deps-checker/index.js +1 -0
  13. package/build/common/deps-checker/index.js.map +1 -1
  14. package/build/common/deps-checker/internal/dotnetChecker.d.ts.map +1 -1
  15. package/build/common/deps-checker/internal/dotnetChecker.js +2 -1
  16. package/build/common/deps-checker/internal/dotnetChecker.js.map +1 -1
  17. package/build/common/deps-checker/internal/funcToolChecker.d.ts.map +1 -1
  18. package/build/common/deps-checker/internal/funcToolChecker.js +2 -1
  19. package/build/common/deps-checker/internal/funcToolChecker.js.map +1 -1
  20. package/build/common/deps-checker/internal/ngrokChecker.d.ts +1 -1
  21. package/build/common/deps-checker/internal/ngrokChecker.d.ts.map +1 -1
  22. package/build/common/deps-checker/internal/ngrokChecker.js +2 -4
  23. package/build/common/deps-checker/internal/ngrokChecker.js.map +1 -1
  24. package/build/common/deps-checker/internal/nodeChecker.d.ts +1 -0
  25. package/build/common/deps-checker/internal/nodeChecker.d.ts.map +1 -1
  26. package/build/common/deps-checker/internal/nodeChecker.js +9 -1
  27. package/build/common/deps-checker/internal/nodeChecker.js.map +1 -1
  28. package/build/common/deps-checker/util/extensionInstaller.d.ts +3 -0
  29. package/build/common/deps-checker/util/extensionInstaller.d.ts.map +1 -0
  30. package/build/common/deps-checker/util/extensionInstaller.js +47 -0
  31. package/build/common/deps-checker/util/extensionInstaller.js.map +1 -0
  32. package/build/common/deps-checker/util/index.d.ts +5 -0
  33. package/build/common/deps-checker/util/index.d.ts.map +1 -0
  34. package/build/common/deps-checker/util/index.js +10 -0
  35. package/build/common/deps-checker/util/index.js.map +1 -0
  36. package/build/common/index.d.ts +1 -3
  37. package/build/common/index.d.ts.map +1 -1
  38. package/build/common/index.js +1 -3
  39. package/build/common/index.js.map +1 -1
  40. package/build/common/local/constants.d.ts +5 -0
  41. package/build/common/local/constants.d.ts.map +1 -1
  42. package/build/common/local/constants.js +7 -1
  43. package/build/common/local/constants.js.map +1 -1
  44. package/build/common/local/index.d.ts +5 -0
  45. package/build/common/local/index.d.ts.map +1 -0
  46. package/build/common/local/index.js +10 -0
  47. package/build/common/local/index.js.map +1 -0
  48. package/build/{plugins/solution/fx-solution/debug/util/certificate.d.ts → common/local/localCertificateManager.d.ts} +4 -6
  49. package/build/common/local/localCertificateManager.d.ts.map +1 -0
  50. package/build/{plugins/solution/fx-solution/debug/util/certificate.js → common/local/localCertificateManager.js} +37 -47
  51. package/build/common/local/localCertificateManager.js.map +1 -0
  52. package/build/common/local/localEnvManager.d.ts +6 -2
  53. package/build/common/local/localEnvManager.d.ts.map +1 -1
  54. package/build/common/local/localEnvManager.js +41 -1
  55. package/build/common/local/localEnvManager.js.map +1 -1
  56. package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.d.ts +0 -0
  57. package/build/common/local/process.d.ts.map +1 -0
  58. package/build/{plugins/solution/fx-solution/debug/util → common/local}/process.js +0 -0
  59. package/build/common/local/process.js.map +1 -0
  60. package/build/common/local/projectSettingsHelper.d.ts +5 -5
  61. package/build/common/local/projectSettingsHelper.d.ts.map +1 -1
  62. package/build/common/local/projectSettingsHelper.js +28 -21
  63. package/build/common/local/projectSettingsHelper.js.map +1 -1
  64. package/build/common/local/taskDefinition.d.ts +1 -1
  65. package/build/common/local/taskDefinition.d.ts.map +1 -1
  66. package/build/common/local/taskDefinition.js +6 -4
  67. package/build/common/local/taskDefinition.js.map +1 -1
  68. package/build/common/localSettingsConstants.d.ts +1 -0
  69. package/build/common/localSettingsConstants.d.ts.map +1 -1
  70. package/build/common/localSettingsConstants.js +1 -0
  71. package/build/common/localSettingsConstants.js.map +1 -1
  72. package/build/common/localSettingsProvider.d.ts.map +1 -1
  73. package/build/common/localSettingsProvider.js +1 -0
  74. package/build/common/localSettingsProvider.js.map +1 -1
  75. package/build/common/permissionInterface.d.ts +1 -0
  76. package/build/common/permissionInterface.d.ts.map +1 -1
  77. package/build/common/permissionInterface.js +1 -0
  78. package/build/common/permissionInterface.js.map +1 -1
  79. package/build/common/telemetry.d.ts +7 -2
  80. package/build/common/telemetry.d.ts.map +1 -1
  81. package/build/common/telemetry.js +10 -4
  82. package/build/common/telemetry.js.map +1 -1
  83. package/build/common/{templates.d.ts → template-utils/templates.d.ts} +0 -0
  84. package/build/common/template-utils/templates.d.ts.map +1 -0
  85. package/build/common/{templates.js → template-utils/templates.js} +1 -1
  86. package/build/common/template-utils/templates.js.map +1 -0
  87. package/build/common/{templatesActions.d.ts → template-utils/templatesActions.d.ts} +0 -0
  88. package/build/common/template-utils/templatesActions.d.ts.map +1 -0
  89. package/build/common/{templatesActions.js → template-utils/templatesActions.js} +3 -3
  90. package/build/common/template-utils/templatesActions.js.map +1 -0
  91. package/build/common/{templatesUtils.d.ts → template-utils/templatesUtils.d.ts} +0 -0
  92. package/build/common/template-utils/templatesUtils.d.ts.map +1 -0
  93. package/build/common/{templatesUtils.js → template-utils/templatesUtils.js} +1 -1
  94. package/build/common/template-utils/templatesUtils.js.map +1 -0
  95. package/build/common/tools.d.ts +1 -4
  96. package/build/common/tools.d.ts.map +1 -1
  97. package/build/common/tools.js +41 -12
  98. package/build/common/tools.js.map +1 -1
  99. package/build/core/index.d.ts +2 -2
  100. package/build/core/index.d.ts.map +1 -1
  101. package/build/core/index.js +14 -6
  102. package/build/core/index.js.map +1 -1
  103. package/build/core/middleware/index.d.ts +0 -1
  104. package/build/core/middleware/index.d.ts.map +1 -1
  105. package/build/core/middleware/index.js +0 -1
  106. package/build/core/middleware/index.js.map +1 -1
  107. package/build/core/middleware/projectMigrator.d.ts.map +1 -1
  108. package/build/core/middleware/projectMigrator.js +0 -9
  109. package/build/core/middleware/projectMigrator.js.map +1 -1
  110. package/build/core/permissionRequest.js +2 -2
  111. package/build/core/permissionRequest.js.map +1 -1
  112. package/build/core/question.d.ts.map +1 -1
  113. package/build/core/question.js +7 -4
  114. package/build/core/question.js.map +1 -1
  115. package/build/plugins/resource/aad/aadAppClient.d.ts +2 -2
  116. package/build/plugins/resource/aad/aadAppClient.d.ts.map +1 -1
  117. package/build/plugins/resource/aad/aadAppClient.js +3 -4
  118. package/build/plugins/resource/aad/aadAppClient.js.map +1 -1
  119. package/build/plugins/resource/aad/errors.d.ts.map +1 -1
  120. package/build/plugins/resource/aad/errors.js +1 -2
  121. package/build/plugins/resource/aad/errors.js.map +1 -1
  122. package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts +4 -0
  123. package/build/plugins/resource/aad/interfaces/IAADDefinition.d.ts.map +1 -1
  124. package/build/plugins/resource/aad/plugin.d.ts.map +1 -1
  125. package/build/plugins/resource/aad/plugin.js +33 -46
  126. package/build/plugins/resource/aad/plugin.js.map +1 -1
  127. package/build/plugins/resource/aad/utils/common.d.ts +2 -0
  128. package/build/plugins/resource/aad/utils/common.d.ts.map +1 -1
  129. package/build/plugins/resource/aad/utils/common.js +14 -14
  130. package/build/plugins/resource/aad/utils/common.js.map +1 -1
  131. package/build/plugins/resource/aad/utils/configs.d.ts +1 -0
  132. package/build/plugins/resource/aad/utils/configs.d.ts.map +1 -1
  133. package/build/plugins/resource/aad/utils/configs.js +20 -38
  134. package/build/plugins/resource/aad/utils/configs.js.map +1 -1
  135. package/build/plugins/resource/apim/error.d.ts.map +1 -1
  136. package/build/plugins/resource/apim/error.js +1 -4
  137. package/build/plugins/resource/apim/error.js.map +1 -1
  138. package/build/plugins/resource/apim/managers/apimManager.d.ts.map +1 -1
  139. package/build/plugins/resource/apim/managers/apimManager.js +21 -58
  140. package/build/plugins/resource/apim/managers/apimManager.js.map +1 -1
  141. package/build/plugins/resource/apim/managers/questionManager.d.ts.map +1 -1
  142. package/build/plugins/resource/apim/managers/questionManager.js +0 -7
  143. package/build/plugins/resource/apim/managers/questionManager.js.map +1 -1
  144. package/build/plugins/resource/apim/questions/vscodeQuestion.d.ts.map +1 -1
  145. package/build/plugins/resource/apim/questions/vscodeQuestion.js +6 -13
  146. package/build/plugins/resource/apim/questions/vscodeQuestion.js.map +1 -1
  147. package/build/plugins/resource/appstudio/constants.d.ts +3 -2
  148. package/build/plugins/resource/appstudio/constants.d.ts.map +1 -1
  149. package/build/plugins/resource/appstudio/constants.js +12 -11
  150. package/build/plugins/resource/appstudio/constants.js.map +1 -1
  151. package/build/plugins/resource/appstudio/index.d.ts +2 -36
  152. package/build/plugins/resource/appstudio/index.d.ts.map +1 -1
  153. package/build/plugins/resource/appstudio/index.js +1 -31
  154. package/build/plugins/resource/appstudio/index.js.map +1 -1
  155. package/build/plugins/resource/appstudio/manifestTemplate.d.ts +1 -1
  156. package/build/plugins/resource/appstudio/manifestTemplate.d.ts.map +1 -1
  157. package/build/plugins/resource/appstudio/manifestTemplate.js +16 -8
  158. package/build/plugins/resource/appstudio/manifestTemplate.js.map +1 -1
  159. package/build/plugins/resource/appstudio/plugin.d.ts +1 -0
  160. package/build/plugins/resource/appstudio/plugin.d.ts.map +1 -1
  161. package/build/plugins/resource/appstudio/plugin.js +14 -1
  162. package/build/plugins/resource/appstudio/plugin.js.map +1 -1
  163. package/build/plugins/resource/appstudio/v3/index.d.ts +1 -3
  164. package/build/plugins/resource/appstudio/v3/index.d.ts.map +1 -1
  165. package/build/plugins/resource/appstudio/v3/index.js +28 -16
  166. package/build/plugins/resource/appstudio/v3/index.js.map +1 -1
  167. package/build/plugins/resource/bot/configs/provisionConfig.d.ts.map +1 -1
  168. package/build/plugins/resource/bot/configs/provisionConfig.js +0 -10
  169. package/build/plugins/resource/bot/configs/provisionConfig.js.map +1 -1
  170. package/build/plugins/resource/bot/languageStrategy.d.ts +1 -1
  171. package/build/plugins/resource/bot/languageStrategy.d.ts.map +1 -1
  172. package/build/plugins/resource/bot/languageStrategy.js +1 -1
  173. package/build/plugins/resource/bot/languageStrategy.js.map +1 -1
  174. package/build/plugins/resource/bot/plugin.d.ts.map +1 -1
  175. package/build/plugins/resource/bot/plugin.js +14 -131
  176. package/build/plugins/resource/bot/plugin.js.map +1 -1
  177. package/build/plugins/resource/frontend/configs.d.ts +1 -1
  178. package/build/plugins/resource/frontend/configs.d.ts.map +1 -1
  179. package/build/plugins/resource/frontend/configs.js +3 -9
  180. package/build/plugins/resource/frontend/configs.js.map +1 -1
  181. package/build/plugins/resource/frontend/constants.d.ts +2 -8
  182. package/build/plugins/resource/frontend/constants.d.ts.map +1 -1
  183. package/build/plugins/resource/frontend/constants.js +3 -11
  184. package/build/plugins/resource/frontend/constants.js.map +1 -1
  185. package/build/plugins/resource/frontend/dotnet/constants.d.ts +52 -0
  186. package/build/plugins/resource/frontend/dotnet/constants.d.ts.map +1 -0
  187. package/build/plugins/resource/frontend/dotnet/constants.js +69 -0
  188. package/build/plugins/resource/frontend/dotnet/constants.js.map +1 -0
  189. package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts +1 -1
  190. package/build/plugins/resource/frontend/{blazor → dotnet}/enum.d.ts.map +1 -1
  191. package/build/plugins/resource/frontend/dotnet/enum.js +39 -0
  192. package/build/plugins/resource/frontend/{blazor → dotnet}/enum.js.map +1 -1
  193. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts +0 -0
  194. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.d.ts.map +1 -1
  195. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js +3 -3
  196. package/build/plugins/resource/frontend/{blazor → dotnet}/error-factory.js.map +1 -1
  197. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts +0 -0
  198. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.d.ts.map +1 -1
  199. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js +3 -3
  200. package/build/plugins/resource/frontend/{blazor → dotnet}/ops/deploy.js.map +1 -1
  201. package/build/plugins/resource/frontend/dotnet/plugin.d.ts +34 -0
  202. package/build/plugins/resource/frontend/dotnet/plugin.d.ts.map +1 -0
  203. package/build/plugins/resource/frontend/dotnet/plugin.js +126 -0
  204. package/build/plugins/resource/frontend/dotnet/plugin.js.map +1 -0
  205. package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts +35 -0
  206. package/build/plugins/resource/frontend/dotnet/resources/errors.d.ts.map +1 -0
  207. package/build/plugins/resource/frontend/{blazor → dotnet}/resources/errors.js +10 -22
  208. package/build/plugins/resource/frontend/dotnet/resources/errors.js.map +1 -0
  209. package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.d.ts +0 -4
  210. package/build/plugins/resource/frontend/dotnet/resources/messages.d.ts.map +1 -0
  211. package/build/plugins/resource/frontend/{blazor → dotnet}/resources/messages.js +0 -4
  212. package/build/plugins/resource/frontend/dotnet/resources/messages.js.map +1 -0
  213. package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts +6 -0
  214. package/build/plugins/resource/frontend/dotnet/utils/azure-client.d.ts.map +1 -0
  215. package/build/plugins/resource/frontend/dotnet/utils/azure-client.js +11 -0
  216. package/build/plugins/resource/frontend/dotnet/utils/azure-client.js.map +1 -0
  217. package/build/plugins/resource/frontend/index.d.ts +6 -3
  218. package/build/plugins/resource/frontend/index.d.ts.map +1 -1
  219. package/build/plugins/resource/frontend/index.js +27 -45
  220. package/build/plugins/resource/frontend/index.js.map +1 -1
  221. package/build/plugins/resource/frontend/interface.d.ts +13 -0
  222. package/build/plugins/resource/frontend/interface.d.ts.map +1 -0
  223. package/build/plugins/resource/frontend/interface.js +3 -0
  224. package/build/plugins/resource/frontend/interface.js.map +1 -0
  225. package/build/plugins/resource/frontend/ops/deploy.d.ts +3 -0
  226. package/build/plugins/resource/frontend/ops/deploy.d.ts.map +1 -1
  227. package/build/plugins/resource/frontend/ops/deploy.js +43 -0
  228. package/build/plugins/resource/frontend/ops/deploy.js.map +1 -1
  229. package/build/plugins/resource/frontend/ops/scaffold.d.ts.map +1 -1
  230. package/build/plugins/resource/frontend/ops/scaffold.js +1 -1
  231. package/build/plugins/resource/frontend/ops/scaffold.js.map +1 -1
  232. package/build/plugins/resource/frontend/plugin.d.ts +3 -3
  233. package/build/plugins/resource/frontend/plugin.d.ts.map +1 -1
  234. package/build/plugins/resource/frontend/plugin.js +13 -44
  235. package/build/plugins/resource/frontend/plugin.js.map +1 -1
  236. package/build/plugins/resource/frontend/resources/errors.d.ts +23 -20
  237. package/build/plugins/resource/frontend/resources/errors.d.ts.map +1 -1
  238. package/build/plugins/resource/frontend/resources/errors.js +31 -67
  239. package/build/plugins/resource/frontend/resources/errors.js.map +1 -1
  240. package/build/plugins/resource/frontend/resources/templateInfo.js +1 -1
  241. package/build/plugins/resource/frontend/resources/templateInfo.js.map +1 -1
  242. package/build/plugins/resource/frontend/utils/logger.d.ts +3 -1
  243. package/build/plugins/resource/frontend/utils/logger.d.ts.map +1 -1
  244. package/build/plugins/resource/frontend/utils/logger.js +9 -6
  245. package/build/plugins/resource/frontend/utils/logger.js.map +1 -1
  246. package/build/plugins/resource/frontend/utils/progress-helper.d.ts +0 -8
  247. package/build/plugins/resource/frontend/utils/progress-helper.d.ts.map +1 -1
  248. package/build/plugins/resource/frontend/utils/progress-helper.js +1 -19
  249. package/build/plugins/resource/frontend/utils/progress-helper.js.map +1 -1
  250. package/build/plugins/resource/frontend/v2/index.d.ts +1 -0
  251. package/build/plugins/resource/frontend/v2/index.d.ts.map +1 -1
  252. package/build/plugins/resource/frontend/v2/index.js +3 -0
  253. package/build/plugins/resource/frontend/v2/index.js.map +1 -1
  254. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts +15 -0
  255. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.d.ts.map +1 -0
  256. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js +149 -0
  257. package/build/plugins/resource/frontend/v3/AzureStoragePlugin.js.map +1 -0
  258. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts +8 -0
  259. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.d.ts.map +1 -0
  260. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js +95 -0
  261. package/build/plugins/resource/frontend/v3/ReactTabScaffoldPlugin.js.map +1 -0
  262. package/build/plugins/resource/frontend/v3/error.d.ts +23 -0
  263. package/build/plugins/resource/frontend/v3/error.d.ts.map +1 -0
  264. package/build/plugins/resource/frontend/v3/error.js +66 -0
  265. package/build/plugins/resource/frontend/v3/error.js.map +1 -0
  266. package/build/plugins/resource/frontend/v3/index.d.ts +3 -0
  267. package/build/plugins/resource/frontend/v3/index.d.ts.map +1 -0
  268. package/build/plugins/resource/frontend/v3/index.js +7 -0
  269. package/build/plugins/resource/frontend/v3/index.js.map +1 -0
  270. package/build/plugins/resource/function/index.d.ts +1 -1
  271. package/build/plugins/resource/function/index.d.ts.map +1 -1
  272. package/build/plugins/resource/function/index.js +8 -21
  273. package/build/plugins/resource/function/index.js.map +1 -1
  274. package/build/plugins/resource/function/ops/deploy.d.ts.map +1 -1
  275. package/build/plugins/resource/function/ops/deploy.js +8 -9
  276. package/build/plugins/resource/function/ops/deploy.js.map +1 -1
  277. package/build/plugins/resource/function/ops/scaffold.js +1 -1
  278. package/build/plugins/resource/function/ops/scaffold.js.map +1 -1
  279. package/build/plugins/resource/function/plugin.d.ts.map +1 -1
  280. package/build/plugins/resource/function/plugin.js +33 -134
  281. package/build/plugins/resource/function/plugin.js.map +1 -1
  282. package/build/plugins/resource/function/resources/message.d.ts +0 -1
  283. package/build/plugins/resource/function/resources/message.d.ts.map +1 -1
  284. package/build/plugins/resource/function/resources/message.js +0 -1
  285. package/build/plugins/resource/function/resources/message.js.map +1 -1
  286. package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts +11 -0
  287. package/build/plugins/resource/function/utils/depsChecker/funcHelper.d.ts.map +1 -0
  288. package/build/plugins/resource/function/utils/depsChecker/funcHelper.js +48 -0
  289. package/build/plugins/resource/function/utils/depsChecker/funcHelper.js.map +1 -0
  290. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts +6 -4
  291. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.d.ts.map +1 -1
  292. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js +15 -8
  293. package/build/plugins/resource/function/utils/depsChecker/funcPluginLogger.js.map +1 -1
  294. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts +4 -3
  295. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.d.ts.map +1 -1
  296. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js +5 -4
  297. package/build/plugins/resource/function/utils/depsChecker/funcPluginTelemetry.js.map +1 -1
  298. package/build/plugins/resource/function/utils/telemetry-helper.d.ts +1 -1
  299. package/build/plugins/resource/function/utils/telemetry-helper.d.ts.map +1 -1
  300. package/build/plugins/resource/identity/index.d.ts +0 -1
  301. package/build/plugins/resource/identity/index.d.ts.map +1 -1
  302. package/build/plugins/resource/identity/index.js +2 -20
  303. package/build/plugins/resource/identity/index.js.map +1 -1
  304. package/build/plugins/resource/simpleauth/index.d.ts.map +1 -1
  305. package/build/plugins/resource/simpleauth/index.js +1 -6
  306. package/build/plugins/resource/simpleauth/index.js.map +1 -1
  307. package/build/plugins/resource/simpleauth/plugin.d.ts.map +1 -1
  308. package/build/plugins/resource/simpleauth/plugin.js +0 -3
  309. package/build/plugins/resource/simpleauth/plugin.js.map +1 -1
  310. package/build/plugins/resource/spfx/plugin.d.ts.map +1 -1
  311. package/build/plugins/resource/spfx/plugin.js +14 -9
  312. package/build/plugins/resource/spfx/plugin.js.map +1 -1
  313. package/build/plugins/resource/spfx/utils/constants.d.ts +5 -4
  314. package/build/plugins/resource/spfx/utils/constants.d.ts.map +1 -1
  315. package/build/plugins/resource/spfx/utils/constants.js +5 -4
  316. package/build/plugins/resource/spfx/utils/constants.js.map +1 -1
  317. package/build/plugins/resource/spfx/utils/progress-helper.d.ts.map +1 -1
  318. package/build/plugins/resource/spfx/utils/progress-helper.js +1 -1
  319. package/build/plugins/resource/spfx/utils/progress-helper.js.map +1 -1
  320. package/build/plugins/resource/sql/index.d.ts.map +1 -1
  321. package/build/plugins/resource/sql/index.js +1 -9
  322. package/build/plugins/resource/sql/index.js.map +1 -1
  323. package/build/plugins/resource/sql/plugin.d.ts.map +1 -1
  324. package/build/plugins/resource/sql/plugin.js +26 -58
  325. package/build/plugins/resource/sql/plugin.js.map +1 -1
  326. package/build/plugins/resource/utils4v2.d.ts +1 -1
  327. package/build/plugins/resource/utils4v2.d.ts.map +1 -1
  328. package/build/plugins/resource/utils4v2.js +3 -3
  329. package/build/plugins/resource/utils4v2.js.map +1 -1
  330. package/build/plugins/solution/fx-solution/arm.d.ts +9 -2
  331. package/build/plugins/solution/fx-solution/arm.d.ts.map +1 -1
  332. package/build/plugins/solution/fx-solution/arm.js +45 -11
  333. package/build/plugins/solution/fx-solution/arm.js.map +1 -1
  334. package/build/plugins/solution/fx-solution/commonQuestions.d.ts +4 -3
  335. package/build/plugins/solution/fx-solution/commonQuestions.d.ts.map +1 -1
  336. package/build/plugins/solution/fx-solution/commonQuestions.js +11 -10
  337. package/build/plugins/solution/fx-solution/commonQuestions.js.map +1 -1
  338. package/build/plugins/solution/fx-solution/constants.d.ts +1 -0
  339. package/build/plugins/solution/fx-solution/constants.d.ts.map +1 -1
  340. package/build/plugins/solution/fx-solution/constants.js +1 -0
  341. package/build/plugins/solution/fx-solution/constants.js.map +1 -1
  342. package/build/plugins/solution/fx-solution/debug/constants.d.ts +0 -5
  343. package/build/plugins/solution/fx-solution/debug/constants.d.ts.map +1 -1
  344. package/build/plugins/solution/fx-solution/debug/constants.js +1 -7
  345. package/build/plugins/solution/fx-solution/debug/constants.js.map +1 -1
  346. package/build/plugins/solution/fx-solution/debug/provisionLocal.d.ts.map +1 -1
  347. package/build/plugins/solution/fx-solution/debug/provisionLocal.js +2 -2
  348. package/build/plugins/solution/fx-solution/debug/provisionLocal.js.map +1 -1
  349. package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts +2 -2
  350. package/build/plugins/solution/fx-solution/debug/scaffolding.d.ts.map +1 -1
  351. package/build/plugins/solution/fx-solution/debug/scaffolding.js +5 -3
  352. package/build/plugins/solution/fx-solution/debug/scaffolding.js.map +1 -1
  353. package/build/plugins/solution/fx-solution/question.d.ts +2 -2
  354. package/build/plugins/solution/fx-solution/question.d.ts.map +1 -1
  355. package/build/plugins/solution/fx-solution/question.js +32 -22
  356. package/build/plugins/solution/fx-solution/question.js.map +1 -1
  357. package/build/plugins/solution/fx-solution/solution.d.ts.map +1 -1
  358. package/build/plugins/solution/fx-solution/solution.js +15 -15
  359. package/build/plugins/solution/fx-solution/solution.js.map +1 -1
  360. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts +31 -0
  361. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.d.ts.map +1 -0
  362. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js +222 -0
  363. package/build/plugins/solution/fx-solution/utils/ResourceGroupHelper.js.map +1 -0
  364. package/build/plugins/solution/fx-solution/v2/adaptor.js +1 -1
  365. package/build/plugins/solution/fx-solution/v2/adaptor.js.map +1 -1
  366. package/build/plugins/solution/fx-solution/v2/createEnv.d.ts.map +1 -1
  367. package/build/plugins/solution/fx-solution/v2/createEnv.js +1 -3
  368. package/build/plugins/solution/fx-solution/v2/createEnv.js.map +1 -1
  369. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts +2 -2
  370. package/build/plugins/solution/fx-solution/v2/executeUserTask.d.ts.map +1 -1
  371. package/build/plugins/solution/fx-solution/v2/executeUserTask.js +196 -122
  372. package/build/plugins/solution/fx-solution/v2/executeUserTask.js.map +1 -1
  373. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts +2 -2
  374. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.d.ts.map +1 -1
  375. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js +9 -14
  376. package/build/plugins/solution/fx-solution/v2/generateResourceTemplate.js.map +1 -1
  377. package/build/plugins/solution/fx-solution/v2/getQuestions.d.ts.map +1 -1
  378. package/build/plugins/solution/fx-solution/v2/getQuestions.js +81 -96
  379. package/build/plugins/solution/fx-solution/v2/getQuestions.js.map +1 -1
  380. package/build/plugins/solution/fx-solution/v2/provision.d.ts.map +1 -1
  381. package/build/plugins/solution/fx-solution/v2/provision.js.map +1 -1
  382. package/build/plugins/solution/fx-solution/v2/scaffolding.d.ts.map +1 -1
  383. package/build/plugins/solution/fx-solution/v2/scaffolding.js +6 -0
  384. package/build/plugins/solution/fx-solution/v2/scaffolding.js.map +1 -1
  385. package/build/plugins/solution/fx-solution/v2/utils.js +1 -1
  386. package/build/plugins/solution/fx-solution/v2/utils.js.map +1 -1
  387. package/build/plugins/solution/fx-solution/v3/addModule.d.ts +2 -4
  388. package/build/plugins/solution/fx-solution/v3/addModule.d.ts.map +1 -1
  389. package/build/plugins/solution/fx-solution/v3/addModule.js +29 -6
  390. package/build/plugins/solution/fx-solution/v3/addModule.js.map +1 -1
  391. package/build/plugins/solution/fx-solution/v3/addResource.d.ts +6 -14
  392. package/build/plugins/solution/fx-solution/v3/addResource.d.ts.map +1 -1
  393. package/build/plugins/solution/fx-solution/v3/addResource.js +23 -51
  394. package/build/plugins/solution/fx-solution/v3/addResource.js.map +1 -1
  395. package/build/plugins/solution/fx-solution/v3/constants.d.ts +2 -0
  396. package/build/plugins/solution/fx-solution/v3/constants.d.ts.map +1 -1
  397. package/build/plugins/solution/fx-solution/v3/constants.js +2 -0
  398. package/build/plugins/solution/fx-solution/v3/constants.js.map +1 -1
  399. package/build/plugins/solution/fx-solution/v3/deploy.d.ts +1 -3
  400. package/build/plugins/solution/fx-solution/v3/deploy.d.ts.map +1 -1
  401. package/build/plugins/solution/fx-solution/v3/deploy.js.map +1 -1
  402. package/build/plugins/solution/fx-solution/v3/init.d.ts.map +1 -1
  403. package/build/plugins/solution/fx-solution/v3/init.js +9 -0
  404. package/build/plugins/solution/fx-solution/v3/init.js.map +1 -1
  405. package/build/plugins/solution/fx-solution/v3/provision.d.ts +8 -1
  406. package/build/plugins/solution/fx-solution/v3/provision.d.ts.map +1 -1
  407. package/build/plugins/solution/fx-solution/v3/provision.js +219 -16
  408. package/build/plugins/solution/fx-solution/v3/provision.js.map +1 -1
  409. package/build/plugins/solution/fx-solution/v3/provisionLocal.d.ts.map +1 -1
  410. package/build/plugins/solution/fx-solution/v3/provisionLocal.js +96 -1
  411. package/build/plugins/solution/fx-solution/v3/provisionLocal.js.map +1 -1
  412. package/build/plugins/solution/fx-solution/v3/scaffold.d.ts +8 -13
  413. package/build/plugins/solution/fx-solution/v3/scaffold.d.ts.map +1 -1
  414. package/build/plugins/solution/fx-solution/v3/scaffold.js +30 -52
  415. package/build/plugins/solution/fx-solution/v3/scaffold.js.map +1 -1
  416. package/build/plugins/solution/spfx-solution/addModule.d.ts +2 -4
  417. package/build/plugins/solution/spfx-solution/addModule.d.ts.map +1 -1
  418. package/build/plugins/solution/spfx-solution/addModule.js +1 -1
  419. package/build/plugins/solution/spfx-solution/addModule.js.map +1 -1
  420. package/build/plugins/solution/spfx-solution/scaffold.d.ts +2 -10
  421. package/build/plugins/solution/spfx-solution/scaffold.d.ts.map +1 -1
  422. package/build/plugins/solution/spfx-solution/scaffold.js +3 -39
  423. package/build/plugins/solution/spfx-solution/scaffold.js.map +1 -1
  424. package/build/plugins/solution/spfx-solution/solution.d.ts +12 -17
  425. package/build/plugins/solution/spfx-solution/solution.d.ts.map +1 -1
  426. package/build/plugins/solution/spfx-solution/solution.js +7 -7
  427. package/build/plugins/solution/spfx-solution/solution.js.map +1 -1
  428. package/package.json +6 -7
  429. package/resource/strings.json +17 -7
  430. package/templates/plugins/resource/apim/bicep/apimConfiguration.bicep +1 -0
  431. package/templates/plugins/resource/apim/bicep/apimProvision.bicep +7 -5
  432. package/templates/plugins/resource/apim/bicep/config.template.bicep +1 -0
  433. package/templates/plugins/resource/bot/bicep/botConfiguration.template.bicep +12 -12
  434. package/templates/plugins/resource/bot/bicep/botProvision.template.bicep +15 -11
  435. package/templates/plugins/resource/bot/bicep/config.template.bicep +2 -0
  436. package/templates/plugins/resource/frontend/bicep/frontendHostingProvision.bicep +4 -2
  437. package/templates/plugins/resource/frontend/bicep/provision.template.bicep +1 -0
  438. package/templates/plugins/resource/function/bicep/config.template.bicep +2 -0
  439. package/templates/plugins/resource/function/bicep/functionConfiguration.template.bicep +15 -15
  440. package/templates/plugins/resource/function/bicep/functionProvision.template.bicep +17 -14
  441. package/templates/plugins/resource/identity/bicep/identityProvision.template.bicep +2 -1
  442. package/templates/plugins/resource/keyvault/bicep/keyVaultProvision.template.bicep +9 -7
  443. package/templates/plugins/resource/simpleauth/bicep/config.template.bicep +2 -0
  444. package/templates/plugins/resource/simpleauth/bicep/simpleAuthConfiguration.template.bicep +7 -7
  445. package/templates/plugins/resource/simpleauth/bicep/simpleAuthProvision.template.bicep +9 -6
  446. package/templates/plugins/resource/sql/bicep/sqlProvision.template.bicep +8 -5
  447. package/templates/plugins/resource/webapp/bicep/config.template.bicep +10 -0
  448. package/templates/plugins/resource/webapp/bicep/provision.template.bicep +16 -0
  449. package/templates/plugins/resource/webapp/bicep/webappConfiguration.template.bicep +74 -0
  450. package/templates/plugins/resource/webapp/bicep/webappProvision.template.bicep +48 -0
  451. package/build/common/templates.d.ts.map +0 -1
  452. package/build/common/templates.js.map +0 -1
  453. package/build/common/templatesActions.d.ts.map +0 -1
  454. package/build/common/templatesActions.js.map +0 -1
  455. package/build/common/templatesUtils.d.ts.map +0 -1
  456. package/build/common/templatesUtils.js.map +0 -1
  457. package/build/core/middleware/projectUpgrader.d.ts +0 -6
  458. package/build/core/middleware/projectUpgrader.d.ts.map +0 -1
  459. package/build/core/middleware/projectUpgrader.js +0 -224
  460. package/build/core/middleware/projectUpgrader.js.map +0 -1
  461. package/build/plugins/resource/frontend/blazor/constants.d.ts +0 -75
  462. package/build/plugins/resource/frontend/blazor/constants.d.ts.map +0 -1
  463. package/build/plugins/resource/frontend/blazor/constants.js +0 -98
  464. package/build/plugins/resource/frontend/blazor/constants.js.map +0 -1
  465. package/build/plugins/resource/frontend/blazor/enum.js +0 -39
  466. package/build/plugins/resource/frontend/blazor/ops/provision.d.ts +0 -8
  467. package/build/plugins/resource/frontend/blazor/ops/provision.d.ts.map +0 -1
  468. package/build/plugins/resource/frontend/blazor/ops/provision.js +0 -42
  469. package/build/plugins/resource/frontend/blazor/ops/provision.js.map +0 -1
  470. package/build/plugins/resource/frontend/blazor/plugin.d.ts +0 -35
  471. package/build/plugins/resource/frontend/blazor/plugin.d.ts.map +0 -1
  472. package/build/plugins/resource/frontend/blazor/plugin.js +0 -190
  473. package/build/plugins/resource/frontend/blazor/plugin.js.map +0 -1
  474. package/build/plugins/resource/frontend/blazor/resources/errors.d.ts +0 -41
  475. package/build/plugins/resource/frontend/blazor/resources/errors.d.ts.map +0 -1
  476. package/build/plugins/resource/frontend/blazor/resources/errors.js.map +0 -1
  477. package/build/plugins/resource/frontend/blazor/resources/messages.d.ts.map +0 -1
  478. package/build/plugins/resource/frontend/blazor/resources/messages.js.map +0 -1
  479. package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts +0 -21
  480. package/build/plugins/resource/frontend/blazor/utils/azure-client.d.ts.map +0 -1
  481. package/build/plugins/resource/frontend/blazor/utils/azure-client.js +0 -47
  482. package/build/plugins/resource/frontend/blazor/utils/azure-client.js.map +0 -1
  483. package/build/plugins/resource/frontend/utils/azure-client.d.ts +0 -12
  484. package/build/plugins/resource/frontend/utils/azure-client.d.ts.map +0 -1
  485. package/build/plugins/resource/frontend/utils/azure-client.js +0 -29
  486. package/build/plugins/resource/frontend/utils/azure-client.js.map +0 -1
  487. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts +0 -9
  488. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.d.ts.map +0 -1
  489. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js +0 -55
  490. package/build/plugins/resource/function/utils/depsChecker/backendExtensionsInstall.js.map +0 -1
  491. package/build/plugins/resource/function/utils/depsChecker/checker.d.ts +0 -54
  492. package/build/plugins/resource/function/utils/depsChecker/checker.d.ts.map +0 -1
  493. package/build/plugins/resource/function/utils/depsChecker/checker.js +0 -104
  494. package/build/plugins/resource/function/utils/depsChecker/checker.js.map +0 -1
  495. package/build/plugins/resource/function/utils/depsChecker/common.d.ts +0 -84
  496. package/build/plugins/resource/function/utils/depsChecker/common.d.ts.map +0 -1
  497. package/build/plugins/resource/function/utils/depsChecker/common.js +0 -136
  498. package/build/plugins/resource/function/utils/depsChecker/common.js.map +0 -1
  499. package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts +0 -22
  500. package/build/plugins/resource/function/utils/depsChecker/cpUtils.d.ts.map +0 -1
  501. package/build/plugins/resource/function/utils/depsChecker/cpUtils.js +0 -105
  502. package/build/plugins/resource/function/utils/depsChecker/cpUtils.js.map +0 -1
  503. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts +0 -53
  504. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.d.ts.map +0 -1
  505. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js +0 -387
  506. package/build/plugins/resource/function/utils/depsChecker/dotnetChecker.js.map +0 -1
  507. package/build/plugins/resource/function/utils/depsChecker/errors.d.ts +0 -14
  508. package/build/plugins/resource/function/utils/depsChecker/errors.d.ts.map +0 -1
  509. package/build/plugins/resource/function/utils/depsChecker/errors.js +0 -41
  510. package/build/plugins/resource/function/utils/depsChecker/errors.js.map +0 -1
  511. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts +0 -26
  512. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.d.ts.map +0 -1
  513. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js +0 -111
  514. package/build/plugins/resource/function/utils/depsChecker/funcPluginAdapter.js.map +0 -1
  515. package/build/plugins/solution/fx-solution/debug/util/certificate.d.ts.map +0 -1
  516. package/build/plugins/solution/fx-solution/debug/util/certificate.js.map +0 -1
  517. package/build/plugins/solution/fx-solution/debug/util/process.d.ts.map +0 -1
  518. package/build/plugins/solution/fx-solution/debug/util/process.js.map +0 -1
  519. package/resource/plugins/resource/function/dotnet-install.ps1 +0 -1095
  520. package/resource/plugins/resource/function/dotnet-install.sh +0 -1222
@@ -1,53 +0,0 @@
1
- import { DepsInfo, IDepsAdapter, IDepsChecker, IDepsLogger, IDepsTelemetry } from "./checker";
2
- export declare enum DotnetVersion {
3
- v21 = "2.1",
4
- v31 = "3.1",
5
- v50 = "5.0",
6
- v60 = "6.0"
7
- }
8
- export declare const DotnetCoreSDKName = ".NET Core SDK";
9
- export declare type DotnetSDK = {
10
- version: string;
11
- path: string;
12
- };
13
- export declare const installVersion: DotnetVersion;
14
- export declare const supportedVersions: DotnetVersion[];
15
- export declare class DotnetChecker implements IDepsChecker {
16
- private static encoding;
17
- private static timeout;
18
- private static maxBuffer;
19
- private readonly _adapter;
20
- private readonly _logger;
21
- private readonly _telemetry;
22
- constructor(adapter: IDepsAdapter, logger: IDepsLogger, telemetry: IDepsTelemetry);
23
- getDepsInfo(): Promise<DepsInfo>;
24
- isEnabled(): Promise<boolean>;
25
- isInstalled(): Promise<boolean>;
26
- install(): Promise<void>;
27
- getDotnetExecPath(): Promise<string>;
28
- static escapeFilePath(path: string): string;
29
- private static getDotnetConfigPath;
30
- private getDotnetExecPathFromConfig;
31
- private handleInstall;
32
- private static persistDotnetExecPath;
33
- private handleLinuxDependency;
34
- private static cleanup;
35
- private runDotnetInstallScript;
36
- private isDotnetInstalledCorrectly;
37
- private isDotnetVersionsInstalled;
38
- private static arrayIntersection;
39
- private static isPrivateInstall;
40
- private getGlobalDotnetSdks;
41
- private searchDotnetSdks;
42
- private static isFullSdkVersion;
43
- private static getDotnetExecPathFromDotnetInstallationDir;
44
- private getDotnetInstallScriptPath;
45
- private getDotnetInstallScriptName;
46
- private static getDefaultInstallPath;
47
- private getInstallCommand;
48
- private validate;
49
- private validateWithHelloWorld;
50
- private tryAcquireGlobalDotnetSdk;
51
- private static parseDotnetVersion;
52
- }
53
- //# sourceMappingURL=dotnetChecker.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dotnetChecker.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/dotnetChecker.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAiB9F,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ;AAED,eAAO,MAAM,iBAAiB,kBAAkB,CAAC;AACjD,oBAAY,SAAS,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAE1D,eAAO,MAAM,cAAc,eAAiE,CAAC;AAC7F,eAAO,MAAM,iBAAiB,iBAA4D,CAAC;AAG3F,qBAAa,aAAc,YAAW,YAAY;IAChD,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAW;IAClC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAiB;IACvC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAc;IAEtC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAe;IACxC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAc;IACtC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAiB;gBAEhC,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc;IAMpE,WAAW,IAAI,OAAO,CAAC,QAAQ,CAAC;IAehC,SAAS,IAAI,OAAO,CAAC,OAAO,CAAC;IAQ7B,WAAW,IAAI,OAAO,CAAC,OAAO,CAAC;IA6B/B,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAmCxB,iBAAiB,IAAI,OAAO,CAAC,MAAM,CAAC;WAKnC,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAYlD,OAAO,CAAC,MAAM,CAAC,mBAAmB;YAIpB,2BAA2B;YAkB3B,aAAa;mBAqBN,qBAAqB;YAc5B,qBAAqB;mBAId,OAAO;YAMd,sBAAsB;YA8DtB,0BAA0B;YAoB1B,yBAAyB;IAYvC,OAAO,CAAC,MAAM,CAAC,iBAAiB;IAIhC,OAAO,CAAC,MAAM,CAAC,gBAAgB;YAOjB,mBAAmB;YAKnB,gBAAgB;IA6C9B,OAAO,CAAC,MAAM,CAAC,gBAAgB;IAM/B,OAAO,CAAC,MAAM,CAAC,0CAA0C;IAIzD,OAAO,CAAC,0BAA0B;IAIlC,OAAO,CAAC,0BAA0B;IAIlC,OAAO,CAAC,MAAM,CAAC,qBAAqB;YAItB,iBAAiB;YAkCjB,QAAQ;YAUR,sBAAsB;YAgDtB,yBAAyB;IAoBvC,OAAO,CAAC,MAAM,CAAC,kBAAkB;CAQlC"}
@@ -1,387 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.DotnetChecker = exports.supportedVersions = exports.installVersion = exports.DotnetCoreSDKName = exports.DotnetVersion = void 0;
6
- const tslib_1 = require("tslib");
7
- // NOTE:
8
- // DO NOT EDIT this file in function plugin.
9
- // The source of truth of this file is in packages/vscode-extension/src/debug/depsChecker.
10
- // If you need to edit this file, please edit it in the above folder
11
- // and run the scripts (tools/depsChecker/copyfiles.sh or tools/depsChecker/copyfiles.ps1 according to your OS)
12
- // to copy you changes to function plugin.
13
- const os = tslib_1.__importStar(require("os"));
14
- const fs = tslib_1.__importStar(require("fs-extra"));
15
- const path = tslib_1.__importStar(require("path"));
16
- const child_process = tslib_1.__importStar(require("child_process"));
17
- const util = tslib_1.__importStar(require("util"));
18
- const teamsfx_api_1 = require("@microsoft/teamsfx-api");
19
- const common_1 = require("./common");
20
- const perf_hooks_1 = require("perf_hooks");
21
- const errors_1 = require("./errors");
22
- const cpUtils_1 = require("./cpUtils");
23
- const execFile = util.promisify(child_process.execFile);
24
- var DotnetVersion;
25
- (function (DotnetVersion) {
26
- DotnetVersion["v21"] = "2.1";
27
- DotnetVersion["v31"] = "3.1";
28
- DotnetVersion["v50"] = "5.0";
29
- DotnetVersion["v60"] = "6.0";
30
- })(DotnetVersion = exports.DotnetVersion || (exports.DotnetVersion = {}));
31
- exports.DotnetCoreSDKName = ".NET Core SDK";
32
- exports.installVersion = common_1.isMacOS() && common_1.isArm64() ? DotnetVersion.v60 : DotnetVersion.v31;
33
- exports.supportedVersions = [DotnetVersion.v31, DotnetVersion.v50, DotnetVersion.v60];
34
- const installedNameWithVersion = `${exports.DotnetCoreSDKName} (v${DotnetVersion.v31})`;
35
- class DotnetChecker {
36
- constructor(adapter, logger, telemetry) {
37
- this._adapter = adapter;
38
- this._logger = logger;
39
- this._telemetry = telemetry;
40
- }
41
- async getDepsInfo() {
42
- const map = new Map();
43
- const execPath = await this.getDotnetExecPathFromConfig();
44
- if (execPath) {
45
- map.set("execPath", execPath);
46
- }
47
- map.set("configPath", DotnetChecker.getDotnetConfigPath());
48
- return {
49
- name: exports.DotnetCoreSDKName,
50
- installVersion: `${exports.installVersion}`,
51
- supportedVersions: exports.supportedVersions,
52
- details: map,
53
- };
54
- }
55
- async isEnabled() {
56
- const enabled = await this._adapter.dotnetCheckerEnabled();
57
- if (!enabled) {
58
- this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetCheckSkipped);
59
- }
60
- return enabled;
61
- }
62
- async isInstalled() {
63
- const configPath = DotnetChecker.getDotnetConfigPath();
64
- await this._logger.debug(`[start] read dotnet path from '${configPath}'`);
65
- const dotnetPath = await this.getDotnetExecPathFromConfig();
66
- await this._logger.debug(`[end] read dotnet path from '${configPath}', dotnetPath = '${dotnetPath}'`);
67
- await this._logger.debug(`[start] check dotnet version`);
68
- if (dotnetPath !== null && (await this.isDotnetInstalledCorrectly())) {
69
- // filter out global sdk
70
- if (dotnetPath.includes(`.${teamsfx_api_1.ConfigFolderName}`)) {
71
- this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetInstallCompleted);
72
- }
73
- return true;
74
- }
75
- await this._logger.debug(`[end] check dotnet version`);
76
- if ((await this.tryAcquireGlobalDotnetSdk()) && (await this.validate())) {
77
- this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetAlreadyInstalled);
78
- await this._logger.info(`${common_1.Messages.useGlobalDotnet} '${await this.getDotnetExecPathFromConfig()}'`);
79
- return true;
80
- }
81
- return false;
82
- }
83
- async install() {
84
- await this._logger.debug(`[start] cleanup bin/dotnet and config`);
85
- await DotnetChecker.cleanup();
86
- await this._logger.debug(`[end] cleanup bin/dotnet and config`);
87
- const installDir = DotnetChecker.getDefaultInstallPath();
88
- await this._logger.debug(`[start] install dotnet ${exports.installVersion}`);
89
- await this._logger.debug(common_1.Messages.dotnetNotFound.replace("@NameVersion", installedNameWithVersion));
90
- await this._logger.info(common_1.Messages.downloadDotnet
91
- .replace("@NameVersion", installedNameWithVersion)
92
- .replace("@InstallDir", installDir));
93
- await this._adapter.runWithProgressIndicator(async () => {
94
- await this.handleInstall(exports.installVersion, installDir);
95
- });
96
- await this._logger.info(common_1.Messages.finishInstallDotnet.replace("@NameVersion", installedNameWithVersion));
97
- await this._logger.debug(`[end] install dotnet ${exports.installVersion}`);
98
- await this._logger.debug(`[start] validate dotnet version`);
99
- if (!(await this.validate())) {
100
- this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetInstallError);
101
- throw new errors_1.DepsCheckerError(common_1.Messages.failToInstallDotnet.split("@NameVersion").join(installedNameWithVersion), common_1.dotnetFailToInstallHelpLink);
102
- }
103
- this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetInstallCompleted);
104
- }
105
- async getDotnetExecPath() {
106
- const execPath = await this.getDotnetExecPathFromConfig();
107
- return execPath || "dotnet";
108
- }
109
- static escapeFilePath(path) {
110
- if (common_1.isWindows()) {
111
- // Need to escape apostrophes with two apostrophes
112
- const dotnetInstallDirEscaped = path.replace(/'/g, `''`);
113
- // Surround with single quotes instead of double quotes (see https://github.com/dotnet/cli/issues/11521)
114
- return `'${dotnetInstallDirEscaped}'`;
115
- }
116
- else {
117
- return `"${path}"`;
118
- }
119
- }
120
- static getDotnetConfigPath() {
121
- return path.join(os.homedir(), `.${teamsfx_api_1.ConfigFolderName}`, "dotnet.json");
122
- }
123
- async getDotnetExecPathFromConfig() {
124
- try {
125
- const config = await fs.readJson(DotnetChecker.getDotnetConfigPath(), {
126
- encoding: DotnetChecker.encoding,
127
- });
128
- if (typeof config.dotnetExecutablePath === "string") {
129
- return config.dotnetExecutablePath;
130
- }
131
- await this._logger.debug(`invalid dotnet config file format, config: '${JSON.stringify(config)}' `);
132
- }
133
- catch (error) {
134
- await this._logger.debug(`get dotnet path failed, error: '${error}'`);
135
- }
136
- return null;
137
- }
138
- // Do not print info level log in this method because it runs concurrently with the progress bar
139
- async handleInstall(version, installDir) {
140
- try {
141
- if (common_1.isLinux()) {
142
- await this.handleLinuxDependency();
143
- }
144
- // NOTE: we don't need to handle directory creation since dotnet-install script will handle it.
145
- await this.runDotnetInstallScript(version, installDir);
146
- await this._logger.debug(`[start] write dotnet path to config`);
147
- const dotnetExecPath = DotnetChecker.getDotnetExecPathFromDotnetInstallationDir(installDir);
148
- await DotnetChecker.persistDotnetExecPath(dotnetExecPath);
149
- await this._logger.debug(`[end] write dotnet path to config`);
150
- }
151
- catch (error) {
152
- await this._logger.error(`${common_1.Messages.failToInstallDotnet
153
- .split("@NameVersion")
154
- .join(installedNameWithVersion)}, error = '${error}'`);
155
- }
156
- }
157
- static async persistDotnetExecPath(dotnetExecPath) {
158
- const configPath = DotnetChecker.getDotnetConfigPath();
159
- await fs.ensureFile(configPath);
160
- await fs.writeJson(configPath, { dotnetExecutablePath: dotnetExecPath }, {
161
- encoding: DotnetChecker.encoding,
162
- spaces: 4,
163
- EOL: os.EOL,
164
- });
165
- }
166
- async handleLinuxDependency() {
167
- // do nothing
168
- }
169
- static async cleanup() {
170
- await fs.remove(DotnetChecker.getDotnetConfigPath());
171
- await fs.emptyDir(DotnetChecker.getDefaultInstallPath());
172
- }
173
- // from: https://github.com/dotnet/vscode-dotnet-runtime/blob/main/vscode-dotnet-runtime-library/src/Acquisition/AcquisitionInvoker.ts
174
- async runDotnetInstallScript(version, installDir) {
175
- const command = await this.getInstallCommand(version, installDir);
176
- const cwd = this._adapter.getResourceDir();
177
- const options = {
178
- cwd: cwd,
179
- maxBuffer: DotnetChecker.maxBuffer,
180
- timeout: DotnetChecker.timeout,
181
- killSignal: "SIGKILL",
182
- shell: false,
183
- };
184
- const start = perf_hooks_1.performance.now();
185
- try {
186
- fs.chmodSync(this.getDotnetInstallScriptPath(), "755");
187
- const { stdout, stderr } = await execFile(command[0], command.slice(1), options);
188
- await this._logger.debug(`Finished running dotnet-install script, command = '${command.join(" ")}', options = '${JSON.stringify(options)}', stdout = '${stdout}', stderr = '${stderr}'`);
189
- const timecost = Number(((perf_hooks_1.performance.now() - start) / 1000).toFixed(2));
190
- if (stderr && stderr.length > 0) {
191
- const errorMessage = `${common_1.Messages.failToInstallDotnet
192
- .split("@NameVersion")
193
- .join(installedNameWithVersion)} ${common_1.Messages.dotnetInstallStderr} stdout = '${stdout}', stderr = '${stderr}', timecost = '${timecost}s'`;
194
- this._telemetry.sendSystemErrorEvent(common_1.DepsCheckerEvent.dotnetInstallScriptError, common_1.TelemtryMessages.failedToExecDotnetScript, errorMessage);
195
- await this._logger.error(errorMessage);
196
- }
197
- else {
198
- this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetInstallScriptCompleted, {}, timecost);
199
- }
200
- }
201
- catch (error) {
202
- const timecost = Number(((perf_hooks_1.performance.now() - start) / 1000).toFixed(2));
203
- const errorMessage = `${common_1.Messages.failToInstallDotnet.split("@NameVersion").join(installedNameWithVersion)} ${common_1.Messages.dotnetInstallErrorCode}, ` +
204
- `command = '${command.join(" ")}', options = '${JSON.stringify(options)}', error = '${error}', stdout = '${error.stdout}', stderr = '${error.stderr}', timecost = '${timecost}s'`;
205
- this._telemetry.sendSystemErrorEvent(common_1.DepsCheckerEvent.dotnetInstallScriptError, common_1.TelemtryMessages.failedToExecDotnetScript, errorMessage);
206
- // swallow the exception since later validate will find out the errors anyway
207
- await this._logger.error(errorMessage);
208
- }
209
- }
210
- async isDotnetInstalledCorrectly() {
211
- try {
212
- const dotnetExecPath = await this.getDotnetExecPathFromConfig();
213
- const dotnetSdks = await this.searchDotnetSdks(dotnetExecPath);
214
- const installedVersions = dotnetSdks
215
- .map((sdk) => DotnetChecker.parseDotnetVersion(sdk.version))
216
- .filter((version) => version !== null);
217
- return this.isDotnetVersionsInstalled(installedVersions);
218
- }
219
- catch (error) {
220
- const errorMessage = `validate private install failed, error = '${error}'`;
221
- this._telemetry.sendSystemErrorEvent(common_1.DepsCheckerEvent.dotnetValidationError, common_1.TelemtryMessages.failedToValidateDotnet, errorMessage);
222
- await this._logger.debug(errorMessage);
223
- return false;
224
- }
225
- }
226
- async isDotnetVersionsInstalled(installedVersions) {
227
- try {
228
- const validVersions = DotnetChecker.arrayIntersection(installedVersions, exports.supportedVersions);
229
- return validVersions.length > 0;
230
- }
231
- catch (error) {
232
- await this._logger.error(`failed to check .NET, installedVersions = '${installedVersions}', supportedVersions = '${exports.supportedVersions}', error = '${error}'`);
233
- return false;
234
- }
235
- }
236
- static arrayIntersection(lhs, rhs) {
237
- return lhs.filter((value) => rhs.includes(value));
238
- }
239
- static isPrivateInstall(sdk) {
240
- const privateInstallPath = DotnetChecker.getDotnetExecPathFromDotnetInstallationDir(DotnetChecker.getDefaultInstallPath());
241
- return path.dirname(privateInstallPath) == path.dirname(sdk.path) && sdk.version !== null;
242
- }
243
- async getGlobalDotnetSdks() {
244
- const globalSdks = await this.searchDotnetSdks("dotnet");
245
- return globalSdks.filter((sdk) => !DotnetChecker.isPrivateInstall(sdk));
246
- }
247
- async searchDotnetSdks(dotnetExecPath) {
248
- if (!dotnetExecPath) {
249
- return [];
250
- }
251
- const sdks = [];
252
- try {
253
- // shell = false to prevent shell escape issues in dotnetExecPath
254
- const dotnetListSdksOutput = await cpUtils_1.cpUtils.executeCommand(undefined, this._logger, { shell: false }, dotnetExecPath, "--list-sdks");
255
- // dotnet --list-sdks sample output:
256
- // > 5.0.200 [C:\Program Files\dotnet\sdk]
257
- // > 3.1.200 [C:\Program Files\dotnet\sdk]
258
- const regex = /(?<version>\d+\.\d+\.\d+)\s+\[(?<installPath>[^\]]+)\]/;
259
- // NOTE(aochengwang):
260
- // for default installation, we expect our dotnet should be installVersion.
261
- // for user specified dotnet path, check that installVersion exists in any dotnet installation from dotnet --list-sdks.
262
- dotnetListSdksOutput.split(/\r?\n/).forEach((line) => {
263
- const match = regex.exec(line.trim());
264
- if (match && match.groups) {
265
- const path = match.groups.installPath;
266
- const version = match.groups.version;
267
- if (DotnetChecker.isFullSdkVersion(version) && path) {
268
- sdks.push({ version: version, path: path });
269
- }
270
- }
271
- });
272
- }
273
- catch (error) {
274
- const errorMessage = `Failed to search dotnet sdk by dotnetPath = '${dotnetExecPath}', error = '${error}'`;
275
- await this._logger.debug(errorMessage);
276
- this._telemetry.sendSystemErrorEvent(common_1.DepsCheckerEvent.dotnetSearchDotnetSdks, common_1.TelemtryMessages.failedToSearchDotnetSdks, errorMessage);
277
- }
278
- return sdks;
279
- }
280
- static isFullSdkVersion(version) {
281
- const regex = /(?<major_version>\d+)\.(?<minor_version>\d+)\.(?<patch_version>\d+)/gm;
282
- const match = regex.exec(version);
283
- return match !== null && match.length > 0;
284
- }
285
- static getDotnetExecPathFromDotnetInstallationDir(installDir) {
286
- return path.join(installDir, common_1.isWindows() ? "dotnet.exe" : "dotnet");
287
- }
288
- getDotnetInstallScriptPath() {
289
- return path.join(this._adapter.getResourceDir(), this.getDotnetInstallScriptName());
290
- }
291
- getDotnetInstallScriptName() {
292
- return common_1.isWindows() ? "dotnet-install.ps1" : "dotnet-install.sh";
293
- }
294
- static getDefaultInstallPath() {
295
- return path.join(os.homedir(), `.${teamsfx_api_1.ConfigFolderName}`, "bin", "dotnet");
296
- }
297
- async getInstallCommand(version, dotnetInstallDir) {
298
- if (common_1.isWindows()) {
299
- const command = [
300
- DotnetChecker.escapeFilePath(this.getDotnetInstallScriptPath()),
301
- "-InstallDir",
302
- DotnetChecker.escapeFilePath(dotnetInstallDir),
303
- "-Channel",
304
- version,
305
- ];
306
- return [
307
- "powershell.exe",
308
- "-NoProfile",
309
- "-ExecutionPolicy",
310
- "unrestricted",
311
- "-Command",
312
- `& { [Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12 ; & ${command.join(" ")} }`,
313
- ];
314
- }
315
- else {
316
- return [
317
- "bash",
318
- this.getDotnetInstallScriptPath(),
319
- "-InstallDir",
320
- dotnetInstallDir,
321
- "-Channel",
322
- version,
323
- ];
324
- }
325
- }
326
- async validate() {
327
- const isInstallationValid = (await this.isDotnetInstalledCorrectly()) && (await this.validateWithHelloWorld());
328
- if (!isInstallationValid) {
329
- this._telemetry.sendEvent(common_1.DepsCheckerEvent.dotnetValidationError);
330
- await DotnetChecker.cleanup();
331
- }
332
- return isInstallationValid;
333
- }
334
- async validateWithHelloWorld() {
335
- const dotnetPath = await this.getDotnetExecPathFromConfig();
336
- if (!dotnetPath) {
337
- return false;
338
- }
339
- const samplePath = path.join(os.homedir(), `.${teamsfx_api_1.ConfigFolderName}`, "dotnetSample");
340
- try {
341
- await fs.remove(samplePath);
342
- await cpUtils_1.cpUtils.executeCommand(undefined, this._logger, { shell: false }, dotnetPath, "new", "console", "--output", `${samplePath}`, "--force");
343
- await cpUtils_1.cpUtils.executeCommand(undefined, this._logger, { shell: false }, dotnetPath, "run", "--project", `${samplePath}`, "--force");
344
- return true;
345
- }
346
- catch (error) {
347
- this._telemetry.sendSystemErrorEvent(common_1.DepsCheckerEvent.dotnetValidationError, common_1.TelemtryMessages.failedToValidateDotnet, error);
348
- await this._logger.debug(`Failed to run hello world, dotnetPath = ${dotnetPath}, error = ${error}`);
349
- }
350
- finally {
351
- await fs.remove(samplePath);
352
- }
353
- return false;
354
- }
355
- async tryAcquireGlobalDotnetSdk() {
356
- try {
357
- const sdks = await this.getGlobalDotnetSdks();
358
- if (!sdks || sdks.length == 0) {
359
- return false;
360
- }
361
- // todo: by far, use first valid dotnet sdk
362
- // todo: write dotnetExecPath into user settings instead of into .fx/dotnet.json
363
- const selectedSdk = sdks[0];
364
- const dotnetExecPath = DotnetChecker.getDotnetExecPathFromDotnetInstallationDir(path.resolve(selectedSdk.path, ".."));
365
- await DotnetChecker.persistDotnetExecPath(dotnetExecPath);
366
- return true;
367
- }
368
- catch (error) {
369
- await this._logger.debug(`Failed to acquire global dotnet sdk, error = '${error}'`);
370
- return false;
371
- }
372
- }
373
- static parseDotnetVersion(output) {
374
- var _a, _b;
375
- const regex = /(?<major_version>\d+)\.(?<minor_version>\d+)\.(?<patch_version>\d+)/gm;
376
- const match = regex.exec(output);
377
- if (!match) {
378
- return null;
379
- }
380
- return ((_a = match.groups) === null || _a === void 0 ? void 0 : _a.major_version) + "." + ((_b = match.groups) === null || _b === void 0 ? void 0 : _b.minor_version);
381
- }
382
- }
383
- exports.DotnetChecker = DotnetChecker;
384
- DotnetChecker.encoding = "utf-8";
385
- DotnetChecker.timeout = 5 * 60 * 1000; // same as vscode-dotnet-runtime
386
- DotnetChecker.maxBuffer = 500 * 1024;
387
- //# sourceMappingURL=dotnetChecker.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dotnetChecker.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/dotnetChecker.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAElC,QAAQ;AACR,4CAA4C;AAC5C,0FAA0F;AAC1F,oEAAoE;AACpE,+GAA+G;AAC/G,0CAA0C;AAE1C,+CAAyB;AACzB,qDAA+B;AAC/B,mDAA6B;AAC7B,qEAA+C;AAC/C,mDAA6B;AAC7B,wDAA0D;AAE1D,qCASkB;AAClB,2CAAyC;AACzC,qCAA4C;AAC5C,uCAAoC;AAEpC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAExD,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;IACX,4BAAW,CAAA;AACb,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AAEY,QAAA,iBAAiB,GAAG,eAAe,CAAC;AAGpC,QAAA,cAAc,GAAG,gBAAO,EAAE,IAAI,gBAAO,EAAE,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC;AAChF,QAAA,iBAAiB,GAAG,CAAC,aAAa,CAAC,GAAG,EAAE,aAAa,CAAC,GAAG,EAAE,aAAa,CAAC,GAAG,CAAC,CAAC;AAC3F,MAAM,wBAAwB,GAAG,GAAG,yBAAiB,MAAM,aAAa,CAAC,GAAG,GAAG,CAAC;AAEhF,MAAa,aAAa;IASxB,YAAY,OAAqB,EAAE,MAAmB,EAAE,SAAyB;QAC/E,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;QACtB,IAAI,CAAC,UAAU,GAAG,SAAS,C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AM,KAAK,GAAG,uEAAuE,CAAC;QACtF,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,KAAK,EAAE;YACV,OAAO,IAAI,CAAC;SACb;QACD,OAAO,CAAA,MAAA,KAAK,CAAC,MAAM,0CAAE,aAAa,IAAG,GAAG,IAAG,MAAA,KAAK,CAAC,MAAM,0CAAE,aAAa,CAAA,CAAC;IACzE,CAAC;;AAleH,sCAmeC;AAlegB,sBAAQ,GAAG,OAAO,CAAC;AACnB,qBAAO,GAAG,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,gCAAgC;AACzD,uBAAS,GAAG,GAAG,GAAG,IAAI,CAAC"}
@@ -1,14 +0,0 @@
1
- export declare class DepsCheckerError extends Error {
2
- readonly helpLink: string;
3
- constructor(message: string, helpLink: string);
4
- }
5
- export declare class NodeNotFoundError extends DepsCheckerError {
6
- constructor(message: string, helpLink: string);
7
- }
8
- export declare class NodeNotSupportedError extends DepsCheckerError {
9
- constructor(message: string, helpLink: string);
10
- }
11
- export declare class BackendExtensionsInstallError extends DepsCheckerError {
12
- constructor(message: string, helpLink: string);
13
- }
14
- //# sourceMappingURL=errors.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/errors.ts"],"names":[],"mappings":"AAUA,qBAAa,gBAAiB,SAAQ,KAAK;IACzC,SAAgB,QAAQ,EAAE,MAAM,CAAC;gBAErB,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAM9C;AAED,qBAAa,iBAAkB,SAAQ,gBAAgB;gBACzC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAK9C;AAED,qBAAa,qBAAsB,SAAQ,gBAAgB;gBAC7C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAK9C;AAED,qBAAa,6BAA8B,SAAQ,gBAAgB;gBACrD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM;CAK9C"}
@@ -1,41 +0,0 @@
1
- "use strict";
2
- // Copyright (c) Microsoft Corporation.
3
- // Licensed under the MIT license.
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.BackendExtensionsInstallError = exports.NodeNotSupportedError = exports.NodeNotFoundError = exports.DepsCheckerError = void 0;
6
- // NOTE:
7
- // DO NOT EDIT this file in function plugin.
8
- // The source of truth of this file is in packages/vscode-extension/src/debug/depsChecker.
9
- // If you need to edit this file, please edit it in the above folder
10
- // and run the scripts (tools/depsChecker/copyfiles.sh or tools/depsChecker/copyfiles.ps1 according to your OS)
11
- // to copy you changes to function plugin.
12
- class DepsCheckerError extends Error {
13
- constructor(message, helpLink) {
14
- super(message);
15
- this.helpLink = helpLink;
16
- Object.setPrototypeOf(this, DepsCheckerError.prototype);
17
- }
18
- }
19
- exports.DepsCheckerError = DepsCheckerError;
20
- class NodeNotFoundError extends DepsCheckerError {
21
- constructor(message, helpLink) {
22
- super(message, helpLink);
23
- Object.setPrototypeOf(this, NodeNotFoundError.prototype);
24
- }
25
- }
26
- exports.NodeNotFoundError = NodeNotFoundError;
27
- class NodeNotSupportedError extends DepsCheckerError {
28
- constructor(message, helpLink) {
29
- super(message, helpLink);
30
- Object.setPrototypeOf(this, NodeNotSupportedError.prototype);
31
- }
32
- }
33
- exports.NodeNotSupportedError = NodeNotSupportedError;
34
- class BackendExtensionsInstallError extends DepsCheckerError {
35
- constructor(message, helpLink) {
36
- super(message, helpLink);
37
- Object.setPrototypeOf(this, BackendExtensionsInstallError.prototype);
38
- }
39
- }
40
- exports.BackendExtensionsInstallError = BackendExtensionsInstallError;
41
- //# sourceMappingURL=errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/errors.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;AAElC,QAAQ;AACR,4CAA4C;AAC5C,0FAA0F;AAC1F,oEAAoE;AACpE,+GAA+G;AAC/G,0CAA0C;AAE1C,MAAa,gBAAiB,SAAQ,KAAK;IAGzC,YAAY,OAAe,EAAE,QAAgB;QAC3C,KAAK,CAAC,OAAO,CAAC,CAAC;QAEf,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IAC1D,CAAC;CACF;AATD,4CASC;AAED,MAAa,iBAAkB,SAAQ,gBAAgB;IACrD,YAAY,OAAe,EAAE,QAAgB;QAC3C,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAEzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC3D,CAAC;CACF;AAND,8CAMC;AAED,MAAa,qBAAsB,SAAQ,gBAAgB;IACzD,YAAY,OAAe,EAAE,QAAgB;QAC3C,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAEzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,qBAAqB,CAAC,SAAS,CAAC,CAAC;IAC/D,CAAC;CACF;AAND,sDAMC;AAED,MAAa,6BAA8B,SAAQ,gBAAgB;IACjE,YAAY,OAAe,EAAE,QAAgB;QAC3C,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QAEzB,MAAM,CAAC,cAAc,CAAC,IAAI,EAAE,6BAA6B,CAAC,SAAS,CAAC,CAAC;IACvE,CAAC;CACF;AAND,sEAMC"}
@@ -1,26 +0,0 @@
1
- import { PluginContext } from "@microsoft/teamsfx-api";
2
- import { IDepsAdapter, IDepsChecker, IDepsTelemetry } from "./checker";
3
- export declare class FuncPluginAdapter implements IDepsAdapter {
4
- private readonly downloadIndicatorInterval;
5
- private readonly _ctx;
6
- private readonly _telemetry;
7
- private readonly dotnetSettingKey;
8
- constructor(ctx: PluginContext, telemetry: IDepsTelemetry);
9
- displayLearnMore(message: string, link: string): Promise<boolean>;
10
- displayWarningMessage(message: string, buttonText: string, action: () => Promise<boolean>): Promise<boolean>;
11
- displayContinueWithLearnMore(message: string, link: string): Promise<boolean>;
12
- showOutputChannel(): void;
13
- getResourceDir(): string;
14
- dotnetCheckerEnabled(): Promise<boolean>;
15
- runWithProgressIndicator(callback: () => Promise<void>): Promise<void>;
16
- hasTeamsfxBackend(): Promise<boolean>;
17
- hasTeamsfxBot(): Promise<boolean>;
18
- funcToolCheckerEnabled(): Promise<boolean>;
19
- ngrokCheckerEnabled(): Promise<boolean>;
20
- nodeCheckerEnabled(): Promise<boolean>;
21
- handleDotnetError(error: Error): void;
22
- handleDotnetForLinux(checker: IDepsChecker): Promise<boolean>;
23
- generateMsg(messageTemplate: string, checkers: Array<IDepsChecker>): Promise<string>;
24
- private splitHelpLink;
25
- }
26
- //# sourceMappingURL=funcPluginAdapter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"funcPluginAdapter.d.ts","sourceRoot":"","sources":["../../../../../../src/plugins/resource/function/utils/depsChecker/funcPluginAdapter.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAmB,MAAM,wBAAwB,CAAC;AAExE,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAGvE,qBAAa,iBAAkB,YAAW,YAAY;IACpD,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAQ;IAClD,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAgB;IACrC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAiB;IAC5C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAqC;gBAE1D,GAAG,EAAE,aAAa,EAAE,SAAS,EAAE,cAAc;IAKlD,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAK3D,qBAAqB,CAChC,OAAO,EAAE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