@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
|
@@ -0,0 +1,288 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_package$1 = require('../package.cjs');
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.js
|
|
5
|
+
var require_main = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports, module) => {
|
|
6
|
+
const fs = require("node:fs");
|
|
7
|
+
const path = require("node:path");
|
|
8
|
+
const os = require("node:os");
|
|
9
|
+
const crypto = require("node:crypto");
|
|
10
|
+
const version = require_package$1.default.version;
|
|
11
|
+
const TIPS = [
|
|
12
|
+
"🔐 encrypt with Dotenvx: https://dotenvx.com",
|
|
13
|
+
"🔐 prevent committing .env to code: https://dotenvx.com/precommit",
|
|
14
|
+
"🔐 prevent building .env in docker: https://dotenvx.com/prebuild",
|
|
15
|
+
"📡 add observability to secrets: https://dotenvx.com/ops",
|
|
16
|
+
"👥 sync secrets across teammates & machines: https://dotenvx.com/ops",
|
|
17
|
+
"🗂️ backup and recover secrets: https://dotenvx.com/ops",
|
|
18
|
+
"✅ audit secrets and track compliance: https://dotenvx.com/ops",
|
|
19
|
+
"🔄 add secrets lifecycle management: https://dotenvx.com/ops",
|
|
20
|
+
"🔑 add access controls to secrets: https://dotenvx.com/ops",
|
|
21
|
+
"🛠️ run anywhere with `dotenvx run -- yourcommand`",
|
|
22
|
+
"⚙️ specify custom .env file path with { path: '/custom/path/.env' }",
|
|
23
|
+
"⚙️ enable debug logging with { debug: true }",
|
|
24
|
+
"⚙️ override existing env vars with { override: true }",
|
|
25
|
+
"⚙️ suppress all logs with { quiet: true }",
|
|
26
|
+
"⚙️ write to custom object with { processEnv: myObject }",
|
|
27
|
+
"⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"
|
|
28
|
+
];
|
|
29
|
+
function _getRandomTip() {
|
|
30
|
+
return TIPS[Math.floor(Math.random() * TIPS.length)];
|
|
31
|
+
}
|
|
32
|
+
function parseBoolean(value) {
|
|
33
|
+
if (typeof value === "string") return ![
|
|
34
|
+
"false",
|
|
35
|
+
"0",
|
|
36
|
+
"no",
|
|
37
|
+
"off",
|
|
38
|
+
""
|
|
39
|
+
].includes(value.toLowerCase());
|
|
40
|
+
return Boolean(value);
|
|
41
|
+
}
|
|
42
|
+
function supportsAnsi() {
|
|
43
|
+
return process.stdout.isTTY;
|
|
44
|
+
}
|
|
45
|
+
function dim(text) {
|
|
46
|
+
return supportsAnsi() ? `\x1b[2m${text}\x1b[0m` : text;
|
|
47
|
+
}
|
|
48
|
+
const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
|
|
49
|
+
function parse(src) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
let lines = src.toString();
|
|
52
|
+
lines = lines.replace(/\r\n?/gm, "\n");
|
|
53
|
+
let match;
|
|
54
|
+
while ((match = LINE.exec(lines)) != null) {
|
|
55
|
+
const key = match[1];
|
|
56
|
+
let value = match[2] || "";
|
|
57
|
+
value = value.trim();
|
|
58
|
+
const maybeQuote = value[0];
|
|
59
|
+
value = value.replace(/^(['"`])([\s\S]*)\1$/gm, "$2");
|
|
60
|
+
if (maybeQuote === "\"") {
|
|
61
|
+
value = value.replace(/\\n/g, "\n");
|
|
62
|
+
value = value.replace(/\\r/g, "\r");
|
|
63
|
+
}
|
|
64
|
+
obj[key] = value;
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
67
|
+
}
|
|
68
|
+
function _parseVault(options) {
|
|
69
|
+
options = options || {};
|
|
70
|
+
const vaultPath = _vaultPath(options);
|
|
71
|
+
options.path = vaultPath;
|
|
72
|
+
const result = DotenvModule.configDotenv(options);
|
|
73
|
+
if (!result.parsed) {
|
|
74
|
+
const err = /* @__PURE__ */ new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
|
75
|
+
err.code = "MISSING_DATA";
|
|
76
|
+
throw err;
|
|
77
|
+
}
|
|
78
|
+
const keys = _dotenvKey(options).split(",");
|
|
79
|
+
const length = keys.length;
|
|
80
|
+
let decrypted;
|
|
81
|
+
for (let i = 0; i < length; i++) try {
|
|
82
|
+
const attrs = _instructions(result, keys[i].trim());
|
|
83
|
+
decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
|
|
84
|
+
break;
|
|
85
|
+
} catch (error) {
|
|
86
|
+
if (i + 1 >= length) throw error;
|
|
87
|
+
}
|
|
88
|
+
return DotenvModule.parse(decrypted);
|
|
89
|
+
}
|
|
90
|
+
function _warn(message) {
|
|
91
|
+
console.error(`[dotenv@${version}][WARN] ${message}`);
|
|
92
|
+
}
|
|
93
|
+
function _debug(message) {
|
|
94
|
+
console.log(`[dotenv@${version}][DEBUG] ${message}`);
|
|
95
|
+
}
|
|
96
|
+
function _log(message) {
|
|
97
|
+
console.log(`[dotenv@${version}] ${message}`);
|
|
98
|
+
}
|
|
99
|
+
function _dotenvKey(options) {
|
|
100
|
+
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) return options.DOTENV_KEY;
|
|
101
|
+
if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) return process.env.DOTENV_KEY;
|
|
102
|
+
return "";
|
|
103
|
+
}
|
|
104
|
+
function _instructions(result, dotenvKey) {
|
|
105
|
+
let uri;
|
|
106
|
+
try {
|
|
107
|
+
uri = new URL(dotenvKey);
|
|
108
|
+
} catch (error) {
|
|
109
|
+
if (error.code === "ERR_INVALID_URL") {
|
|
110
|
+
const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
|
|
111
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
112
|
+
throw err;
|
|
113
|
+
}
|
|
114
|
+
throw error;
|
|
115
|
+
}
|
|
116
|
+
const key = uri.password;
|
|
117
|
+
if (!key) {
|
|
118
|
+
const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing key part");
|
|
119
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
120
|
+
throw err;
|
|
121
|
+
}
|
|
122
|
+
const environment = uri.searchParams.get("environment");
|
|
123
|
+
if (!environment) {
|
|
124
|
+
const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
125
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
126
|
+
throw err;
|
|
127
|
+
}
|
|
128
|
+
const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
|
|
129
|
+
const ciphertext = result.parsed[environmentKey];
|
|
130
|
+
if (!ciphertext) {
|
|
131
|
+
const err = /* @__PURE__ */ new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
|
|
132
|
+
err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
|
|
133
|
+
throw err;
|
|
134
|
+
}
|
|
135
|
+
return {
|
|
136
|
+
ciphertext,
|
|
137
|
+
key
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
function _vaultPath(options) {
|
|
141
|
+
let possibleVaultPath = null;
|
|
142
|
+
if (options && options.path && options.path.length > 0) if (Array.isArray(options.path)) {
|
|
143
|
+
for (const filepath of options.path) if (fs.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
144
|
+
} else possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
145
|
+
else possibleVaultPath = path.resolve(process.cwd(), ".env.vault");
|
|
146
|
+
if (fs.existsSync(possibleVaultPath)) return possibleVaultPath;
|
|
147
|
+
return null;
|
|
148
|
+
}
|
|
149
|
+
function _resolveHome(envPath) {
|
|
150
|
+
return envPath[0] === "~" ? path.join(os.homedir(), envPath.slice(1)) : envPath;
|
|
151
|
+
}
|
|
152
|
+
function _configVault(options) {
|
|
153
|
+
const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
|
|
154
|
+
const quiet = parseBoolean(process.env.DOTENV_CONFIG_QUIET || options && options.quiet);
|
|
155
|
+
if (debug || !quiet) _log("Loading env from encrypted .env.vault");
|
|
156
|
+
const parsed = DotenvModule._parseVault(options);
|
|
157
|
+
let processEnv = process.env;
|
|
158
|
+
if (options && options.processEnv != null) processEnv = options.processEnv;
|
|
159
|
+
DotenvModule.populate(processEnv, parsed, options);
|
|
160
|
+
return { parsed };
|
|
161
|
+
}
|
|
162
|
+
function configDotenv(options) {
|
|
163
|
+
const dotenvPath = path.resolve(process.cwd(), ".env");
|
|
164
|
+
let encoding = "utf8";
|
|
165
|
+
let processEnv = process.env;
|
|
166
|
+
if (options && options.processEnv != null) processEnv = options.processEnv;
|
|
167
|
+
let debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || options && options.debug);
|
|
168
|
+
let quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || options && options.quiet);
|
|
169
|
+
if (options && options.encoding) encoding = options.encoding;
|
|
170
|
+
else if (debug) _debug("No encoding is specified. UTF-8 is used by default");
|
|
171
|
+
let optionPaths = [dotenvPath];
|
|
172
|
+
if (options && options.path) if (!Array.isArray(options.path)) optionPaths = [_resolveHome(options.path)];
|
|
173
|
+
else {
|
|
174
|
+
optionPaths = [];
|
|
175
|
+
for (const filepath of options.path) optionPaths.push(_resolveHome(filepath));
|
|
176
|
+
}
|
|
177
|
+
let lastError;
|
|
178
|
+
const parsedAll = {};
|
|
179
|
+
for (const path$1 of optionPaths) try {
|
|
180
|
+
const parsed = DotenvModule.parse(fs.readFileSync(path$1, { encoding }));
|
|
181
|
+
DotenvModule.populate(parsedAll, parsed, options);
|
|
182
|
+
} catch (e) {
|
|
183
|
+
if (debug) _debug(`Failed to load ${path$1} ${e.message}`);
|
|
184
|
+
lastError = e;
|
|
185
|
+
}
|
|
186
|
+
const populated = DotenvModule.populate(processEnv, parsedAll, options);
|
|
187
|
+
debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || debug);
|
|
188
|
+
quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || quiet);
|
|
189
|
+
if (debug || !quiet) {
|
|
190
|
+
const keysCount = Object.keys(populated).length;
|
|
191
|
+
const shortPaths = [];
|
|
192
|
+
for (const filePath of optionPaths) try {
|
|
193
|
+
const relative = path.relative(process.cwd(), filePath);
|
|
194
|
+
shortPaths.push(relative);
|
|
195
|
+
} catch (e) {
|
|
196
|
+
if (debug) _debug(`Failed to load ${filePath} ${e.message}`);
|
|
197
|
+
lastError = e;
|
|
198
|
+
}
|
|
199
|
+
_log(`injecting env (${keysCount}) from ${shortPaths.join(",")} ${dim(`-- tip: ${_getRandomTip()}`)}`);
|
|
200
|
+
}
|
|
201
|
+
if (lastError) return {
|
|
202
|
+
parsed: parsedAll,
|
|
203
|
+
error: lastError
|
|
204
|
+
};
|
|
205
|
+
else return { parsed: parsedAll };
|
|
206
|
+
}
|
|
207
|
+
function config(options) {
|
|
208
|
+
if (_dotenvKey(options).length === 0) return DotenvModule.configDotenv(options);
|
|
209
|
+
const vaultPath = _vaultPath(options);
|
|
210
|
+
if (!vaultPath) {
|
|
211
|
+
_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
|
|
212
|
+
return DotenvModule.configDotenv(options);
|
|
213
|
+
}
|
|
214
|
+
return DotenvModule._configVault(options);
|
|
215
|
+
}
|
|
216
|
+
function decrypt(encrypted, keyStr) {
|
|
217
|
+
const key = Buffer.from(keyStr.slice(-64), "hex");
|
|
218
|
+
let ciphertext = Buffer.from(encrypted, "base64");
|
|
219
|
+
const nonce = ciphertext.subarray(0, 12);
|
|
220
|
+
const authTag = ciphertext.subarray(-16);
|
|
221
|
+
ciphertext = ciphertext.subarray(12, -16);
|
|
222
|
+
try {
|
|
223
|
+
const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
|
|
224
|
+
aesgcm.setAuthTag(authTag);
|
|
225
|
+
return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
|
|
226
|
+
} catch (error) {
|
|
227
|
+
const isRange = error instanceof RangeError;
|
|
228
|
+
const invalidKeyLength = error.message === "Invalid key length";
|
|
229
|
+
const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
|
|
230
|
+
if (isRange || invalidKeyLength) {
|
|
231
|
+
const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
|
232
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
233
|
+
throw err;
|
|
234
|
+
} else if (decryptionFailed) {
|
|
235
|
+
const err = /* @__PURE__ */ new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
|
236
|
+
err.code = "DECRYPTION_FAILED";
|
|
237
|
+
throw err;
|
|
238
|
+
} else throw error;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
function populate(processEnv, parsed, options = {}) {
|
|
242
|
+
const debug = Boolean(options && options.debug);
|
|
243
|
+
const override = Boolean(options && options.override);
|
|
244
|
+
const populated = {};
|
|
245
|
+
if (typeof parsed !== "object") {
|
|
246
|
+
const err = /* @__PURE__ */ new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
247
|
+
err.code = "OBJECT_REQUIRED";
|
|
248
|
+
throw err;
|
|
249
|
+
}
|
|
250
|
+
for (const key of Object.keys(parsed)) if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
|
|
251
|
+
if (override === true) {
|
|
252
|
+
processEnv[key] = parsed[key];
|
|
253
|
+
populated[key] = parsed[key];
|
|
254
|
+
}
|
|
255
|
+
if (debug) if (override === true) _debug(`"${key}" is already defined and WAS overwritten`);
|
|
256
|
+
else _debug(`"${key}" is already defined and was NOT overwritten`);
|
|
257
|
+
} else {
|
|
258
|
+
processEnv[key] = parsed[key];
|
|
259
|
+
populated[key] = parsed[key];
|
|
260
|
+
}
|
|
261
|
+
return populated;
|
|
262
|
+
}
|
|
263
|
+
const DotenvModule = {
|
|
264
|
+
configDotenv,
|
|
265
|
+
_configVault,
|
|
266
|
+
_parseVault,
|
|
267
|
+
config,
|
|
268
|
+
decrypt,
|
|
269
|
+
parse,
|
|
270
|
+
populate
|
|
271
|
+
};
|
|
272
|
+
module.exports.configDotenv = DotenvModule.configDotenv;
|
|
273
|
+
module.exports._configVault = DotenvModule._configVault;
|
|
274
|
+
module.exports._parseVault = DotenvModule._parseVault;
|
|
275
|
+
module.exports.config = DotenvModule.config;
|
|
276
|
+
module.exports.decrypt = DotenvModule.decrypt;
|
|
277
|
+
module.exports.parse = DotenvModule.parse;
|
|
278
|
+
module.exports.populate = DotenvModule.populate;
|
|
279
|
+
module.exports = DotenvModule;
|
|
280
|
+
}));
|
|
281
|
+
|
|
282
|
+
//#endregion
|
|
283
|
+
Object.defineProperty(exports, 'default', {
|
|
284
|
+
enumerable: true,
|
|
285
|
+
get: function () {
|
|
286
|
+
return require_main();
|
|
287
|
+
}
|
|
288
|
+
});
|
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_package } from "../package.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.js
|
|
5
|
+
var require_main = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6
|
+
const fs = __require("node:fs");
|
|
7
|
+
const path = __require("node:path");
|
|
8
|
+
const os = __require("node:os");
|
|
9
|
+
const crypto = __require("node:crypto");
|
|
10
|
+
const version = require_package().version;
|
|
11
|
+
const TIPS = [
|
|
12
|
+
"🔐 encrypt with Dotenvx: https://dotenvx.com",
|
|
13
|
+
"🔐 prevent committing .env to code: https://dotenvx.com/precommit",
|
|
14
|
+
"🔐 prevent building .env in docker: https://dotenvx.com/prebuild",
|
|
15
|
+
"📡 add observability to secrets: https://dotenvx.com/ops",
|
|
16
|
+
"👥 sync secrets across teammates & machines: https://dotenvx.com/ops",
|
|
17
|
+
"🗂️ backup and recover secrets: https://dotenvx.com/ops",
|
|
18
|
+
"✅ audit secrets and track compliance: https://dotenvx.com/ops",
|
|
19
|
+
"🔄 add secrets lifecycle management: https://dotenvx.com/ops",
|
|
20
|
+
"🔑 add access controls to secrets: https://dotenvx.com/ops",
|
|
21
|
+
"🛠️ run anywhere with `dotenvx run -- yourcommand`",
|
|
22
|
+
"⚙️ specify custom .env file path with { path: '/custom/path/.env' }",
|
|
23
|
+
"⚙️ enable debug logging with { debug: true }",
|
|
24
|
+
"⚙️ override existing env vars with { override: true }",
|
|
25
|
+
"⚙️ suppress all logs with { quiet: true }",
|
|
26
|
+
"⚙️ write to custom object with { processEnv: myObject }",
|
|
27
|
+
"⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"
|
|
28
|
+
];
|
|
29
|
+
function _getRandomTip() {
|
|
30
|
+
return TIPS[Math.floor(Math.random() * TIPS.length)];
|
|
31
|
+
}
|
|
32
|
+
function parseBoolean(value) {
|
|
33
|
+
if (typeof value === "string") return ![
|
|
34
|
+
"false",
|
|
35
|
+
"0",
|
|
36
|
+
"no",
|
|
37
|
+
"off",
|
|
38
|
+
""
|
|
39
|
+
].includes(value.toLowerCase());
|
|
40
|
+
return Boolean(value);
|
|
41
|
+
}
|
|
42
|
+
function supportsAnsi() {
|
|
43
|
+
return process.stdout.isTTY;
|
|
44
|
+
}
|
|
45
|
+
function dim(text) {
|
|
46
|
+
return supportsAnsi() ? `\x1b[2m${text}\x1b[0m` : text;
|
|
47
|
+
}
|
|
48
|
+
const LINE = /(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
|
|
49
|
+
function parse(src) {
|
|
50
|
+
const obj = {};
|
|
51
|
+
let lines = src.toString();
|
|
52
|
+
lines = lines.replace(/\r\n?/gm, "\n");
|
|
53
|
+
let match;
|
|
54
|
+
while ((match = LINE.exec(lines)) != null) {
|
|
55
|
+
const key = match[1];
|
|
56
|
+
let value = match[2] || "";
|
|
57
|
+
value = value.trim();
|
|
58
|
+
const maybeQuote = value[0];
|
|
59
|
+
value = value.replace(/^(['"`])([\s\S]*)\1$/gm, "$2");
|
|
60
|
+
if (maybeQuote === "\"") {
|
|
61
|
+
value = value.replace(/\\n/g, "\n");
|
|
62
|
+
value = value.replace(/\\r/g, "\r");
|
|
63
|
+
}
|
|
64
|
+
obj[key] = value;
|
|
65
|
+
}
|
|
66
|
+
return obj;
|
|
67
|
+
}
|
|
68
|
+
function _parseVault(options) {
|
|
69
|
+
options = options || {};
|
|
70
|
+
const vaultPath = _vaultPath(options);
|
|
71
|
+
options.path = vaultPath;
|
|
72
|
+
const result = DotenvModule.configDotenv(options);
|
|
73
|
+
if (!result.parsed) {
|
|
74
|
+
const err = /* @__PURE__ */ new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`);
|
|
75
|
+
err.code = "MISSING_DATA";
|
|
76
|
+
throw err;
|
|
77
|
+
}
|
|
78
|
+
const keys = _dotenvKey(options).split(",");
|
|
79
|
+
const length = keys.length;
|
|
80
|
+
let decrypted;
|
|
81
|
+
for (let i = 0; i < length; i++) try {
|
|
82
|
+
const attrs = _instructions(result, keys[i].trim());
|
|
83
|
+
decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
|
|
84
|
+
break;
|
|
85
|
+
} catch (error) {
|
|
86
|
+
if (i + 1 >= length) throw error;
|
|
87
|
+
}
|
|
88
|
+
return DotenvModule.parse(decrypted);
|
|
89
|
+
}
|
|
90
|
+
function _warn(message) {
|
|
91
|
+
console.error(`[dotenv@${version}][WARN] ${message}`);
|
|
92
|
+
}
|
|
93
|
+
function _debug(message) {
|
|
94
|
+
console.log(`[dotenv@${version}][DEBUG] ${message}`);
|
|
95
|
+
}
|
|
96
|
+
function _log(message) {
|
|
97
|
+
console.log(`[dotenv@${version}] ${message}`);
|
|
98
|
+
}
|
|
99
|
+
function _dotenvKey(options) {
|
|
100
|
+
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) return options.DOTENV_KEY;
|
|
101
|
+
if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) return process.env.DOTENV_KEY;
|
|
102
|
+
return "";
|
|
103
|
+
}
|
|
104
|
+
function _instructions(result, dotenvKey) {
|
|
105
|
+
let uri;
|
|
106
|
+
try {
|
|
107
|
+
uri = new URL(dotenvKey);
|
|
108
|
+
} catch (error) {
|
|
109
|
+
if (error.code === "ERR_INVALID_URL") {
|
|
110
|
+
const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");
|
|
111
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
112
|
+
throw err;
|
|
113
|
+
}
|
|
114
|
+
throw error;
|
|
115
|
+
}
|
|
116
|
+
const key = uri.password;
|
|
117
|
+
if (!key) {
|
|
118
|
+
const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing key part");
|
|
119
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
120
|
+
throw err;
|
|
121
|
+
}
|
|
122
|
+
const environment = uri.searchParams.get("environment");
|
|
123
|
+
if (!environment) {
|
|
124
|
+
const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
125
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
126
|
+
throw err;
|
|
127
|
+
}
|
|
128
|
+
const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
|
|
129
|
+
const ciphertext = result.parsed[environmentKey];
|
|
130
|
+
if (!ciphertext) {
|
|
131
|
+
const err = /* @__PURE__ */ new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`);
|
|
132
|
+
err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
|
|
133
|
+
throw err;
|
|
134
|
+
}
|
|
135
|
+
return {
|
|
136
|
+
ciphertext,
|
|
137
|
+
key
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
function _vaultPath(options) {
|
|
141
|
+
let possibleVaultPath = null;
|
|
142
|
+
if (options && options.path && options.path.length > 0) if (Array.isArray(options.path)) {
|
|
143
|
+
for (const filepath of options.path) if (fs.existsSync(filepath)) possibleVaultPath = filepath.endsWith(".vault") ? filepath : `${filepath}.vault`;
|
|
144
|
+
} else possibleVaultPath = options.path.endsWith(".vault") ? options.path : `${options.path}.vault`;
|
|
145
|
+
else possibleVaultPath = path.resolve(process.cwd(), ".env.vault");
|
|
146
|
+
if (fs.existsSync(possibleVaultPath)) return possibleVaultPath;
|
|
147
|
+
return null;
|
|
148
|
+
}
|
|
149
|
+
function _resolveHome(envPath) {
|
|
150
|
+
return envPath[0] === "~" ? path.join(os.homedir(), envPath.slice(1)) : envPath;
|
|
151
|
+
}
|
|
152
|
+
function _configVault(options) {
|
|
153
|
+
const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || options && options.debug);
|
|
154
|
+
const quiet = parseBoolean(process.env.DOTENV_CONFIG_QUIET || options && options.quiet);
|
|
155
|
+
if (debug || !quiet) _log("Loading env from encrypted .env.vault");
|
|
156
|
+
const parsed = DotenvModule._parseVault(options);
|
|
157
|
+
let processEnv = process.env;
|
|
158
|
+
if (options && options.processEnv != null) processEnv = options.processEnv;
|
|
159
|
+
DotenvModule.populate(processEnv, parsed, options);
|
|
160
|
+
return { parsed };
|
|
161
|
+
}
|
|
162
|
+
function configDotenv(options) {
|
|
163
|
+
const dotenvPath = path.resolve(process.cwd(), ".env");
|
|
164
|
+
let encoding = "utf8";
|
|
165
|
+
let processEnv = process.env;
|
|
166
|
+
if (options && options.processEnv != null) processEnv = options.processEnv;
|
|
167
|
+
let debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || options && options.debug);
|
|
168
|
+
let quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || options && options.quiet);
|
|
169
|
+
if (options && options.encoding) encoding = options.encoding;
|
|
170
|
+
else if (debug) _debug("No encoding is specified. UTF-8 is used by default");
|
|
171
|
+
let optionPaths = [dotenvPath];
|
|
172
|
+
if (options && options.path) if (!Array.isArray(options.path)) optionPaths = [_resolveHome(options.path)];
|
|
173
|
+
else {
|
|
174
|
+
optionPaths = [];
|
|
175
|
+
for (const filepath of options.path) optionPaths.push(_resolveHome(filepath));
|
|
176
|
+
}
|
|
177
|
+
let lastError;
|
|
178
|
+
const parsedAll = {};
|
|
179
|
+
for (const path$1 of optionPaths) try {
|
|
180
|
+
const parsed = DotenvModule.parse(fs.readFileSync(path$1, { encoding }));
|
|
181
|
+
DotenvModule.populate(parsedAll, parsed, options);
|
|
182
|
+
} catch (e) {
|
|
183
|
+
if (debug) _debug(`Failed to load ${path$1} ${e.message}`);
|
|
184
|
+
lastError = e;
|
|
185
|
+
}
|
|
186
|
+
const populated = DotenvModule.populate(processEnv, parsedAll, options);
|
|
187
|
+
debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || debug);
|
|
188
|
+
quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || quiet);
|
|
189
|
+
if (debug || !quiet) {
|
|
190
|
+
const keysCount = Object.keys(populated).length;
|
|
191
|
+
const shortPaths = [];
|
|
192
|
+
for (const filePath of optionPaths) try {
|
|
193
|
+
const relative = path.relative(process.cwd(), filePath);
|
|
194
|
+
shortPaths.push(relative);
|
|
195
|
+
} catch (e) {
|
|
196
|
+
if (debug) _debug(`Failed to load ${filePath} ${e.message}`);
|
|
197
|
+
lastError = e;
|
|
198
|
+
}
|
|
199
|
+
_log(`injecting env (${keysCount}) from ${shortPaths.join(",")} ${dim(`-- tip: ${_getRandomTip()}`)}`);
|
|
200
|
+
}
|
|
201
|
+
if (lastError) return {
|
|
202
|
+
parsed: parsedAll,
|
|
203
|
+
error: lastError
|
|
204
|
+
};
|
|
205
|
+
else return { parsed: parsedAll };
|
|
206
|
+
}
|
|
207
|
+
function config(options) {
|
|
208
|
+
if (_dotenvKey(options).length === 0) return DotenvModule.configDotenv(options);
|
|
209
|
+
const vaultPath = _vaultPath(options);
|
|
210
|
+
if (!vaultPath) {
|
|
211
|
+
_warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`);
|
|
212
|
+
return DotenvModule.configDotenv(options);
|
|
213
|
+
}
|
|
214
|
+
return DotenvModule._configVault(options);
|
|
215
|
+
}
|
|
216
|
+
function decrypt(encrypted, keyStr) {
|
|
217
|
+
const key = Buffer.from(keyStr.slice(-64), "hex");
|
|
218
|
+
let ciphertext = Buffer.from(encrypted, "base64");
|
|
219
|
+
const nonce = ciphertext.subarray(0, 12);
|
|
220
|
+
const authTag = ciphertext.subarray(-16);
|
|
221
|
+
ciphertext = ciphertext.subarray(12, -16);
|
|
222
|
+
try {
|
|
223
|
+
const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
|
|
224
|
+
aesgcm.setAuthTag(authTag);
|
|
225
|
+
return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
|
|
226
|
+
} catch (error) {
|
|
227
|
+
const isRange = error instanceof RangeError;
|
|
228
|
+
const invalidKeyLength = error.message === "Invalid key length";
|
|
229
|
+
const decryptionFailed = error.message === "Unsupported state or unable to authenticate data";
|
|
230
|
+
if (isRange || invalidKeyLength) {
|
|
231
|
+
const err = /* @__PURE__ */ new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");
|
|
232
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
233
|
+
throw err;
|
|
234
|
+
} else if (decryptionFailed) {
|
|
235
|
+
const err = /* @__PURE__ */ new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");
|
|
236
|
+
err.code = "DECRYPTION_FAILED";
|
|
237
|
+
throw err;
|
|
238
|
+
} else throw error;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
function populate(processEnv, parsed, options = {}) {
|
|
242
|
+
const debug = Boolean(options && options.debug);
|
|
243
|
+
const override = Boolean(options && options.override);
|
|
244
|
+
const populated = {};
|
|
245
|
+
if (typeof parsed !== "object") {
|
|
246
|
+
const err = /* @__PURE__ */ new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");
|
|
247
|
+
err.code = "OBJECT_REQUIRED";
|
|
248
|
+
throw err;
|
|
249
|
+
}
|
|
250
|
+
for (const key of Object.keys(parsed)) if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
|
|
251
|
+
if (override === true) {
|
|
252
|
+
processEnv[key] = parsed[key];
|
|
253
|
+
populated[key] = parsed[key];
|
|
254
|
+
}
|
|
255
|
+
if (debug) if (override === true) _debug(`"${key}" is already defined and WAS overwritten`);
|
|
256
|
+
else _debug(`"${key}" is already defined and was NOT overwritten`);
|
|
257
|
+
} else {
|
|
258
|
+
processEnv[key] = parsed[key];
|
|
259
|
+
populated[key] = parsed[key];
|
|
260
|
+
}
|
|
261
|
+
return populated;
|
|
262
|
+
}
|
|
263
|
+
const DotenvModule = {
|
|
264
|
+
configDotenv,
|
|
265
|
+
_configVault,
|
|
266
|
+
_parseVault,
|
|
267
|
+
config,
|
|
268
|
+
decrypt,
|
|
269
|
+
parse,
|
|
270
|
+
populate
|
|
271
|
+
};
|
|
272
|
+
module.exports.configDotenv = DotenvModule.configDotenv;
|
|
273
|
+
module.exports._configVault = DotenvModule._configVault;
|
|
274
|
+
module.exports._parseVault = DotenvModule._parseVault;
|
|
275
|
+
module.exports.config = DotenvModule.config;
|
|
276
|
+
module.exports.decrypt = DotenvModule.decrypt;
|
|
277
|
+
module.exports.parse = DotenvModule.parse;
|
|
278
|
+
module.exports.populate = DotenvModule.populate;
|
|
279
|
+
module.exports = DotenvModule;
|
|
280
|
+
}));
|
|
281
|
+
|
|
282
|
+
//#endregion
|
|
283
|
+
export default require_main();
|
|
284
|
+
|
|
285
|
+
export { require_main };
|
|
286
|
+
//# sourceMappingURL=main.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"main.mjs","names":["path"],"sources":["../../../../../../../../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.js"],"sourcesContent":["const fs = require('fs')\nconst path = require('path')\nconst os = require('os')\nconst crypto = require('crypto')\nconst packageJson = require('../package.json')\n\nconst version = packageJson.version\n\n// Array of tips to display randomly\nconst TIPS = [\n '🔐 encrypt with Dotenvx: https://dotenvx.com',\n '🔐 prevent committing .env to code: https://dotenvx.com/precommit',\n '🔐 prevent building .env in docker: https://dotenvx.com/prebuild',\n '📡 add observability to secrets: https://dotenvx.com/ops',\n '👥 sync secrets across teammates & machines: https://dotenvx.com/ops',\n '🗂️ backup and recover secrets: https://dotenvx.com/ops',\n '✅ audit secrets and track compliance: https://dotenvx.com/ops',\n '🔄 add secrets lifecycle management: https://dotenvx.com/ops',\n '🔑 add access controls to secrets: https://dotenvx.com/ops',\n '🛠️ run anywhere with `dotenvx run -- yourcommand`',\n '⚙️ specify custom .env file path with { path: \\'/custom/path/.env\\' }',\n '⚙️ enable debug logging with { debug: true }',\n '⚙️ override existing env vars with { override: true }',\n '⚙️ suppress all logs with { quiet: true }',\n '⚙️ write to custom object with { processEnv: myObject }',\n '⚙️ load multiple .env files with { path: [\\'.env.local\\', \\'.env\\'] }'\n]\n\n// Get a random tip from the tips array\nfunction _getRandomTip () {\n return TIPS[Math.floor(Math.random() * TIPS.length)]\n}\n\nfunction parseBoolean (value) {\n if (typeof value === 'string') {\n return !['false', '0', 'no', 'off', ''].includes(value.toLowerCase())\n }\n return Boolean(value)\n}\n\nfunction supportsAnsi () {\n return process.stdout.isTTY // && process.env.TERM !== 'dumb'\n}\n\nfunction dim (text) {\n return supportsAnsi() ? `\\x1b[2m${text}\\x1b[0m` : text\n}\n\nconst LINE = /(?:^|^)\\s*(?:export\\s+)?([\\w.-]+)(?:\\s*=\\s*?|:\\s+?)(\\s*'(?:\\\\'|[^'])*'|\\s*\"(?:\\\\\"|[^\"])*\"|\\s*`(?:\\\\`|[^`])*`|[^#\\r\\n]+)?\\s*(?:#.*)?(?:$|$)/mg\n\n// Parse src into an Object\nfunction parse (src) {\n const obj = {}\n\n // Convert buffer to string\n let lines = src.toString()\n\n // Convert line breaks to same format\n lines = lines.replace(/\\r\\n?/mg, '\\n')\n\n let match\n while ((match = LINE.exec(lines)) != null) {\n const key = match[1]\n\n // Default undefined or null to empty string\n let value = (match[2] || '')\n\n // Remove whitespace\n value = value.trim()\n\n // Check if double quoted\n const maybeQuote = value[0]\n\n // Remove surrounding quotes\n value = value.replace(/^(['\"`])([\\s\\S]*)\\1$/mg, '$2')\n\n // Expand newlines if double quoted\n if (maybeQuote === '\"') {\n value = value.replace(/\\\\n/g, '\\n')\n value = value.replace(/\\\\r/g, '\\r')\n }\n\n // Add to object\n obj[key] = value\n }\n\n return obj\n}\n\nfunction _parseVault (options) {\n options = options || {}\n\n const vaultPath = _vaultPath(options)\n options.path = vaultPath // parse .env.vault\n const result = DotenvModule.configDotenv(options)\n if (!result.parsed) {\n const err = new Error(`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`)\n err.code = 'MISSING_DATA'\n throw err\n }\n\n // handle scenario for comma separated keys - for use with key rotation\n // example: DOTENV_KEY=\"dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=prod,dotenv://:key_7890@dotenvx.com/vault/.env.vault?environment=prod\"\n const keys = _dotenvKey(options).split(',')\n const length = keys.length\n\n let decrypted\n for (let i = 0; i < length; i++) {\n try {\n // Get full key\n const key = keys[i].trim()\n\n // Get instructions for decrypt\n const attrs = _instructions(result, key)\n\n // Decrypt\n decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key)\n\n break\n } catch (error) {\n // last key\n if (i + 1 >= length) {\n throw error\n }\n // try next key\n }\n }\n\n // Parse decrypted .env string\n return DotenvModule.parse(decrypted)\n}\n\nfunction _warn (message) {\n console.error(`[dotenv@${version}][WARN] ${message}`)\n}\n\nfunction _debug (message) {\n console.log(`[dotenv@${version}][DEBUG] ${message}`)\n}\n\nfunction _log (message) {\n console.log(`[dotenv@${version}] ${message}`)\n}\n\nfunction _dotenvKey (options) {\n // prioritize developer directly setting options.DOTENV_KEY\n if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {\n return options.DOTENV_KEY\n }\n\n // secondary infra already contains a DOTENV_KEY environment variable\n if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {\n return process.env.DOTENV_KEY\n }\n\n // fallback to empty string\n return ''\n}\n\nfunction _instructions (result, dotenvKey) {\n // Parse DOTENV_KEY. Format is a URI\n let uri\n try {\n uri = new URL(dotenvKey)\n } catch (error) {\n if (error.code === 'ERR_INVALID_URL') {\n const err = new Error('INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development')\n err.code = 'INVALID_DOTENV_KEY'\n throw err\n }\n\n throw error\n }\n\n // Get decrypt key\n const key = uri.password\n if (!key) {\n const err = new Error('INVALID_DOTENV_KEY: Missing key part')\n err.code = 'INVALID_DOTENV_KEY'\n throw err\n }\n\n // Get environment\n const environment = uri.searchParams.get('environment')\n if (!environment) {\n const err = new Error('INVALID_DOTENV_KEY: Missing environment part')\n err.code = 'INVALID_DOTENV_KEY'\n throw err\n }\n\n // Get ciphertext payload\n const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`\n const ciphertext = result.parsed[environmentKey] // DOTENV_VAULT_PRODUCTION\n if (!ciphertext) {\n const err = new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`)\n err.code = 'NOT_FOUND_DOTENV_ENVIRONMENT'\n throw err\n }\n\n return { ciphertext, key }\n}\n\nfunction _vaultPath (options) {\n let possibleVaultPath = null\n\n if (options && options.path && options.path.length > 0) {\n if (Array.isArray(options.path)) {\n for (const filepath of options.path) {\n if (fs.existsSync(filepath)) {\n possibleVaultPath = filepath.endsWith('.vault') ? filepath : `${filepath}.vault`\n }\n }\n } else {\n possibleVaultPath = options.path.endsWith('.vault') ? options.path : `${options.path}.vault`\n }\n } else {\n possibleVaultPath = path.resolve(process.cwd(), '.env.vault')\n }\n\n if (fs.existsSync(possibleVaultPath)) {\n return possibleVaultPath\n }\n\n return null\n}\n\nfunction _resolveHome (envPath) {\n return envPath[0] === '~' ? path.join(os.homedir(), envPath.slice(1)) : envPath\n}\n\nfunction _configVault (options) {\n const debug = parseBoolean(process.env.DOTENV_CONFIG_DEBUG || (options && options.debug))\n const quiet = parseBoolean(process.env.DOTENV_CONFIG_QUIET || (options && options.quiet))\n\n if (debug || !quiet) {\n _log('Loading env from encrypted .env.vault')\n }\n\n const parsed = DotenvModule._parseVault(options)\n\n let processEnv = process.env\n if (options && options.processEnv != null) {\n processEnv = options.processEnv\n }\n\n DotenvModule.populate(processEnv, parsed, options)\n\n return { parsed }\n}\n\nfunction configDotenv (options) {\n const dotenvPath = path.resolve(process.cwd(), '.env')\n let encoding = 'utf8'\n let processEnv = process.env\n if (options && options.processEnv != null) {\n processEnv = options.processEnv\n }\n let debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || (options && options.debug))\n let quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || (options && options.quiet))\n\n if (options && options.encoding) {\n encoding = options.encoding\n } else {\n if (debug) {\n _debug('No encoding is specified. UTF-8 is used by default')\n }\n }\n\n let optionPaths = [dotenvPath] // default, look for .env\n if (options && options.path) {\n if (!Array.isArray(options.path)) {\n optionPaths = [_resolveHome(options.path)]\n } else {\n optionPaths = [] // reset default\n for (const filepath of options.path) {\n optionPaths.push(_resolveHome(filepath))\n }\n }\n }\n\n // Build the parsed data in a temporary object (because we need to return it). Once we have the final\n // parsed data, we will combine it with process.env (or options.processEnv if provided).\n let lastError\n const parsedAll = {}\n for (const path of optionPaths) {\n try {\n // Specifying an encoding returns a string instead of a buffer\n const parsed = DotenvModule.parse(fs.readFileSync(path, { encoding }))\n\n DotenvModule.populate(parsedAll, parsed, options)\n } catch (e) {\n if (debug) {\n _debug(`Failed to load ${path} ${e.message}`)\n }\n lastError = e\n }\n }\n\n const populated = DotenvModule.populate(processEnv, parsedAll, options)\n\n // handle user settings DOTENV_CONFIG_ options inside .env file(s)\n debug = parseBoolean(processEnv.DOTENV_CONFIG_DEBUG || debug)\n quiet = parseBoolean(processEnv.DOTENV_CONFIG_QUIET || quiet)\n\n if (debug || !quiet) {\n const keysCount = Object.keys(populated).length\n const shortPaths = []\n for (const filePath of optionPaths) {\n try {\n const relative = path.relative(process.cwd(), filePath)\n shortPaths.push(relative)\n } catch (e) {\n if (debug) {\n _debug(`Failed to load ${filePath} ${e.message}`)\n }\n lastError = e\n }\n }\n\n _log(`injecting env (${keysCount}) from ${shortPaths.join(',')} ${dim(`-- tip: ${_getRandomTip()}`)}`)\n }\n\n if (lastError) {\n return { parsed: parsedAll, error: lastError }\n } else {\n return { parsed: parsedAll }\n }\n}\n\n// Populates process.env from .env file\nfunction config (options) {\n // fallback to original dotenv if DOTENV_KEY is not set\n if (_dotenvKey(options).length === 0) {\n return DotenvModule.configDotenv(options)\n }\n\n const vaultPath = _vaultPath(options)\n\n // dotenvKey exists but .env.vault file does not exist\n if (!vaultPath) {\n _warn(`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`)\n\n return DotenvModule.configDotenv(options)\n }\n\n return DotenvModule._configVault(options)\n}\n\nfunction decrypt (encrypted, keyStr) {\n const key = Buffer.from(keyStr.slice(-64), 'hex')\n let ciphertext = Buffer.from(encrypted, 'base64')\n\n const nonce = ciphertext.subarray(0, 12)\n const authTag = ciphertext.subarray(-16)\n ciphertext = ciphertext.subarray(12, -16)\n\n try {\n const aesgcm = crypto.createDecipheriv('aes-256-gcm', key, nonce)\n aesgcm.setAuthTag(authTag)\n return `${aesgcm.update(ciphertext)}${aesgcm.final()}`\n } catch (error) {\n const isRange = error instanceof RangeError\n const invalidKeyLength = error.message === 'Invalid key length'\n const decryptionFailed = error.message === 'Unsupported state or unable to authenticate data'\n\n if (isRange || invalidKeyLength) {\n const err = new Error('INVALID_DOTENV_KEY: It must be 64 characters long (or more)')\n err.code = 'INVALID_DOTENV_KEY'\n throw err\n } else if (decryptionFailed) {\n const err = new Error('DECRYPTION_FAILED: Please check your DOTENV_KEY')\n err.code = 'DECRYPTION_FAILED'\n throw err\n } else {\n throw error\n }\n }\n}\n\n// Populate process.env with parsed values\nfunction populate (processEnv, parsed, options = {}) {\n const debug = Boolean(options && options.debug)\n const override = Boolean(options && options.override)\n const populated = {}\n\n if (typeof parsed !== 'object') {\n const err = new Error('OBJECT_REQUIRED: Please check the processEnv argument being passed to populate')\n err.code = 'OBJECT_REQUIRED'\n throw err\n }\n\n // Set process.env\n for (const key of Object.keys(parsed)) {\n if (Object.prototype.hasOwnProperty.call(processEnv, key)) {\n if (override === true) {\n processEnv[key] = parsed[key]\n populated[key] = parsed[key]\n }\n\n if (debug) {\n if (override === true) {\n _debug(`\"${key}\" is already defined and WAS overwritten`)\n } else {\n _debug(`\"${key}\" is already defined and was NOT overwritten`)\n }\n }\n } else {\n processEnv[key] = parsed[key]\n populated[key] = parsed[key]\n }\n }\n\n return populated\n}\n\nconst DotenvModule = {\n configDotenv,\n _configVault,\n _parseVault,\n config,\n decrypt,\n parse,\n populate\n}\n\nmodule.exports.configDotenv = DotenvModule.configDotenv\nmodule.exports._configVault = DotenvModule._configVault\nmodule.exports._parseVault = DotenvModule._parseVault\nmodule.exports.config = DotenvModule.config\nmodule.exports.decrypt = DotenvModule.decrypt\nmodule.exports.parse = DotenvModule.parse\nmodule.exports.populate = DotenvModule.populate\n\nmodule.exports = DotenvModule\n"],"x_google_ignoreList":[0],"mappings":";;;;;CAAA,MAAM,eAAa,UAAK;CACxB,MAAM,iBAAe,YAAO;CAC5B,MAAM,eAAa,UAAK;CACxB,MAAM,mBAAiB,cAAS;CAGhC,MAAM,4BAAsB;CAG5B,MAAM,OAAO;EACX;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACD;CAGD,SAAS,gBAAiB;AACxB,SAAO,KAAK,KAAK,MAAM,KAAK,QAAQ,GAAG,KAAK,OAAO;;CAGrD,SAAS,aAAc,OAAO;AAC5B,MAAI,OAAO,UAAU,SACnB,QAAO,CAAC;GAAC;GAAS;GAAK;GAAM;GAAO;GAAG,CAAC,SAAS,MAAM,aAAa,CAAC;AAEvE,SAAO,QAAQ,MAAM;;CAGvB,SAAS,eAAgB;AACvB,SAAO,QAAQ,OAAO;;CAGxB,SAAS,IAAK,MAAM;AAClB,SAAO,cAAc,GAAG,UAAU,KAAK,WAAW;;CAGpD,MAAM,OAAO;CAGb,SAAS,MAAO,KAAK;EACnB,MAAM,MAAM,EAAE;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