planche 0.8.10 → 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/app/assets/{B4Yy1mj_.js → 74sUdCiu.js} +1 -1
- package/app/assets/{BjkAHEsD.js → B02VTWSP.js} +1 -1
- package/app/assets/{C5VVaHNf.js → B3rETkrt.js} +1 -1
- package/app/assets/{ufiABG3J.js → B5mLj_uo.js} +1 -1
- package/app/assets/{Bg6u9htc.js → BKoh-tKR.js} +9 -9
- package/app/assets/{ClUjvL-2.js → BV4aY7xt.js} +1 -1
- package/app/assets/{DYuA_YQr.js → BaO3ulMH.js} +1 -1
- package/app/assets/{DnJeTfn9.js → Bcc7p7-f.js} +2 -2
- package/app/assets/{CPX5LuC-.js → Bjbi6j5C.js} +1 -1
- package/app/assets/{Bp0UhSMs.js → BrxJJ0qg.js} +1 -1
- package/app/assets/{CnInyuhK.js → Bww-OO8A.js} +1 -1
- package/app/assets/{CtU21VEz.js → C8Rd1hEG.js} +1 -1
- package/app/assets/{DqoiWQxk.js → CFY8MOYy.js} +1 -1
- package/app/assets/{mIcOy4nG.js → CGUOv71O.js} +1 -1
- package/app/assets/{DInfC28p.js → COQ4mwLg.js} +1 -1
- package/app/assets/{GwHHKhHq.js → CXb-qrUO.js} +1 -1
- package/app/assets/{Svdye2Hc.js → Cb_gZQwZ.js} +1 -1
- package/app/assets/{lui9VgkF.js → CgVpdrxb.js} +1 -1
- package/app/assets/{DERfOWZ5.js → Ct8S8lM5.js} +1 -1
- package/app/assets/{Ik6Uk6MY.js → D-CUfQgE.js} +1 -1
- package/app/assets/{BzhSva5M.js → D6kPbvGu.js} +1 -1
- package/app/assets/{CC5k5YaI.js → DCuKrXll.js} +1 -1
- package/app/assets/{BeiubXnY.js → DDmrJxdV.js} +1 -1
- package/app/assets/{D6tNbIL6.js → DF-Cqqnq.js} +1 -1
- package/app/assets/{CUQISMvX.js → DL6u_OmT.js} +1 -1
- package/app/assets/{DM33HLij.js → DOiUgfE9.js} +1 -1
- package/app/assets/{CGvlSihl.js → DXi92TWa.js} +1 -1
- package/app/assets/{aP_gLLGt.js → DY8yZMtt.js} +1 -1
- package/app/assets/{DSx167Dy.js → DYKigfsA.js} +1 -1
- package/app/assets/{B_zZh5dR.js → DiCNtfbc.js} +1 -1
- package/app/assets/{-hNDclQL.js → DtKWPQKC.js} +1 -1
- package/app/assets/{ByHW6Lyi.js → FO_fYT6n.js} +1 -1
- package/app/assets/{C9rqYcV-.js → dNkI1CY7.js} +1 -1
- package/app/assets/{Bn-kznw7.js → dqPw_4zA.js} +1 -1
- package/app/assets/{CoI4rONw.js → muV45VDO.js} +1 -1
- package/app/index.html +2 -2
- package/dist/{chunk-2Z2E3JGN.js → chunk-XAI7WLQN.js} +5 -3
- package/dist/embed.js +1 -1
- package/dist/index.js +4 -3
- package/package.json +1 -1
|
@@ -1561,7 +1561,7 @@ var oracleDriverFactory = {
|
|
|
1561
1561
|
// src/drivers/d1.ts
|
|
1562
1562
|
var API = "https://api.cloudflare.com/client/v4";
|
|
1563
1563
|
var LOCAL_API = "/cdn-cgi/local/explorer/api";
|
|
1564
|
-
var SELECT_STAR = /^\s*SELECT\s+(?:DISTINCT\s+)?\*/i;
|
|
1564
|
+
var SELECT_STAR = /^\s*SELECT\s+(?:DISTINCT\s+)?(?:(?:[\w"`.]+\.)?rowid\s+AS\s+"?(_rowid_)"?\s*,\s*)?\*/i;
|
|
1565
1565
|
var localRawUrl = (origin, databaseId) => `${origin}${LOCAL_API}/d1/database/${encodeURIComponent(databaseId)}/raw`;
|
|
1566
1566
|
var LOOPBACK = /* @__PURE__ */ new Set(["localhost", "127.0.0.1", "[::1]", "::1", "0.0.0.0"]);
|
|
1567
1567
|
function parseDevUrl(raw) {
|
|
@@ -1762,10 +1762,12 @@ var D1Driver = class {
|
|
|
1762
1762
|
}
|
|
1763
1763
|
const source = RESULT_KIND.test(text) ? singleSourceTable2(text) : null;
|
|
1764
1764
|
const known = source ? await this.tableColumns(source) : null;
|
|
1765
|
-
const
|
|
1765
|
+
const star = columns.length === 0 && known ? SELECT_STAR.exec(text) : null;
|
|
1766
|
+
const rowId = star?.[1] ?? null;
|
|
1767
|
+
const names = columns.length > 0 ? columns : star && known ? [...rowId ? [rowId] : [], ...known.keys()] : [];
|
|
1766
1768
|
const fields = names.map((name, index) => {
|
|
1767
1769
|
const fromTable = known?.has(name) ?? false;
|
|
1768
|
-
const type = (fromTable ? known?.get(name) : null) ?? inferTypeFromValue2(firstNonNull2(records, index));
|
|
1770
|
+
const type = (fromTable ? known?.get(name) : name === rowId ? "integer" : null) ?? inferTypeFromValue2(firstNonNull2(records, index));
|
|
1769
1771
|
return {
|
|
1770
1772
|
name,
|
|
1771
1773
|
orgName: name,
|
package/dist/embed.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
forgetMcpToken,
|
|
8
8
|
loadGatewayConfig,
|
|
9
9
|
mcpTokenPath
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-XAI7WLQN.js";
|
|
11
11
|
|
|
12
12
|
// src/index.ts
|
|
13
13
|
import { randomUUID } from "crypto";
|
|
@@ -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",
|