@5minds/node-red-contrib-processcube 1.5.12-develop-c71c09-m4sa8e6d → 1.5.12-develop-a60549-m4sjv7zf
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/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@5minds/node-red-contrib-processcube",
|
3
|
-
"version": "1.5.12-develop-
|
3
|
+
"version": "1.5.12-develop-a60549-m4sjv7zf",
|
4
4
|
"license": "MIT",
|
5
5
|
"description": "Node-RED nodes for ProcessCube",
|
6
6
|
"scripts": {
|
@@ -57,7 +57,7 @@
|
|
57
57
|
"examples": "examples"
|
58
58
|
},
|
59
59
|
"dependencies": {
|
60
|
-
"@5minds/processcube_engine_client": "
|
60
|
+
"@5minds/processcube_engine_client": "release~v5.1.3",
|
61
61
|
"jwt-decode": "^4.0.0",
|
62
62
|
"openid-client": "^5.5.0"
|
63
63
|
},
|
@@ -13,12 +13,14 @@ module.exports = function (RED) {
|
|
13
13
|
|
14
14
|
try {
|
15
15
|
if (node.credentials.clientId && node.credentials.clientSecret) {
|
16
|
+
node.log('Create Client with secrets');
|
16
17
|
node.engineClient = new engine_client.EngineClient(node.url, {
|
17
18
|
clientId: node.credentials.clientId,
|
18
19
|
clientSecret: node.credentials.clientSecret,
|
19
20
|
scope: 'engine_etw engine_read engine_write',
|
20
21
|
});
|
21
22
|
} else {
|
23
|
+
node.log('Create Client without secrets');
|
22
24
|
node.engineClient = new engine_client.EngineClient(node.url);
|
23
25
|
}
|
24
26
|
} catch (error) {
|
@@ -26,6 +28,7 @@ module.exports = function (RED) {
|
|
26
28
|
}
|
27
29
|
|
28
30
|
node.on('close', async () => {
|
31
|
+
node.log('close');
|
29
32
|
if (node.engineClient) {
|
30
33
|
node.engineClient.dispose();
|
31
34
|
node.engineClient = null;
|