camoufox-js 0.10.0 → 0.10.2
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/utils.js +1 -1
- package/dist/virtdisplay.js +0 -1
- package/dist/webgl/sample.js +6 -8
- package/package.json +1 -1
package/dist/utils.js
CHANGED
|
@@ -476,7 +476,7 @@ export async function launchOptions({ config, os, block_images, block_webrtc, bl
|
|
|
476
476
|
//Prepare environment variables to pass to Camoufox
|
|
477
477
|
const env_vars = {
|
|
478
478
|
...getEnvVars(config, targetOS),
|
|
479
|
-
...
|
|
479
|
+
...env,
|
|
480
480
|
};
|
|
481
481
|
// Prepare the executable path
|
|
482
482
|
if (executable_path) {
|
package/dist/virtdisplay.js
CHANGED
package/dist/webgl/sample.js
CHANGED
|
@@ -9,15 +9,13 @@ async function openDatabase(pathName) {
|
|
|
9
9
|
const { Database: BunDatabase } = await import("bun:sqlite");
|
|
10
10
|
DatabaseConstructor = BunDatabase;
|
|
11
11
|
}
|
|
12
|
+
else if (typeof Deno !== "undefined") {
|
|
13
|
+
const { DatabaseSync } = await import("node:sqlite");
|
|
14
|
+
DatabaseConstructor = DatabaseSync;
|
|
15
|
+
}
|
|
12
16
|
else {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
DatabaseConstructor = DatabaseSync;
|
|
16
|
-
}
|
|
17
|
-
catch {
|
|
18
|
-
const { default: NodeDatabase } = await import("better-sqlite3");
|
|
19
|
-
DatabaseConstructor = NodeDatabase;
|
|
20
|
-
}
|
|
17
|
+
const { default: BetterSqlite3 } = await import("better-sqlite3");
|
|
18
|
+
DatabaseConstructor = BetterSqlite3;
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
21
|
return new DatabaseConstructor(pathName);
|