typescript-virtual-container 1.1.6 → 1.1.7

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.
@@ -8,10 +8,10 @@
8
8
  */
9
9
 
10
10
  import {
11
- HoneyPot,
12
- SshClient,
13
- VirtualShell,
14
- VirtualSshServer,
11
+ HoneyPot,
12
+ SshClient,
13
+ VirtualShell,
14
+ VirtualSshServer,
15
15
  } from "../src/index";
16
16
 
17
17
  async function quickStart() {
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
7
- "version": "1.1.6",
7
+ "version": "1.1.7",
8
8
  "license": "MIT",
9
9
  "keywords": [
10
10
  "ssh",
@@ -228,7 +228,8 @@ export class VirtualUserManager extends EventEmitter {
228
228
  this.validatePassword(password);
229
229
 
230
230
  if (this.users.has(username)) {
231
- throw new Error(`adduser: user '${username}' already exists`);
231
+ return;
232
+ // throw new Error(`adduser: user '${username}' already exists`);
232
233
  }
233
234
 
234
235
  this.users.set(username, this.createRecord(username, password));