camoufox-js 0.11.2 → 0.11.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/addons.js +5 -0
- package/package.json +2 -2
package/dist/addons.js
CHANGED
|
@@ -69,6 +69,11 @@ export async function maybeDownloadAddons(addons, addonsList = []) {
|
|
|
69
69
|
}
|
|
70
70
|
catch (e) {
|
|
71
71
|
console.error(`Failed to download and extract ${addonName}: ${e}`);
|
|
72
|
+
// Clean up the empty directory created before the download attempt.
|
|
73
|
+
// Without this, the next retry sees the directory and treats it as
|
|
74
|
+
// a successfully downloaded addon, then crashes with "manifest.json
|
|
75
|
+
// is missing" in confirmPaths.
|
|
76
|
+
fs.rmSync(addonPath, { recursive: true, force: true });
|
|
72
77
|
}
|
|
73
78
|
}
|
|
74
79
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "camoufox-js",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"bin": "dist/__main__.js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"description": "Experimental JS port of Camoufox for Python.",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"adm-zip": "^0.5.16",
|
|
27
|
-
"better-sqlite3": "^
|
|
27
|
+
"better-sqlite3": "^13.0.1",
|
|
28
28
|
"cli-progress": "^3.12.0",
|
|
29
29
|
"commander": "^14.0.0",
|
|
30
30
|
"fingerprint-generator": "^2.1.66",
|