Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(electron): protocol-based approach for requests
Elian Doran7a703da25bac
diff --git a/apps/client/src/services/server.ts b/apps/client/src/services/server.tsindex 2d9d8273ae..74a12d6cb4 100644--- a/apps/client/src/services/server.ts+++ b/apps/client/src/services/server.ts@@ -4,26 +4,11 @@ import ValidationError from "./validation_error.js";type Headers = Record<string, string | null | undefined>;-type Method = string;-interface Response {headers: Headers;body: unknown;}-interface Arg extends Response {- statusCode: number;- method: Method;- url: string;- requestId: string;-}--interface RequestData {- resolve: (value: unknown) => any;- reject: (reason: unknown) => any;- silentNotFound: boolean;-}-export interface StandardResponse {success: boolean;}@@ -50,11 +35,6 @@ async function getHeaders(headers?: Headers) {}}- if (utils.isElectron()) {- // passing it explicitly here because of the electron HTTP bypass- allHeaders.cookie = document.cookie;- }-return allHeaders;}@@ -118,10 +98,6 @@ async function upload(url: string, fileToUpload: File, componentId?: string, met}}-let idCounter = 1;--const idToRequestMap: Record<string, RequestData> = {};-let maxKnownEntityChangeId = 0;let csrfRefreshInProgress: Promise<void> | null = null;@@ -176,35 +152,16 @@ interface CallOptions {}async function call<T>(method: string, url: string, componentId?: string, options: CallOptions = {}) {- let resp;-const headers = await getHeaders({"trilium-component-id": componentId});const { data } = options;- if (utils.isElectron()) {- const ipc = utils.dynamicRequire("electron").ipcRenderer;- const requestId = idCounter++;-- resp = (await new Promise((resolve, reject) => {- idToRequestMap[requestId] = {- resolve,- reject,- silentNotFound: !!options.silentNotFound- };-- ipc.send("server-request", {- requestId,- headers,- method,- url: `/${window.glob.baseApiUrl}${url}`,- data- });- })) as any;- } else {- resp = await ajax(url, method, data, headers, options);- }+ // In Electron the page is loaded from the `trilium-app://` custom+ // protocol, whose handler routes everything through the same Express+ // app the browser build talks to over HTTP. So a single $.ajax path+ // covers both — no IPC bridge needed.+ const resp = await ajax(url, method, data, headers, options);const maxEntityChangeIdStr = resp.headers["trilium-max-entity-change-id"];@@ -298,42 +255,6 @@ function ajax(url: string, method: string, data: unknown, headers: Headers, opts});}-if (utils.isElectron()) {- const ipc = utils.dynamicRequire("electron").ipcRenderer;-- ipc.on("server-response", async (_, arg: Arg) => {- if (arg.statusCode >= 200 && arg.statusCode < 300) {- handleSuccessfulResponse(arg);- } else {- if (arg.statusCode === 404 && idToRequestMap[arg.requestId]?.silentNotFound) {- // report nothing- } else {- await reportError(arg.method, arg.url, arg.statusCode, arg.body);- }-- idToRequestMap[arg.requestId].reject(new Error(`Server responded with ${arg.statusCode}`));- }-- delete idToRequestMap[arg.requestId];- });-- function handleSuccessfulResponse(arg: Arg) {- if (arg.headers["Content-Type"] === "application/json" && typeof arg.body === "string") {- arg.body = JSON.parse(arg.body);- }-- if (!(arg.requestId in idToRequestMap)) {- // this can happen when reload happens between firing up the request and receiving the response- throw new Error(`Unknown requestId '${arg.requestId}'`);- }-- idToRequestMap[arg.requestId].resolve({- body: arg.body,- headers: arg.headers- });- }-}-async function reportError(method: string, url: string, statusCode: number, response: unknown) {let message = response;diff --git a/apps/client/src/services/ws.ts b/apps/client/src/services/ws.tsindex 23a24f5fc4..8be4fdcfb1 100644--- a/apps/client/src/services/ws.ts+++ b/apps/client/src/services/ws.ts@@ -236,8 +236,13 @@ async function consumeFrontendUpdateData() {}function connectWebSocket() {+ // In Electron, the page lives on `trilium-app://app/`, so deriving the+ // WS URL from window.location would point at an unreachable host. The+ // server injects an absolute `wsBaseUrl` (ws://127.0.0.1:<port>/) for+ // that case; everywhere else we still derive it from the page origin.const loc = window.location;- const webSocketUri = `${loc.protocol === "https:" ? "wss:" : "ws:"}//${loc.host}${loc.pathname}`;+ const webSocketUri = window.glob.wsBaseUrl+ ?? `${loc.protocol === "https:" ? "wss:" : "ws:"}//${loc.host}${loc.pathname}`;// use wss for secure messagingconst ws = new WebSocket(webSocketUri);diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.tsindex e84829ac75..8dfede535d 100644--- a/apps/desktop/src/main.ts+++ b/apps/desktop/src/main.ts@@ -14,7 +14,7 @@ import windowService from "@triliumnext/server/src/services/window.js";import WebSocketMessagingProvider from "@triliumnext/server/src/services/ws_messaging_provider.js";import BetterSqlite3Provider from "@triliumnext/server/src/sql_provider.js";import NodejsZipProvider from "@triliumnext/server/src/zip_provider.js";-import { app, BrowserWindow,globalShortcut } from "electron";+import { app, BrowserWindow,globalShortcut, protocol } from "electron";import electronDebug from "electron-debug";import electronDl from "electron-dl";import fs from "fs";@@ -36,6 +36,24 @@ async function main() {});}+ // The renderer loads the entire UI from `trilium-app://app/` instead of the+ // HTTP origin. Registering the scheme as privileged (must happen before+ // `app.ready`) gives it a proper origin & cookie jar, fetch support, and+ // CORS, which lets the session + CSRF middleware on the Express side work+ // without any of the FakeRequest/cookie-injection workarounds.+ protocol.registerSchemesAsPrivileged([+ {+ scheme: "trilium-app",+ privileges: {+ standard: true,+ secure: true,+ supportFetchAPI: true,+ corsEnabled: true,+ stream: true+ }+ }+ ]);+const userDataPath = getUserData();app.setPath("userData", userDataPath);diff --git a/apps/server/package.json b/apps/server/package.jsonindex cea9b45cec..6b0b2cff74 100644--- a/apps/server/package.json+++ b/apps/server/package.json@@ -42,6 +42,7 @@"i18next-fs-backend": "2.6.5","ipaddr.js": "^2.4.0","js-yaml": "4.1.1",+ "node-mocks-http": "1.17.2","unpdf": "1.6.2"},"devDependencies": {diff --git a/apps/server/src/routes/csrf_protection.ts b/apps/server/src/routes/csrf_protection.tsindex 684d1ec81e..972c3b2f60 100644--- a/apps/server/src/routes/csrf_protection.ts+++ b/apps/server/src/routes/csrf_protection.ts@@ -1,27 +1,19 @@-import crypto from "crypto";import { doubleCsrf } from "csrf-csrf";import sessionSecret from "../services/session_secret.js";-import { isElectron } from "../services/utils.js";export const CSRF_COOKIE_NAME = "trilium-csrf";-// In Electron, API calls go through an IPC bypass (routes/electron.ts) that uses a-// FakeRequest with a static session ID, while the bootstrap request goes through real-// Express with a real session. This mismatch causes CSRF validation to always fail.-// We use a per-instance random identifier so each Electron process still gets unique tokens.-const electronSessionId = crypto.randomUUID();-const doubleCsrfUtilities = doubleCsrf({getSecret: () => sessionSecret,cookieOptions: {path: "/",secure: false,sameSite: "strict",- httpOnly: !isElectron // set to false for Electron, see https://github.com/TriliumNext/Trilium/pull/966+ httpOnly: true},cookieName: CSRF_COOKIE_NAME,- getSessionIdentifier: (req) => isElectron ? electronSessionId : req.session.id+ getSessionIdentifier: (req) => req.session.id});export const { generateCsrfToken, doubleCsrfProtection } = doubleCsrfUtilities;diff --git a/apps/server/src/routes/electron.ts b/apps/server/src/routes/electron.tsindex 459be0e87d..6591c5cf6f 100644--- a/apps/server/src/routes/electron.ts+++ b/apps/server/src/routes/electron.ts@@ -1,124 +1,101 @@import electron from "electron";-import type { Application } from "express";-import type { ParamsDictionary, Request, Response } from "express-serve-static-core";-import type QueryString from "qs";-import { Session, SessionData } from "express-session";-import { parse as parseQuery } from "qs";import EventEmitter from "events";--type MockedResponse = Response<any, Record<string, any>, number>;-+import type { Application } from "express";+import { createRequest, createResponse } from "node-mocks-http";++/**+ * Bridges renderer-process requests on the `trilium-app://app/...` custom+ * protocol into the Express application running in the main process.+ *+ * The renderer loads the entire UI from this scheme (see+ * `apps/server/src/services/window.ts` and `apps/desktop/src/main.ts`), so+ * every request the page makes — page load, bootstrap, API calls, static+ * assets — arrives here as a Web Fetch `Request`. We convert it into an+ * Express `req`/`res` pair via `node-mocks-http` and dispatch through+ * `app.handle`, giving us the real session, CSRF, body-parser and error+ * middleware without any FakeRequest workaround.+ */function init(app: Application) {- electron.ipcMain.on("server-request", (event, arg) => {- const req = new FakeRequest(arg);- const res = new FakeResponse(event, arg);-- return app.router(req as any, res as any, () => {});+ electron.app.whenReady().then(() => {+ electron.protocol.handle("trilium-app", (request) => dispatch(app, request));});}-const fakeSession: Session & Partial<SessionData> = {- id: "session-id", // Placeholder for session ID- cookie: {- originalMaxAge: 3600000, // 1 hour- },- loggedIn: true,- regenerate(callback) {- callback?.(null);- return fakeSession;- },- destroy(callback) {- callback?.(null);- return fakeSession;- },- reload(callback) {- callback?.(null);- return fakeSession;- },- save(callback) {- callback?.(null);- return fakeSession;- },- resetMaxAge: () => fakeSession,- touch: () => fakeSession-};--interface Arg {- url: string;- method: string;- data: any;- headers: Record<string, string>-}+async function dispatch(app: Application, request: Request): Promise<Response> {+ const url = new URL(request.url);+ const headers: Record<string, string> = {};+ request.headers.forEach((value, key) => {+ headers[key] = value;+ });-class FakeRequest extends EventEmitter implements Pick<Request<ParamsDictionary, any, any, QueryString.ParsedQs, Record<string, any>>, "url" | "method" | "body" | "headers" | "session" | "query"> {- url: string;- method: string;- body: any;- headers: Record<string, string>;- session: Session & Partial<SessionData>;- query: Record<string, any>;+ const body = await readBody(request);- constructor(arg: Arg) {- super();- this.url = arg.url;- this.method = arg.method;- this.body = arg.data;- this.headers = arg.headers;- this.session = fakeSession;- this.query = parseQuery(arg.url.split("?")[1] || "", { ignoreQueryPrefix: true });- }-}+ return new Promise<Response>((resolve, reject) => {+ const req = createRequest({+ method: request.method as any,+ url: url.pathname + url.search,+ headers,+ body: body as any+ });-class FakeResponse extends EventEmitter implements Pick<Response<any, Record<string, any>, number>, "status" | "send" | "json" | "setHeader"> {- private respHeaders: Record<string, string | string[]> = {};- private event: Electron.IpcMainEvent;- private arg: Arg & { requestId: string; };- statusCode: number = 200;- headers: Record<string, string> = {};- locals: Record<string, any> = {};+ // body-parser short-circuits when `_body` is already set, so pre-parsed+ // JSON / buffers above won't be re-read from an empty mock stream and+ // clobbered.+ if (body !== undefined) {+ (req as any)._body = true;+ }- constructor(event: Electron.IpcMainEvent, arg: Arg & { requestId: string; }) {- super();- this.event = event;- this.arg = arg;- }+ const res = createResponse({+ req,+ eventEmitter: EventEmitter+ });- getHeader(name) {- return this.respHeaders[name];- }+ res.on("end", () => {+ const payload = res._getBuffer().length > 0 ? res._getBuffer() : res._getData();+ resolve(new Response(payload ?? null, {+ status: res.statusCode,+ headers: normalizeResponseHeaders(res.getHeaders())+ }));+ });- setHeader(name, value) {- this.respHeaders[name] = value.toString();- return this as unknown as MockedResponse;- }+ try {+ app(req as any, res as any, (err: unknown) => {+ if (err) reject(err);+ });+ } catch (err) {+ reject(err);+ }+ });+}- header(name: string, value?: string | string[]) {- this.respHeaders[name] = value ?? "";- return this as unknown as MockedResponse;+async function readBody(request: Request): Promise<unknown> {+ if (request.method === "GET" || request.method === "HEAD" || !request.body) {+ return undefined;}- status(statusCode) {- this.statusCode = statusCode;- return this as unknown as MockedResponse;+ const contentType = request.headers.get("content-type") || "";+ if (contentType.includes("application/json")) {+ const text = await request.text();+ return text ? JSON.parse(text) : undefined;}- send(obj) {- this.event.sender.send("server-response", {- url: this.arg.url,- method: this.arg.method,- requestId: this.arg.requestId,- statusCode: this.statusCode,- headers: this.respHeaders,- body: obj- });- return this as unknown as MockedResponse;- }+ // For form uploads and binary payloads, hand Express a Buffer; multer+ // / body-parser will treat it as the raw request body via the+ // content-type header.+ return Buffer.from(await request.arrayBuffer());+}- json(obj) {- this.respHeaders["Content-Type"] = "application/json";- this.send(JSON.stringify(obj));- return this as unknown as MockedResponse;+function normalizeResponseHeaders(headers: Record<string, number | string | string[] | undefined>): HeadersInit {+ const out: [string, string][] = [];+ for (const [name, value] of Object.entries(headers)) {+ if (value === undefined) continue;+ if (Array.isArray(value)) {+ for (const v of value) out.push([name, v]);+ } else {+ out.push([name, String(value)]);+ }}+ return out;}export default init;diff --git a/apps/server/src/routes/index.ts b/apps/server/src/routes/index.tsindex 9dd640616a..f206125f32 100644--- a/apps/server/src/routes/index.ts+++ b/apps/server/src/routes/index.ts@@ -8,6 +8,7 @@ import assetPath from "../services/asset_path.js";import config from "../services/config.js";import log from "../services/log.js";import optionService from "../services/options.js";+import port from "../services/port.js";import { isDev, isElectron, isMac, isWindows11 } from "../services/utils.js";import { generateCsrfToken } from "./csrf_protection.js";@@ -35,7 +36,10 @@ export function bootstrap(req: Request, res: Response) {triliumVersion: packageJson.version,device: view,TRILIUM_SAFE_MODE: !!process.env.TRILIUM_SAFE_MODE,- instanceName: config.General ? config.General.instanceName : null+ instanceName: config.General ? config.General.instanceName : null,+ // The desktop renderer loads from trilium-app://, so location-based+ // ws:// URL derivation no longer works there. Send an absolute URL.+ wsBaseUrl: isElectron ? `ws://127.0.0.1:${port}/` : undefined};if (!isDbInitialized) {res.send({diff --git a/apps/server/src/services/window.ts b/apps/server/src/services/window.tsindex f258bdca67..35af280545 100644--- a/apps/server/src/services/window.ts+++ b/apps/server/src/services/window.ts@@ -8,7 +8,6 @@ import customDictionary from "./custom_dictionary.js";import keyboardActionsService from "./keyboard_actions.js";import log from "./log.js";import optionService from "./options.js";-import port from "./port.js";import { initPrintingHandlers } from "./printing.js";import { RESOURCE_DIR } from "./resource_dir.js";import sqlInit from "./sql_init.js";@@ -66,7 +65,7 @@ async function createExtraWindow(extraWindowHash: string) {});win.setMenuBarVisibility(false);- win.loadURL(`http://127.0.0.1:${port}/?extraWindow=1${extraWindowHash}`);+ win.loadURL(`trilium-app://app/?extraWindow=1${extraWindowHash}`);configureWebContents(win.webContents, spellcheckEnabled);@@ -131,7 +130,7 @@ async function createMainWindow(app: App) {mainWindowState.manage(mainWindow);mainWindow.setMenuBarVisibility(false);- mainWindow.loadURL(`http://127.0.0.1:${port}`);+ mainWindow.loadURL("trilium-app://app/");mainWindow.on("closed", () => (mainWindow = null));configureWebContents(mainWindow.webContents, spellcheckEnabled);@@ -189,7 +188,9 @@ async function configureWebContents(webContents: WebContents, spellcheckEnabled:const parsedUrl = url.parse(targetUrl);// we still need to allow internal redirects from setup and migration pages- if (!["localhost", "127.0.0.1"].includes(parsedUrl.hostname || "") || (parsedUrl.path && parsedUrl.path !== "/" && parsedUrl.path !== "/?")) {+ const isInternal = parsedUrl.protocol === "trilium-app:"+ || ["localhost", "127.0.0.1"].includes(parsedUrl.hostname || "");+ if (!isInternal || (parsedUrl.path && parsedUrl.path !== "/" && parsedUrl.path !== "/?")) {ev.preventDefault();}});@@ -246,7 +247,7 @@ async function createSetupWindow() {}});setupWindow.removeMenu();- setupWindow.loadURL(`http://127.0.0.1:${port}`);+ setupWindow.loadURL("trilium-app://app/");setupWindow.on("closed", () => (setupWindow = null));}diff --git a/packages/commons/src/lib/server_api.ts b/packages/commons/src/lib/server_api.tsindex 983b794c90..50042f0b74 100644--- a/packages/commons/src/lib/server_api.ts+++ b/packages/commons/src/lib/server_api.ts@@ -359,6 +359,14 @@ export type BootstrapDefinition = {platform?: "aix" | "android" | "darwin" | "freebsd" | "haiku" | "linux" | "openbsd" | "sunos" | "win32" | "cygwin" | "netbsd" | "web";isElectron: boolean;isStandalone: boolean;+ /**+ * Absolute URL prefix for the WebSocket (e.g. `ws://127.0.0.1:8080/`),+ * sent by the desktop app because the renderer page lives on the+ * `trilium-app://` custom protocol where `window.location` no longer+ * encodes a reachable WS host. Undefined for the regular web build,+ * where the WS URL can still be derived from `window.location`.+ */+ wsBaseUrl?: string;hasNativeTitleBar: boolean;hasBackgroundEffects: boolean;maxEntityChangeIdAtLoad?: number;diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 12bc31d04f..96ac8145ef 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -403,7 +403,7 @@ importers:version: 6.3.3copy-webpack-plugin:specifier: 14.0.0happy-dom:specifier: 20.9.0version: 20.9.0@@ -623,6 +623,9 @@ importers:js-yaml:specifier: 4.1.1version: 4.1.1+ node-mocks-http:+ specifier: 1.17.2+ version: 1.17.2(@types/[email protected])(@types/[email protected])unpdf:specifier: 1.6.2version: 1.6.2(@napi-rs/[email protected])@@ -6296,6 +6299,10 @@ packages:resolution: {integrity: sha512-h8lQ8tacZYnR3vNQTgibj+tODHI5/+l06Au2Pcriv/Gmet0eaj4TwWH41sO9wnHDiQsEj19q0drzdWdeAHtweg==}engines: {node: '>=6.5'}+ resolution: {integrity: sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==}+ engines: {node: '>= 0.6'}+resolution: {integrity: sha512-5cvg6CtKwfgdmVqY1WIiXKc3Q1bkRqGLi+2W/6ao+6Y7gu/RCwRuAhGEzh5B4KlszSuTLgZYuqFqo5bImjNKng==}engines: {node: '>= 0.6'}@@ -7218,6 +7225,10 @@ packages:resolution: {integrity: sha512-5IKcdX0nnYavi6G7TtOhwkYzyjfJlatbjMjuLSfE2kYT5pMDOilZ4OvMhi637CcDICTmz3wARPoyhqyX1Y+XvA==}engines: {node: ^14.18.0 || >=16.10.0}+ resolution: {integrity: sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ==}+ engines: {node: '>= 0.6'}+resolution: {integrity: sha512-5jRCH9Z/+DRP7rkvY83B+yGIGX96OYdJmzngqnw2SBSxqCFPd0w2km3s5iawpGX8krnwSGmF0FW5Nhr0Hfai3g==}engines: {node: '>=18'}@@ -10128,6 +10139,9 @@ packages:resolution: {integrity: sha512-EDYo6VlmtnumlcBCbh1gLJ//9jvM/ndXHfVXIFrZVr6fGcwTUyCTFNTLCKuY3ffbK8L/+3Mzqnd58RojiZqHVw==}engines: {node: '>=20'}+ resolution: {integrity: sha512-gaNvAS7TZ897/rVaZ0nMtAyxNyi/pdbjbAwUpFQpN70GqnVfOiXpeUUMKRBmzXaSQ8DdTX4/0ms62r2K+hE6mQ==}+resolution: {integrity: sha512-Snk314V5ayFLhp3fkUREub6WtjBfPdCPY1Ln8/8munuLuiYhsABgBVWsozAG+MWMbVEvcdcpbi9R7ww22l9Q3g==}engines: {node: '>=18'}@@ -10467,6 +10481,10 @@ packages:resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==}+ resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==}+ engines: {node: '>= 0.6'}+resolution: {integrity: sha512-myRT3DiWPHqho5PrJaIRyaMv2kgYf0mUVgBNOYMuCH5Ki1yEiQaf/ZJuQ62nvpc44wL5WDbTX7yGJi1Neevw8w==}engines: {node: '>= 0.6'}@@ -10534,6 +10552,18 @@ packages:resolution: {integrity: sha512-iJo8b2uYGT40Y8BTyy5ufL6IVbN8rbm/1QK2xffXU/1a/v3AAa0d1YAoqBNYqaS4R/HajkWIpIfdE6KcyFh1AQ==}+ resolution: {integrity: sha512-HVxSnjNzE9NzoWMx9T9z4MLqwMpLwVvA0oVZ+L+gXskYXEJ6tFn3Kx4LargoB6ie7ZlCLplv7QbWO6N+MysWGA==}+ engines: {node: '>=14'}+ peerDependencies:+ '@types/express': ^4.17.21 || ^5.0.0+ '@types/node': '*'+ peerDependenciesMeta:+ '@types/express':+ optional: true+ '@types/node':+ optional: true+resolution: {integrity: sha512-YX7TSyDukOZ0g+gmzjB6abKu+hTGvO8+8+gIFDsRCU2t8fLV/P2unmt+LGFaIa4y64aX98Qksa97rgz4vMNeLQ==}@@ -20216,6 +20246,11 @@ snapshots:dependencies:event-target-shim: 5.0.1+ dependencies:+ mime-types: 2.1.35+ negotiator: 0.6.3+dependencies:mime-types: 3.0.2@@ -21326,6 +21361,10 @@ snapshots:+ dependencies:+ safe-buffer: 5.2.1+@@ -21349,14 +21388,14 @@ snapshots:dependencies:glob-parent: 6.0.2normalize-path: 3.0.0schema-utils: 4.3.3serialize-javascript: 7.0.5tinyglobby: 0.2.16+ webpack: 5.106.2([email protected])([email protected])dependencies:@@ -24701,6 +24740,8 @@ snapshots:+ [email protected]: {}+@@ -25139,6 +25180,8 @@ snapshots:+ [email protected]: {}+@@ -25205,6 +25248,22 @@ snapshots:css-select: 5.2.2he: 1.2.0+ dependencies:+ accepts: 1.3.8+ content-disposition: 0.5.4+ depd: 1.1.2+ fresh: 0.5.2+ merge-descriptors: 1.0.3+ methods: 1.1.2+ mime: 1.6.0+ parseurl: 1.3.3+ range-parser: 1.2.1+ type-is: 1.6.18+ optionalDependencies:+ '@types/express': 5.0.6+ '@types/node': 24.12.4+dependencies:growly: 1.3.0@@ -27394,17 +27453,16 @@ snapshots:rimraf: 2.6.3optional: true- [email protected]([email protected])([email protected])([email protected])([email protected]([email protected])([email protected])([email protected])):+ [email protected]([email protected])([email protected])([email protected]([email protected])([email protected])):dependencies:'@jridgewell/trace-mapping': 0.3.31jest-worker: 27.5.1schema-utils: 4.3.3terser: 5.47.1+ webpack: 5.106.2([email protected])([email protected])optionalDependencies:esbuild: 0.28.0lightningcss: 1.32.0- postcss: 8.5.15dependencies:@@ -28241,7 +28299,7 @@ snapshots:- postcss- uglify-jsdependencies:'@types/eslint-scope': 3.7.7'@types/estree': 1.0.9@@ -28264,7 +28322,7 @@ snapshots:neo-async: 2.6.2schema-utils: 4.3.3tapable: 2.3.3- terser-webpack-plugin: 5.6.0([email protected])([email protected])([email protected])([email protected]([email protected])([email protected])([email protected]))+ terser-webpack-plugin: 5.6.0([email protected])([email protected])([email protected]([email protected])([email protected]))watchpack: 2.5.1webpack-sources: 3.4.1transitivePeerDependencies: