@powerlines/plugin-env 0.15.140 → 0.15.142

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 (209) hide show
  1. package/dist/automd-generator-BNg74tyV.cjs +37 -0
  2. package/dist/automd-generator-DoKLIMuw.mjs +32 -0
  3. package/dist/automd-generator-DoKLIMuw.mjs.map +1 -0
  4. package/dist/babel/index.cjs +5 -2
  5. package/dist/babel/index.d.cts +14 -1
  6. package/dist/babel/index.d.mts +14 -1
  7. package/dist/babel/index.mjs +4 -1
  8. package/dist/babel/plugin.cjs +4 -140
  9. package/dist/babel/plugin.d.cts +14 -7
  10. package/dist/babel/plugin.d.mts +14 -7
  11. package/dist/babel/plugin.mjs +3 -138
  12. package/dist/babel-BZqmdVF4.cjs +0 -0
  13. package/dist/babel-DgietUY3.mjs +1 -0
  14. package/dist/chunk-CNVrAnJR.cjs +48 -0
  15. package/dist/{_virtual/rolldown_runtime.cjs → chunk-CsF2CmBJ.mjs} +6 -2
  16. package/dist/components/docs.cjs +13 -69
  17. package/dist/components/docs.d.cts +1 -21
  18. package/dist/components/docs.d.mts +1 -21
  19. package/dist/components/docs.mjs +12 -67
  20. package/dist/components/env.cjs +13 -588
  21. package/dist/components/env.d.cts +1 -19
  22. package/dist/components/env.d.mts +1 -19
  23. package/dist/components/env.mjs +11 -584
  24. package/dist/components/index.cjs +17 -5
  25. package/dist/components/index.d.cts +3 -2
  26. package/dist/components/index.d.mts +3 -2
  27. package/dist/components/index.mjs +14 -2
  28. package/dist/components-BUo6Koax.cjs +0 -0
  29. package/dist/components-DDFmImcI.mjs +1 -0
  30. package/dist/confbox.DA7CpUDY-DShUZ_rW.mjs +23 -0
  31. package/dist/confbox.DA7CpUDY-DShUZ_rW.mjs.map +1 -0
  32. package/dist/confbox.DA7CpUDY-r6FXRsI6.cjs +28 -0
  33. package/dist/confbox.DnMsyigM-C13n3X-S.cjs +415 -0
  34. package/dist/confbox.DnMsyigM-V6Wj0LPC.mjs +405 -0
  35. package/dist/confbox.DnMsyigM-V6Wj0LPC.mjs.map +1 -0
  36. package/dist/create-reflection-resource-B3friIs9.mjs +98 -0
  37. package/dist/create-reflection-resource-B3friIs9.mjs.map +1 -0
  38. package/dist/create-reflection-resource-BJj83ii4.cjs +103 -0
  39. package/dist/create-reflection-resource-DSLbLsX2.d.cts +16 -0
  40. package/dist/create-reflection-resource-DSLbLsX2.d.cts.map +1 -0
  41. package/dist/create-reflection-resource-DwWJAo-G.d.mts +16 -0
  42. package/dist/create-reflection-resource-DwWJAo-G.d.mts.map +1 -0
  43. package/dist/defu-CrqNIh1A.cjs +227 -0
  44. package/dist/defu-DV5Grr85.mjs +180 -0
  45. package/dist/defu-DV5Grr85.mjs.map +1 -0
  46. package/dist/dist-BQc8ZRwl.cjs +13 -0
  47. package/dist/dist-C_a6goTt.cjs +15282 -0
  48. package/dist/dist-CjWvISyq.mjs +15271 -0
  49. package/dist/dist-CjWvISyq.mjs.map +1 -0
  50. package/dist/dist-mV5Swt78.mjs +13 -0
  51. package/dist/dist-mV5Swt78.mjs.map +1 -0
  52. package/dist/docs-B-SDRHeg.cjs +75 -0
  53. package/dist/docs-B0d8pdIg.d.mts +23 -0
  54. package/dist/docs-B0d8pdIg.d.mts.map +1 -0
  55. package/dist/docs-DMfzQuvP.d.cts +23 -0
  56. package/dist/docs-DMfzQuvP.d.cts.map +1 -0
  57. package/dist/docs-DbRoWmL_.mjs +70 -0
  58. package/dist/docs-DbRoWmL_.mjs.map +1 -0
  59. package/dist/docs-helper-2fe7M3Th.mjs +24 -0
  60. package/dist/docs-helper-2fe7M3Th.mjs.map +1 -0
  61. package/dist/docs-helper-4MoQ5-R3.cjs +28 -0
  62. package/dist/env-BIyd8CTA.d.cts +21 -0
  63. package/dist/env-BIyd8CTA.d.cts.map +1 -0
  64. package/dist/env-BKmI7DyR.d.mts +21 -0
  65. package/dist/env-BKmI7DyR.d.mts.map +1 -0
  66. package/dist/env-D9oCn-AS.mjs +587 -0
  67. package/dist/env-D9oCn-AS.mjs.map +1 -0
  68. package/dist/env-R63eR4RP.cjs +598 -0
  69. package/dist/helpers/automd-generator.cjs +3 -31
  70. package/dist/helpers/automd-generator.d.cts +2 -1
  71. package/dist/helpers/automd-generator.d.cts.map +1 -0
  72. package/dist/helpers/automd-generator.d.mts +2 -1
  73. package/dist/helpers/automd-generator.d.mts.map +1 -0
  74. package/dist/helpers/automd-generator.mjs +2 -29
  75. package/dist/helpers/create-reflection-resource.cjs +11 -97
  76. package/dist/helpers/create-reflection-resource.d.cts +3 -14
  77. package/dist/helpers/create-reflection-resource.d.mts +3 -14
  78. package/dist/helpers/create-reflection-resource.mjs +10 -95
  79. package/dist/helpers/docs-helper.cjs +5 -23
  80. package/dist/helpers/docs-helper.d.cts +4 -2
  81. package/dist/helpers/docs-helper.d.cts.map +1 -0
  82. package/dist/helpers/docs-helper.d.mts +4 -2
  83. package/dist/helpers/docs-helper.d.mts.map +1 -0
  84. package/dist/helpers/docs-helper.mjs +4 -21
  85. package/dist/helpers/index.cjs +38 -32
  86. package/dist/helpers/index.d.cts +9 -6
  87. package/dist/helpers/index.d.mts +9 -6
  88. package/dist/helpers/index.mjs +12 -6
  89. package/dist/helpers/load.cjs +10 -134
  90. package/dist/helpers/load.d.cts +3 -34
  91. package/dist/helpers/load.d.mts +3 -34
  92. package/dist/helpers/load.mjs +8 -130
  93. package/dist/helpers/persistence.cjs +15 -321
  94. package/dist/helpers/persistence.d.cts +3 -83
  95. package/dist/helpers/persistence.d.mts +3 -83
  96. package/dist/helpers/persistence.mjs +4 -308
  97. package/dist/helpers/reflect.cjs +13 -262
  98. package/dist/helpers/reflect.d.cts +3 -45
  99. package/dist/helpers/reflect.d.mts +3 -45
  100. package/dist/helpers/reflect.mjs +4 -252
  101. package/dist/helpers/source-file-env.cjs +3 -57
  102. package/dist/helpers/source-file-env.d.cts +1 -7
  103. package/dist/helpers/source-file-env.d.mts +1 -7
  104. package/dist/helpers/source-file-env.mjs +1 -54
  105. package/dist/helpers/template-helpers.cjs +6 -69
  106. package/dist/helpers/template-helpers.d.cts +3 -14
  107. package/dist/helpers/template-helpers.d.mts +3 -14
  108. package/dist/helpers/template-helpers.mjs +5 -67
  109. package/dist/helpers-45e1bvAO.mjs +1 -0
  110. package/dist/helpers-DgYP3uej.cjs +0 -0
  111. package/dist/index-BNRXMhlr.d.mts +1 -0
  112. package/dist/index-Bdi8CvaN.d.cts +16 -0
  113. package/dist/index-Bdi8CvaN.d.cts.map +1 -0
  114. package/dist/index-CEDY7cmG.d.cts +1 -0
  115. package/dist/index-CREkvfw9.d.mts +1 -0
  116. package/dist/index-DSiHnMH2.d.cts +1 -0
  117. package/dist/index-Drhzdkqe.d.mts +16 -0
  118. package/dist/index-Drhzdkqe.d.mts.map +1 -0
  119. package/dist/index-dhjtMp5F.d.mts +1 -0
  120. package/dist/index-uTS5iDq_.d.cts +1 -0
  121. package/dist/index.cjs +257 -98
  122. package/dist/index.d.cts +14 -23
  123. package/dist/index.d.mts +14 -23
  124. package/dist/index.mjs +184 -23
  125. package/dist/index.mjs.map +1 -0
  126. package/dist/join-paths-BMg51Ddi.mjs +148 -0
  127. package/dist/join-paths-BMg51Ddi.mjs.map +1 -0
  128. package/dist/join-paths-Bc4rM2TX.cjs +159 -0
  129. package/dist/json5-DEV_07Nb.cjs +786 -0
  130. package/dist/json5-jq90mF9X.mjs +787 -0
  131. package/dist/json5-jq90mF9X.mjs.map +1 -0
  132. package/dist/jsonc-CBh70baJ.cjs +4 -0
  133. package/dist/jsonc-CDLU6bgi.mjs +4 -0
  134. package/dist/load-DPB0maqs.cjs +6594 -0
  135. package/dist/load-Dr5ybfL7.mjs +6579 -0
  136. package/dist/load-Dr5ybfL7.mjs.map +1 -0
  137. package/dist/load-GpP6cojj.d.mts +36 -0
  138. package/dist/load-GpP6cojj.d.mts.map +1 -0
  139. package/dist/load-PHGmxX_X.d.cts +36 -0
  140. package/dist/load-PHGmxX_X.d.cts.map +1 -0
  141. package/dist/multipart-parser-D65rtMfY.mjs +176 -0
  142. package/dist/multipart-parser-D65rtMfY.mjs.map +1 -0
  143. package/dist/multipart-parser-aEF5a4Xf.cjs +178 -0
  144. package/dist/node-Co8KdzkZ.cjs +3985 -0
  145. package/dist/node-D9MigVDD.mjs +3975 -0
  146. package/dist/node-D9MigVDD.mjs.map +1 -0
  147. package/dist/persistence-BR4cUaN6.d.cts +85 -0
  148. package/dist/persistence-BR4cUaN6.d.cts.map +1 -0
  149. package/dist/persistence-BsBxs9wt.mjs +586 -0
  150. package/dist/persistence-BsBxs9wt.mjs.map +1 -0
  151. package/dist/persistence-D_clXRxP.cjs +712 -0
  152. package/dist/persistence-DrKQZNCv.d.mts +85 -0
  153. package/dist/persistence-DrKQZNCv.d.mts.map +1 -0
  154. package/dist/plugin-CM1TSv1B.cjs +159 -0
  155. package/dist/plugin-CSVnrdpE.cjs +146 -0
  156. package/dist/plugin-CSe5f2cD.d.cts +155 -0
  157. package/dist/plugin-CSe5f2cD.d.cts.map +1 -0
  158. package/dist/plugin-DMbVjdcQ.d.mts +155 -0
  159. package/dist/plugin-DMbVjdcQ.d.mts.map +1 -0
  160. package/dist/plugin-Vyvy9w9Z.mjs +141 -0
  161. package/dist/plugin-Vyvy9w9Z.mjs.map +1 -0
  162. package/dist/plugin-eBjQJP6x.mjs +130 -0
  163. package/dist/plugin-eBjQJP6x.mjs.map +1 -0
  164. package/dist/reflect-Dm8a3c29.d.cts +47 -0
  165. package/dist/reflect-Dm8a3c29.d.cts.map +1 -0
  166. package/dist/reflect-Dpz8ifa0.d.mts +47 -0
  167. package/dist/reflect-Dpz8ifa0.d.mts.map +1 -0
  168. package/dist/runtime-BDzzR4wH.d.cts +792 -0
  169. package/dist/runtime-BDzzR4wH.d.cts.map +1 -0
  170. package/dist/runtime-C5ukCv3P.mjs +242 -0
  171. package/dist/runtime-C5ukCv3P.mjs.map +1 -0
  172. package/dist/runtime-g0TEIoZK.cjs +253 -0
  173. package/dist/runtime-lYSIZdMn.d.mts +792 -0
  174. package/dist/runtime-lYSIZdMn.d.mts.map +1 -0
  175. package/dist/source-file-env-4Vdtzc5-.cjs +68 -0
  176. package/dist/source-file-env-Brfopjyr.d.cts +9 -0
  177. package/dist/source-file-env-Brfopjyr.d.cts.map +1 -0
  178. package/dist/source-file-env-DWejSP2U.d.mts +9 -0
  179. package/dist/source-file-env-DWejSP2U.d.mts.map +1 -0
  180. package/dist/source-file-env-Tj-6qobx.mjs +57 -0
  181. package/dist/source-file-env-Tj-6qobx.mjs.map +1 -0
  182. package/dist/template-helpers-1SKodHKt.d.mts +16 -0
  183. package/dist/template-helpers-1SKodHKt.d.mts.map +1 -0
  184. package/dist/template-helpers-CCEjhw1B.mjs +70 -0
  185. package/dist/template-helpers-CCEjhw1B.mjs.map +1 -0
  186. package/dist/template-helpers-YVcwxmoF.cjs +75 -0
  187. package/dist/template-helpers-zyitPfMz.d.cts +16 -0
  188. package/dist/template-helpers-zyitPfMz.d.cts.map +1 -0
  189. package/dist/toml-DvrxV201.cjs +657 -0
  190. package/dist/toml-uuOYvEAO.mjs +658 -0
  191. package/dist/toml-uuOYvEAO.mjs.map +1 -0
  192. package/dist/types/index.cjs +10 -9
  193. package/dist/types/index.d.cts +3 -2
  194. package/dist/types/index.d.mts +3 -2
  195. package/dist/types/index.mjs +3 -2
  196. package/dist/types/plugin.cjs +7 -133
  197. package/dist/types/plugin.d.cts +2 -153
  198. package/dist/types/plugin.d.mts +2 -153
  199. package/dist/types/plugin.mjs +2 -127
  200. package/dist/types/runtime.cjs +3 -242
  201. package/dist/types/runtime.d.cts +1 -790
  202. package/dist/types/runtime.d.mts +1 -790
  203. package/dist/types/runtime.mjs +1 -239
  204. package/dist/types-DyPQho_C.mjs +1 -0
  205. package/dist/types-o3zWarRp.cjs +0 -0
  206. package/dist/yaml-CIn2Gddw.mjs +1055 -0
  207. package/dist/yaml-CIn2Gddw.mjs.map +1 -0
  208. package/dist/yaml-CQSFMRMS.cjs +1054 -0
  209. package/package.json +9 -9
@@ -0,0 +1,37 @@
1
+ const require_chunk = require('./chunk-CNVrAnJR.cjs');
2
+ const require_join_paths = require('./join-paths-Bc4rM2TX.cjs');
3
+ let powerlines_types_context = require("powerlines/types/context");
4
+ let automd = require("automd");
5
+
6
+ //#region src/helpers/automd-generator.ts
7
+ function __assignType(fn, args) {
8
+ fn.__type = args;
9
+ return fn;
10
+ }
11
+ /**
12
+ * AutoMD generator to generate environment variable documentation
13
+ *
14
+ * @param context - The generator context.
15
+ * @returns The generated documentation content.
16
+ */
17
+ const env = __assignType((context) => (0, automd.defineGenerator)({
18
+ name: "env",
19
+ generate: __assignType(async function generate() {
20
+ const envDocFile = require_join_paths.joinPaths(context.config.projectRoot, "docs", "generated", "env.md");
21
+ if (!context.fs.existsSync(envDocFile)) return { contents: "" };
22
+ return { contents: await context.fs.read(envDocFile) || "" };
23
+ }, ["generate", "P\"/!"])
24
+ }), [
25
+ () => powerlines_types_context.__ΩUnresolvedContext,
26
+ "context",
27
+ "",
28
+ "Pn!2\"\"/#"
29
+ ]);
30
+
31
+ //#endregion
32
+ Object.defineProperty(exports, 'env', {
33
+ enumerable: true,
34
+ get: function () {
35
+ return env;
36
+ }
37
+ });
@@ -0,0 +1,32 @@
1
+ import { t as joinPaths } from "./join-paths-BMg51Ddi.mjs";
2
+ import { __ΩUnresolvedContext } from "powerlines/types/context";
3
+ import { defineGenerator } from "automd";
4
+
5
+ //#region src/helpers/automd-generator.ts
6
+ function __assignType(fn, args) {
7
+ fn.__type = args;
8
+ return fn;
9
+ }
10
+ /**
11
+ * AutoMD generator to generate environment variable documentation
12
+ *
13
+ * @param context - The generator context.
14
+ * @returns The generated documentation content.
15
+ */
16
+ const env = __assignType((context) => defineGenerator({
17
+ name: "env",
18
+ generate: __assignType(async function generate() {
19
+ const envDocFile = joinPaths(context.config.projectRoot, "docs", "generated", "env.md");
20
+ if (!context.fs.existsSync(envDocFile)) return { contents: "" };
21
+ return { contents: await context.fs.read(envDocFile) || "" };
22
+ }, ["generate", "P\"/!"])
23
+ }), [
24
+ () => __ΩUnresolvedContext,
25
+ "context",
26
+ "",
27
+ "Pn!2\"\"/#"
28
+ ]);
29
+
30
+ //#endregion
31
+ export { env as t };
32
+ //# sourceMappingURL=automd-generator-DoKLIMuw.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"automd-generator-DoKLIMuw.mjs","names":[],"sources":["../src/helpers/automd-generator.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { joinPaths } from \"@stryke/path/join-paths\";\nimport { defineGenerator } from \"automd\";\nimport { UnresolvedContext } from \"powerlines/types/context\";\n\n/**\n * AutoMD generator to generate environment variable documentation\n *\n * @param context - The generator context.\n * @returns The generated documentation content.\n */\nexport const env = (context: UnresolvedContext) =>\n defineGenerator({\n name: \"env\",\n async generate() {\n const envDocFile = joinPaths(\n context.config.projectRoot,\n \"docs\",\n \"generated\",\n \"env.md\"\n );\n\n if (!context.fs.existsSync(envDocFile)) {\n return {\n contents: \"\"\n };\n }\n\n const contents = await context.fs.read(envDocFile);\n\n return {\n contents: contents || \"\"\n };\n }\n });\n"],"mappings":";;;;;AAEA,SAAS,aAAa,IAAI,MAAM;;AAE5B,QAAO;;;;;;;;AA2BX,MAAa,MAAM,cAAE,YAAA,gBAAA;CACjB,MAAM;CACN,UAAU,aAAa,eAAO,WAAA;EAC1B,MAAM,aAAA,UAAA,QAAA,OAAA,aAAA,QAAA,aAAA,SAAA;AACN,MAAI,CAAC,QAAM,GAAA,WAAA,WAAA,CACP,QAAG,EACR,UAAA;AAIC,SAAO,EACN,UAFM,MAAA,QAAA,GAAA,KAAA,WAAA,IAEN,IACH;;CAEL,CAAC,EAAE;OAAO;CAAsB;CAAW;CAAI;CAAQ,CAAA"}
@@ -1,3 +1,6 @@
1
- const require_babel_plugin = require('./plugin.cjs');
1
+ require('../runtime-g0TEIoZK.cjs');
2
+ require('../plugin-CM1TSv1B.cjs');
3
+ const require_plugin$1 = require('../plugin-CSVnrdpE.cjs');
4
+ require('../babel-BZqmdVF4.cjs');
2
5
 
