@rogatio/cli 1.8.0 → 1.8.1

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.
@@ -3283,7 +3283,7 @@ function createServer(handler, options = {}) {
3283
3283
  );
3284
3284
  }
3285
3285
  }
3286
- const maxRetries = 3;
3286
+ const maxRetries = 8;
3287
3287
  let lastError = null;
3288
3288
  for (let attempt = 0; attempt < maxRetries; attempt++) {
3289
3289
  const candidatePort = randomInt(1024, 65535);
@@ -3294,7 +3294,8 @@ function createServer(handler, options = {}) {
3294
3294
  return;
3295
3295
  } catch (e) {
3296
3296
  lastError = e;
3297
- if (e.code !== "EADDRINUSE") {
3297
+ const code = e.code;
3298
+ if (code !== "EADDRINUSE" && code !== "EACCES") {
3298
3299
  throw new HttpServerError(
3299
3300
  "listen-failed",
3300
3301
  `Failed to start server: ${e}`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rogatio/cli",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "Local-first browser request and response rules — editor host, file verification, test runner, and runtime dispatch.",