bdy 1.9.16-dev → 1.9.18-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.9.16-dev",
4
+ "version": "1.9.18-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -217,13 +217,13 @@ class Agent extends events_1.default {
217
217
  const tunnel = tt.find((tunnel) => data.id === tunnel.id);
218
218
  if (!tunnel) {
219
219
  this.addTunnel(new tunnel_js_1.default({
220
+ ...data,
221
+ sshHostKey,
220
222
  agent: {
221
223
  id: this.id,
222
224
  host: this.host,
223
225
  token: this.token
224
226
  },
225
- ...data,
226
- sshHostKey,
227
227
  }));
228
228
  }
229
229
  else if (tunnel.hasChanged(data)) {
@@ -118,9 +118,9 @@ class ApiBuddyClass {
118
118
  });
119
119
  logger_js_1.default.info((0, texts_js_1.LOG_TUNNEL_REGISTERED)(config.id));
120
120
  return new tunnel_js_1.default({
121
- agent: { id: agentId, host, token },
122
121
  ...config,
123
122
  sshHostKey,
123
+ agent: { id: agentId, host, token },
124
124
  });
125
125
  }
126
126
  async removeTunnel(agentId, tunnelId, host, token) {
@@ -35,11 +35,11 @@ class ServerSsh extends events_1.default {
35
35
  client.setNoDelay();
36
36
  client.on('authentication', async (ctx) => {
37
37
  if (ctx.method !== 'password') {
38
- // only password
38
+ logger_js_1.default.info(this.agent);
39
+ logger_js_1.default.info(ctx);
39
40
  const keys = await buddy_1.default.fetchAgentKeys(this.agent.id, this.agent.host, this.agent.token);
40
41
  // todo handle keys
41
42
  logger_js_1.default.info(keys);
42
- logger_js_1.default.info(ctx);
43
43
  ctx.reject(['password']);
44
44
  return;
45
45
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.9.16-dev",
4
+ "version": "1.9.18-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {