@ejfdelgado/ejflab-back 1.18.0 → 1.18.1
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
@@ -43,6 +43,18 @@ export class LoadFlowChartProcessor extends GenericProcessor {
|
|
43
43
|
}
|
44
44
|
}
|
45
45
|
|
46
|
+
static getFilteredEnv() {
|
47
|
+
const envClone = JSON.parse(JSON.stringify(process.env));
|
48
|
+
const envCloneKeys = Object.keys(envClone);
|
49
|
+
for (let i = 0; i < envCloneKeys.length; i++) {
|
50
|
+
const key = envCloneKeys[i];
|
51
|
+
if (/pass|secret|key/i.test(key)) {
|
52
|
+
delete envClone[key];
|
53
|
+
}
|
54
|
+
}
|
55
|
+
return envClone;
|
56
|
+
}
|
57
|
+
|
46
58
|
async execute(args) {
|
47
59
|
let {
|
48
60
|
names,
|
@@ -102,7 +114,7 @@ export class LoadFlowChartProcessor extends GenericProcessor {
|
|
102
114
|
}
|
103
115
|
|
104
116
|
data['scope'] = { room, progress: 0 };
|
105
|
-
data['env'] =
|
117
|
+
data['env'] = LoadFlowChartProcessor.getFilteredEnv();
|
106
118
|
|
107
119
|
// Leer el archivo y su data
|
108
120
|
instance = new FlowChartExec();
|