node-red-contrib-uos-nats 0.2.42 → 0.2.43
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/lib/payloads.js +6 -2
- package/package.json +1 -1
package/lib/payloads.js
CHANGED
|
@@ -460,8 +460,12 @@ function computeFingerprint(defs) {
|
|
|
460
460
|
// We must capitalize bools to match Python.
|
|
461
461
|
const expStr = exp ? 'True' : 'False';
|
|
462
462
|
|
|
463
|
-
|
|
463
|
+
const preHash = `${def.id}:${def.key}:${dtInt}:${acInt}:${expStr}`;
|
|
464
|
+
console.log(`[DataHub Payloads] Fingerprint part: ${preHash}`);
|
|
465
|
+
hash.update(preHash);
|
|
464
466
|
}
|
|
465
467
|
const digest = hash.digest();
|
|
466
|
-
|
|
468
|
+
const fp = digest.readBigUInt64BE(0);
|
|
469
|
+
console.log(`[DataHub Payloads] Computed Fingerprint: ${fp}`);
|
|
470
|
+
return fp;
|
|
467
471
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-red-contrib-uos-nats",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.43",
|
|
4
4
|
"description": "Node-RED nodes for Weidmüller u-OS Data Hub. Read, write, and provide variables via NATS protocol with OAuth2 authentication. Features: Variable Key resolution, custom icons, example flows, and provider definition caching.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "IoTUeli",
|