@fabricorg/experiments 0.5.2 → 0.5.3
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/bin/fx.cjs +28 -4
- package/dist/bin/fx.cjs.map +1 -1
- package/dist/bin/fx.js +2 -2
- package/dist/bin/fx.js.map +1 -1
- package/dist/{chunk-CZAJ7SGJ.js → chunk-57IPTSQM.js} +29 -5
- package/dist/chunk-57IPTSQM.js.map +1 -0
- package/dist/index.cjs +27 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -15
- package/dist/chunk-CZAJ7SGJ.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -5725,9 +5725,33 @@ async function cmdDev(options = {}) {
|
|
|
5725
5725
|
log(`ERR ${err.message}`);
|
|
5726
5726
|
}
|
|
5727
5727
|
});
|
|
5728
|
-
|
|
5729
|
-
|
|
5730
|
-
|
|
5728
|
+
try {
|
|
5729
|
+
await new Promise((resolveStart, rejectStart) => {
|
|
5730
|
+
server.once("error", rejectStart);
|
|
5731
|
+
server.listen(port, "127.0.0.1", () => {
|
|
5732
|
+
server.off("error", rejectStart);
|
|
5733
|
+
resolveStart();
|
|
5734
|
+
});
|
|
5735
|
+
});
|
|
5736
|
+
} catch (e) {
|
|
5737
|
+
const err = e;
|
|
5738
|
+
if (err.code === "EADDRINUSE") {
|
|
5739
|
+
process.stderr.write(
|
|
5740
|
+
`fx dev: port ${port} is already in use.
|
|
5741
|
+
|
|
5742
|
+
Another fx dev server may already be running. Either stop that process or choose another port:
|
|
5743
|
+
|
|
5744
|
+
fx dev --port ${port + 1}
|
|
5745
|
+
|
|
5746
|
+
To find the process on Linux/macOS:
|
|
5747
|
+
|
|
5748
|
+
lsof -nP -iTCP:${port} -sTCP:LISTEN
|
|
5749
|
+
`
|
|
5750
|
+
);
|
|
5751
|
+
return 1;
|
|
5752
|
+
}
|
|
5753
|
+
throw e;
|
|
5754
|
+
}
|
|
5731
5755
|
log(`fx dev \u2014 listening on http://127.0.0.1:${port}`);
|
|
5732
5756
|
log(` GET /manifest`);
|
|
5733
5757
|
log(` POST /v1/exposure`);
|