@5minds/node-red-contrib-processcube 0.13.0-develop-c433c3-lyelumqz → 0.13.0-develop-930077-lygs2i9d

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  {
2
- "$": "4d3947a7155e180f5e1361182578e6ca2miDlL35ToUWYsN6HIEZN1KBk9Ec3/4="
2
+ "$": "161b525bcc3a85ed486f778fadca44e0c0RvyjjTCLddR3fu+V4rGaC/L1NxysY="
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5minds/node-red-contrib-processcube",
3
- "version": "0.13.0-develop-c433c3-lyelumqz",
3
+ "version": "0.13.0-develop-930077-lygs2i9d",
4
4
  "license": "MIT",
5
5
  "description": "Node-RED nodes for ProcessCube",
6
6
  "authors": [
@@ -7,6 +7,7 @@ const DELAY_FACTOR = 0.85;
7
7
  module.exports = function(RED) {
8
8
  function ProcessCubeEngineNode(n) {
9
9
  RED.nodes.createNode(this, n);
10
+ const node = this;
10
11
  const identityChangedCallbacks = [];
11
12
  this.url = n.url;
12
13
  this.identity = null;
@@ -25,7 +26,13 @@ module.exports = function(RED) {
25
26
  const engineClient = new engine_client.EngineClient(this.url);
26
27
 
27
28
  engineClient.applicationInfo.getAuthorityAddress().then(authorityUrl => {
28
- startRefreshingIdentityCycle(this.credentials.clientId, this.credentials.clientSecret, authorityUrl, this);
29
+ startRefreshingIdentityCycle(this.credentials.clientId, this.credentials.clientSecret, authorityUrl, this).catch(reason => {
30
+ console.error(reason);
31
+ node.error(reason);
32
+ });
33
+ }).catch((reason) => {
34
+ console.error(reason);
35
+ node.error(reason);
29
36
  });
30
37
  }
31
38
  }