3
- exports.envBabelPlugin = require_babel_plugin.envBabelPlugin;
6
+ exports.envBabelPlugin = require_plugin$1.envBabelPlugin;
@@ -1,2 +1,15 @@
1
- import { envBabelPlugin } from "./plugin.cjs";
1
+ import "../runtime-BDzzR4wH.cjs";
2
+ import "../plugin-CSe5f2cD.cjs";
3
+ import "../docs-DMfzQuvP.cjs";
4
+ import "../env-BIyd8CTA.cjs";
5
+ import "../index-uTS5iDq_.cjs";
6
+ import "../create-reflection-resource-DSLbLsX2.cjs";
7
+ import "../load-PHGmxX_X.cjs";
8
+ import "../persistence-BR4cUaN6.cjs";
9
+ import "../reflect-Dm8a3c29.cjs";
10
+ import "../source-file-env-Brfopjyr.cjs";
11
+ import "../template-helpers-zyitPfMz.cjs";
12
+ import "../index-CEDY7cmG.cjs";
13
+ import "../index-DSiHnMH2.cjs";
14
+ import { t as envBabelPlugin } from "../index-Bdi8CvaN.cjs";
2
15
  export { envBabelPlugin };
@@ -1,2 +1,15 @@
1
- import { envBabelPlugin } from "./plugin.mjs";
1
+ import "../runtime-lYSIZdMn.mjs";
2
+ import "../plugin-DMbVjdcQ.mjs";
3
+ import "../docs-B0d8pdIg.mjs";
4
+ import "../env-BKmI7DyR.mjs";
5
+ import "../index-BNRXMhlr.mjs";
6
+ import "../create-reflection-resource-DwWJAo-G.mjs";
7
+ import "../load-GpP6cojj.mjs";
8
+ import "../persistence-DrKQZNCv.mjs";
9
+ import "../reflect-Dpz8ifa0.mjs";
10
+ import "../source-file-env-DWejSP2U.mjs";
11
+ import "../template-helpers-1SKodHKt.mjs";
12
+ import "../index-dhjtMp5F.mjs";
13
+ import "../index-CREkvfw9.mjs";
14
+ import { t as envBabelPlugin } from "../index-Drhzdkqe.mjs";
2
15
  export { envBabelPlugin };
@@ -1,3 +1,6 @@
1
- import { envBabelPlugin } from "./plugin.mjs";
1
+ import "../runtime-C5ukCv3P.mjs";
2
+ import "../plugin-eBjQJP6x.mjs";
3
+ import { t as envBabelPlugin } from "../plugin-Vyvy9w9Z.mjs";
4
+ import "../babel-DgietUY3.mjs";
2
5
 
3
6
  export { envBabelPlugin };
@@ -1,141 +1,5 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require_types_plugin = require('../types/plugin.cjs');
3
- let powerlines_types_babel = require("powerlines/types/babel");
4
- let __babel_core = require("@babel/core");
5
- let __powerlines_deepkit_utilities = require("@powerlines/deepkit/utilities");
6
- let __powerlines_plugin_babel_helpers_create_plugin = require("@powerlines/plugin-babel/helpers/create-plugin");
7
- let __powerlines_plugin_babel_helpers_module_helpers = require("@powerlines/plugin-babel/helpers/module-helpers");
8
- let __storm_software_config_tools_types = require("@storm-software/config-tools/types");
1
+ require('../runtime-g0TEIoZK.cjs');
2
+ require('../plugin-CM1TSv1B.cjs');
3
+ const require_plugin$1 = require('../plugin-CSVnrdpE.cjs');
9
4
 
