planche 0.8.11 → 0.8.12
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/README.md +3 -3
- package/dist/index.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -56,7 +56,7 @@ npx planche [options]
|
|
|
56
56
|
--addr <host> Address to bind (default: 127.0.0.1)
|
|
57
57
|
--token <str> Auth token (default: random on each start)
|
|
58
58
|
--print-token Print the token (hidden by default; the pairing link is enough)
|
|
59
|
-
--
|
|
59
|
+
--open Also open the pairing link in the default browser
|
|
60
60
|
--verbose Log every request
|
|
61
61
|
|
|
62
62
|
planche upgrade [version] Update an installed copy (not needed with npx)
|
|
@@ -83,10 +83,10 @@ Keep the same token between restarts so the app never needs re-pairing:
|
|
|
83
83
|
PLANCHE_AUTH_TOKEN=$(openssl rand -base64 24) npx planche # at least 16 characters
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
Run on another port and
|
|
86
|
+
Run on another port and open the link in the browser:
|
|
87
87
|
|
|
88
88
|
```bash
|
|
89
|
-
npx planche --port 9000 --
|
|
89
|
+
npx planche --port 9000 --open
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
Restrict SQLite access to one folder:
|
package/dist/index.js
CHANGED
|
@@ -299,7 +299,8 @@ Options:
|
|
|
299
299
|
--no-serve-app Never serve the web app at / (it is served in gateway
|
|
300
300
|
mode, and when planche.dev cannot be reached)
|
|
301
301
|
--app-dir <dir> Serve this build of the web app instead of the bundled one
|
|
302
|
-
--
|
|
302
|
+
--open Open the pairing link in the default browser
|
|
303
|
+
(off by default: the link is printed to click)
|
|
303
304
|
--verbose Log every request
|
|
304
305
|
-v, --version Print the version
|
|
305
306
|
-h, --help Show this help
|
|
@@ -431,7 +432,7 @@ async function main() {
|
|
|
431
432
|
const appDir = serveApp ? resolveAppDir(flags["app-dir"] ?? process.env.PLANCHE_APP_DIR) : void 0;
|
|
432
433
|
const publicUrl = (flags["public-url"] ?? process.env.PLANCHE_PUBLIC_URL ?? "").replace(/\/+$/, "");
|
|
433
434
|
const appUrl = (serveApp ? publicUrl || null : null) ?? hostedAppUrl;
|
|
434
|
-
const shouldOpen = flags.open ??
|
|
435
|
+
const shouldOpen = flags.open ?? false;
|
|
435
436
|
const bodyLimit = process.env.PLANCHE_BODY_LIMIT || "50mb";
|
|
436
437
|
const appOrigin = originOf(appUrl);
|
|
437
438
|
if (!appOrigin) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "planche",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.12",
|
|
4
4
|
"description": "Local agent for Planche — lets the browser-based Planche SQL client reach MySQL/MariaDB/PostgreSQL/SQLite/SQL Server/Oracle/Neon/Supabase/Cloudflare D1 databases and local Durable Object storage from your machine.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"homepage": "https://planche.dev",
|