bdy 1.8.39-dev → 1.8.40-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.8.39-dev",
4
+ "version": "1.8.40-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -331,7 +331,7 @@ class ServerSftp {
331
331
  async realpath(reqId, path) {
332
332
  logger_1.default.debug(`SFTP want realpath ${path}`);
333
333
  try {
334
- const realPath = await promises_1.default.realpath(path);
334
+ const realPath = await promises_1.default.realpath(path || '~/');
335
335
  logger_1.default.debug('SFTP realpath succeed');
336
336
  this.sftp.name(reqId, [
337
337
  {
@@ -33,7 +33,7 @@ class ServerSsh extends events_1.default {
33
33
  client.on('authentication', async (ctx) => {
34
34
  if (ctx.method !== 'password') {
35
35
  // only password
36
- ctx.reject();
36
+ ctx.reject(['password']);
37
37
  return;
38
38
  }
39
39
  if (ctx.username !== this.login) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bdy",
3
3
  "preferGlobal": false,
4
- "version": "1.8.39-dev",
4
+ "version": "1.8.40-dev",
5
5
  "type": "commonjs",
6
6
  "license": "MIT",
7
7
  "scripts": {