10
- //#region src/babel/plugin.ts
11
- function __assignType(fn, args) {
12
- fn.__type = args;
13
- return fn;
14
- }
15
- const envBabelPlugin = (__powerlines_plugin_babel_helpers_create_plugin.createBabelPlugin.Ω = [[() => require_types_plugin.__ΩEnvPluginContext, "n!"]], (0, __powerlines_plugin_babel_helpers_create_plugin.createBabelPlugin)("env", __assignType(({ log, context }) => {
16
- function extractEnv(node, pass, isInjectable = false) {
17
- const envTypesAliasProperties = context.env.types.env?.getProperties().filter(__assignType((prop) => prop.getAlias().length > 0, [
18
- "prop",
19
- "",
20
- "P\"2!\"/\""
21
- ]));
22
- if (node.name) {
23
- const prefix = context.config.env.prefix.find(__assignType((pre) => node.name && node.name.startsWith(pre) && (context.env.types.env?.hasProperty(node.name.replace(`${pre}_`, "")) || envTypesAliasProperties.some(__assignType((prop) => prop.getAlias().includes(node.name.replace(`${pre}_`, "")), [
24
- "prop",
25
- "",
26
- "P\"2!\"/\""
27
- ]))), [
28
- "pre",
29
- "",
30
- "P\"2!\"/\""
31
- ]));
32
- let name = node.name;
33
- if (prefix) name = node.name.replace(`${prefix}_`, "");
34
- log(__storm_software_config_tools_types.LogLevelLabel.TRACE, `Environment variable ${name} found in ${pass.filename || "unknown file"}.`);
35
- if (context.env.types.env?.hasProperty(name) || envTypesAliasProperties.some(__assignType((prop) => prop.getAlias().includes(name), [
36
- "prop",
37
- "",
38
- "P\"2!\"/\""
39
- ]))) {
40
- const envProperty = context.env.types.env.hasProperty(name) ? context.env.types.env.getProperty(name) : envTypesAliasProperties.find(__assignType((prop) => prop.getAlias().includes(name), [
41
- "prop",
42
- "",
43
- "P\"2!\"/\""
44
- ]));
45
- if (!envProperty || envProperty.isIgnored()) return;
46
- if (!context.env.used.env.hasProperty(name)) {
47
- log(__storm_software_config_tools_types.LogLevelLabel.DEBUG, `Adding "${name}" environment variables found in "${pass.filename || "unknown file"}" to used environment configuration reflection object.`);
48
- context.env.used.env.addProperty(envProperty.property);
49
- }
50
- if (context.config.env.inject && isInjectable) {
51
- let value = context.env.parsed?.[name];
52
- if (value === void 0) {
53
- const prefix$1 = context.config.env.prefix.find(__assignType((pre) => {
54
- return context.env.parsed[`${pre.replace(/_$/g, "")}_${name}`];
55
- }, [
56
- "pre",
57
- "",
58
- "P\"2!\"/\""
59
- ]));
60
- if (prefix$1) value = context.env.parsed[`${prefix$1.replace(/_$/g, "")}_${name}`];
61
- }
62
- value ??= envProperty.getDefaultValue();
63
- if (envProperty.isValueRequired() && value === void 0) throw new Error(`Environment variable \`${name}\` is not defined in the .env configuration files`);
64
- return (0, __powerlines_deepkit_utilities.stringifyDefaultValue)(envProperty, value);
65
- }
66
- } else throw new Error(`The "${name}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${pass.filename ? pass.filename : "unknown"}.
67
-
68
- The following environment configuration names are defined in the \`env\` type definition: \n${context.env.types.env?.getPropertyNames().sort(__assignType((a, b) => String(a).localeCompare(String(b)), [
69
- "a",
70
- "b",
71
- "",
72
- "P\"2!\"2\"\"/#"
73
- ])).map(__assignType((typeDef) => ` - ${String(typeDef)} ${envTypesAliasProperties.some(__assignType((prop) => prop.getNameAsString() === String(typeDef) && prop.getAlias().length > 0, [
74
- "prop",
75
- "",
76
- "P\"2!\"/\""
77
- ])) ? `(Alias: ${envTypesAliasProperties?.find(__assignType((prop) => prop.getNameAsString() === String(typeDef), [
78
- "prop",
79
- "",
80
- "P\"2!\"/\""
81
- ]))?.getAlias().join(", ")})` : ""}`, [
82
- "typeDef",
83
- "",
84
- "P\"2!\"/\""
85
- ])).join("\n")} \n\nUsing the following env prefix: \n${context.config.env.prefix.map(__assignType((prefix$1) => ` - ${prefix$1}`, [
86
- "prefix",
87
- "",
88
- "P\"2!\"/\""
89
- ])).join("\n")} \n\nPlease check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code. \n\n`);
90
- }
91
- }
92
- extractEnv.__type = [
93
- "node",
94
- () => powerlines_types_babel.__ΩBabelPluginPass,
95
- "pass",
96
- "isInjectable",
97
- "extractEnv",
98
- "P!2!n\"2#\"2$\"/%"
99
- ];
100
- return { visitor: { MemberExpression: __assignType(function MemberExpression(path, pass) {
101
- if (path.get("object")?.get("property")?.isIdentifier({ name: "env" }) && path.get("object")?.get("object")?.isIdentifier({ name: "process" }) && path.get("property")?.isIdentifier()) {
102
- const identifier = path.get("property")?.node;
103
- if (!identifier.name) return;
104
- extractEnv(identifier, pass, false);
105
- path.replaceWithSourceString(`env.${identifier.name}`);
106
- (0, __powerlines_plugin_babel_helpers_module_helpers.addImport)(path, {
107
- module: `${context.config.framework || "powerlines"}:env`,
108
- name: "env",
109
- imported: "env"
110
- });
111
- } else if (path.get("object")?.get("property")?.isIdentifier({ name: "env" }) && path.get("object")?.get("object")?.isMetaProperty() && path.get("property")?.isIdentifier()) {
112
- const identifier = path.get("property")?.node;
113
- if (!identifier.name) return;
114
- extractEnv(identifier, pass, false);
115
- path.replaceWithSourceString(`env.${identifier.name}`);
116
- (0, __powerlines_plugin_babel_helpers_module_helpers.addImport)(path, {
117
- module: `${context.config.framework || "powerlines"}:env`,
118
- name: "env",
119
- imported: "env"
120
- });
121
- } else if (path.get("object")?.isIdentifier({ name: "env" }) && path.get("property")?.isIdentifier()) {
122
- const identifier = path.get("property")?.node;
123
- if (!identifier.name) return;
124
- extractEnv(identifier, pass, false);
125
- }
126
- }, [
127
- () => __babel_core.NodePath,
128
- "path",
129
- () => powerlines_types_babel.__ΩBabelPluginPass,
130
- "pass",
131
- "MemberExpression",
132
- "PP!7!2\"n#2$\"/%"
133
- ]) } };
134
- }, [
135
- "param0",
136
- "",
137
- "P\"2!\"/\""
138
- ])));
139
-
140
- //#endregion
141
- exports.envBabelPlugin = envBabelPlugin;
5
+ exports.envBabelPlugin = require_plugin$1.envBabelPlugin;
@@ -1,8 +1,15 @@
1
- import { EnvPluginContext, EnvPluginResolvedConfig } from "../types/plugin.cjs";
2
- import "../index.cjs";
3
- import * as powerlines_types0 from "powerlines/types";
4
-
5
- //#region src/babel/plugin.d.ts
6
- declare const envBabelPlugin: powerlines_types0.DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
7
- //#endregion
1
+ import "../runtime-BDzzR4wH.cjs";
2
+ import "../plugin-CSe5f2cD.cjs";
3
+ import "../docs-DMfzQuvP.cjs";
4
+ import "../env-BIyd8CTA.cjs";
5
+ import "../index-uTS5iDq_.cjs";
6
+ import "../create-reflection-resource-DSLbLsX2.cjs";
7
+ import "../load-PHGmxX_X.cjs";
8
+ import "../persistence-BR4cUaN6.cjs";
9
+ import "../reflect-Dm8a3c29.cjs";
10
+ import "../source-file-env-Brfopjyr.cjs";
11
+ import "../template-helpers-zyitPfMz.cjs";
12
+ import "../index-CEDY7cmG.cjs";
13
+ import "../index-DSiHnMH2.cjs";
14
+ import { t as envBabelPlugin } from "../index-Bdi8CvaN.cjs";
8
15
  export { envBabelPlugin };
