playcademy 0.13.3 → 0.13.5

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.
package/dist/index.js CHANGED
@@ -7648,9 +7648,9 @@ async function isPortAvailableOnHost(port, host) {
7648
7648
  });
7649
7649
  }
7650
7650
  async function findAvailablePort(startPort = 4321) {
7651
- const allInterfacesAvailable = await isPortAvailableOnHost(startPort, "0.0.0.0");
7652
- const ipv6Available = await isPortAvailableOnHost(startPort, "::1");
7653
- if (allInterfacesAvailable && ipv6Available) {
7651
+ const ipv4AllAvailable = await isPortAvailableOnHost(startPort, "0.0.0.0");
7652
+ const ipv6AllAvailable = await isPortAvailableOnHost(startPort, "::");
7653
+ if (ipv4AllAvailable && ipv6AllAvailable) {
7654
7654
  return startPort;
7655
7655
  }
7656
7656
  return findAvailablePort(startPort + 1);
@@ -8708,7 +8708,7 @@ async function runDevServer(options) {
8708
8708
  logger.warn("No backend integrations or custom routes configured");
8709
8709
  logger.newLine();
8710
8710
  logger.admonition("tip", "How to Add Backend", [
8711
- `Add integrations to ${blueBright4("playcademy.config.js")} or run \`playcademy init backend\``
8711
+ `Add integrations to ${blueBright4("playcademy.config.js")} or run \`playcademy api init\``
8712
8712
  ]);
8713
8713
  logger.newLine();
8714
8714
  logger.remark("Nothing to do");
package/dist/utils.js CHANGED
@@ -580,9 +580,9 @@ async function isPortAvailableOnHost(port, host) {
580
580
  });
581
581
  }
582
582
  async function findAvailablePort(startPort = 4321) {
583
- const allInterfacesAvailable = await isPortAvailableOnHost(startPort, "0.0.0.0");
584
- const ipv6Available = await isPortAvailableOnHost(startPort, "::1");
585
- if (allInterfacesAvailable && ipv6Available) {
583
+ const ipv4AllAvailable = await isPortAvailableOnHost(startPort, "0.0.0.0");
584
+ const ipv6AllAvailable = await isPortAvailableOnHost(startPort, "::");
585
+ if (ipv4AllAvailable && ipv6AllAvailable) {
586
586
  return startPort;
587
587
  }
588
588
  return findAvailablePort(startPort + 1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "playcademy",
3
- "version": "0.13.3",
3
+ "version": "0.13.5",
4
4
  "type": "module",
5
5
  "module": "./dist/index.js",
6
6
  "main": "./dist/index.js",