wtt-connect 0.2.37 → 0.2.38
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/package.json +1 -1
- package/src/main.js +2 -2
package/package.json
CHANGED
package/src/main.js
CHANGED
|
@@ -140,8 +140,8 @@ Commands:
|
|
|
140
140
|
|
|
141
141
|
async function previewPort(config, argv) {
|
|
142
142
|
const port = Number(argv.port || argv._[0]);
|
|
143
|
-
if (!Number.isInteger(port) || port <
|
|
144
|
-
throw new Error('preview-port requires --port <
|
|
143
|
+
if (!Number.isInteger(port) || port < 1024 || port > 65535 || port === 3000) {
|
|
144
|
+
throw new Error('preview-port requires --port <1024-65535>, excluding 3000');
|
|
145
145
|
}
|
|
146
146
|
const preview = await createSandboxPreviewFromOutbox(config, port, {
|
|
147
147
|
name: String(argv.previewName || argv.title || '').trim(),
|