@powerlines/plugin-crypto 0.10.114 → 0.10.116
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.
|
@@ -19,7 +19,9 @@ let __stryke_type_checks_is_empty_object = require("@stryke/type-checks/is-empty
|
|
|
19
19
|
* @returns The runtime type definition file for the environment variables.
|
|
20
20
|
*/
|
|
21
21
|
async function resolveRuntimeTypeFile(context) {
|
|
22
|
-
|
|
22
|
+
const resolved = await context.fs.resolve("@powerlines/plugin-env/types/runtime");
|
|
23
|
+
if (!resolved) throw new Error(`Failed to resolve the runtime type definition file for the environment variables. Please ensure that the "@powerlines/plugin-env" package is installed.`);
|
|
24
|
+
return resolved;
|
|
23
25
|
}
|
|
24
26
|
/**
|
|
25
27
|
* Gets the default type definition for the environment variables.
|
|
@@ -17,7 +17,9 @@ import { isEmptyObject } from "@stryke/type-checks/is-empty-object";
|
|
|
17
17
|
* @returns The runtime type definition file for the environment variables.
|
|
18
18
|
*/
|
|
19
19
|
async function resolveRuntimeTypeFile(context) {
|
|
20
|
-
|
|
20
|
+
const resolved = await context.fs.resolve("@powerlines/plugin-env/types/runtime");
|
|
21
|
+
if (!resolved) throw new Error(`Failed to resolve the runtime type definition file for the environment variables. Please ensure that the "@powerlines/plugin-env" package is installed.`);
|
|
22
|
+
return resolved;
|
|
21
23
|
}
|
|
22
24
|
/**
|
|
23
25
|
* Gets the default type definition for the environment variables.
|
|
@@ -92,7 +92,7 @@ async function reflectEnv(context, file, name) {
|
|
|
92
92
|
if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await require_reflect_type.reflectType(context, {
|
|
93
93
|
file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
|
|
94
94
|
name
|
|
95
|
-
}
|
|
95
|
+
}));
|
|
96
96
|
const defaultConfigType = await require_reflect_type.reflectType(context, await require_persistence.getEnvDefaultTypeDefinition(context));
|
|
97
97
|
return mergeEnvReflections(context, [
|
|
98
98
|
await require_persistence.readEnvTypeReflection(context, "env"),
|
|
@@ -105,7 +105,7 @@ async function reflectSecrets(context, file, name) {
|
|
|
105
105
|
if (file) config = (0, __powerlines_deepkit_vendor_type.resolveClassType)(await require_reflect_type.reflectType(context, {
|
|
106
106
|
file: !(0, __stryke_path_is_parent_path.isParentPath)(file, context.workspaceConfig.workspaceRoot) ? (0, __stryke_path_join_paths.joinPaths)(context.workspaceConfig.workspaceRoot, file) : file,
|
|
107
107
|
name
|
|
108
|
-
}
|
|
108
|
+
}));
|
|
109
109
|
const defaultSecretsType = await require_reflect_type.reflectType(context, await require_persistence.getSecretsDefaultTypeDefinition(context));
|
|
110
110
|
return mergeSecretsReflections(context, [
|
|
111
111
|
await require_persistence.readSecretsReflection(context),
|
|
@@ -91,7 +91,7 @@ async function reflectEnv(context, file, name) {
|
|
|
91
91
|
if (file) config = resolveClassType(await reflectType(context, {
|
|
92
92
|
file: !isParentPath(file, context.workspaceConfig.workspaceRoot) ? joinPaths(context.workspaceConfig.workspaceRoot, file) : file,
|
|
93
93
|
name
|
|
94
|
-
}
|
|
94
|
+
}));
|
|
95
95
|
const defaultConfigType = await reflectType(context, await getEnvDefaultTypeDefinition(context));
|
|
96
96
|
return mergeEnvReflections(context, [
|
|
97
97
|
await readEnvTypeReflection(context, "env"),
|
|
@@ -104,7 +104,7 @@ async function reflectSecrets(context, file, name) {
|
|
|
104
104
|
if (file) config = resolveClassType(await reflectType(context, {
|
|
105
105
|
file: !isParentPath(file, context.workspaceConfig.workspaceRoot) ? joinPaths(context.workspaceConfig.workspaceRoot, file) : file,
|
|
106
106
|
name
|
|
107
|
-
}
|
|
107
|
+
}));
|
|
108
108
|
const defaultSecretsType = await reflectType(context, await getSecretsDefaultTypeDefinition(context));
|
|
109
109
|
return mergeSecretsReflections(context, [
|
|
110
110
|
await readSecretsReflection(context),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-crypto",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.116",
|
|
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,17 +128,17 @@
|
|
|
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.13",
|
|
132
132
|
"@storm-software/config-tools": "^1.188.75",
|
|
133
133
|
"@stryke/path": "^0.24.1",
|
|
134
134
|
"defu": "^6.1.4",
|
|
135
|
-
"powerlines": "^0.37.
|
|
135
|
+
"powerlines": "^0.37.2",
|
|
136
136
|
"@noble/ciphers": "^2.1.1"
|
|
137
137
|
},
|
|
138
138
|
"devDependencies": {
|
|
139
|
-
"@powerlines/nx": "^0.11.
|
|
139
|
+
"@powerlines/nx": "^0.11.58",
|
|
140
140
|
"@types/node": "^24.10.4"
|
|
141
141
|
},
|
|
142
142
|
"publishConfig": { "access": "public" },
|
|
143
|
-
"gitHead": "
|
|
143
|
+
"gitHead": "5a9bfc9333eca98a453682f39a04a0d642930a50"
|
|
144
144
|
}
|