superprint 1.0.56 → 1.0.57

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.
Files changed (3) hide show
  1. package/README.md +3 -1
  2. package/cli.mjs +4 -2
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -14,7 +14,7 @@ npx superprint
14
14
 
15
15
  **Windows PowerShell:** if script execution is disabled, use `npx.cmd superprint`.
16
16
 
17
- On first launch, the launcher downloads the application (about 50 MB), installs its local dependencies and opens **http://localhost:5173**. Later launches reuse the installed copy and automatically detect application updates.
17
+ On first launch, the launcher downloads the application (about 50 MB), installs its local dependencies and opens **http://127.0.0.1:5173**. Later launches reuse the installed copy and automatically detect application updates. The server binds to the loopback interface by default, so it is not exposed to your local network or the Internet.
18
18
 
19
19
  ## What is included
20
20
 
@@ -46,6 +46,8 @@ You can pass Vite options to the launcher, for example:
46
46
  npx superprint --host 127.0.0.1 --port 5173
47
47
  ```
48
48
 
49
+ Network access is opt-in. Only use `--host 0.0.0.0` on a trusted network when you deliberately want another device to reach the application.
50
+
49
51
  ## Links
50
52
 
51
53
  - [SuperPrint web application](https://superprint.cc)
package/cli.mjs CHANGED
@@ -228,11 +228,13 @@ async function main() {
228
228
  // ---- Launch Vite ----
229
229
  console.log(SEP);
230
230
  console.log(C.green + C.bold + ' Starting SuperPrint…' + C.reset);
231
- console.log(C.dim + ' Open your browser at: http://localhost:5173' + C.reset);
231
+ console.log(C.dim + ' Open your browser at: http://127.0.0.1:5173' + C.reset);
232
232
  console.log(SEP);
233
233
 
234
234
  const viteBin = path.join(APP_DIR, 'node_modules', 'vite', 'bin', 'vite.js');
235
- const args = process.argv.slice(2);
235
+ const userArgs = process.argv.slice(2);
236
+ const hasExplicitHost = userArgs.some(arg => arg === '--host' || arg.startsWith('--host='));
237
+ const args = hasExplicitHost ? userArgs : ['--host', '127.0.0.1', ...userArgs];
236
238
  const child = spawn(process.execPath, [viteBin, ...args], {
237
239
  stdio: 'inherit', cwd: APP_DIR
238
240
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "superprint",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "SuperPrint by 2.13 — free, local-first browser DTP and prepress editor with the SP213 AI layout studio.",
5
5
  "keywords": [
6
6
  "superprint",