@powerlines/plugin-env 0.15.161 → 0.15.162
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-CNVrAnJR.cjs → _virtual/rolldown_runtime.cjs} +3 -18
- package/dist/{chunk-CsF2CmBJ.mjs → _virtual/rolldown_runtime.mjs} +1 -1
- package/dist/babel/index.cjs +2 -5
- package/dist/babel/index.d.cts +1 -14
- package/dist/babel/index.d.mts +1 -14
- package/dist/babel/index.mjs +1 -4
- package/dist/babel/plugin.cjs +140 -4
- package/dist/babel/plugin.d.cts +9 -15
- package/dist/babel/plugin.d.cts.map +1 -0
- package/dist/babel/plugin.d.mts +9 -15
- package/dist/babel/plugin.d.mts.map +1 -0
- package/dist/babel/plugin.mjs +140 -4
- package/dist/babel/plugin.mjs.map +1 -0
- package/dist/components/docs.cjs +66 -6
- package/dist/components/docs.d.cts +25 -2
- package/dist/components/docs.d.cts.map +1 -0
- package/dist/components/docs.d.mts +25 -2
- package/dist/components/docs.d.mts.map +1 -0
- package/dist/components/docs.mjs +66 -6
- package/dist/components/docs.mjs.map +1 -0
- package/dist/components/env.cjs +582 -11
- package/dist/components/env.d.cts +23 -2
- package/dist/components/env.d.cts.map +1 -0
- package/dist/components/env.d.mts +23 -2
- package/dist/components/env.d.mts.map +1 -0
- package/dist/components/env.mjs +581 -10
- package/dist/components/env.mjs.map +1 -0
- package/dist/components/index.cjs +5 -15
- package/dist/components/index.d.cts +2 -3
- package/dist/components/index.d.mts +2 -3
- package/dist/components/index.mjs +2 -12
- package/dist/helpers/automd-generator.cjs +31 -3
- package/dist/helpers/automd-generator.mjs +31 -3
- package/dist/helpers/automd-generator.mjs.map +1 -0
- package/dist/helpers/create-reflection-resource.cjs +21 -4
- package/dist/helpers/create-reflection-resource.d.cts +14 -4
- package/dist/helpers/create-reflection-resource.d.cts.map +1 -0
- package/dist/helpers/create-reflection-resource.d.mts +14 -4
- package/dist/helpers/create-reflection-resource.d.mts.map +1 -0
- package/dist/helpers/create-reflection-resource.mjs +22 -4
- package/dist/helpers/create-reflection-resource.mjs.map +1 -0
- package/dist/helpers/docs-helper.cjs +22 -5
- package/dist/helpers/docs-helper.d.cts +1 -2
- package/dist/helpers/docs-helper.d.cts.map +1 -1
- package/dist/helpers/docs-helper.d.mts +1 -2
- package/dist/helpers/docs-helper.d.mts.map +1 -1
- package/dist/helpers/docs-helper.mjs +23 -5
- package/dist/helpers/docs-helper.mjs.map +1 -0
- package/dist/helpers/index.cjs +32 -38
- package/dist/helpers/index.d.cts +6 -9
- package/dist/helpers/index.d.mts +6 -9
- package/dist/helpers/index.mjs +6 -12
- package/dist/helpers/load.cjs +133 -10
- package/dist/helpers/load.d.cts +36 -4
- package/dist/helpers/load.d.cts.map +1 -0
- package/dist/helpers/load.d.mts +36 -4
- package/dist/helpers/load.d.mts.map +1 -0
- package/dist/helpers/load.mjs +132 -9
- package/dist/helpers/load.mjs.map +1 -0
- package/dist/helpers/persistence.cjs +321 -15
- package/dist/helpers/persistence.d.cts +85 -4
- package/dist/helpers/persistence.d.cts.map +1 -0
- package/dist/helpers/persistence.d.mts +85 -4
- package/dist/helpers/persistence.d.mts.map +1 -0
- package/dist/helpers/persistence.mjs +310 -5
- package/dist/helpers/persistence.mjs.map +1 -0
- package/dist/helpers/reflect.cjs +262 -13
- package/dist/helpers/reflect.d.cts +47 -4
- package/dist/helpers/reflect.d.cts.map +1 -0
- package/dist/helpers/reflect.d.mts +47 -4
- package/dist/helpers/reflect.d.mts.map +1 -0
- package/dist/helpers/reflect.mjs +254 -5
- package/dist/helpers/reflect.mjs.map +1 -0
- package/dist/helpers/source-file-env.cjs +57 -3
- package/dist/helpers/source-file-env.d.cts +9 -2
- package/dist/helpers/source-file-env.d.cts.map +1 -0
- package/dist/helpers/source-file-env.d.mts +9 -2
- package/dist/helpers/source-file-env.d.mts.map +1 -0
- package/dist/helpers/source-file-env.mjs +56 -2
- package/dist/helpers/source-file-env.mjs.map +1 -0
- package/dist/helpers/template-helpers.cjs +69 -6
- package/dist/helpers/template-helpers.d.cts +16 -4
- package/dist/helpers/template-helpers.d.cts.map +1 -0
- package/dist/helpers/template-helpers.d.mts +16 -4
- package/dist/helpers/template-helpers.d.mts.map +1 -0
- package/dist/helpers/template-helpers.mjs +69 -6
- package/dist/helpers/template-helpers.mjs.map +1 -0
- package/dist/index.cjs +98 -258
- package/dist/index.d.cts +25 -15
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +25 -15
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +22 -182
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.cjs +37 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.mjs +38 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/parse-type-definition.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.mjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/to-array.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +7 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +19 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +20 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +63 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +64 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +17 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.38/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.cjs +32 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.mjs +33 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-parent-path.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.cjs +28 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.mjs +29 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/is-type.mjs.map +1 -0
- package/dist/{join-paths-B0RBTuuw.cjs → node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.cjs} +13 -65
- package/dist/{join-paths-Dd9KxuyL.mjs → node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.mjs} +5 -45
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.mjs +9 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/regex.mjs.map +1 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.cjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.mjs +15 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/slash.mjs.map +1 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +346 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +347 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs.map +1 -0
- package/dist/{json5-DEV_07Nb.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs} +1 -1
- package/dist/{json5-jq90mF9X.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs} +2 -2
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs.map +1 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +3 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +3 -0
- package/dist/{confbox.DA7CpUDY-DShUZ_rW.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs} +2 -2
- package/dist/{confbox.DA7CpUDY-r6FXRsI6.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs} +2 -7
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs.map +1 -0
- package/dist/{confbox.DnMsyigM-C13n3X-S.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs} +3 -13
- package/dist/{confbox.DnMsyigM-V6Wj0LPC.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs} +3 -3
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs.map +1 -0
- package/dist/{toml-DvrxV201.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs} +1 -1
- package/dist/{toml-uuOYvEAO.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs} +2 -2
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs.map +1 -0
- package/dist/{yaml-CQSFMRMS.cjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs} +1 -1
- package/dist/{yaml-CIn2Gddw.mjs → node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs} +2 -2
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs.map +1 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +43 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +43 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs.map +1 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +46 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +46 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +288 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +286 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs.map +1 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +71 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +69 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs.map +1 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +1013 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +1008 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +23 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +14 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +2698 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +2686 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs.map +1 -0
- package/dist/{load-CC_Pu2Om.cjs → node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs} +195 -2332
- package/dist/{load-EM4edkA2.mjs → node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs} +195 -2319
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs.map +1 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +29 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +30 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs.map +1 -0
- package/dist/{multipart-parser-aEF5a4Xf.cjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs} +8 -5
- package/dist/{multipart-parser-D65rtMfY.mjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs} +4 -3
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs.map +1 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +22 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +18 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs.map +1 -0
- package/dist/{node-Co8KdzkZ.cjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs} +796 -814
- package/dist/{node-D9MigVDD.mjs → node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs} +795 -807
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs.map +1 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +11768 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +11764 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs.map +1 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +25 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +21 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs.map +1 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +18 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.cjs +194 -0
- package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs +192 -0
- package/dist/node_modules/.pnpm/nypm@0.6.4/node_modules/nypm/dist/index.mjs.map +1 -0
- package/dist/{dist-BQc8ZRwl.cjs → node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs} +1 -1
- package/dist/{dist-mV5Swt78.mjs → node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs} +1 -1
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +3 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +3 -0
- package/dist/{defu-DV5Grr85.mjs → node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs} +8 -43
- package/dist/{defu-CrqNIh1A.cjs → node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs} +2 -90
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs.map +1 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +127 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +126 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +138 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +137 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs.map +1 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +629 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +628 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs.map +1 -0
- package/dist/types/index.cjs +9 -10
- package/dist/types/index.d.cts +2 -3
- package/dist/types/index.d.mts +2 -3
- package/dist/types/index.mjs +2 -3
- package/dist/types/plugin.cjs +133 -7
- package/dist/types/plugin.d.cts +155 -3
- package/dist/types/plugin.d.cts.map +1 -0
- package/dist/types/plugin.d.mts +155 -3
- package/dist/types/plugin.d.mts.map +1 -0
- package/dist/types/plugin.mjs +129 -3
- package/dist/types/plugin.mjs.map +1 -0
- package/dist/types/runtime.cjs +242 -3
- package/dist/types/runtime.d.cts +792 -2
- package/dist/{runtime-BDzzR4wH.d.cts.map → types/runtime.d.cts.map} +1 -1
- package/dist/types/runtime.d.mts +792 -2
- package/dist/{runtime-lYSIZdMn.d.mts.map → types/runtime.d.mts.map} +1 -1
- package/dist/types/runtime.mjs +241 -2
- package/dist/types/runtime.mjs.map +1 -0
- package/package.json +9 -9
- package/dist/automd-generator-BpvZRK0k.mjs +0 -32
- package/dist/automd-generator-BpvZRK0k.mjs.map +0 -1
- package/dist/automd-generator-CxG1owAE.cjs +0 -37
- package/dist/babel-BZqmdVF4.cjs +0 -0
- package/dist/babel-DgietUY3.mjs +0 -1
- package/dist/components-BUo6Koax.cjs +0 -0
- package/dist/components-DDFmImcI.mjs +0 -1
- package/dist/confbox.DA7CpUDY-DShUZ_rW.mjs.map +0 -1
- package/dist/confbox.DnMsyigM-V6Wj0LPC.mjs.map +0 -1
- package/dist/create-reflection-resource-3svZm2rY.d.cts +0 -14
- package/dist/create-reflection-resource-3svZm2rY.d.cts.map +0 -1
- package/dist/create-reflection-resource-CCpA76Yq.d.mts +0 -14
- package/dist/create-reflection-resource-CCpA76Yq.d.mts.map +0 -1
- package/dist/create-reflection-resource-D0QrD1Td.mjs +0 -23
- package/dist/create-reflection-resource-D0QrD1Td.mjs.map +0 -1
- package/dist/create-reflection-resource-d2zdTyOE.cjs +0 -27
- package/dist/defu-DV5Grr85.mjs.map +0 -1
- package/dist/dist-C_a6goTt.cjs +0 -15282
- package/dist/dist-CjWvISyq.mjs +0 -15271
- package/dist/dist-CjWvISyq.mjs.map +0 -1
- package/dist/dist-mV5Swt78.mjs.map +0 -1
- package/dist/docs-BAKwE4PJ.d.cts +0 -25
- package/dist/docs-BAKwE4PJ.d.cts.map +0 -1
- package/dist/docs-CVf-w8oz.d.mts +0 -25
- package/dist/docs-CVf-w8oz.d.mts.map +0 -1
- package/dist/docs-E0aCTO7H.cjs +0 -72
- package/dist/docs-WdCIcQmw.mjs +0 -67
- package/dist/docs-WdCIcQmw.mjs.map +0 -1
- package/dist/docs-helper-BSYSI2cH.mjs +0 -24
- package/dist/docs-helper-BSYSI2cH.mjs.map +0 -1
- package/dist/docs-helper-BWe1dt1m.cjs +0 -28
- package/dist/env-BSCEigpj.cjs +0 -593
- package/dist/env-D0KBPuAd.d.mts +0 -23
- package/dist/env-D0KBPuAd.d.mts.map +0 -1
- package/dist/env-DqI7dwC-.mjs +0 -582
- package/dist/env-DqI7dwC-.mjs.map +0 -1
- package/dist/env-DwM7pJm7.d.cts +0 -23
- package/dist/env-DwM7pJm7.d.cts.map +0 -1
- package/dist/helpers-45e1bvAO.mjs +0 -1
- package/dist/helpers-DgYP3uej.cjs +0 -0
- package/dist/index-BNRXMhlr.d.mts +0 -1
- package/dist/index-Bdi8CvaN.d.cts +0 -16
- package/dist/index-Bdi8CvaN.d.cts.map +0 -1
- package/dist/index-CEDY7cmG.d.cts +0 -1
- package/dist/index-CREkvfw9.d.mts +0 -1
- package/dist/index-DSiHnMH2.d.cts +0 -1
- package/dist/index-Drhzdkqe.d.mts +0 -16
- package/dist/index-Drhzdkqe.d.mts.map +0 -1
- package/dist/index-dhjtMp5F.d.mts +0 -1
- package/dist/index-uTS5iDq_.d.cts +0 -1
- package/dist/join-paths-Dd9KxuyL.mjs.map +0 -1
- package/dist/json5-jq90mF9X.mjs.map +0 -1
- package/dist/jsonc-CBh70baJ.cjs +0 -4
- package/dist/jsonc-CDLU6bgi.mjs +0 -4
- package/dist/load-EM4edkA2.mjs.map +0 -1
- package/dist/load-GpP6cojj.d.mts +0 -36
- package/dist/load-GpP6cojj.d.mts.map +0 -1
- package/dist/load-PHGmxX_X.d.cts +0 -36
- package/dist/load-PHGmxX_X.d.cts.map +0 -1
- package/dist/multipart-parser-D65rtMfY.mjs.map +0 -1
- package/dist/node-D9MigVDD.mjs.map +0 -1
- package/dist/persistence-5S3EirDm.mjs +0 -586
- package/dist/persistence-5S3EirDm.mjs.map +0 -1
- package/dist/persistence-BR4cUaN6.d.cts +0 -85
- package/dist/persistence-BR4cUaN6.d.cts.map +0 -1
- package/dist/persistence-DrKQZNCv.d.mts +0 -85
- package/dist/persistence-DrKQZNCv.d.mts.map +0 -1
- package/dist/persistence-DzS7SzMj.cjs +0 -712
- package/dist/plugin-CM1TSv1B.cjs +0 -159
- package/dist/plugin-CSVnrdpE.cjs +0 -146
- package/dist/plugin-CSe5f2cD.d.cts +0 -155
- package/dist/plugin-CSe5f2cD.d.cts.map +0 -1
- package/dist/plugin-DMbVjdcQ.d.mts +0 -155
- package/dist/plugin-DMbVjdcQ.d.mts.map +0 -1
- package/dist/plugin-Vyvy9w9Z.mjs +0 -141
- package/dist/plugin-Vyvy9w9Z.mjs.map +0 -1
- package/dist/plugin-eBjQJP6x.mjs +0 -130
- package/dist/plugin-eBjQJP6x.mjs.map +0 -1
- package/dist/reflect-Dm8a3c29.d.cts +0 -47
- package/dist/reflect-Dm8a3c29.d.cts.map +0 -1
- package/dist/reflect-Dpz8ifa0.d.mts +0 -47
- package/dist/reflect-Dpz8ifa0.d.mts.map +0 -1
- package/dist/runtime-BDzzR4wH.d.cts +0 -792
- package/dist/runtime-C5ukCv3P.mjs +0 -242
- package/dist/runtime-C5ukCv3P.mjs.map +0 -1
- package/dist/runtime-g0TEIoZK.cjs +0 -253
- package/dist/runtime-lYSIZdMn.d.mts +0 -792
- package/dist/source-file-env-4Vdtzc5-.cjs +0 -68
- package/dist/source-file-env-Brfopjyr.d.cts +0 -9
- package/dist/source-file-env-Brfopjyr.d.cts.map +0 -1
- package/dist/source-file-env-DWejSP2U.d.mts +0 -9
- package/dist/source-file-env-DWejSP2U.d.mts.map +0 -1
- package/dist/source-file-env-Tj-6qobx.mjs +0 -57
- package/dist/source-file-env-Tj-6qobx.mjs.map +0 -1
- package/dist/template-helpers-1SKodHKt.d.mts +0 -16
- package/dist/template-helpers-1SKodHKt.d.mts.map +0 -1
- package/dist/template-helpers-Cw8aba1r.mjs +0 -70
- package/dist/template-helpers-Cw8aba1r.mjs.map +0 -1
- package/dist/template-helpers-DoFoTIAC.cjs +0 -75
- package/dist/template-helpers-zyitPfMz.d.cts +0 -16
- package/dist/template-helpers-zyitPfMz.d.cts.map +0 -1
- package/dist/toml-uuOYvEAO.mjs.map +0 -1
- package/dist/types-DyPQho_C.mjs +0 -1
- package/dist/types-o3zWarRp.cjs +0 -0
- package/dist/yaml-CIn2Gddw.mjs.map +0 -1
|
@@ -1,16 +1,322 @@
|
|
|
1
|
-
require('../
|
|
2
|
-
require('../plugin
|
|
3
|
-
require('../join-paths
|
|
4
|
-
const
|
|
1
|
+
const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_types_plugin = require('../types/plugin.cjs');
|
|
3
|
+
const require_join_paths = require('../node_modules/.pnpm/@stryke_path@0.26.4/node_modules/@stryke/path/dist/join-paths.cjs');
|
|
4
|
+
const require_helpers_reflect = require('./reflect.cjs');
|
|
5
|
+
let __powerlines_deepkit_vendor_type = require("@powerlines/deepkit/vendor/type");
|
|
6
|
+
let powerlines_types_context = require("powerlines/types/context");
|
|
7
|
+
let __powerlines_deepkit_capnp = require("@powerlines/deepkit/capnp");
|
|
8
|
+
let __powerlines_deepkit_resolve_reflections = require("@powerlines/deepkit/resolve-reflections");
|
|
9
|
+
let __powerlines_deepkit_schemas_reflection = require("@powerlines/deepkit/schemas/reflection");
|
|
10
|
+
let __stryke_capnp = require("@stryke/capnp");
|
|
11
|
+
__stryke_capnp = require_rolldown_runtime.__toESM(__stryke_capnp);
|
|
12
|
+
let __stryke_fs_buffer = require("@stryke/fs/buffer");
|
|
13
|
+
let __stryke_type_checks_is_empty_object = require("@stryke/type-checks/is-empty-object");
|
|
14
|
+
let node_fs = require("node:fs");
|
|
5
15
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
//#region src/helpers/persistence.ts
|
|
17
|
+
/**
|
|
18
|
+
* Resolves the runtime type definition file for the environment variables.
|
|
19
|
+
*
|
|
20
|
+
* @param context - The plugin context.
|
|
21
|
+
* @returns The runtime type definition file for the environment variables.
|
|
22
|
+
*/
|
|
23
|
+
async function resolveRuntimeTypeFile(context) {
|
|
24
|
+
const resolved = await context.fs.resolve("@powerlines/plugin-env/types/runtime");
|
|
25
|
+
if (!resolved) throw new Error(`Failed to resolve the runtime type definition file for the environment variables. Please ensure that the "@powerlines/plugin-env" package is installed.`);
|
|
26
|
+
return resolved;
|
|
27
|
+
}
|
|
28
|
+
resolveRuntimeTypeFile.__type = [
|
|
29
|
+
() => powerlines_types_context.__ΩUnresolvedContext,
|
|
30
|
+
() => require_types_plugin.__ΩEnvPluginResolvedConfig,
|
|
31
|
+
"context",
|
|
32
|
+
"resolveRuntimeTypeFile",
|
|
33
|
+
"Resolves the runtime type definition file for the environment variables.",
|
|
34
|
+
"Pn\"o!\"2#&`/$?%"
|
|
35
|
+
];
|
|
36
|
+
/**
|
|
37
|
+
* Gets the default type definition for the environment variables.
|
|
38
|
+
*
|
|
39
|
+
* @param context - The plugin context.
|
|
40
|
+
* @returns The default type definition for the environment variables.
|
|
41
|
+
*/
|
|
42
|
+
async function getEnvDefaultTypeDefinition(context) {
|
|
43
|
+
return {
|
|
44
|
+
file: await resolveRuntimeTypeFile(context),
|
|
45
|
+
name: "EnvInterface"
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
getEnvDefaultTypeDefinition.__type = [
|
|
49
|
+
() => powerlines_types_context.__ΩUnresolvedContext,
|
|
50
|
+
() => require_types_plugin.__ΩEnvPluginResolvedConfig,
|
|
51
|
+
"context",
|
|
52
|
+
"getEnvDefaultTypeDefinition",
|
|
53
|
+
"Gets the default type definition for the environment variables.",
|
|
54
|
+
"Pn\"o!\"2#!`/$?%"
|
|
55
|
+
];
|
|
56
|
+
/** Gets the default type definition for the environment secrets.
|
|
57
|
+
*
|
|
58
|
+
* @param context - The plugin context.
|
|
59
|
+
* @returns The default type definition for the environment secrets.
|
|
60
|
+
*/
|
|
61
|
+
async function getSecretsDefaultTypeDefinition(context) {
|
|
62
|
+
return {
|
|
63
|
+
file: await resolveRuntimeTypeFile(context),
|
|
64
|
+
name: "SecretsInterface"
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
getSecretsDefaultTypeDefinition.__type = [
|
|
68
|
+
() => powerlines_types_context.__ΩUnresolvedContext,
|
|
69
|
+
() => require_types_plugin.__ΩEnvPluginResolvedConfig,
|
|
70
|
+
"context",
|
|
71
|
+
"getSecretsDefaultTypeDefinition",
|
|
72
|
+
"Pn\"o!\"2#!`/$"
|
|
73
|
+
];
|
|
74
|
+
/**
|
|
75
|
+
* Gets the path to the environment type reflections.
|
|
76
|
+
*
|
|
77
|
+
* @param context - The plugin context.
|
|
78
|
+
* @param name - The name of the type reflections.
|
|
79
|
+
* @returns The path to the environment type reflections.
|
|
80
|
+
*/
|
|
81
|
+
function getEnvTypeReflectionsPath(context, name = "env") {
|
|
82
|
+
return require_join_paths.joinPaths((0, __powerlines_deepkit_resolve_reflections.getReflectionsPath)(context), "env", `${name}-types.bin`);
|
|
83
|
+
}
|
|
84
|
+
getEnvTypeReflectionsPath.__type = [
|
|
85
|
+
() => powerlines_types_context.__ΩContext,
|
|
86
|
+
() => require_types_plugin.__ΩEnvPluginResolvedConfig,
|
|
87
|
+
"context",
|
|
88
|
+
() => require_types_plugin.__ΩEnvType,
|
|
89
|
+
"name",
|
|
90
|
+
() => "env",
|
|
91
|
+
"getEnvTypeReflectionsPath",
|
|
92
|
+
"Gets the path to the environment type reflections.",
|
|
93
|
+
"Pn\"o!\"2#n$2%>&&/'?("
|
|
94
|
+
];
|
|
95
|
+
/**
|
|
96
|
+
* Reads the environment type reflection from the file system.
|
|
97
|
+
*
|
|
98
|
+
* @param context - The plugin context.
|
|
99
|
+
* @param name - The name of the type reflections.
|
|
100
|
+
* @returns The environment type reflection.
|
|
101
|
+
*/
|
|
102
|
+
async function readEnvTypeReflection(context, name = "env") {
|
|
103
|
+
const filePath = getEnvTypeReflectionsPath(context, name);
|
|
104
|
+
if (!(0, node_fs.existsSync)(filePath)) {
|
|
105
|
+
if (!context.env.types.env || (0, __stryke_type_checks_is_empty_object.isEmptyObject)(context.env.types.env)) {
|
|
106
|
+
const reflection$1 = require_helpers_reflect.createEnvReflection(context);
|
|
107
|
+
const message = new __stryke_capnp.Message();
|
|
108
|
+
reflection$1.messageRoot = message.initRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes);
|
|
109
|
+
reflection$1.dataBuffer = message.toArrayBuffer();
|
|
110
|
+
context.env.types.env = reflection$1;
|
|
111
|
+
await writeEnvTypeReflection(context, context.env.types.env, name);
|
|
112
|
+
}
|
|
113
|
+
return context.env.types.env;
|
|
114
|
+
}
|
|
115
|
+
const buffer = await (0, __stryke_fs_buffer.readFileBuffer)(filePath);
|
|
116
|
+
const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes);
|
|
117
|
+
const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)((0, __powerlines_deepkit_capnp.convertFromCapnp)(messageRoot.types)));
|
|
118
|
+
context.env.types[name] = reflection;
|
|
119
|
+
context.env.types[name].messageRoot = messageRoot;
|
|
120
|
+
context.env.types[name].dataBuffer = buffer;
|
|
121
|
+
return reflection;
|
|
122
|
+
}
|
|
123
|
+
readEnvTypeReflection.__type = [
|
|
124
|
+
() => require_types_plugin.__ΩEnvPluginContext,
|
|
125
|
+
"context",
|
|
126
|
+
() => require_types_plugin.__ΩEnvType,
|
|
127
|
+
"name",
|
|
128
|
+
() => "env",
|
|
129
|
+
() => __powerlines_deepkit_vendor_type.ReflectionClass,
|
|
130
|
+
"readEnvTypeReflection",
|
|
131
|
+
"Reads the environment type reflection from the file system.",
|
|
132
|
+
"Pn!2\"n#2$>%P\"7&`/'?("
|
|
133
|
+
];
|
|
134
|
+
/**
|
|
135
|
+
* Writes the environment type reflection to the file system.
|
|
136
|
+
*
|
|
137
|
+
* @param context - The plugin context.
|
|
138
|
+
* @param reflection - The environment type reflection to write.
|
|
139
|
+
* @param name - The name of the type reflections.
|
|
140
|
+
*/
|
|
141
|
+
async function writeEnvTypeReflection(context, reflection, name = "env") {
|
|
142
|
+
const serialized = reflection.serializeType();
|
|
143
|
+
const message = new __stryke_capnp.Message();
|
|
144
|
+
(0, __powerlines_deepkit_capnp.convertToCapnp)(serialized, message.initRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes)._initTypes(serialized.length));
|
|
145
|
+
await (0, __stryke_fs_buffer.writeFileBuffer)(getEnvTypeReflectionsPath(context, name), message.toArrayBuffer());
|
|
146
|
+
}
|
|
147
|
+
writeEnvTypeReflection.__type = [
|
|
148
|
+
() => require_types_plugin.__ΩEnvPluginContext,
|
|
149
|
+
"context",
|
|
150
|
+
() => __powerlines_deepkit_vendor_type.ReflectionClass,
|
|
151
|
+
"reflection",
|
|
152
|
+
() => require_types_plugin.__ΩEnvType,
|
|
153
|
+
"name",
|
|
154
|
+
() => "env",
|
|
155
|
+
"writeEnvTypeReflection",
|
|
156
|
+
"Writes the environment type reflection to the file system.",
|
|
157
|
+
"Pn!2\"P\"7#2$n%2&>'\"/(?)"
|
|
158
|
+
];
|
|
159
|
+
function getEnvReflectionsPath(context, name) {
|
|
160
|
+
return require_join_paths.joinPaths((0, __powerlines_deepkit_resolve_reflections.getReflectionsPath)(context), "env", `${name}.bin`);
|
|
161
|
+
}
|
|
162
|
+
getEnvReflectionsPath.__type = [
|
|
163
|
+
() => require_types_plugin.__ΩEnvPluginContext,
|
|
164
|
+
"context",
|
|
165
|
+
() => require_types_plugin.__ΩEnvType,
|
|
166
|
+
"name",
|
|
167
|
+
"getEnvReflectionsPath",
|
|
168
|
+
"Pn!2\"n#2$&/%"
|
|
169
|
+
];
|
|
170
|
+
/**
|
|
171
|
+
* Reads the environment reflection data from the file system.
|
|
172
|
+
*
|
|
173
|
+
* @param context - The plugin context.
|
|
174
|
+
* @returns The environment reflection data.
|
|
175
|
+
*/
|
|
176
|
+
async function readEnvReflection(context) {
|
|
177
|
+
const filePath = getEnvReflectionsPath(context, "env");
|
|
178
|
+
if (!(0, node_fs.existsSync)(filePath)) {
|
|
179
|
+
if (!context.env.types.env) context.env.types.env = await readEnvTypeReflection(context, "env");
|
|
180
|
+
if (!context.env.used.env || (0, __stryke_type_checks_is_empty_object.isEmptyObject)(context.env.used.env)) {
|
|
181
|
+
const reflection$1 = require_helpers_reflect.createEnvReflection(context, {
|
|
182
|
+
type: {
|
|
183
|
+
kind: __powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral,
|
|
184
|
+
typeName: "Env",
|
|
185
|
+
description: `An object containing the environment configuration parameters that are used (at least once) by the ${context.config.name ? `${context.config.name} application` : "application"}.`,
|
|
186
|
+
types: []
|
|
187
|
+
},
|
|
188
|
+
superReflection: context.env.types.env
|
|
189
|
+
});
|
|
190
|
+
reflection$1.name = "Env";
|
|
191
|
+
const message = new __stryke_capnp.Message();
|
|
192
|
+
reflection$1.messageRoot = message.initRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes);
|
|
193
|
+
reflection$1.dataBuffer = message.toArrayBuffer();
|
|
194
|
+
context.env.used.env = reflection$1;
|
|
195
|
+
await writeEnvReflection(context, context.env.used.env, "env");
|
|
196
|
+
}
|
|
197
|
+
return context.env.used.env;
|
|
198
|
+
}
|
|
199
|
+
const buffer = await (0, __stryke_fs_buffer.readFileBuffer)(filePath);
|
|
200
|
+
const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes);
|
|
201
|
+
const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)((0, __powerlines_deepkit_capnp.convertFromCapnp)(messageRoot.types)));
|
|
202
|
+
context.env.used.env = reflection;
|
|
203
|
+
context.env.used.env.messageRoot = messageRoot;
|
|
204
|
+
context.env.used.env.dataBuffer = buffer;
|
|
205
|
+
return reflection;
|
|
206
|
+
}
|
|
207
|
+
readEnvReflection.__type = [
|
|
208
|
+
() => require_types_plugin.__ΩEnvPluginContext,
|
|
209
|
+
"context",
|
|
210
|
+
() => __powerlines_deepkit_vendor_type.ReflectionClass,
|
|
211
|
+
"readEnvReflection",
|
|
212
|
+
"Reads the environment reflection data from the file system.",
|
|
213
|
+
"Pn!2\"P\"7#`/$?%"
|
|
214
|
+
];
|
|
215
|
+
/**
|
|
216
|
+
* Reads the secret environment reflection data from the file system.
|
|
217
|
+
*
|
|
218
|
+
* @param context - The plugin context.
|
|
219
|
+
* @returns The environment reflection data.
|
|
220
|
+
*/
|
|
221
|
+
async function readSecretsReflection(context) {
|
|
222
|
+
const filePath = getEnvReflectionsPath(context, "secrets");
|
|
223
|
+
if (!(0, node_fs.existsSync)(filePath)) {
|
|
224
|
+
if (!context.env.types.secrets) context.env.types.secrets = await readEnvTypeReflection(context, "secrets");
|
|
225
|
+
if (!context.env.used.secrets || (0, __stryke_type_checks_is_empty_object.isEmptyObject)(context.env.used.secrets)) {
|
|
226
|
+
const reflection$1 = require_helpers_reflect.createEnvReflection(context, {
|
|
227
|
+
type: {
|
|
228
|
+
kind: __powerlines_deepkit_vendor_type.ReflectionKind.objectLiteral,
|
|
229
|
+
typeName: "Secrets",
|
|
230
|
+
description: `An object containing the secret configuration parameters that are used (at least once) by the ${context.config.name ? `${context.config.name} application` : "application"}.`,
|
|
231
|
+
types: []
|
|
232
|
+
},
|
|
233
|
+
superReflection: context.env.types.secrets
|
|
234
|
+
});
|
|
235
|
+
reflection$1.name = "Secrets";
|
|
236
|
+
const message = new __stryke_capnp.Message();
|
|
237
|
+
reflection$1.messageRoot = message.initRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes);
|
|
238
|
+
reflection$1.dataBuffer = message.toArrayBuffer();
|
|
239
|
+
context.env.used.secrets = reflection$1;
|
|
240
|
+
await writeEnvReflection(context, context.env.used.secrets, "secrets");
|
|
241
|
+
}
|
|
242
|
+
return context.env.used.secrets;
|
|
243
|
+
}
|
|
244
|
+
const buffer = await (0, __stryke_fs_buffer.readFileBuffer)(filePath);
|
|
245
|
+
const messageRoot = new __stryke_capnp.Message(buffer, false).getRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes);
|
|
246
|
+
const reflection = (0, __powerlines_deepkit_vendor_type.resolveClassType)((0, __powerlines_deepkit_vendor_type.deserializeType)((0, __powerlines_deepkit_capnp.convertFromCapnp)(messageRoot.types)));
|
|
247
|
+
context.env.used.secrets = reflection;
|
|
248
|
+
context.env.used.secrets.messageRoot = messageRoot;
|
|
249
|
+
context.env.used.secrets.dataBuffer = buffer;
|
|
250
|
+
return reflection;
|
|
251
|
+
}
|
|
252
|
+
readSecretsReflection.__type = [
|
|
253
|
+
() => require_types_plugin.__ΩEnvPluginContext,
|
|
254
|
+
"context",
|
|
255
|
+
() => __powerlines_deepkit_vendor_type.ReflectionClass,
|
|
256
|
+
"readSecretsReflection",
|
|
257
|
+
"Reads the secret environment reflection data from the file system.",
|
|
258
|
+
"Pn!2\"P\"7#`/$?%"
|
|
259
|
+
];
|
|
260
|
+
/**
|
|
261
|
+
* Writes the environment reflection data to the file system.
|
|
262
|
+
*
|
|
263
|
+
* @param context - The plugin context.
|
|
264
|
+
* @param reflection - The reflection data to write.
|
|
265
|
+
* @param name - The name of the reflection (either "env" or "secrets").
|
|
266
|
+
*/
|
|
267
|
+
async function writeEnvReflection(context, reflection, name = "env") {
|
|
268
|
+
const serialized = reflection.serializeType();
|
|
269
|
+
const message = new __stryke_capnp.Message();
|
|
270
|
+
(0, __powerlines_deepkit_capnp.convertToCapnp)(serialized, message.initRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes)._initTypes(serialized.length));
|
|
271
|
+
await (0, __stryke_fs_buffer.writeFileBuffer)(getEnvReflectionsPath(context, name), message.toArrayBuffer());
|
|
272
|
+
}
|
|
273
|
+
writeEnvReflection.__type = [
|
|
274
|
+
() => require_types_plugin.__ΩEnvPluginContext,
|
|
275
|
+
"context",
|
|
276
|
+
() => __powerlines_deepkit_vendor_type.ReflectionClass,
|
|
277
|
+
"reflection",
|
|
278
|
+
() => require_types_plugin.__ΩEnvType,
|
|
279
|
+
"name",
|
|
280
|
+
() => "env",
|
|
281
|
+
"writeEnvReflection",
|
|
282
|
+
"Writes the environment reflection data to the file system.",
|
|
283
|
+
"Pn!2\"P\"7#2$n%2&>'\"/(?)"
|
|
284
|
+
];
|
|
285
|
+
/**
|
|
286
|
+
* Writes the environment reflection data to the file system.
|
|
287
|
+
*
|
|
288
|
+
* @param context - The plugin context.
|
|
289
|
+
* @param reflection - The reflection data to write.
|
|
290
|
+
* @param name - The name of the reflection (either "env" or "secrets").
|
|
291
|
+
*/
|
|
292
|
+
function writeEnvReflectionSync(context, reflection, name = "env") {
|
|
293
|
+
const serialized = reflection.serializeType();
|
|
294
|
+
const message = new __stryke_capnp.Message();
|
|
295
|
+
(0, __powerlines_deepkit_capnp.convertToCapnp)(serialized, message.initRoot(__powerlines_deepkit_schemas_reflection.SerializedTypes)._initTypes(serialized.length));
|
|
296
|
+
(0, __stryke_fs_buffer.writeFileBufferSync)(getEnvReflectionsPath(context, name), message.toArrayBuffer());
|
|
297
|
+
}
|
|
298
|
+
writeEnvReflectionSync.__type = [
|
|
299
|
+
() => require_types_plugin.__ΩEnvPluginContext,
|
|
300
|
+
"context",
|
|
301
|
+
() => __powerlines_deepkit_vendor_type.ReflectionClass,
|
|
302
|
+
"reflection",
|
|
303
|
+
() => require_types_plugin.__ΩEnvType,
|
|
304
|
+
"name",
|
|
305
|
+
() => "env",
|
|
306
|
+
"writeEnvReflectionSync",
|
|
307
|
+
"Writes the environment reflection data to the file system.",
|
|
308
|
+
"Pn!2\"P\"7#2$n%2&>'\"/(?)"
|
|
309
|
+
];
|
|
310
|
+
|
|
311
|
+
//#endregion
|
|
312
|
+
exports.getEnvDefaultTypeDefinition = getEnvDefaultTypeDefinition;
|
|
313
|
+
exports.getEnvReflectionsPath = getEnvReflectionsPath;
|
|
314
|
+
exports.getEnvTypeReflectionsPath = getEnvTypeReflectionsPath;
|
|
315
|
+
exports.getSecretsDefaultTypeDefinition = getSecretsDefaultTypeDefinition;
|
|
316
|
+
exports.readEnvReflection = readEnvReflection;
|
|
317
|
+
exports.readEnvTypeReflection = readEnvTypeReflection;
|
|
318
|
+
exports.readSecretsReflection = readSecretsReflection;
|
|
319
|
+
exports.resolveRuntimeTypeFile = resolveRuntimeTypeFile;
|
|
320
|
+
exports.writeEnvReflection = writeEnvReflection;
|
|
321
|
+
exports.writeEnvReflectionSync = writeEnvReflectionSync;
|
|
322
|
+
exports.writeEnvTypeReflection = writeEnvTypeReflection;
|
|
@@ -1,4 +1,85 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { EnvPluginContext, EnvPluginResolvedConfig, EnvType } from "../types/plugin.cjs";
|
|
2
|
+
import { TypeDefinition } from "@stryke/types/configuration";
|
|
3
|
+
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
4
|
+
import { Context, UnresolvedContext } from "powerlines/types/context";
|
|
5
|
+
|
|
6
|
+
//#region src/helpers/persistence.d.ts
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Resolves the runtime type definition file for the environment variables.
|
|
10
|
+
*
|
|
11
|
+
* @param context - The plugin context.
|
|
12
|
+
* @returns The runtime type definition file for the environment variables.
|
|
13
|
+
*/
|
|
14
|
+
declare function resolveRuntimeTypeFile(context: UnresolvedContext<EnvPluginResolvedConfig>): Promise<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Gets the default type definition for the environment variables.
|
|
17
|
+
*
|
|
18
|
+
* @param context - The plugin context.
|
|
19
|
+
* @returns The default type definition for the environment variables.
|
|
20
|
+
*/
|
|
21
|
+
declare function getEnvDefaultTypeDefinition(context: UnresolvedContext<EnvPluginResolvedConfig>): Promise<TypeDefinition>;
|
|
22
|
+
/** Gets the default type definition for the environment secrets.
|
|
23
|
+
*
|
|
24
|
+
* @param context - The plugin context.
|
|
25
|
+
* @returns The default type definition for the environment secrets.
|
|
26
|
+
*/
|
|
27
|
+
declare function getSecretsDefaultTypeDefinition(context: UnresolvedContext<EnvPluginResolvedConfig>): Promise<TypeDefinition>;
|
|
28
|
+
/**
|
|
29
|
+
* Gets the path to the environment type reflections.
|
|
30
|
+
*
|
|
31
|
+
* @param context - The plugin context.
|
|
32
|
+
* @param name - The name of the type reflections.
|
|
33
|
+
* @returns The path to the environment type reflections.
|
|
34
|
+
*/
|
|
35
|
+
declare function getEnvTypeReflectionsPath(context: Context<EnvPluginResolvedConfig>, name?: EnvType): string;
|
|
36
|
+
/**
|
|
37
|
+
* Reads the environment type reflection from the file system.
|
|
38
|
+
*
|
|
39
|
+
* @param context - The plugin context.
|
|
40
|
+
* @param name - The name of the type reflections.
|
|
41
|
+
* @returns The environment type reflection.
|
|
42
|
+
*/
|
|
43
|
+
declare function readEnvTypeReflection(context: EnvPluginContext, name?: EnvType): Promise<ReflectionClass<any>>;
|
|
44
|
+
/**
|
|
45
|
+
* Writes the environment type reflection to the file system.
|
|
46
|
+
*
|
|
47
|
+
* @param context - The plugin context.
|
|
48
|
+
* @param reflection - The environment type reflection to write.
|
|
49
|
+
* @param name - The name of the type reflections.
|
|
50
|
+
*/
|
|
51
|
+
declare function writeEnvTypeReflection(context: EnvPluginContext, reflection: ReflectionClass<any>, name?: EnvType): Promise<void>;
|
|
52
|
+
declare function getEnvReflectionsPath(context: EnvPluginContext, name: EnvType): string;
|
|
53
|
+
/**
|
|
54
|
+
* Reads the environment reflection data from the file system.
|
|
55
|
+
*
|
|
56
|
+
* @param context - The plugin context.
|
|
57
|
+
* @returns The environment reflection data.
|
|
58
|
+
*/
|
|
59
|
+
declare function readEnvReflection(context: EnvPluginContext): Promise<ReflectionClass<any>>;
|
|
60
|
+
/**
|
|
61
|
+
* Reads the secret environment reflection data from the file system.
|
|
62
|
+
*
|
|
63
|
+
* @param context - The plugin context.
|
|
64
|
+
* @returns The environment reflection data.
|
|
65
|
+
*/
|
|
66
|
+
declare function readSecretsReflection(context: EnvPluginContext): Promise<ReflectionClass<any>>;
|
|
67
|
+
/**
|
|
68
|
+
* Writes the environment reflection data to the file system.
|
|
69
|
+
*
|
|
70
|
+
* @param context - The plugin context.
|
|
71
|
+
* @param reflection - The reflection data to write.
|
|
72
|
+
* @param name - The name of the reflection (either "env" or "secrets").
|
|
73
|
+
*/
|
|
74
|
+
declare function writeEnvReflection(context: EnvPluginContext, reflection: ReflectionClass<any>, name?: EnvType): Promise<void>;
|
|
75
|
+
/**
|
|
76
|
+
* Writes the environment reflection data to the file system.
|
|
77
|
+
*
|
|
78
|
+
* @param context - The plugin context.
|
|
79
|
+
* @param reflection - The reflection data to write.
|
|
80
|
+
* @param name - The name of the reflection (either "env" or "secrets").
|
|
81
|
+
*/
|
|
82
|
+
declare function writeEnvReflectionSync(context: EnvPluginContext, reflection: ReflectionClass<any>, name?: EnvType): void;
|
|
83
|
+
//#endregion
|
|
84
|
+
export { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
|
|
85
|
+
//# sourceMappingURL=persistence.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persistence.d.cts","names":[],"sources":["../../src/helpers/persistence.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAoDA;;;;AAEU,iBAFY,sBAAA,CAEZ,OAAA,EADC,iBACD,CADmB,uBACnB,CAAA,CAAA,EAAP,OAAO,CAAA,MAAA,CAAA;AAmBV;;;;;;AAcsB,iBAdA,2BAAA,CAc+B,OAAA,EAb1C,iBAa0C,CAbxB,uBAawB,CAAA,CAAA,EAZlD,OAYkD,CAZ1C,cAY0C,CAAA;;;;;;AAgBrC,iBAhBM,+BAAA,CAgBmB,OAAA,EAf9B,iBAe8B,CAfZ,uBAeY,CAAA,CAAA,EAdtC,OAcsC,CAd9B,cAc8B,CAAA;;;;;AAczC;;;AAGW,iBAjBK,yBAAA,CAiBL,OAAA,EAhBA,OAgBA,CAhBQ,uBAgBR,CAAA,EAAA,IAAA,CAAA,EAfH,OAeG,CAAA,EAAA,MAAA;;;AAuCX;;;;;AAGuB,iBA7CD,qBAAA,CA6CC,OAAA,EA5CZ,gBA4CY,EAAA,IAAA,CAAA,EA3Cf,OA2Ce,CAAA,EA1CpB,OA0CoB,CA1CZ,eA0CY,CAAA,GAAA,CAAA,CAAA;AAevB;AAaA;;;;;AAyDA;AACW,iBAzFW,sBAAA,CAyFX,OAAA,EAxFA,gBAwFA,EAAA,UAAA,EAvFG,eAuFH,CAAA,GAAA,CAAA,EAAA,IAAA,CAAA,EAtFH,OAsFG,CAAA,EAtFY,OAsFZ,CAAA,IAAA,CAAA;AACA,iBAxEK,qBAAA,CAwEL,OAAA,EAvEA,gBAuEA,EAAA,IAAA,EAtEH,OAsEG,CAAA,EAAA,MAAA;;;AA2DX;;;;AAGuB,iBAzHD,iBAAA,CAyHC,OAAA,EAxHZ,gBAwHY,CAAA,EAvHpB,OAuHoB,CAvHZ,eAuHY,CAAA,GAAA,CAAA,CAAA;;AAsBvB;;;;;iBAtFsB,qBAAA,UACX,mBACR,QAAQ;;;;;;;;iBA2DW,kBAAA,UACX,8BACG,6BACN,UAAe;;;;;;;;iBAsBP,sBAAA,UACL,8BACG,6BACN"}
|
|
@@ -1,4 +1,85 @@
|
|
|
1
|
-
import "../
|
|
2
|
-
import "
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { EnvPluginContext, EnvPluginResolvedConfig, EnvType } from "../types/plugin.mjs";
|
|
2
|
+
import { ReflectionClass } from "@powerlines/deepkit/vendor/type";
|
|
3
|
+
import { Context, UnresolvedContext } from "powerlines/types/context";
|
|
4
|
+
import { TypeDefinition } from "@stryke/types/configuration";
|
|
5
|
+
|
|
6
|
+
//#region src/helpers/persistence.d.ts
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Resolves the runtime type definition file for the environment variables.
|
|
10
|
+
*
|
|
11
|
+
* @param context - The plugin context.
|
|
12
|
+
* @returns The runtime type definition file for the environment variables.
|
|
13
|
+
*/
|
|
14
|
+
declare function resolveRuntimeTypeFile(context: UnresolvedContext<EnvPluginResolvedConfig>): Promise<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Gets the default type definition for the environment variables.
|
|
17
|
+
*
|
|
18
|
+
* @param context - The plugin context.
|
|
19
|
+
* @returns The default type definition for the environment variables.
|
|
20
|
+
*/
|
|
21
|
+
declare function getEnvDefaultTypeDefinition(context: UnresolvedContext<EnvPluginResolvedConfig>): Promise<TypeDefinition>;
|
|
22
|
+
/** Gets the default type definition for the environment secrets.
|
|
23
|
+
*
|
|
24
|
+
* @param context - The plugin context.
|
|
25
|
+
* @returns The default type definition for the environment secrets.
|
|
26
|
+
*/
|
|
27
|
+
declare function getSecretsDefaultTypeDefinition(context: UnresolvedContext<EnvPluginResolvedConfig>): Promise<TypeDefinition>;
|
|
28
|
+
/**
|
|
29
|
+
* Gets the path to the environment type reflections.
|
|
30
|
+
*
|
|
31
|
+
* @param context - The plugin context.
|
|
32
|
+
* @param name - The name of the type reflections.
|
|
33
|
+
* @returns The path to the environment type reflections.
|
|
34
|
+
*/
|
|
35
|
+
declare function getEnvTypeReflectionsPath(context: Context<EnvPluginResolvedConfig>, name?: EnvType): string;
|
|
36
|
+
/**
|
|
37
|
+
* Reads the environment type reflection from the file system.
|
|
38
|
+
*
|
|
39
|
+
* @param context - The plugin context.
|
|
40
|
+
* @param name - The name of the type reflections.
|
|
41
|
+
* @returns The environment type reflection.
|
|
42
|
+
*/
|
|
43
|
+
declare function readEnvTypeReflection(context: EnvPluginContext, name?: EnvType): Promise<ReflectionClass<any>>;
|
|
44
|
+
/**
|
|
45
|
+
* Writes the environment type reflection to the file system.
|
|
46
|
+
*
|
|
47
|
+
* @param context - The plugin context.
|
|
48
|
+
* @param reflection - The environment type reflection to write.
|
|
49
|
+
* @param name - The name of the type reflections.
|
|
50
|
+
*/
|
|
51
|
+
declare function writeEnvTypeReflection(context: EnvPluginContext, reflection: ReflectionClass<any>, name?: EnvType): Promise<void>;
|
|
52
|
+
declare function getEnvReflectionsPath(context: EnvPluginContext, name: EnvType): string;
|
|
53
|
+
/**
|
|
54
|
+
* Reads the environment reflection data from the file system.
|
|
55
|
+
*
|
|
56
|
+
* @param context - The plugin context.
|
|
57
|
+
* @returns The environment reflection data.
|
|
58
|
+
*/
|
|
59
|
+
declare function readEnvReflection(context: EnvPluginContext): Promise<ReflectionClass<any>>;
|
|
60
|
+
/**
|
|
61
|
+
* Reads the secret environment reflection data from the file system.
|
|
62
|
+
*
|
|
63
|
+
* @param context - The plugin context.
|
|
64
|
+
* @returns The environment reflection data.
|
|
65
|
+
*/
|
|
66
|
+
declare function readSecretsReflection(context: EnvPluginContext): Promise<ReflectionClass<any>>;
|
|
67
|
+
/**
|
|
68
|
+
* Writes the environment reflection data to the file system.
|
|
69
|
+
*
|
|
70
|
+
* @param context - The plugin context.
|
|
71
|
+
* @param reflection - The reflection data to write.
|
|
72
|
+
* @param name - The name of the reflection (either "env" or "secrets").
|
|
73
|
+
*/
|
|
74
|
+
declare function writeEnvReflection(context: EnvPluginContext, reflection: ReflectionClass<any>, name?: EnvType): Promise<void>;
|
|
75
|
+
/**
|
|
76
|
+
* Writes the environment reflection data to the file system.
|
|
77
|
+
*
|
|
78
|
+
* @param context - The plugin context.
|
|
79
|
+
* @param reflection - The reflection data to write.
|
|
80
|
+
* @param name - The name of the reflection (either "env" or "secrets").
|
|
81
|
+
*/
|
|
82
|
+
declare function writeEnvReflectionSync(context: EnvPluginContext, reflection: ReflectionClass<any>, name?: EnvType): void;
|
|
83
|
+
//#endregion
|
|
84
|
+
export { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectionsPath, getSecretsDefaultTypeDefinition, readEnvReflection, readEnvTypeReflection, readSecretsReflection, resolveRuntimeTypeFile, writeEnvReflection, writeEnvReflectionSync, writeEnvTypeReflection };
|
|
85
|
+
//# sourceMappingURL=persistence.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"persistence.d.mts","names":[],"sources":["../../src/helpers/persistence.ts"],"sourcesContent":[],"mappings":";;;;;;;;;AAoDA;;;;AAEU,iBAFY,sBAAA,CAEZ,OAAA,EADC,iBACD,CADmB,uBACnB,CAAA,CAAA,EAAP,OAAO,CAAA,MAAA,CAAA;AAmBV;;;;;;AAcsB,iBAdA,2BAAA,CAc+B,OAAA,EAb1C,iBAa0C,CAbxB,uBAawB,CAAA,CAAA,EAZlD,OAYkD,CAZ1C,cAY0C,CAAA;;;;;;AAgBrC,iBAhBM,+BAAA,CAgBmB,OAAA,EAf9B,iBAe8B,CAfZ,uBAeY,CAAA,CAAA,EAdtC,OAcsC,CAd9B,cAc8B,CAAA;;;;;AAczC;;;AAGW,iBAjBK,yBAAA,CAiBL,OAAA,EAhBA,OAgBA,CAhBQ,uBAgBR,CAAA,EAAA,IAAA,CAAA,EAfH,OAeG,CAAA,EAAA,MAAA;;;AAuCX;;;;;AAGuB,iBA7CD,qBAAA,CA6CC,OAAA,EA5CZ,gBA4CY,EAAA,IAAA,CAAA,EA3Cf,OA2Ce,CAAA,EA1CpB,OA0CoB,CA1CZ,eA0CY,CAAA,GAAA,CAAA,CAAA;AAevB;AAaA;;;;;AAyDA;AACW,iBAzFW,sBAAA,CAyFX,OAAA,EAxFA,gBAwFA,EAAA,UAAA,EAvFG,eAuFH,CAAA,GAAA,CAAA,EAAA,IAAA,CAAA,EAtFH,OAsFG,CAAA,EAtFY,OAsFZ,CAAA,IAAA,CAAA;AACA,iBAxEK,qBAAA,CAwEL,OAAA,EAvEA,gBAuEA,EAAA,IAAA,EAtEH,OAsEG,CAAA,EAAA,MAAA;;;AA2DX;;;;AAGuB,iBAzHD,iBAAA,CAyHC,OAAA,EAxHZ,gBAwHY,CAAA,EAvHpB,OAuHoB,CAvHZ,eAuHY,CAAA,GAAA,CAAA,CAAA;;AAsBvB;;;;;iBAtFsB,qBAAA,UACX,mBACR,QAAQ;;;;;;;;iBA2DW,kBAAA,UACX,8BACG,6BACN,UAAe;;;;;;;;iBAsBP,sBAAA,UACL,8BACG,6BACN"}
|