@onlineapps/conn-orch-validator 2.0.22 → 2.0.23
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onlineapps/conn-orch-validator",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.23",
|
|
4
4
|
"description": "Validation orchestrator for OA Drive microservices - coordinates validation across all layers (base, infra, orch, business)",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -23,7 +23,7 @@ function resolveHeaders(headers, options = {}) {
|
|
|
23
23
|
|
|
24
24
|
const valueStr = String(rawValue);
|
|
25
25
|
|
|
26
|
-
const resolvedValue = valueStr.replace(/\$\{([A-Z0-9_]+)\}/g, (
|
|
26
|
+
const resolvedValue = valueStr.replace(/\$\{([A-Z0-9_]+)\}/g, (_match, varName) => {
|
|
27
27
|
const envValue = env[varName];
|
|
28
28
|
if (envValue === undefined || envValue === null || String(envValue).trim() === '') {
|
|
29
29
|
throw new Error(`[conn-orch-validator][Headers] Missing environment variable - Expected ${varName} for header ${key}`);
|
|
@@ -42,5 +42,3 @@ function resolveHeaders(headers, options = {}) {
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
module.exports = { resolveHeaders };
|
|
45
|
-
|
|
46
|
-
|