@powerlines/plugin-env 0.16.119 → 0.16.121
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"template-helpers.mjs","names":[],"sources":["../../src/helpers/template-helpers.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 { ReflectionClass } from \"@powerlines/deepkit/vendor/type\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { EnvPluginContext, EnvType } from \"../types/plugin\";\nimport { readEnvTypeReflection } from \"./persistence\";\n\n/**\n * Creates the reflection data used when generating runtime template files.\n *\n * @param context - The context for the configuration plugin.\n * @param name - The name of the configuration template.\n * @returns The reflection for the specified configuration template.\n */\nexport async function createTemplateReflection(\n context: EnvPluginContext,\n name?: EnvType\n): Promise<ReflectionClass<any>> {\n const reflection = await readEnvTypeReflection(context, name);\n\n reflection.getProperties().forEach(prop => {\n const aliases = prop.getAlias();\n aliases.filter(Boolean).forEach(alias => {\n reflection.addProperty({\n name: alias,\n optional: prop.isOptional() ? true : undefined,\n readonly: prop.isReadonly() ? true : undefined,\n description: prop.getDescription(),\n visibility: prop.getVisibility(),\n type: prop.getType(),\n default: prop.getDefaultValue(),\n tags: {\n hidden: prop.isHidden(),\n ignore: prop.isIgnored(),\n internal: prop.isInternal(),\n alias: prop\n .getAlias()\n .filter(a => a !== alias)\n .concat(prop.name),\n title: prop.getTitle() || titleCase(prop.name),\n readonly: prop.isReadonly(),\n permission: prop.getPermission(),\n domain: prop.getDomain()\n }\n });\n });\n });\n\n return reflection;\n}\n"],"mappings":";;;;;AAIA,SAAM,aAAS,IAAW,MAAM;AAC5B,IAAA,SAAW;AACd,QAAS;;;;;;;;;;CAYV,MAAS,aAAA,MAAkB,sBAAkB,SAAe,KAAK;AACjE,YAAS,eAAmB,CAAA,QAAO,cAAc,SAAW;AAEpD,EADC,KAAkB,UAAU,CAC5B,OAAA,QAAsB,CAAC,QAAQ,cAAa,UAAA;;IAEnD,MAAA;IACa,UAAW,KAAK,YAAU,GAAA,OAAW;IACnD,UAAA,KAAA,YAAA,GAAA,OAAA;IACS,aAAc,KAAQ,gBAAQ;IACxB,YAAY,KAAK,eAAc;IAC/B,MAAA,KAAW,SAAQ;IACjC,SAAA,KAAA,iBAAA;IACW,MAAS;KACX,QAAgB,KAAA,UAAA;KAClB,QAAA,KAAA,WAAA;KACE,UAAmB,KAAG,YAAA;KACb,
|
|
1
|
+
{"version":3,"file":"template-helpers.mjs","names":[],"sources":["../../src/helpers/template-helpers.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 { ReflectionClass } from \"@powerlines/deepkit/vendor/type\";\nimport { titleCase } from \"@stryke/string-format/title-case\";\nimport { EnvPluginContext, EnvType } from \"../types/plugin\";\nimport { readEnvTypeReflection } from \"./persistence\";\n\n/**\n * Creates the reflection data used when generating runtime template files.\n *\n * @param context - The context for the configuration plugin.\n * @param name - The name of the configuration template.\n * @returns The reflection for the specified configuration template.\n */\nexport async function createTemplateReflection(\n context: EnvPluginContext,\n name?: EnvType\n): Promise<ReflectionClass<any>> {\n const reflection = await readEnvTypeReflection(context, name);\n\n reflection.getProperties().forEach(prop => {\n const aliases = prop.getAlias();\n aliases.filter(Boolean).forEach(alias => {\n reflection.addProperty({\n name: alias,\n optional: prop.isOptional() ? true : undefined,\n readonly: prop.isReadonly() ? true : undefined,\n description: prop.getDescription(),\n visibility: prop.getVisibility(),\n type: prop.getType(),\n default: prop.getDefaultValue(),\n tags: {\n hidden: prop.isHidden(),\n ignore: prop.isIgnored(),\n internal: prop.isInternal(),\n runtime: prop.isRuntime(),\n alias: prop\n .getAlias()\n .filter(a => a !== alias)\n .concat(prop.name),\n title: prop.getTitle() || titleCase(prop.name),\n readonly: prop.isReadonly(),\n permission: prop.getPermission(),\n domain: prop.getDomain()\n }\n });\n });\n });\n\n return reflection;\n}\n"],"mappings":";;;;;AAIA,SAAM,aAAS,IAAW,MAAM;AAC5B,IAAA,SAAW;AACd,QAAS;;;;;;;;;;CAYV,MAAS,aAAA,MAAkB,sBAAkB,SAAe,KAAK;AACjE,YAAS,eAAmB,CAAA,QAAO,cAAc,SAAW;AAEpD,EADC,KAAkB,UAAU,CAC5B,OAAA,QAAsB,CAAC,QAAQ,cAAa,UAAA;;IAEnD,MAAA;IACa,UAAW,KAAK,YAAU,GAAA,OAAW;IACnD,UAAA,KAAA,YAAA,GAAA,OAAA;IACS,aAAc,KAAQ,gBAAQ;IACxB,YAAY,KAAK,eAAc;IAC/B,MAAA,KAAW,SAAQ;IACjC,SAAA,KAAA,iBAAA;IACW,MAAS;KACX,QAAgB,KAAA,UAAA;KAClB,QAAA,KAAA,WAAA;KACE,UAAmB,KAAG,YAAA;KACb,SAAO,KAAA,WAAA;iBAEd,UAAgB,CACJ,OAAA,cAAU,MAAA,MAAA,OAAA;MAAA;MAAA;MAAA;MAAA,CAAA,CAAA,CAChB,OAAS,KAAQ,KAAM;KACzB,OAAA,KAAY,UAAA,IAAA,UAAA,KAAA,KAAA;KACV,UAAA,KAAA,YAAA;KACD,YAAK,KAAc,eAAQ;KAC3B,QAAK,KAAU,WAAW;KACpC;IACA,CAAA;KACA;GAAI;GAAO;GAAA;GAAS,CAAA,CAAA;IACrB;EAAC;EAAQ;EAAC;EAAK,CAAA,CAAA;AAClB,QAAI;;AAER,yBAAuB,SAAW;OAAA;CAAA;OAAA;CAAA;CAAA;CAAA;CAAA;CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.121",
|
|
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"],
|
|
@@ -306,12 +306,12 @@
|
|
|
306
306
|
"@alloy-js/typescript": "0.23.0-dev.4",
|
|
307
307
|
"@babel/core": "^7.29.0",
|
|
308
308
|
"@babel/types": "^7.29.0",
|
|
309
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
310
|
-
"@powerlines/plugin-automd": "^0.1.
|
|
311
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
312
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
313
|
-
"@powerlines/deepkit": "^0.
|
|
314
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
309
|
+
"@powerlines/plugin-alloy": "^0.26.15",
|
|
310
|
+
"@powerlines/plugin-automd": "^0.1.396",
|
|
311
|
+
"@powerlines/plugin-babel": "^0.12.392",
|
|
312
|
+
"@powerlines/plugin-plugin": "^0.12.347",
|
|
313
|
+
"@powerlines/deepkit": "^0.8.0",
|
|
314
|
+
"@powerlines/plugin-deepkit": "^0.11.277",
|
|
315
315
|
"@storm-software/config-tools": "^1.189.75",
|
|
316
316
|
"@stryke/capnp": "^0.12.92",
|
|
317
317
|
"@stryke/convert": "^0.6.58",
|
|
@@ -325,10 +325,10 @@
|
|
|
325
325
|
"@stryke/types": "^0.11.3",
|
|
326
326
|
"automd": "^0.4.3",
|
|
327
327
|
"defu": "^6.1.7",
|
|
328
|
-
"powerlines": "^0.42.
|
|
328
|
+
"powerlines": "^0.42.37",
|
|
329
329
|
"c12": "^3.3.4"
|
|
330
330
|
},
|
|
331
331
|
"devDependencies": { "@types/node": "^25.6.0", "vite": "^8.0.8" },
|
|
332
332
|
"publishConfig": { "access": "public" },
|
|
333
|
-
"gitHead": "
|
|
333
|
+
"gitHead": "9104f99f87d0f09319d19a8eb8e1b8ac2def7cd0"
|
|
334
334
|
}
|