@letis009/node-red-contrib-tdn-report 1.0.2 → 1.0.4
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/README.md +4 -0
- package/package.json +4 -1
- package/report-logic.js +0 -9
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letis009/node-red-contrib-tdn-report",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "TDN Deposit Report Formatter Node",
|
|
5
5
|
"main": "tdn-report.js",
|
|
6
6
|
"node-red": {
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
],
|
|
16
16
|
"author": "Switch Point",
|
|
17
17
|
"license": "MIT",
|
|
18
|
+
"bugs": {
|
|
19
|
+
"email": "npm.switchpoint@gmail.com"
|
|
20
|
+
},
|
|
18
21
|
"repository": {
|
|
19
22
|
"type": "git",
|
|
20
23
|
"url": "https://github.com/letis009/node-red-contrib-reportsFile.git"
|
package/report-logic.js
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
1
|
module.exports = function(msg, RED, node) {
|
|
2
|
-
// const printStringArray = [];
|
|
3
|
-
const global = {
|
|
4
|
-
get: (key) => {
|
|
5
|
-
if (key === "prod.enabledDevice") return "ANALOGUE";
|
|
6
|
-
if (key === "prod.reportFormat") return "SBV+Rej";
|
|
7
|
-
return undefined;
|
|
8
|
-
}
|
|
9
|
-
};
|
|
10
|
-
/* Full report logic from user’s function goes here */
|
|
11
2
|
};
|