@stacksjs/defaults 0.74.11 → 0.74.13
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.
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
*/
|
|
21
21
|
|
|
22
22
|
import { spawn } from 'bun'
|
|
23
|
-
import { existsSync, mkdirSync, readFileSync } from 'node:fs'
|
|
23
|
+
import { existsSync, mkdirSync, readFileSync, rmSync } from 'node:fs'
|
|
24
24
|
import { tmpdir } from 'node:os'
|
|
25
25
|
import { join } from 'node:path'
|
|
26
26
|
|
|
@@ -206,6 +206,8 @@ async function tryLaunch(browser: string): Promise<Session | null> {
|
|
|
206
206
|
}
|
|
207
207
|
try { proc.kill() }
|
|
208
208
|
catch { /* ignore */ }
|
|
209
|
+
try { rmSync(userDataDir, { recursive: true, force: true }) }
|
|
210
|
+
catch { /* a failed launch must not mask the next browser candidate */ }
|
|
209
211
|
return null
|
|
210
212
|
}
|
|
211
213
|
|
|
@@ -301,6 +303,12 @@ async function closePage(port: number, page: BrowserPage): Promise<boolean> {
|
|
|
301
303
|
function kill(s: Session): void {
|
|
302
304
|
try { s.proc.kill() }
|
|
303
305
|
catch { /* ignore */ }
|
|
306
|
+
// Chromium profiles contain caches, service-worker databases, and copied
|
|
307
|
+
// extensions. A full crawl can leave tens of megabytes behind, so every
|
|
308
|
+
// command must reclaim the uniquely owned temporary directory even when a
|
|
309
|
+
// scenario assertion or navigation throws.
|
|
310
|
+
try { rmSync(s.userDataDir, { recursive: true, force: true }) }
|
|
311
|
+
catch { /* process shutdown remains the primary cleanup guarantee */ }
|
|
304
312
|
}
|
|
305
313
|
|
|
306
314
|
// ── Page helpers ────────────────────────────────────────────────────────────
|
package/ide/vscode/package.json
CHANGED
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.74.
|
|
5
|
+
"version": "0.74.13",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@iconify-json/f7": "^1.2.2",
|
|
56
56
|
"@iconify-json/hugeicons": "^1.2.27",
|
|
57
|
-
"@stacksjs/mobile": "^0.74.
|
|
57
|
+
"@stacksjs/mobile": "^0.74.13",
|
|
58
58
|
"@stacksjs/sanitizer": "^0.2.113",
|
|
59
59
|
"ts-qr-codes": "^0.1.8"
|
|
60
60
|
}
|