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
fix(electron): stack traces not correct
Elian Doran6a2d58ea600f
diff --git a/electron.ts b/electron.tsindex 8f6611c2d5..00a96bdb06 100644--- a/electron.ts+++ b/electron.ts@@ -8,9 +8,6 @@ import windowService from "./src/services/window.js";import tray from "./src/services/tray.js";import options from "./src/services/options.js";-import sourceMapSupport from "source-map-support";-sourceMapSupport.install();-// Prevent Trilium starting twice on first install and on uninstall for the Windows installer.if ((await import("electron-squirrel-startup")).default) {process.exit(0);diff --git a/package-lock.json b/package-lock.jsonindex f342d488e7..4fa6f1d5d1 100644--- a/package-lock.json+++ b/package-lock.json@@ -74,7 +74,6 @@"sax": "1.4.1","serve-favicon": "2.5.0","session-file-store": "1.5.0",- "source-map-support": "0.5.21","stream-throttle": "0.1.3","strip-bom": "5.0.0","striptags": "3.2.0",@@ -144,7 +143,6 @@"@types/sax": "1.2.7","@types/serve-favicon": "2.5.7","@types/session-file-store": "1.2.5",- "@types/source-map-support": "0.5.10","@types/stream-throttle": "0.1.4","@types/supertest": "6.0.3","@types/swagger-ui-express": "4.1.8",@@ -5420,16 +5418,6 @@"dev": true,"license": "MIT"},- "node_modules/@types/source-map-support": {- "version": "0.5.10",- "resolved": "https://registry.npmjs.org/@types/source-map-support/-/source-map-support-0.5.10.tgz",- "integrity": "sha512-tgVP2H469x9zq34Z0m/fgPewGhg/MLClalNOiPIzQlXrSS2YrKu/xCdSCKnEDwkFha51VKEKB6A9wW26/ZNwzA==",- "dev": true,- "license": "MIT",- "dependencies": {- "source-map": "^0.6.0"- }- },"node_modules/@types/stream-throttle": {"version": "0.1.4","resolved": "https://registry.npmjs.org/@types/stream-throttle/-/stream-throttle-0.1.4.tgz",@@ -18878,6 +18866,7 @@"version": "0.6.1","resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz","integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",+ "dev": true,"license": "BSD-3-Clause","engines": {"node": ">=0.10.0"@@ -18896,6 +18885,7 @@"version": "0.5.21","resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz","integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==",+ "dev": true,"license": "MIT","dependencies": {"buffer-from": "^1.0.0",diff --git a/package.json b/package.jsonindex 74bd45a6cf..53ac1081ea 100644--- a/package.json+++ b/package.json@@ -136,7 +136,6 @@"sax": "1.4.1","serve-favicon": "2.5.0","session-file-store": "1.5.0",- "source-map-support": "0.5.21","stream-throttle": "0.1.3","strip-bom": "5.0.0","striptags": "3.2.0",@@ -203,7 +202,6 @@"@types/sax": "1.2.7","@types/serve-favicon": "2.5.7","@types/session-file-store": "1.2.5",- "@types/source-map-support": "0.5.10","@types/stream-throttle": "0.1.4","@types/supertest": "6.0.3","@types/swagger-ui-express": "4.1.8",