From 216718845ce1895a63b879d4d095126f2b0701b3 Mon Sep 17 00:00:00 2001 From: daijro Date: Tue, 15 Oct 2024 06:56:31 -0500 Subject: [PATCH] pythonlib: Add dict expected type 0.2.15 Adds support for beta.12. --- pythonlib/camoufox/browserforge.yml | 8 ++++---- pythonlib/camoufox/utils.py | 2 ++ pythonlib/pyproject.toml | 2 +- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pythonlib/camoufox/browserforge.yml b/pythonlib/camoufox/browserforge.yml index cf5962e..697dac3 100644 --- a/pythonlib/camoufox/browserforge.yml +++ b/pythonlib/camoufox/browserforge.yml @@ -48,9 +48,9 @@ screen: # clientWidth: document.body.clientWidth # clientHeight: document.body.clientHeight -videoCard: - renderer: webGl:renderer - vendor: webGl:vendor +# videoCard: +# renderer: webgl:renderer +# vendor: webgl:vendor headers: # headers.User-Agent is redundant with navigator.userAgent @@ -63,4 +63,4 @@ battery: dischargingTime: battery:dischargingTime # Unsupported: videoCodecs, audioCodecs, pluginsData, multimediaDevices -# Fonts are listed through the launcher. \ No newline at end of file +# Fonts are listed through the launcher. diff --git a/pythonlib/camoufox/utils.py b/pythonlib/camoufox/utils.py index e6dfd30..e671c42 100644 --- a/pythonlib/camoufox/utils.py +++ b/pythonlib/camoufox/utils.py @@ -122,6 +122,8 @@ def validate_type(value: Any, expected_type: str) -> bool: return isinstance(value, bool) elif expected_type == "array": return isinstance(value, list) + elif expected_type == "dict": + return isinstance(value, dict) else: return False diff --git a/pythonlib/pyproject.toml b/pythonlib/pyproject.toml index 976ef60..6c085ea 100644 --- a/pythonlib/pyproject.toml +++ b/pythonlib/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api" [tool.poetry] name = "camoufox" -version = "0.2.14" +version = "0.2.15" description = "Wrapper around Playwright to help launch Camoufox" authors = ["daijro "] license = "MIT"