@@ -1,8 +1,15 @@
1
- import { EnvPluginContext, EnvPluginResolvedConfig } from "../types/plugin.mjs";
2
- import "../index.mjs";
3
- import * as powerlines_types0 from "powerlines/types";
4
-
5
- //#region src/babel/plugin.d.ts
6
- declare const envBabelPlugin: powerlines_types0.DeclareBabelTransformPluginReturn<EnvPluginContext<EnvPluginResolvedConfig>, Record<string, any>>;
7
- //#endregion
1
+ import "../runtime-lYSIZdMn.mjs";
2
+ import "../plugin-DMbVjdcQ.mjs";
3
+ import "../docs-B0d8pdIg.mjs";
4
+ import "../env-BKmI7DyR.mjs";
5
+ import "../index-BNRXMhlr.mjs";
6
+ import "../create-reflection-resource-DwWJAo-G.mjs";
7
+ import "../load-GpP6cojj.mjs";
8
+ import "../persistence-DrKQZNCv.mjs";
9
+ import "../reflect-Dpz8ifa0.mjs";
10
+ import "../source-file-env-DWejSP2U.mjs";
11
+ import "../template-helpers-1SKodHKt.mjs";
12
+ import "../index-dhjtMp5F.mjs";
13
+ import "../index-CREkvfw9.mjs";
14
+ import { t as envBabelPlugin } from "../index-Drhzdkqe.mjs";
8
15
  export { envBabelPlugin };
@@ -1,140 +1,5 @@
1
- import { __ΩEnvPluginContext } from "../types/plugin.mjs";
2
- import { __ΩBabelPluginPass } from "powerlines/types/babel";
3
- import { NodePath } from "@babel/core";
4
- import { stringifyDefaultValue } from "@powerlines/deepkit/utilities";
5
- import { createBabelPlugin } from "@powerlines/plugin-babel/helpers/create-plugin";
6
- import { addImport } from "@powerlines/plugin-babel/helpers/module-helpers";
7
- import { LogLevelLabel } from "@storm-software/config-tools/types";
1
+ import "../runtime-C5ukCv3P.mjs";
2
+ import "../plugin-eBjQJP6x.mjs";
3
+ import { t as envBabelPlugin } from "../plugin-Vyvy9w9Z.mjs";
8
4
 
9
- //#region src/babel/plugin.ts
10
- function __assignType(fn, args) {
11
- fn.__type = args;
12
- return fn;
13
- }
14
- const envBabelPlugin = (createBabelPlugin.Ω = [[() => __ΩEnvPluginContext, "n!"]], createBabelPlugin("env", __assignType(({ log, context }) => {
15
- function extractEnv(node, pass, isInjectable = false) {
16
- const envTypesAliasProperties = context.env.types.env?.getProperties().filter(__assignType((prop) => prop.getAlias().length > 0, [
17
- "prop",
18
- "",
19
- "P\"2!\"/\""
20
- ]));
21
- if (node.name) {
22
- const prefix = context.config.env.prefix.find(__assignType((pre) => node.name && node.name.startsWith(pre) && (context.env.types.env?.hasProperty(node.name.replace(`${pre}_`, "")) || envTypesAliasProperties.some(__assignType((prop) => prop.getAlias().includes(node.name.replace(`${pre}_`, "")), [
23
- "prop",
24
- "",
25
- "P\"2!\"/\""
26
- ]))), [
27
- "pre",
28
- "",
29
- "P\"2!\"/\""
30
- ]));
31
- let name = node.name;
32
- if (prefix) name = node.name.replace(`${prefix}_`, "");
33
- log(LogLevelLabel.TRACE, `Environment variable ${name} found in ${pass.filename || "unknown file"}.`);
34
- if (context.env.types.env?.hasProperty(name) || envTypesAliasProperties.some(__assignType((prop) => prop.getAlias().includes(name), [
35
- "prop",
36
- "",
37
- "P\"2!\"/\""
38
- ]))) {
39
- const envProperty = context.env.types.env.hasProperty(name) ? context.env.types.env.getProperty(name) : envTypesAliasProperties.find(__assignType((prop) => prop.getAlias().includes(name), [
40
- "prop",
41
- "",
42
- "P\"2!\"/\""
43
- ]));
44
- if (!envProperty || envProperty.isIgnored()) return;
45
- if (!context.env.used.env.hasProperty(name)) {
46
- log(LogLevelLabel.DEBUG, `Adding "${name}" environment variables found in "${pass.filename || "unknown file"}" to used environment configuration reflection object.`);
47
- context.env.used.env.addProperty(envProperty.property);
48
- }
49
- if (context.config.env.inject && isInjectable) {
50
- let value = context.env.parsed?.[name];
51
- if (value === void 0) {
52
- const prefix$1 = context.config.env.prefix.find(__assignType((pre) => {
53
- return context.env.parsed[`${pre.replace(/_$/g, "")}_${name}`];
54
- }, [
55
- "pre",
56
- "",
57
- "P\"2!\"/\""
58
- ]));
59
- if (prefix$1) value = context.env.parsed[`${prefix$1.replace(/_$/g, "")}_${name}`];
60
- }
61
- value ??= envProperty.getDefaultValue();
62
- if (envProperty.isValueRequired() && value === void 0) throw new Error(`Environment variable \`${name}\` is not defined in the .env configuration files`);
63
- return stringifyDefaultValue(envProperty, value);
64
- }
65
- } else throw new Error(`The "${name}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${pass.filename ? pass.filename : "unknown"}.
66
-
67
- The following environment configuration names are defined in the \`env\` type definition: \n${context.env.types.env?.getPropertyNames().sort(__assignType((a, b) => String(a).localeCompare(String(b)), [
68
- "a",
69
- "b",
70
- "",
71
- "P\"2!\"2\"\"/#"
72
- ])).map(__assignType((typeDef) => ` - ${String(typeDef)} ${envTypesAliasProperties.some(__assignType((prop) => prop.getNameAsString() === String(typeDef) && prop.getAlias().length > 0, [
73
- "prop",
74
- "",
75
- "P\"2!\"/\""
76
- ])) ? `(Alias: ${envTypesAliasProperties?.find(__assignType((prop) => prop.getNameAsString() === String(typeDef), [
77
- "prop",
78
- "",
79
- "P\"2!\"/\""
80
- ]))?.getAlias().join(", ")})` : ""}`, [
81
- "typeDef",
82
- "",
83
- "P\"2!\"/\""
84
- ])).join("\n")} \n\nUsing the following env prefix: \n${context.config.env.prefix.map(__assignType((prefix$1) => ` - ${prefix$1}`, [
85
- "prefix",
86
- "",
87
- "P\"2!\"/\""
88
- ])).join("\n")} \n\nPlease check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code. \n\n`);
89
- }
90
- }
91
- extractEnv.__type = [
92
- "node",
93
- () => __ΩBabelPluginPass,
94
- "pass",
95
- "isInjectable",
96
- "extractEnv",
97
- "P!2!n\"2#\"2$\"/%"
98
- ];
99
- return { visitor: { MemberExpression: __assignType(function MemberExpression(path, pass) {
100
- if (path.get("object")?.get("property")?.isIdentifier({ name: "env" }) && path.get("object")?.get("object")?.isIdentifier({ name: "process" }) && path.get("property")?.isIdentifier()) {
101
- const identifier = path.get("property")?.node;
102
- if (!identifier.name) return;
103
- extractEnv(identifier, pass, false);
104
- path.replaceWithSourceString(`env.${identifier.name}`);
105
- addImport(path, {
106
- module: `${context.config.framework || "powerlines"}:env`,
107
- name: "env",
108
- imported: "env"
109
- });
110
- } else if (path.get("object")?.get("property")?.isIdentifier({ name: "env" }) && path.get("object")?.get("object")?.isMetaProperty() && path.get("property")?.isIdentifier()) {
111
- const identifier = path.get("property")?.node;
112
- if (!identifier.name) return;
113
- extractEnv(identifier, pass, false);
114
- path.replaceWithSourceString(`env.${identifier.name}`);
115
- addImport(path, {
116
- module: `${context.config.framework || "powerlines"}:env`,
117
- name: "env",
118
- imported: "env"
119
- });
120
- } else if (path.get("object")?.isIdentifier({ name: "env" }) && path.get("property")?.isIdentifier()) {
121
- const identifier = path.get("property")?.node;
122
- if (!identifier.name) return;
123
- extractEnv(identifier, pass, false);
124
- }
125
- }, [
126
- () => NodePath,
127
- "path",
128
- () => __ΩBabelPluginPass,
129
- "pass",
130
- "MemberExpression",
131
- "PP!7!2\"n#2$\"/%"
132
- ]) } };
133
- }, [
134
- "param0",
135
- "",
136
- "P\"2!\"/\""
137
- ])));
138
-
139
- //#endregion
140
5
  export { envBabelPlugin };
File without changes
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,48 @@
1
+ //#region rolldown:runtime
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
12
+ key = keys[i];
13
+ if (!__hasOwnProp.call(to, key) && key !== except) {
14
+ __defProp(to, key, {
15
+ get: ((k) => from[k]).bind(null, key),
16
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
17
+ });
18
+ }
19
+ }
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
24
+ value: mod,
25
+ enumerable: true
26
+ }) : target, mod));
27
+ var __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode);
28
+
29
+ //#endregion
30
+
31
+ Object.defineProperty(exports, '__commonJSMin', {
32
+ enumerable: true,
33
+ get: function () {
34
+ return __commonJSMin;
35
+ }
36
+ });
37
+ Object.defineProperty(exports, '__toDynamicImportESM', {
38
+ enumerable: true,
39
+ get: function () {
40
+ return __toDynamicImportESM;
41
+ }
42
+ });
43
+ Object.defineProperty(exports, '__toESM', {
44
+ enumerable: true,
45
+ get: function () {
46
+ return __toESM;
47
+ }
48
+ });
@@ -1,3 +1,5 @@
1
+ import { createRequire } from "node:module";
2
+
1
3
  //#region rolldown:runtime
