@powerlines/plugin-crypto 0.10.104 → 0.10.106
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.
|
@@ -143,7 +143,7 @@ const envSerializerRefkey = require_refkey.refkey("EnvSerializer");
|
|
|
143
143
|
* Generates the environment configuration module for the Powerlines project.
|
|
144
144
|
*/
|
|
145
145
|
function EnvBuiltin(props) {
|
|
146
|
-
const [{ defaultConfig }, rest] = (0, __alloy_js_core.splitProps)(props, ["defaultConfig"]);
|
|
146
|
+
const [{ defaultConfig, children }, rest] = (0, __alloy_js_core.splitProps)(props, ["defaultConfig", "children"]);
|
|
147
147
|
const context = require_context.usePowerlines();
|
|
148
148
|
const defaultValue = (0, __alloy_js_core.computed)(() => context && require_load.loadEnvFromContext(context, process.env));
|
|
149
149
|
const reflection = require_create_reflection_resource.createReflectionResource(context);
|
|
@@ -157,9 +157,9 @@ function EnvBuiltin(props) {
|
|
|
157
157
|
const reflectionGetProperties = (0, __alloy_js_core.computed)(() => reflection.data?.getProperties().filter((property) => !property.isIgnored()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
|
|
158
158
|
const reflectionSetProperties = (0, __alloy_js_core.computed)(() => reflection.data?.getProperties().filter((property) => !property.isIgnored() && !property.isReadonly()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
|
|
159
159
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(require_builtin_file.BuiltinFile, {
|
|
160
|
-
...rest,
|
|
161
160
|
id: "env",
|
|
162
161
|
description: "The Powerlines environment configuration module provides an interface to define environment configuration parameters.",
|
|
162
|
+
...rest,
|
|
163
163
|
imports: (0, defu.default)({
|
|
164
164
|
"@powerlines/deepkit/vendor/type": [
|
|
165
165
|
"Type",
|
|
@@ -473,7 +473,11 @@ function EnvBuiltin(props) {
|
|
|
473
473
|
initializer: __alloy_js_core.code`Boolean(isDevelopment && env.DEBUG); `
|
|
474
474
|
}),
|
|
475
475
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {}),
|
|
476
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {})
|
|
476
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("hbr", {}),
|
|
477
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(__alloy_js_core.Show, {
|
|
478
|
+
when: Boolean(children),
|
|
479
|
+
children
|
|
480
|
+
})
|
|
477
481
|
]
|
|
478
482
|
});
|
|
479
483
|
}
|
|
@@ -141,7 +141,7 @@ const envSerializerRefkey = refkey$1("EnvSerializer");
|
|
|
141
141
|
* Generates the environment configuration module for the Powerlines project.
|
|
142
142
|
*/
|
|
143
143
|
function EnvBuiltin(props) {
|
|
144
|
-
const [{ defaultConfig }, rest] = splitProps(props, ["defaultConfig"]);
|
|
144
|
+
const [{ defaultConfig, children }, rest] = splitProps(props, ["defaultConfig", "children"]);
|
|
145
145
|
const context = usePowerlines();
|
|
146
146
|
const defaultValue = computed(() => context && loadEnvFromContext(context, process.env));
|
|
147
147
|
const reflection = createReflectionResource(context);
|
|
@@ -155,9 +155,9 @@ function EnvBuiltin(props) {
|
|
|
155
155
|
const reflectionGetProperties = computed(() => reflection.data?.getProperties().filter((property) => !property.isIgnored()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
|
|
156
156
|
const reflectionSetProperties = computed(() => reflection.data?.getProperties().filter((property) => !property.isIgnored() && !property.isReadonly()).sort((a, b) => a.getNameAsString().localeCompare(b.getNameAsString())) ?? []);
|
|
157
157
|
return /* @__PURE__ */ jsxs(BuiltinFile, {
|
|
158
|
-
...rest,
|
|
159
158
|
id: "env",
|
|
160
159
|
description: "The Powerlines environment configuration module provides an interface to define environment configuration parameters.",
|
|
160
|
+
...rest,
|
|
161
161
|
imports: defu({
|
|
162
162
|
"@powerlines/deepkit/vendor/type": [
|
|
163
163
|
"Type",
|
|
@@ -471,7 +471,11 @@ function EnvBuiltin(props) {
|
|
|
471
471
|
initializer: code`Boolean(isDevelopment && env.DEBUG); `
|
|
472
472
|
}),
|
|
473
473
|
/* @__PURE__ */ jsx("hbr", {}),
|
|
474
|
-
/* @__PURE__ */ jsx("hbr", {})
|
|
474
|
+
/* @__PURE__ */ jsx("hbr", {}),
|
|
475
|
+
/* @__PURE__ */ jsx(Show, {
|
|
476
|
+
when: Boolean(children),
|
|
477
|
+
children
|
|
478
|
+
})
|
|
475
479
|
]
|
|
476
480
|
});
|
|
477
481
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-crypto",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.106",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A Powerlines plugin that provides unique identifier generation capabilities at runtime by adding the `id` builtin module.",
|
|
6
6
|
"repository": {
|
|
@@ -128,7 +128,7 @@
|
|
|
128
128
|
"files": ["dist/**/*"],
|
|
129
129
|
"keywords": ["powerlines", "storm-software", "powerlines-plugin"],
|
|
130
130
|
"dependencies": {
|
|
131
|
-
"@powerlines/plugin-env": "^0.15.
|
|
131
|
+
"@powerlines/plugin-env": "^0.15.3",
|
|
132
132
|
"@storm-software/config-tools": "^1.188.75",
|
|
133
133
|
"@stryke/path": "^0.24.1",
|
|
134
134
|
"defu": "^6.1.4",
|
|
@@ -140,5 +140,5 @@
|
|
|
140
140
|
"@types/node": "^24.10.4"
|
|
141
141
|
},
|
|
142
142
|
"publishConfig": { "access": "public" },
|
|
143
|
-
"gitHead": "
|
|
143
|
+
"gitHead": "9e66d0e1d9210071bcabcd4e4dc04ad4d2bbfe15"
|
|
144
144
|
}
|