@powerlines/plugin-env 0.16.162 → 0.16.164

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.
@@ -1,5 +1,5 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../types/plugin.cjs`);let t=require(`@powerlines/deepkit/utilities`),n=require(`@powerlines/plugin-babel/helpers/create-plugin`),r=require(`@powerlines/plugin-babel/helpers/module-helpers`),i=require(`@storm-software/config-tools/types`);function a(e,t){return e.__type=t,e}const o=(n.createBabelPlugin.Ω=[[()=>e.__ΩEnvPluginContext,`n!`]],(0,n.createBabelPlugin)(`env`,a(({log:e,context:n})=>{function o(r,o,s=!1,c=!1){let l=n.env.types.env?.getProperties().filter(a(e=>e.getAlias().length>0,[`prop`,``,`P"2!"/"`]));if(r.name){let u=r.name.replace(RegExp(`^(${n.config.env.prefix.join(`|`)})_`),``);if(e(i.LogLevelLabel.TRACE,`Environment variable ${u} found in ${o.filename||`unknown file`}.`),n.env.types.env?.hasProperty(u)||l.some(a(e=>e.getAlias().includes(u),[`prop`,``,`P"2!"/"`]))){let r=n.env.types.env.hasProperty(u)?n.env.types.env.getProperty(u):l.find(a(e=>e.getAlias().includes(u),[`prop`,``,`P"2!"/"`]));if(!r||r.isIgnored())return;if(n.env.used.env.hasProperty(u)||(e(i.LogLevelLabel.DEBUG,`Adding "${u}" environment variables found in "${o.filename||`unknown file`}" to used environment configuration reflection object.`),n.env.used.env.addProperty(r.property)),n.config.env.inject&&s){let e=n.env.parsed?.[u];if(e===void 0){let t=n.config.env.prefix.find(a(e=>n.env.parsed[`${e.replace(/_$/g,``)}_${u}`],[`pre`,``,`P"2!"/"`]));t&&(e=n.env.parsed[`${t.replace(/_$/g,``)}_${u}`])}if(e??=r.getDefaultValue(),r.isValueRequired()&&e===void 0)throw Error(`Environment variable \`${u}\` is not defined in the .env configuration files`);return(0,t.stringifyDefaultValue)(r,e)}}else if(n.config.env.validate)throw Error(`The "${u}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${o.filename?o.filename:`unknown`}.
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`}),require(`../_virtual/_rolldown/runtime.cjs`);const e=require(`../types/plugin.cjs`);let t=require(`@powerlines/deepkit/utilities`),n=require(`@powerlines/plugin-babel/helpers/create-plugin`),r=require(`@powerlines/plugin-babel/helpers/module-helpers`);function i(e,t){return e.__type=t,e}const a=(n.createBabelPlugin.Ω=[[()=>e.__ΩEnvPluginContext,`n!`]],(0,n.createBabelPlugin)(`env`,i(({logger:e,context:n})=>{function a(r,a,o=!1,s=!1){let c=n.env.types.env?.getProperties().filter(i(e=>e.getAlias().length>0,[`prop`,``,`P"2!"/"`]));if(r.name){let l=r.name.replace(RegExp(`^(${n.config.env.prefix.join(`|`)})_`),``);if(e.trace({meta:{category:`env`},message:`Environment variable ${l} found in ${a.filename||`unknown file`}.`}),n.env.types.env?.hasProperty(l)||c.some(i(e=>e.getAlias().includes(l),[`prop`,``,`P"2!"/"`]))){let r=n.env.types.env.hasProperty(l)?n.env.types.env.getProperty(l):c.find(i(e=>e.getAlias().includes(l),[`prop`,``,`P"2!"/"`]));if(!r||r.isIgnored())return;if(n.env.used.env.hasProperty(l)||(e.debug({meta:{category:`env`},message:`Adding "${l}" environment variables found in "${a.filename||`unknown file`}" to used environment configuration reflection object.`}),n.env.used.env.addProperty(r.property)),n.config.env.inject&&o){let e=n.env.parsed?.[l];if(e===void 0){let t=n.config.env.prefix.find(i(e=>n.env.parsed[`${e.replace(/_$/g,``)}_${l}`],[`pre`,``,`P"2!"/"`]));t&&(e=n.env.parsed[`${t.replace(/_$/g,``)}_${l}`])}if(e??=r.getDefaultValue(),r.isValueRequired()&&e===void 0)throw Error(`Environment variable \`${l}\` is not defined in the .env configuration files`);return(0,t.stringifyDefaultValue)(r,e)}}else if(n.config.env.validate)throw Error(`The "${l}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${a.filename?a.filename:`unknown`}.
2
2
 
3
- The following environment configuration names are defined in the \`env\` type definition: \n${n.env.types.env?.getPropertyNames().sort(a((e,t)=>String(e).localeCompare(String(t)),[`a`,`b`,``,`P"2!"2""/#`])).map(a(e=>` - ${String(e)} ${l.some(a(t=>t.getNameAsString()===String(e)&&t.getAlias().length>0,[`prop`,``,`P"2!"/"`]))?`(Alias: ${l?.find(a(t=>t.getNameAsString()===String(e),[`prop`,``,`P"2!"/"`]))?.getAlias().join(`, `)})`:``}`,[`typeDef`,``,`P"2!"/"`])).join(`
4
- `)} \n\nUsing the following env prefix: \n${n.config.env.prefix.map(a(e=>` - ${e}`,[`prefix`,``,`P"2!"/"`])).join(`
5
- `)} \n\nPlease check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code. \n\n`);else o.filename&&c&&n.warn(`The "${u}" environment variable is used in the source code file ${o.filename}, but is not defined in the \`env\` type definition. If this is intentional, you can ignore this warning. Otherwise, please check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code.`)}}return o.__type=[`node`,`pass`,`isInjectable`,`isUsingBuiltin`,`extractEnv`,`P!2!!2""2#"2$"/%`],{visitor:{MemberExpression:a(function(e,t){if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isIdentifier({name:`process`})&&e.get(`property`)?.isIdentifier()){let i=e.get(`property`)?.node;if(!i.name)return;o(i,t,!1,!1),e.replaceWithSourceString(`env.${i.name}`),(0,r.addImport)(e,{module:`${n.config.framework||`powerlines`}:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isMetaProperty()&&e.get(`property`)?.isIdentifier()){let i=e.get(`property`)?.node;if(!i.name)return;o(i,t,!1,!1),e.replaceWithSourceString(`env.${i.name}`),(0,r.addImport)(e,{module:`${n.config.framework||`powerlines`}:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.isIdentifier({name:`env`})&&e.get(`property`)?.isIdentifier()){let n=e.get(`property`)?.node;if(!n.name)return;o(n,t,!1,!0)}},[`NodePath`,`path`,`pass`,`MemberExpression`,`P"w!2"!2#"/$`])}}},[`param0`,``,`P"2!"/"`])));exports.envBabelPlugin=o;
3
+ The following environment configuration names are defined in the \`env\` type definition: \n${n.env.types.env?.getPropertyNames().sort(i((e,t)=>String(e).localeCompare(String(t)),[`a`,`b`,``,`P"2!"2""/#`])).map(i(e=>` - ${String(e)} ${c.some(i(t=>t.getNameAsString()===String(e)&&t.getAlias().length>0,[`prop`,``,`P"2!"/"`]))?`(Alias: ${c?.find(i(t=>t.getNameAsString()===String(e),[`prop`,``,`P"2!"/"`]))?.getAlias().join(`, `)})`:``}`,[`typeDef`,``,`P"2!"/"`])).join(`
4
+ `)} \n\nUsing the following env prefix: \n${n.config.env.prefix.map(i(e=>` - ${e}`,[`prefix`,``,`P"2!"/"`])).join(`
5
+ `)} \n\nPlease check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code. \n\n`);else a.filename&&s&&e.warn({meta:{category:`env`},message:`The "${l}" environment variable is used in the source code file ${a.filename}, but is not defined in the \`env\` type definition. If this is intentional, you can ignore this warning. Otherwise, please check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code.`})}}return a.__type=[`node`,`pass`,`isInjectable`,`isUsingBuiltin`,`extractEnv`,`P!2!!2""2#"2$"/%`],{visitor:{MemberExpression:i(function(e,t){if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isIdentifier({name:`process`})&&e.get(`property`)?.isIdentifier()){let i=e.get(`property`)?.node;if(!i.name)return;a(i,t,!1,!1),e.replaceWithSourceString(`env.${i.name}`),(0,r.addImport)(e,{module:`${n.config.framework||`powerlines`}:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isMetaProperty()&&e.get(`property`)?.isIdentifier()){let i=e.get(`property`)?.node;if(!i.name)return;a(i,t,!1,!1),e.replaceWithSourceString(`env.${i.name}`),(0,r.addImport)(e,{module:`${n.config.framework||`powerlines`}:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.isIdentifier({name:`env`})&&e.get(`property`)?.isIdentifier()){let n=e.get(`property`)?.node;if(!n.name)return;a(n,t,!1,!0)}},[`NodePath`,`path`,`pass`,`MemberExpression`,`P"w!2"!2#"/$`])}}},[`param0`,``,`P"2!"/"`])));exports.envBabelPlugin=a;
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/babel/plugin.ts"],"mappings":";;;;cAiCa,cAAA,EAAc,2BAAA,CAAA,iCAAA,CAAA,gBAAA,CAgM1B,uBAAA"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/babel/plugin.ts"],"mappings":";;;;cAgCa,cAAA,EAAc,2BAAA,CAAA,iCAAA,CAAA,gBAAA,CAuM1B,uBAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/babel/plugin.ts"],"mappings":";;;;cAiCa,cAAA,EAAc,2BAAA,CAAA,iCAAA,CAAA,gBAAA,CAgM1B,uBAAA"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/babel/plugin.ts"],"mappings":";;;;cAgCa,cAAA,EAAc,2BAAA,CAAA,iCAAA,CAAA,gBAAA,CAuM1B,uBAAA"}
@@ -1,6 +1,6 @@
1
- import{__ΩEnvPluginContext as e}from"../types/plugin.mjs";import{stringifyDefaultValue as t}from"@powerlines/deepkit/utilities";import{createBabelPlugin as n}from"@powerlines/plugin-babel/helpers/create-plugin";import{addImport as r}from"@powerlines/plugin-babel/helpers/module-helpers";import{LogLevelLabel as i}from"@storm-software/config-tools/types";function a(e,t){return e.__type=t,e}const o=(n.Ω=[[()=>e,`n!`]],n(`env`,a(({log:e,context:n})=>{function o(r,o,s=!1,c=!1){let l=n.env.types.env?.getProperties().filter(a(e=>e.getAlias().length>0,[`prop`,``,`P"2!"/"`]));if(r.name){let u=r.name.replace(RegExp(`^(${n.config.env.prefix.join(`|`)})_`),``);if(e(i.TRACE,`Environment variable ${u} found in ${o.filename||`unknown file`}.`),n.env.types.env?.hasProperty(u)||l.some(a(e=>e.getAlias().includes(u),[`prop`,``,`P"2!"/"`]))){let r=n.env.types.env.hasProperty(u)?n.env.types.env.getProperty(u):l.find(a(e=>e.getAlias().includes(u),[`prop`,``,`P"2!"/"`]));if(!r||r.isIgnored())return;if(n.env.used.env.hasProperty(u)||(e(i.DEBUG,`Adding "${u}" environment variables found in "${o.filename||`unknown file`}" to used environment configuration reflection object.`),n.env.used.env.addProperty(r.property)),n.config.env.inject&&s){let e=n.env.parsed?.[u];if(e===void 0){let t=n.config.env.prefix.find(a(e=>n.env.parsed[`${e.replace(/_$/g,``)}_${u}`],[`pre`,``,`P"2!"/"`]));t&&(e=n.env.parsed[`${t.replace(/_$/g,``)}_${u}`])}if(e??=r.getDefaultValue(),r.isValueRequired()&&e===void 0)throw Error(`Environment variable \`${u}\` is not defined in the .env configuration files`);return t(r,e)}}else if(n.config.env.validate)throw Error(`The "${u}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${o.filename?o.filename:`unknown`}.
1
+ import{__ΩEnvPluginContext as e}from"../types/plugin.mjs";import{stringifyDefaultValue as t}from"@powerlines/deepkit/utilities";import{createBabelPlugin as n}from"@powerlines/plugin-babel/helpers/create-plugin";import{addImport as r}from"@powerlines/plugin-babel/helpers/module-helpers";function i(e,t){return e.__type=t,e}const a=(n.Ω=[[()=>e,`n!`]],n(`env`,i(({logger:e,context:n})=>{function a(r,a,o=!1,s=!1){let c=n.env.types.env?.getProperties().filter(i(e=>e.getAlias().length>0,[`prop`,``,`P"2!"/"`]));if(r.name){let l=r.name.replace(RegExp(`^(${n.config.env.prefix.join(`|`)})_`),``);if(e.trace({meta:{category:`env`},message:`Environment variable ${l} found in ${a.filename||`unknown file`}.`}),n.env.types.env?.hasProperty(l)||c.some(i(e=>e.getAlias().includes(l),[`prop`,``,`P"2!"/"`]))){let r=n.env.types.env.hasProperty(l)?n.env.types.env.getProperty(l):c.find(i(e=>e.getAlias().includes(l),[`prop`,``,`P"2!"/"`]));if(!r||r.isIgnored())return;if(n.env.used.env.hasProperty(l)||(e.debug({meta:{category:`env`},message:`Adding "${l}" environment variables found in "${a.filename||`unknown file`}" to used environment configuration reflection object.`}),n.env.used.env.addProperty(r.property)),n.config.env.inject&&o){let e=n.env.parsed?.[l];if(e===void 0){let t=n.config.env.prefix.find(i(e=>n.env.parsed[`${e.replace(/_$/g,``)}_${l}`],[`pre`,``,`P"2!"/"`]));t&&(e=n.env.parsed[`${t.replace(/_$/g,``)}_${l}`])}if(e??=r.getDefaultValue(),r.isValueRequired()&&e===void 0)throw Error(`Environment variable \`${l}\` is not defined in the .env configuration files`);return t(r,e)}}else if(n.config.env.validate)throw Error(`The "${l}" environment variable is not defined in the \`env\` type definition, but is used in the source code file ${a.filename?a.filename:`unknown`}.
2
2
 
3
- The following environment configuration names are defined in the \`env\` type definition: \n${n.env.types.env?.getPropertyNames().sort(a((e,t)=>String(e).localeCompare(String(t)),[`a`,`b`,``,`P"2!"2""/#`])).map(a(e=>` - ${String(e)} ${l.some(a(t=>t.getNameAsString()===String(e)&&t.getAlias().length>0,[`prop`,``,`P"2!"/"`]))?`(Alias: ${l?.find(a(t=>t.getNameAsString()===String(e),[`prop`,``,`P"2!"/"`]))?.getAlias().join(`, `)})`:``}`,[`typeDef`,``,`P"2!"/"`])).join(`
4
- `)} \n\nUsing the following env prefix: \n${n.config.env.prefix.map(a(e=>` - ${e}`,[`prefix`,``,`P"2!"/"`])).join(`
5
- `)} \n\nPlease check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code. \n\n`);else o.filename&&c&&n.warn(`The "${u}" environment variable is used in the source code file ${o.filename}, but is not defined in the \`env\` type definition. If this is intentional, you can ignore this warning. Otherwise, please check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code.`)}}return o.__type=[`node`,`pass`,`isInjectable`,`isUsingBuiltin`,`extractEnv`,`P!2!!2""2#"2$"/%`],{visitor:{MemberExpression:a(function(e,t){if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isIdentifier({name:`process`})&&e.get(`property`)?.isIdentifier()){let i=e.get(`property`)?.node;if(!i.name)return;o(i,t,!1,!1),e.replaceWithSourceString(`env.${i.name}`),r(e,{module:`${n.config.framework||`powerlines`}:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isMetaProperty()&&e.get(`property`)?.isIdentifier()){let i=e.get(`property`)?.node;if(!i.name)return;o(i,t,!1,!1),e.replaceWithSourceString(`env.${i.name}`),r(e,{module:`${n.config.framework||`powerlines`}:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.isIdentifier({name:`env`})&&e.get(`property`)?.isIdentifier()){let n=e.get(`property`)?.node;if(!n.name)return;o(n,t,!1,!0)}},[`NodePath`,`path`,`pass`,`MemberExpression`,`P"w!2"!2#"/$`])}}},[`param0`,``,`P"2!"/"`])));export{o as envBabelPlugin};
3
+ The following environment configuration names are defined in the \`env\` type definition: \n${n.env.types.env?.getPropertyNames().sort(i((e,t)=>String(e).localeCompare(String(t)),[`a`,`b`,``,`P"2!"2""/#`])).map(i(e=>` - ${String(e)} ${c.some(i(t=>t.getNameAsString()===String(e)&&t.getAlias().length>0,[`prop`,``,`P"2!"/"`]))?`(Alias: ${c?.find(i(t=>t.getNameAsString()===String(e),[`prop`,``,`P"2!"/"`]))?.getAlias().join(`, `)})`:``}`,[`typeDef`,``,`P"2!"/"`])).join(`
4
+ `)} \n\nUsing the following env prefix: \n${n.config.env.prefix.map(i(e=>` - ${e}`,[`prefix`,``,`P"2!"/"`])).join(`
5
+ `)} \n\nPlease check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code. \n\n`);else a.filename&&s&&e.warn({meta:{category:`env`},message:`The "${l}" environment variable is used in the source code file ${a.filename}, but is not defined in the \`env\` type definition. If this is intentional, you can ignore this warning. Otherwise, please check your \`env\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code.`})}}return a.__type=[`node`,`pass`,`isInjectable`,`isUsingBuiltin`,`extractEnv`,`P!2!!2""2#"2$"/%`],{visitor:{MemberExpression:i(function(e,t){if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isIdentifier({name:`process`})&&e.get(`property`)?.isIdentifier()){let i=e.get(`property`)?.node;if(!i.name)return;a(i,t,!1,!1),e.replaceWithSourceString(`env.${i.name}`),r(e,{module:`${n.config.framework||`powerlines`}:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.get(`property`)?.isIdentifier({name:`env`})&&e.get(`object`)?.get(`object`)?.isMetaProperty()&&e.get(`property`)?.isIdentifier()){let i=e.get(`property`)?.node;if(!i.name)return;a(i,t,!1,!1),e.replaceWithSourceString(`env.${i.name}`),r(e,{module:`${n.config.framework||`powerlines`}:env`,name:`env`,imported:`env`})}else if(e.get(`object`)?.isIdentifier({name:`env`})&&e.get(`property`)?.isIdentifier()){let n=e.get(`property`)?.node;if(!n.name)return;a(n,t,!1,!0)}},[`NodePath`,`path`,`pass`,`MemberExpression`,`P"w!2"!2#"/$`])}}},[`param0`,``,`P"2!"/"`])));export{a as envBabelPlugin};
6
6
  //# sourceMappingURL=plugin.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.mjs","names":[],"sources":["../../src/babel/plugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { NodePath } from \"@babel/core\";\nimport * as t from \"@babel/types\";\nimport { stringifyDefaultValue } from \"@powerlines/deepkit/utilities\";\nimport { createBabelPlugin } from \"@powerlines/plugin-babel/helpers/create-plugin\";\nimport { addImport } from \"@powerlines/plugin-babel/helpers/module-helpers\";\nimport { BabelPluginPass } from \"@powerlines/plugin-babel/types/config\";\nimport { LogLevelLabel } from \"@storm-software/config-tools/types\";\nimport { EnvPluginContext } from \"../types/plugin\";\n\n/*\n * The Powerlines - Environment Configuration Babel Plugin\n *\n * @param babel - The Babel core module\n * @returns The Babel plugin object\n */\nexport const envBabelPlugin = createBabelPlugin<EnvPluginContext>(\n \"env\",\n ({ log, context }) => {\n function extractEnv(\n node: t.Identifier,\n pass: BabelPluginPass,\n isInjectable = false,\n isUsingBuiltin = false\n ) {\n const envTypesAliasProperties = context.env.types.env\n ?.getProperties()\n .filter(prop => prop.getAlias().length > 0);\n\n if (node.name) {\n const name = node.name.replace(\n new RegExp(`^(${context.config.env.prefix.join(\"|\")})_`),\n \"\"\n );\n\n log(\n LogLevelLabel.TRACE,\n `Environment variable ${name} found in ${\n pass.filename || \"unknown file\"\n }.`\n );\n\n if (\n context.env.types.env?.hasProperty(name) ||\n envTypesAliasProperties.some(prop => prop.getAlias().includes(name))\n ) {\n const envProperty = context.env.types.env.hasProperty(name)\n ? context.env.types.env.getProperty(name)\n : envTypesAliasProperties.find(prop =>\n prop.getAlias().includes(name)\n );\n if (!envProperty || envProperty.isIgnored()) {\n return;\n }\n\n if (!context.env.used.env.hasProperty(name)) {\n log(\n LogLevelLabel.DEBUG,\n `Adding \"${name}\" environment variables found in \"${\n pass.filename || \"unknown file\"\n }\" to used environment configuration reflection object.`\n );\n\n context.env.used.env.addProperty(envProperty.property);\n }\n\n if (context.config.env.inject && isInjectable) {\n let value = context.env.parsed?.[name];\n if (value === undefined) {\n const prefix = context.config.env.prefix.find(pre => {\n return context.env.parsed[`${pre.replace(/_$/g, \"\")}_${name}`];\n });\n if (prefix) {\n value =\n context.env.parsed[`${prefix.replace(/_$/g, \"\")}_${name}`];\n }\n }\n\n value ??= envProperty.getDefaultValue();\n\n if (envProperty.isValueRequired() && value === undefined) {\n throw new Error(\n `Environment variable \\`${name}\\` is not defined in the .env configuration files`\n );\n }\n\n return stringifyDefaultValue(envProperty, value);\n }\n } else if (context.config.env.validate) {\n throw new Error(\n `The \"${name}\" environment variable is not defined in the \\`env\\` type definition, but is used in the source code file ${\n pass.filename ? pass.filename : \"unknown\"\n }.\n\n The following environment configuration names are defined in the \\`env\\` type definition: \\n${context.env.types.env\n ?.getPropertyNames()\n .sort((a, b) => String(a).localeCompare(String(b)))\n .map(\n typeDef =>\n ` - ${String(typeDef)} ${\n envTypesAliasProperties.some(\n prop =>\n prop.getNameAsString() === String(typeDef) &&\n prop.getAlias().length > 0\n )\n ? `(Alias: ${envTypesAliasProperties\n ?.find(\n prop => prop.getNameAsString() === String(typeDef)\n )\n ?.getAlias()\n .join(\", \")})`\n : \"\"\n }`\n )\n .join(\n \"\\n\"\n )} \\n\\nUsing the following env prefix: \\n${context.config.env.prefix\n .map(prefix => ` - ${prefix}`)\n .join(\n \"\\n\"\n )} \\n\\nPlease check your \\`env\\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code. \\n\\n`\n );\n } else if (pass.filename && isUsingBuiltin) {\n context.warn(\n `The \"${\n name\n }\" environment variable is used in the source code file ${\n pass.filename\n }, but is not defined in the \\`env\\` type definition. If this is intentional, you can ignore this warning. Otherwise, please check your \\`env\\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code.`\n );\n }\n }\n\n return undefined;\n }\n\n return {\n visitor: {\n MemberExpression(\n path: NodePath<t.MemberExpression>,\n pass: BabelPluginPass\n ) {\n if (\n path\n .get(\"object\")\n ?.get(\"property\")\n ?.isIdentifier({ name: \"env\" }) &&\n path\n .get(\"object\")\n ?.get(\"object\")\n ?.isIdentifier({ name: \"process\" }) &&\n path.get(\"property\")?.isIdentifier()\n ) {\n // process.env.CONFIG_NAME\n\n const identifier = path.get(\"property\")?.node as t.Identifier;\n if (!identifier.name) {\n return;\n }\n\n extractEnv(identifier, pass, false, false);\n\n path.replaceWithSourceString(`env.${identifier.name}`);\n addImport(path, {\n module: `${context.config.framework || \"powerlines\"}:env`,\n name: \"env\",\n imported: \"env\"\n });\n } else if (\n path\n .get(\"object\")\n ?.get(\"property\")\n ?.isIdentifier({ name: \"env\" }) &&\n path.get(\"object\")?.get(\"object\")?.isMetaProperty() &&\n path.get(\"property\")?.isIdentifier()\n ) {\n // import.meta.env.CONFIG_NAME\n\n const identifier = path.get(\"property\")?.node as t.Identifier;\n if (!identifier.name) {\n return;\n }\n\n extractEnv(identifier, pass, false, false);\n\n path.replaceWithSourceString(`env.${identifier.name}`);\n addImport(path, {\n module: `${context.config.framework || \"powerlines\"}:env`,\n name: \"env\",\n imported: \"env\"\n });\n } else if (\n path.get(\"object\")?.isIdentifier({ name: \"env\" }) &&\n path.get(\"property\")?.isIdentifier()\n ) {\n // env.CONFIG_NAME\n\n const identifier = path.get(\"property\")?.node as t.Identifier;\n if (!identifier.name) {\n return;\n }\n\n extractEnv(identifier, pass, false, true);\n }\n }\n }\n };\n }\n);\n"],"mappings":"kWAEA,SAAS,EAAY,EAAK,EAAC,CAE1B,kBAAK,EAYN,MAAa,GAAkB,EAAkB,EAAI,CAAC,KAAO,EAAS,KAAA,CAAA,CAAA,EAAA,MAAA,GAAA,CAAA,MAEtE,aACM,CACN,SAAS,EAAA,EAAA,EAAwB,EAAO,GAAW,EAAkB,GAAA,CACrE,IAAS,EAA2B,EAAA,IAAW,MAAO,KAAK,eAAe,CAAC,OAAO,EAAA,GAAA,EA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,qBAEF,CAAC,SACF,EAAA,IAAA,SAAA,EAAA,IAAA,WAAA,EAAA,aAAA,CAAA,KAAA,MAED,CAAC,EAAI,EAAA,IAAQ,SAAU,EAAC,IAAA,SAAU,EAAA,gBAAc,EAAA,EAAA,IAAA,WAAA,EAAA,cAAA,CAAA,CAE/C,IAAM,EAAU,EAAA,IAAW,WAAA,EAAA,KAC3B,GAAI,CAAA,EAAY,KACd,OAEF,EAAQ,EAAQ,EAAA,GAAA,GAAA,CAChB,EAAK,wBAAO,OAAA,EAAA,OAAA,CACZ,EAAQ,EAAQ,CACd,OAAE,GAAA,EAAA,OAAA,WAAA,aAAA,MACF,KAAA,qBAED,CAAC,wCAEF,KAAM,MACP,CAAC,EAAI,EAAK,IAAI,WAAM,EAAA,cAAA,CAAA,CAEnB,IAAK,EAAA,EAAA,IAAA,WAAA,EAAA,KACL,GAAE,CAAA,EAAA,KAAA,OAGF,EAAA,EAAA,EAAA,GAAA,GAAA,GAED,CAAC,WAAU,OAAK,OAAA,mBAAA,eAAA,CAAA,CACpB,CACF,EACA,CAAC,SAAS,GAAA,UAAA,CAAA,CAAA"}
1
+ {"version":3,"file":"plugin.mjs","names":[],"sources":["../../src/babel/plugin.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { NodePath } from \"@babel/core\";\nimport * as t from \"@babel/types\";\nimport { stringifyDefaultValue } from \"@powerlines/deepkit/utilities\";\nimport { createBabelPlugin } from \"@powerlines/plugin-babel/helpers/create-plugin\";\nimport { addImport } from \"@powerlines/plugin-babel/helpers/module-helpers\";\nimport { BabelPluginPass } from \"@powerlines/plugin-babel/types/config\";\nimport { EnvPluginContext } from \"../types/plugin\";\n\n/*\n * The Powerlines - Environment Configuration Babel Plugin\n *\n * @param babel - The Babel core module\n * @returns The Babel plugin object\n */\nexport const envBabelPlugin = createBabelPlugin<EnvPluginContext>(\n \"env\",\n ({ logger, context }) => {\n function extractEnv(\n node: t.Identifier,\n pass: BabelPluginPass,\n isInjectable = false,\n isUsingBuiltin = false\n ) {\n const envTypesAliasProperties = context.env.types.env\n ?.getProperties()\n .filter(prop => prop.getAlias().length > 0);\n\n if (node.name) {\n const name = node.name.replace(\n new RegExp(`^(${context.config.env.prefix.join(\"|\")})_`),\n \"\"\n );\n\n logger.trace({\n meta: {\n category: \"env\"\n },\n message: `Environment variable ${name} found in ${\n pass.filename || \"unknown file\"\n }.`\n });\n\n if (\n context.env.types.env?.hasProperty(name) ||\n envTypesAliasProperties.some(prop => prop.getAlias().includes(name))\n ) {\n const envProperty = context.env.types.env.hasProperty(name)\n ? context.env.types.env.getProperty(name)\n : envTypesAliasProperties.find(prop =>\n prop.getAlias().includes(name)\n );\n if (!envProperty || envProperty.isIgnored()) {\n return;\n }\n\n if (!context.env.used.env.hasProperty(name)) {\n logger.debug({\n meta: {\n category: \"env\"\n },\n message: `Adding \"${name}\" environment variables found in \"${\n pass.filename || \"unknown file\"\n }\" to used environment configuration reflection object.`\n });\n\n context.env.used.env.addProperty(envProperty.property);\n }\n\n if (context.config.env.inject && isInjectable) {\n let value = context.env.parsed?.[name];\n if (value === undefined) {\n const prefix = context.config.env.prefix.find(pre => {\n return context.env.parsed[`${pre.replace(/_$/g, \"\")}_${name}`];\n });\n if (prefix) {\n value =\n context.env.parsed[`${prefix.replace(/_$/g, \"\")}_${name}`];\n }\n }\n\n value ??= envProperty.getDefaultValue();\n\n if (envProperty.isValueRequired() && value === undefined) {\n throw new Error(\n `Environment variable \\`${name}\\` is not defined in the .env configuration files`\n );\n }\n\n return stringifyDefaultValue(envProperty, value);\n }\n } else if (context.config.env.validate) {\n throw new Error(\n `The \"${name}\" environment variable is not defined in the \\`env\\` type definition, but is used in the source code file ${\n pass.filename ? pass.filename : \"unknown\"\n }.\n\n The following environment configuration names are defined in the \\`env\\` type definition: \\n${context.env.types.env\n ?.getPropertyNames()\n .sort((a, b) => String(a).localeCompare(String(b)))\n .map(\n typeDef =>\n ` - ${String(typeDef)} ${\n envTypesAliasProperties.some(\n prop =>\n prop.getNameAsString() === String(typeDef) &&\n prop.getAlias().length > 0\n )\n ? `(Alias: ${envTypesAliasProperties\n ?.find(\n prop => prop.getNameAsString() === String(typeDef)\n )\n ?.getAlias()\n .join(\", \")})`\n : \"\"\n }`\n )\n .join(\n \"\\n\"\n )} \\n\\nUsing the following env prefix: \\n${context.config.env.prefix\n .map(prefix => ` - ${prefix}`)\n .join(\n \"\\n\"\n )} \\n\\nPlease check your \\`env\\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code. \\n\\n`\n );\n } else if (pass.filename && isUsingBuiltin) {\n logger.warn({\n meta: {\n category: \"env\"\n },\n message: `The \"${\n name\n }\" environment variable is used in the source code file ${\n pass.filename\n }, but is not defined in the \\`env\\` type definition. If this is intentional, you can ignore this warning. Otherwise, please check your \\`env\\` configuration option. If you are using a custom dotenv type definition, please make sure that the configuration names match the ones in the code.`\n });\n }\n }\n\n return undefined;\n }\n\n return {\n visitor: {\n MemberExpression(\n path: NodePath<t.MemberExpression>,\n pass: BabelPluginPass\n ) {\n if (\n path\n .get(\"object\")\n ?.get(\"property\")\n ?.isIdentifier({ name: \"env\" }) &&\n path\n .get(\"object\")\n ?.get(\"object\")\n ?.isIdentifier({ name: \"process\" }) &&\n path.get(\"property\")?.isIdentifier()\n ) {\n // process.env.CONFIG_NAME\n\n const identifier = path.get(\"property\")?.node as t.Identifier;\n if (!identifier.name) {\n return;\n }\n\n extractEnv(identifier, pass, false, false);\n\n path.replaceWithSourceString(`env.${identifier.name}`);\n addImport(path, {\n module: `${context.config.framework || \"powerlines\"}:env`,\n name: \"env\",\n imported: \"env\"\n });\n } else if (\n path\n .get(\"object\")\n ?.get(\"property\")\n ?.isIdentifier({ name: \"env\" }) &&\n path.get(\"object\")?.get(\"object\")?.isMetaProperty() &&\n path.get(\"property\")?.isIdentifier()\n ) {\n // import.meta.env.CONFIG_NAME\n\n const identifier = path.get(\"property\")?.node as t.Identifier;\n if (!identifier.name) {\n return;\n }\n\n extractEnv(identifier, pass, false, false);\n\n path.replaceWithSourceString(`env.${identifier.name}`);\n addImport(path, {\n module: `${context.config.framework || \"powerlines\"}:env`,\n name: \"env\",\n imported: \"env\"\n });\n } else if (\n path.get(\"object\")?.isIdentifier({ name: \"env\" }) &&\n path.get(\"property\")?.isIdentifier()\n ) {\n // env.CONFIG_NAME\n\n const identifier = path.get(\"property\")?.node as t.Identifier;\n if (!identifier.name) {\n return;\n }\n\n extractEnv(identifier, pass, false, true);\n }\n }\n }\n };\n }\n);\n"],"mappings":"+RAEA,SAAS,EAAY,EAAK,EAAC,CAE1B,kBAAK,0CAYJ,SAAA,aAEI,CACN,SAAW,EAAU,EAAM,EAAM,EAAA,GAAA,EAAA,GAAA,CACjC,IAAS,EAAwB,EAAO,IAAA,MAAW,KAAQ,eAAU,CAAA,OAAA,EAAA,GAAA,EAAA,UAAA,CAAA,OAAA,EAAA,CAAA,OAAA,GAAA,UAAA,CAAA,CAAA,CACrE,GAAQ,EAAC,KAAA,CACH,IAAG,EAAU,EAAE,KAAO,QAAW,OAAO,KAAM,EAAQ,OAAO,IAAA,OAAQ,KAAA,IAAA,CAAA,IAAA,CAAA,GAAA,CAOvE,GANE,EAAG,MAAA,CACD,KAAC,CAAA,SAAA,MAER,CACM,QAAU,wBAAe,EAAc,YAAM,EAAA,UAAA,eAAA,GACnD,CAAA,CACS,EAAQ,IAAI,MAAM,KAAK,YAAA,EAAA,EAAA,EAAA,KAAA,EAAA,GAAA,EAAA,UAAA,CAAA,SAAA,EAAA,CAAA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AA,SAAA,EAAA,gBAAA,EAAA,EAAA,IAAA,WAAA,EAAA,cAAA,CAAA,+BAIF,GAAI,CAAC,EAAC,KACJ,OAEF,EAAK,EAAA,EAAA,GAAA,GAAA,CACL,EAAE,wBAAA,OAAA,EAAA,OAAA,MAEA,OAAO,GAAA,EAAA,OAAA,WAAsB,aAAmB,MAClD,KAAA,MACA,SAAS,MACT,CAAA,SACS,EAAK,IAAG,SAAA,EAAY,aAAY,CACzC,KAAI,MACL,CAAC,EAAG,EAAA,IAAA,WAAA,EAAA,cAAA,CAAA,CAEH,IAAI,EAAU,EAAA,IAAY,WAAa,EAAC,KACxC,GAAI,CAAA,EAAA,KACF,OAEF,EAAW,EAAE,EAAA,GAAA,GAAA,GAEd,CAAC,WAAQ,OAAA,OAAA,mBAA4B,eAAA,CAAA,CACzC,CACF,EACA,CAAC,SAAU,GAAI,UAAS,CAAA,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-env",
3
- "version": "0.16.162",
3
+ "version": "0.16.164",
4
4
  "private": false,
5
5
  "description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
6
6
  "keywords": ["dotenv", "powerlines", "storm-software", "powerlines-plugin"],
@@ -292,12 +292,12 @@
292
292
  "@alloy-js/typescript": "0.23.0-dev.4",
293
293
  "@babel/core": "8.0.0-rc.3",
294
294
  "@babel/types": "8.0.0-rc.3",
295
- "@powerlines/plugin-alloy": "^0.26.54",
296
- "@powerlines/plugin-automd": "^0.1.436",
297
- "@powerlines/plugin-babel": "^0.12.429",
298
- "@powerlines/plugin-plugin": "^0.12.387",
299
- "@powerlines/deepkit": "^0.8.37",
300
- "@powerlines/plugin-deepkit": "^0.11.318",
295
+ "@powerlines/plugin-alloy": "^0.26.57",
296
+ "@powerlines/plugin-automd": "^0.1.438",
297
+ "@powerlines/plugin-babel": "^0.12.431",
298
+ "@powerlines/plugin-plugin": "^0.12.389",
299
+ "@powerlines/deepkit": "^0.8.39",
300
+ "@powerlines/plugin-deepkit": "^0.11.320",
301
301
  "@storm-software/config-tools": "^1.189.78",
302
302
  "@stryke/capnp": "^0.12.95",
303
303
  "@stryke/convert": "^0.7.2",
@@ -311,10 +311,10 @@
311
311
  "@stryke/types": "^0.11.6",
312
312
  "automd": "^0.4.3",
313
313
  "defu": "^6.1.7",
314
- "powerlines": "^0.44.0",
314
+ "powerlines": "^0.44.2",
315
315
  "c12": "^3.3.4"
316
316
  },
317
317
  "devDependencies": { "@types/node": "^25.6.0", "vite": "^8.0.10" },
318
318
  "publishConfig": { "access": "public" },
319
- "gitHead": "0c0e8330c47e0ba315ba3367a13a51a576fd9811"
319
+ "gitHead": "e334be23d413125e5ac9d015ba2d26b434129a7c"
320
320
  }