@couch-kit/cli 0.3.0 → 0.3.2

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -1928,7 +1928,7 @@ function toErrorMessage(error) {
1928
1928
  return error.message;
1929
1929
  return String(error);
1930
1930
  }
1931
- var MAX_FRAME_SIZE, DEFAULT_DISCONNECT_TIMEOUT;
1931
+ var DEFAULT_HTTP_PORT = 8080, DEFAULT_WS_PORT_OFFSET = 2, DEFAULT_WS_PATH = "/ws", MAX_FRAME_SIZE, DEFAULT_DISCONNECT_TIMEOUT;
1932
1932
  var init_constants = __esm(() => {
1933
1933
  MAX_FRAME_SIZE = 1024 * 1024;
1934
1934
  DEFAULT_DISCONNECT_TIMEOUT = 5 * 60 * 1000;
@@ -2058,7 +2058,7 @@ var simulateCommand;
2058
2058
  var init_simulate = __esm(() => {
2059
2059
  init_esm();
2060
2060
  init_src();
2061
- simulateCommand = new Command("simulate").description("Spawns headless bots to simulate players").option("-n, --count <number>", "Number of bots", "4").option("-u, --url <url>", "WebSocket URL of host", "ws://localhost:8082").option("-i, --interval <ms>", "Action interval in ms", "1000").action(async (options) => {
2061
+ simulateCommand = new Command("simulate").description("Spawns headless bots to simulate players").option("-n, --count <number>", "Number of bots", "4").option("-u, --url <url>", "WebSocket URL of host", `ws://localhost:${DEFAULT_HTTP_PORT + DEFAULT_WS_PORT_OFFSET}${DEFAULT_WS_PATH}`).option("-i, --interval <ms>", "Action interval in ms", "1000").action(async (options) => {
2062
2062
  const count = parseInt(options.count);
2063
2063
  const url = options.url;
2064
2064
  const interval = parseInt(options.interval);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@couch-kit/cli",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -36,7 +36,7 @@
36
36
  "clean": "rm -rf dist"
37
37
  },
38
38
  "dependencies": {
39
- "@couch-kit/core": "0.8.0",
39
+ "@couch-kit/core": "0.8.2",
40
40
  "commander": "^12.0.0"
41
41
  },
42
42
  "devDependencies": {