tandem-editor 0.2.1 → 0.2.3
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/dist/client/index.html
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
html, body, #root { height: 100%; }
|
|
10
10
|
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; }
|
|
11
11
|
</style>
|
|
12
|
-
<script type="module" crossorigin src="/assets/index-
|
|
12
|
+
<script type="module" crossorigin src="/assets/index-NqrmyYcr.js"></script>
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<div id="root"></div>
|
package/dist/server/index.js
CHANGED
|
@@ -281,7 +281,8 @@ async function loadSession(filePath) {
|
|
|
281
281
|
if (code === "ENOENT") return null;
|
|
282
282
|
if (err instanceof SyntaxError) {
|
|
283
283
|
console.error(`[Tandem] Corrupted session file ${sessionPath}, removing:`, err.message);
|
|
284
|
-
await fs.unlink(sessionPath).catch(() => {
|
|
284
|
+
await fs.unlink(sessionPath).catch((unlinkErr) => {
|
|
285
|
+
console.error(`[Tandem] Failed to remove corrupted session ${sessionPath}:`, unlinkErr);
|
|
285
286
|
});
|
|
286
287
|
return null;
|
|
287
288
|
}
|
|
@@ -359,7 +360,11 @@ async function loadCtrlSession() {
|
|
|
359
360
|
if (code === "ENOENT") return null;
|
|
360
361
|
if (err instanceof SyntaxError) {
|
|
361
362
|
console.error(`[Tandem] Corrupted ctrl session ${sessionPath}, removing:`, err.message);
|
|
362
|
-
await fs.unlink(sessionPath).catch(() => {
|
|
363
|
+
await fs.unlink(sessionPath).catch((unlinkErr) => {
|
|
364
|
+
console.error(
|
|
365
|
+
`[Tandem] Failed to remove corrupted ctrl session ${sessionPath}:`,
|
|
366
|
+
unlinkErr
|
|
367
|
+
);
|
|
363
368
|
});
|
|
364
369
|
return null;
|
|
365
370
|
}
|