From 27b1508d735ed0786868bd67cc0e5a9798005b4f Mon Sep 17 00:00:00 2001
From: "p.vanderwilt"
Date: Wed, 3 Sep 2025 12:00:45 +0200
Subject: [PATCH] Refactor variable declarations in specificClass and nodeClass
for consistency; update generalFunctions dependency to specific commit.
---
package-lock.json | 4 ++--
package.json | 2 +-
src/nodeClass.js | 4 ++--
src/specificClass.js | 6 +++---
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index d9b7e0f..91eb354 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -9,12 +9,12 @@
"version": "0.0.1",
"license": "SEE LICENSE",
"dependencies": {
- "generalFunctions": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git"
+ "generalFunctions": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#implement-reactor-child"
}
},
"node_modules/generalFunctions": {
"version": "1.0.0",
- "resolved": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#f13ee68938ea9d4b3a17ad90618c72634769c777",
+ "resolved": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#958ec2269c902f3ebb11b13527fbc860ee9381e7",
"license": "SEE LICENSE"
}
}
diff --git a/package.json b/package.json
index 9219b28..dd6f971 100644
--- a/package.json
+++ b/package.json
@@ -22,6 +22,6 @@
}
},
"dependencies": {
- "generalFunctions": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git"
+ "generalFunctions": "git+https://gitea.centraal.wbd-rd.nl/p.vanderwilt/generalFunctions.git#implement-reactor-child"
}
}
diff --git a/src/nodeClass.js b/src/nodeClass.js
index 4ab5ffb..c63c04b 100644
--- a/src/nodeClass.js
+++ b/src/nodeClass.js
@@ -80,8 +80,8 @@ class nodeClass {
* Execute a single tick and send outputs.
*/
_tick() {
- processMsg = this.source.getOutput();
- influxMsg = null;
+ let processMsg = this.source.getOutput();
+ let influxMsg = null;
// Send only updated outputs on ports 0 & 1
this.node.send([processMsg, influxMsg, null]);
diff --git a/src/specificClass.js b/src/specificClass.js
index 81d067c..f039625 100644
--- a/src/specificClass.js
+++ b/src/specificClass.js
@@ -13,7 +13,7 @@ class liquidFlowHandler {
}
updateState(timeStamp) {
- effluent = this.reactors[1].getEffluent;
+ let effluent = this.reactors[1].getEffluent;
effluent.payload.F = this.debit;
this.reactors[0].setInfluent = effluent;
}
@@ -27,8 +27,8 @@ class liquidFlowHandler {
}
getOutput() {
- mainEffluent = this.reactors[1].getEffluent;
- sideStream = structuredClone(mainEffluent);
+ let mainEffluent = this.reactors[1].getEffluent;
+ let sideStream = structuredClone(mainEffluent);
mainEffluent.payload.F -= this.debit;
sideStream.payload.F = this.debit;
sideStream.payload.inlet = 1;