@5minds/node-red-contrib-processcube
Advanced tools
Comparing version 1.5.12-develop-571171-m4sfus1z to 1.5.12-develop-a60549-m4sjv7zf
{ | ||
"name": "@5minds/node-red-contrib-processcube", | ||
"version": "1.5.12-develop-571171-m4sfus1z", | ||
"version": "1.5.12-develop-a60549-m4sjv7zf", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Node-RED nodes for ProcessCube", |
@@ -16,2 +16,3 @@ const engine_client = require('@5minds/processcube_engine_client'); | ||
if (node.credentials.clientId && node.credentials.clientSecret) { | ||
node.log('Create Client with secrets'); | ||
node.engineClient = new engine_client.EngineClient(node.url, { | ||
@@ -23,2 +24,3 @@ clientId: node.credentials.clientId, | ||
} else { | ||
node.log('Create Client without secrets'); | ||
node.engineClient = new engine_client.EngineClient(node.url); | ||
@@ -31,2 +33,3 @@ } | ||
node.on('close', async () => { | ||
node.log('close'); | ||
if (node.engineClient) { | ||
@@ -33,0 +36,0 @@ node.engineClient.dispose(); |
515087
9863