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 +4 -4
- package/dist/utils.js +3 -3
- package/package.json +1 -1
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
|
|
7652
|
-
const
|
|
7653
|
-
if (
|
|
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
|
|
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
|
|
584
|
-
const
|
|
585
|
-
if (
|
|
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);
|