2
4
  var __create = Object.create;
3
5
  var __defProp = Object.defineProperty;
@@ -5,6 +7,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
7
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
8
  var __getProtoOf = Object.getPrototypeOf;
7
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
8
11
  var __copyProps = (to, from, except, desc) => {
9
12
  if (from && typeof from === "object" || typeof from === "function") {
10
13
  for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
@@ -23,7 +26,8 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
23
26
  value: mod,
24
27
  enumerable: true
25
28
  }) : target, mod));
29
+ var __toDynamicImportESM = (isNodeMode) => (mod) => __toESM(mod.default, isNodeMode);
30
+ var __require = /* @__PURE__ */ createRequire(import.meta.url);
26
31
 
27
32
  //#endregion
28
-
29
- exports.__toESM = __toESM;
33
+ export { __toESM as i, __require as n, __toDynamicImportESM as r, __commonJSMin as t };
@@ -1,70 +1,14 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- const require_helpers_create_reflection_resource = require('../helpers/create-reflection-resource.cjs');
3
- const require_helpers_docs_helper = require('../helpers/docs-helper.cjs');
4
- let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
5
- let __alloy_js_core = require("@alloy-js/core");
6
- let __stryke_path_join = require("@stryke/path/join");
7
- let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
8
- let __alloy_js_markdown = require("@alloy-js/markdown");
9
- let __powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
10
- let __powerlines_plugin_alloy_markdown_components_markdown_file = require("@powerlines/plugin-alloy/markdown/components/markdown-file");
11
- let __powerlines_plugin_alloy_markdown_components_markdown_table = require("@powerlines/plugin-alloy/markdown/components/markdown-table");
1
+ require('../runtime-g0TEIoZK.cjs');
2
+ require('../plugin-CM1TSv1B.cjs');
3
+ require('../join-paths-Bc4rM2TX.cjs');
4
+ require('../persistence-D_clXRxP.cjs');
5
+ require('../source-file-env-4Vdtzc5-.cjs');
6
+ require('../defu-CrqNIh1A.cjs');
7
+ require('../load-DPB0maqs.cjs');
8
+ require('../confbox.DA7CpUDY-r6FXRsI6.cjs');
9
+ require('../confbox.DnMsyigM-C13n3X-S.cjs');
10
+ require('../create-reflection-resource-BJj83ii4.cjs');
11
+ require('../docs-helper-4MoQ5-R3.cjs');
12
+ const require_docs = require('../docs-B-SDRHeg.cjs');
12
13
 
13
- //#region src/components/docs.tsx
14
- /**
15
- * Generates the environment configuration markdown documentation for the Powerlines project.
16
- */
17
- function EnvDocsFile(props) {
18
- const { levelOffset = 0, ...rest } = props;
19
- const context = (0, __powerlines_plugin_alloy_core_contexts_context.usePowerlinesSafe)();
20
- if (!context) return null;
21
- const reflection = require_helpers_create_reflection_resource.createReflectionResource(context);
22
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_markdown_components_markdown_file.MarkdownFile, (0, __alloy_js_core_jsx_runtime.mergeProps)({ get path() {
23
- return (0, __stryke_path_join.joinPaths)(require_helpers_docs_helper.getDocsOutputPath(context), "env.md");
24
- } }, rest, { get children() {
25
- return [
26
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_markdown.Heading, {
27
- level: 1 + levelOffset,
28
- children: "Environment Configuration"
29
- }),
30
- __alloy_js_core.code`Below is a list of environment variables used by the`,
31
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_core.Show, {
32
- get when() {
33
- return !!context?.packageJson.name;
34
- },
35
- get children() {
36
- return (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_markdown.Link, {
37
- get href() {
38
- return `https://www.npmjs.com/package/${context?.packageJson.name}`;
39
- },
40
- get title() {
41
- return context.packageJson.name;
42
- }
43
- });
44
- }
45
- }),
46
- __alloy_js_core.code`package. These values can be updated in the \`.env\` file in the root of the project.`,
47
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
48
- (0, __alloy_js_core_jsx_runtime.createComponent)(__alloy_js_markdown.Heading, {
49
- level: 2 + levelOffset,
50
- children: "Environment Variables"
51
- }),
52
- __alloy_js_core.code`The below list of environment variables are used as configuration parameters to drive the processing of the application. The data contained in these variables are **not** considered sensitive or confidential. Any values provided in these variables will be available in plain text to the public.`,
53
- (0, __alloy_js_core_jsx_runtime.createIntrinsic)("hbr", {}),
54
- (0, __alloy_js_core_jsx_runtime.createComponent)(__powerlines_plugin_alloy_markdown_components_markdown_table.MarkdownTable, { get data() {
55
- return reflection.data?.getProperties().filter((property) => property.getNameAsString() !== "__STORM_INJECTED__").sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())).map((reflectionProperty) => {
56
- return {
57
- name: reflectionProperty.getNameAsString().trim(),
58
- description: (reflectionProperty.getDescription() ?? "").trim(),
59
- type: (0, __powerlines_deepkit_vendor_type.stringifyType)(reflectionProperty.getType()).trim().replaceAll(" | ", ", or "),
60
- defaultValue: reflectionProperty.hasDefault() ? String(reflectionProperty.getDefaultValue())?.includes("\"") ? reflectionProperty.getDefaultValue() : `\`${reflectionProperty.getDefaultValue()}\`` : "",
61
- required: reflectionProperty.isValueRequired() ? "" : "✔"
62
- };
63
- }) ?? [];
64
- } })
65
- ];
66
- } }));
67
- }
68
-
69
- //#endregion
70
- exports.EnvDocsFile = EnvDocsFile;
14
+ exports.EnvDocsFile = require_docs.EnvDocsFile;