planche 0.5.1 → 0.5.2
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 +1 -0
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,6 +40,7 @@ npx planche [options]
|
|
|
40
40
|
-p, --port <n> Port to listen on (default: 8888)
|
|
41
41
|
--addr <host> Address to bind (default: 127.0.0.1)
|
|
42
42
|
--token <str> Auth token (default: random on each start)
|
|
43
|
+
--print-token Print the token (hidden by default; the pairing link is enough)
|
|
43
44
|
--no-open Print the pairing link without opening a browser
|
|
44
45
|
--verbose Log every request
|
|
45
46
|
-h, --help Show help
|
package/dist/index.js
CHANGED
|
@@ -1879,6 +1879,7 @@ Options:
|
|
|
1879
1879
|
-p, --port <n> Port to listen on (default: 8888, env PLANCHE_PORT)
|
|
1880
1880
|
--addr <host> Address to bind (default: 127.0.0.1, env PLANCHE_ADDR)
|
|
1881
1881
|
--token <str> Auth token (default: random, env PLANCHE_AUTH_TOKEN)
|
|
1882
|
+
--print-token Print the token (for manual setup); hidden by default
|
|
1882
1883
|
--app <url> Web app to open (default: ${DEFAULT_APP_URL}, env PLANCHE_APP_URL)
|
|
1883
1884
|
--origin <url> Extra browser origin allowed to use the agent (repeatable,
|
|
1884
1885
|
env PLANCHE_ALLOWED_ORIGINS as a comma-separated list)
|
|
@@ -1931,6 +1932,7 @@ function main() {
|
|
|
1931
1932
|
open: { type: "boolean" },
|
|
1932
1933
|
verbose: { type: "boolean" },
|
|
1933
1934
|
"allow-remote": { type: "boolean" },
|
|
1935
|
+
"print-token": { type: "boolean" },
|
|
1934
1936
|
version: { type: "boolean", short: "v" },
|
|
1935
1937
|
help: { type: "boolean", short: "h" }
|
|
1936
1938
|
},
|
|
@@ -2011,7 +2013,8 @@ function main() {
|
|
|
2011
2013
|
|
|
2012
2014
|
${pairUrl}
|
|
2013
2015
|
`);
|
|
2014
|
-
|
|
2016
|
+
if (flags["print-token"]) console.log(`Auth token: ${authToken}`);
|
|
2017
|
+
else console.log(tokenFromEnv ? "Auth token: (from PLANCHE_AUTH_TOKEN)" : "Auth token: hidden \u2014 run with --print-token to show it for manual setup");
|
|
2015
2018
|
console.log(`Allowed origins: ${allowedOrigins.join(", ")}`);
|
|
2016
2019
|
if (!loopback) {
|
|
2017
2020
|
console.error(`WARNING: bound to ${addr} without TLS \u2014 anyone who can reach this port and knows the token can use your databases, and anyone on the path can read the traffic.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "planche",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
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 from your machine.",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"homepage": "https://planche.dev",
|