node-red-contrib-mobius-flow-base 3.0.0-rc.7 → 3.0.0-rc.9

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.
@@ -60,6 +60,7 @@ class EngineApiClient extends engine_api_calls_1.EngineApiCalls {
60
60
  this.client.interceptors.response.use((res) => {
61
61
  return res;
62
62
  }, async (error) => {
63
+ console.log(error);
63
64
  if (!error.response) {
64
65
  // notify
65
66
  }
@@ -70,7 +71,8 @@ class EngineApiClient extends engine_api_calls_1.EngineApiCalls {
70
71
  this.tokens = null;
71
72
  this.login();
72
73
  }
73
- return Promise.reject(error);
74
+ // Promise.reject(error);
75
+ throw error;
74
76
  });
75
77
  this.EngineWebSocket = new engine_websocket_1.EngineWebSocket(this.hostname, this.protocol);
76
78
  }
@@ -1,4 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import { EventEmitter } from 'stream';
3
4
  type WebSocketTopics = 'authorize' | 'subscribe' | 'unsubscribe' | 'connected' | 'authorized' | 'object-cov' | 'resource-cov' | 'service-status' | 'broadcast-command' | 'error' | 'ping' | 'pong';
4
5
  interface EngineWebSocketInterface {