node-red-contrib-mobius-flow-base 3.1.4-beta.2 → 3.1.4

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.
@@ -15,7 +15,6 @@ export declare class EngineApiClient extends EngineApiCalls {
15
15
  EngineWebSocket: EngineWebSocket;
16
16
  private hostname;
17
17
  private protocol;
18
- private clientID;
19
18
  constructor(protocol: "http" | "https", host: string, username: string, password: string);
20
19
  private login;
21
20
  private refresh;
@@ -7,7 +7,6 @@ exports.EngineApiClient = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
8
  const engine_websocket_1 = require("./engine-websocket");
9
9
  const engine_api_calls_1 = require("./engine-api-calls");
10
- const crypto_1 = __importDefault(require("crypto"));
11
10
  // new class
12
11
  class EngineApiClient extends engine_api_calls_1.EngineApiCalls {
13
12
  reloginInterval = null;
@@ -20,14 +19,12 @@ class EngineApiClient extends engine_api_calls_1.EngineApiCalls {
20
19
  EngineWebSocket;
21
20
  hostname;
22
21
  protocol;
23
- clientID;
24
22
  constructor(protocol, host, username, password) {
25
23
  super();
26
24
  this.username = username;
27
25
  this.password = password;
28
26
  this.hostname = host;
29
27
  this.protocol = protocol;
30
- this.clientID = crypto_1.default.randomBytes(16).toString("hex");
31
28
  const baseURL = `${this.protocol}://${this.hostname}/api/v1`;
32
29
  this.client = axios_1.default.create({
33
30
  baseURL: baseURL,
@@ -79,7 +76,7 @@ class EngineApiClient extends engine_api_calls_1.EngineApiCalls {
79
76
  this.EngineWebSocket = new engine_websocket_1.EngineWebSocket(this.hostname, this.protocol);
80
77
  }
81
78
  login = async () => {
82
- console.log(`(${this.hostname}) -> Attempting Mobius Engine API Login => ${this.clientID}`);
79
+ console.log(`(${this.hostname}) -> Attempting Mobius Engine API Login`);
83
80
  try {
84
81
  const response = await this.client({
85
82
  method: "post",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-red-contrib-mobius-flow-base",
3
- "version": "3.1.4-beta.2",
3
+ "version": "3.1.4",
4
4
  "description": "Node-RED base nodes for Mobius Flow",
5
5
  "main": "index.js",
6
6
  "types": "dist/index.d.ts",