bdy 1.16.36-dev → 1.16.38-dev

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.16.36-dev",
4
+ "version": "1.16.38-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -34,7 +34,7 @@ class Agent extends events_1.default {
34
34
  this.target = target;
35
35
  this.disabled = disabled;
36
36
  this.tunnels = [];
37
- this.tags = [];
37
+ this.tags = tags || [];
38
38
  this.tunnelsUpdating = false;
39
39
  this.api = api;
40
40
  this.manager = null;
@@ -80,6 +80,7 @@ class Agent extends events_1.default {
80
80
  output_1.default.exitError(texts_1.ERR_AGENT_REMOVED);
81
81
  }
82
82
  else {
83
+ const shouldFetch = this.target !== data.target;
83
84
  this.target = !!data.target;
84
85
  this.tags = data.tags || [];
85
86
  if (!!data.disabled !== this.disabled) {
@@ -97,6 +98,9 @@ class Agent extends events_1.default {
97
98
  logger_1.default.error(err);
98
99
  }
99
100
  }
101
+ if (shouldFetch && this.socket) {
102
+ this.socket.fetch(!this.disabled, null, null, false, []);
103
+ }
100
104
  }
101
105
  }
102
106
  _onSocketConnected() {
@@ -83,12 +83,17 @@ const outputJsonArrayProp = (data, padding, name, required) => {
83
83
  output_1.default.normal('');
84
84
  }
85
85
  outputTextWithPadding('[', padding);
86
- if (data.items.type === SCHEMA_TYPE.OBJECT)
87
- outputJsonObject(data.items, padding + 2);
88
- else if (data.items.type === SCHEMA_TYPE.ARRAY)
89
- outputJsonArrayProp(data.items, padding + 2);
90
- else
91
- outputSimpleProp('item', data.items.type, data.items.description, data.items.enum, false, padding + 2);
86
+ if (name === 'trigger_operands') {
87
+ outputTextWithPadding(' {...}', padding);
88
+ }
89
+ else {
90
+ if (data.items.type === SCHEMA_TYPE.OBJECT)
91
+ outputJsonObject(data.items, padding + 2);
92
+ else if (data.items.type === SCHEMA_TYPE.ARRAY)
93
+ outputJsonArrayProp(data.items, padding + 2);
94
+ else
95
+ outputSimpleProp('item', data.items.type, data.items.description, data.items.enum, false, padding + 2);
96
+ }
92
97
  outputTextWithPadding(']', padding);
93
98
  };
94
99
  const outputJsonObject = (data, padding = 1, name, required) => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.16.36-dev",
4
+ "version": "1.16.38-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {