Skip to content

Commit cdc4819

Browse files
committed
fix rpa node connection issue
1 parent a711071 commit cdc4819

6 files changed

Lines changed: 22 additions & 19 deletions

File tree

OpenFlow.code-workspace

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
{
44
"name": "OpenFlow",
55
"path": "."
6+
},
7+
{
8+
"path": "..\\openflow-api"
69
}
710
]
811
}

OpenFlowNodeRED/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "openflow-nodered",
3-
"version": "1.1.18",
3+
"version": "1.1.19",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
88
"postinstall_old": "node -e \"try{require('./postinstall')}catch(e){console.log(e)}\"",
9-
"prepublish": "gulp clean"
9+
"prepare": "gulp clean"
1010
},
1111
"repository": {
1212
"type": "git",
@@ -38,7 +38,7 @@
3838
"morgan": "^1.10.0",
3939
"node-red": "^1.2.1",
4040
"node-red-node-email": "^1.7.8",
41-
"openflow-api": "^1.0.40",
41+
"openflow-api": "^1.0.41",
4242
"os-service": "^2.2.0",
4343
"passport-saml": "^1.3.4",
4444
"passport-saml-metadata": "^2.3.0",

OpenFlowNodeRED/src/node-red-contrib-openflow-storage.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -308,15 +308,15 @@ export class noderedcontribopenflowstorage {
308308
this.npmrc = null;
309309
}
310310
try {
311-
const filename: string = Config.nodered_id + "_npmrc.txt";
312-
if (this.npmrc == null) {
313-
const json = await backupStore.get<string>(filename, null);
314-
if (!NoderedUtil.IsNullEmpty(json)) {
315-
this.npmrc = JSON.parse(json);
316-
}
317-
} else {
318-
await backupStore.set(filename, JSON.stringify(this.npmrc));
319-
}
311+
// const filename: string = Config.nodered_id + "_npmrc.txt";
312+
// if (this.npmrc == null) {
313+
// const json = await backupStore.get<string>(filename, null);
314+
// if (!NoderedUtil.IsNullEmpty(json)) {
315+
// this.npmrc = JSON.parse(json);
316+
// }
317+
// } else {
318+
// await backupStore.set(filename, JSON.stringify(this.npmrc));
319+
// }
320320
return this.npmrc;
321321
} catch (error) {
322322
if (error.message) { this._logger.error(error.message); }
@@ -329,8 +329,8 @@ export class noderedcontribopenflowstorage {
329329
try {
330330
this.npmrc = npmrc;
331331
this._logger.silly("noderedcontribopenflowstorage::_setnpmrc");
332-
const filename: string = Config.nodered_id + "_npmrc.txt";
333-
await backupStore.set(filename, JSON.stringify(npmrc));
332+
// const filename: string = Config.nodered_id + "_npmrc.txt";
333+
// await backupStore.set(filename, JSON.stringify(npmrc));
334334
if (WebSocketClient.instance.isConnected()) {
335335
var result = await NoderedUtil.Query("nodered", { _type: "npmrc", nodered_id: Config.nodered_id }, null, null, 1, 0, null);
336336
if (result.length === 0) {

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.1.18
1+
1.1.19

gulpfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ var OpenFlowFiles = [
1010
"./OpenFlow/src/public/**/*.html", "./OpenFlow/src/public/**/*.css", "./OpenFlow/src/public/**/*.js", "./OpenFlow/src/public/**/*.json",
1111
"./OpenFlow/src/public/**/*.ico", "./OpenFlow/src/public/**/*.eot", "./OpenFlow/src/public/**/*.svg", "./OpenFlow/src/public/**/*.ttf",
1212
"./OpenFlow/src/public/**/*.woff", "./OpenFlow/src/public/**/*.woff2", "./OpenFlow/src/public/**/*.png"];
13-
var NodeREDHTMLFiles = ["./OpenFlowNodeRED/src/nodered/nodes/**/*.html", "./OpenFlowNodeRED/src/nodered/nodes/**/*.png"]
13+
var NodeREDHTMLFiles = ["./OpenFlowNodeRED/src/nodered/nodes/**/*.html", "./OpenFlowNodeRED/src/nodered/nodes/**/*.png", "./OpenFlowNodeRED/src/nodered/nodes/**/*.json"]
1414

1515

1616
var destination = "./dist/public";

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "openiap",
3-
"version": "1.1.18",
3+
"version": "1.1.19",
44
"description": "Simple wrapper around NodeRed, RabbitMQ and MongoDB to support a more scaleable NodeRed implementation.\r Also the \"backend\" for [OpenRPA](https://github.com/skadefro/OpenRPA)",
55
"main": "index.js",
66
"scripts": {
77
"test": "echo \"Error: no test specified\" && exit 1",
88
"build": "webpack --mode production",
99
"postinstall_old": "node -e \"try{require('./postinstall')}catch(e){console.log(e)}\"",
10-
"prepublish": "gulp clean"
10+
"prepare": "gulp clean"
1111
},
1212
"repository": {
1313
"type": "git",
@@ -62,7 +62,7 @@
6262
"multer": "^1.4.2",
6363
"multer-gridfs-storage": "^4.2.0",
6464
"oauth2-server": "^3.1.1",
65-
"openflow-api": "^1.0.40",
65+
"openflow-api": "^1.0.41",
6666
"os-service": "^2.2.0",
6767
"passport": "^0.4.1",
6868
"passport-google-oauth20": "^2.0.0",

0 commit comments

Comments
 (0)