@ejfdelgado/ejflab-back 1.17.0 → 1.17.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
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@ejfdelgado/ejflab-back",
|
3
|
-
"version": "1.17.
|
3
|
+
"version": "1.17.1",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+https://github.com/ejfdelgado/ejflab-back.git"
|
@@ -18,7 +18,7 @@
|
|
18
18
|
"license": "ISC",
|
19
19
|
"private": false,
|
20
20
|
"dependencies": {
|
21
|
-
"@ejfdelgado/ejflab-common": "1.
|
21
|
+
"@ejfdelgado/ejflab-common": "1.11.1",
|
22
22
|
"@google-cloud/compute": "^4.7.0",
|
23
23
|
"@google-cloud/firestore": "^7.9.0",
|
24
24
|
"@google-cloud/storage": "^7.11.3",
|
@@ -79,13 +79,15 @@ export class ProcessResponseProcessor extends GenericProcessor {
|
|
79
79
|
if (!!outputConnectionsConf) {
|
80
80
|
outputConnectionsConf.forEach((outputConnectionsConfOne) => {
|
81
81
|
const { key, val } = outputConnectionsConfOne;
|
82
|
-
const
|
83
|
-
|
82
|
+
const outputPath = val;
|
83
|
+
let dataLocal = data[key];
|
84
|
+
//console.log(`Assigning ${outputPath}`);
|
85
|
+
//console.log(JSON.stringify(dataLocal, null, 4));
|
84
86
|
if (dataLocal != undefined) {
|
85
87
|
// Sends dataResponse to val
|
86
|
-
const outputParts = /^(b\.([^.]+)\.([^.]+)|d\.(.+))$/i.exec(
|
88
|
+
const outputParts = /^(b\.([^.]+)\.([^.]+)|d\.(.+))$/i.exec(outputPath);
|
87
89
|
if (!outputParts) {
|
88
|
-
console.log(`${
|
90
|
+
console.log(`${outputPath} does not match ^(b\.([^.]+)\.([^.]+)|d\.(.+))$`);
|
89
91
|
return;
|
90
92
|
}
|
91
93
|
if (!outputParts[4]) {
|
@@ -98,7 +100,7 @@ export class ProcessResponseProcessor extends GenericProcessor {
|
|
98
100
|
}
|
99
101
|
instance.saveBufferData(processorIdLocal, sourcePathIndexed, dataLocal);
|
100
102
|
// Publish to others the not indexed?
|
101
|
-
const destiny = `${room}.${
|
103
|
+
const destiny = `${room}.${outputPath}`;
|
102
104
|
//console.log(`Publishing to ${destiny} ok?`);
|
103
105
|
this.io.to(destiny).emit("processResponse", {
|
104
106
|
processorId,
|
@@ -107,6 +109,7 @@ export class ProcessResponseProcessor extends GenericProcessor {
|
|
107
109
|
});
|
108
110
|
} else {
|
109
111
|
// Json case
|
112
|
+
dataLocal = JSON.parse(JSON.stringify(dataLocal));
|
110
113
|
// Affect the model in the given point
|
111
114
|
const path = outputParts[4];
|
112
115
|
let pathIndexed = path;
|
@@ -125,7 +128,7 @@ export class ProcessResponseProcessor extends GenericProcessor {
|
|
125
128
|
});
|
126
129
|
}
|
127
130
|
} else {
|
128
|
-
console.log(`Skip output connection ${
|
131
|
+
console.log(`Skip output connection ${outputPath} with no value`);
|
129
132
|
}
|
130
133
|
});
|
131
134
|
}
|