Skip to content

Commit

Permalink
pythonlib: Add dict expected type 0.2.15
Browse files Browse the repository at this point in the history
Adds support for beta.12.
  • Loading branch information
daijro committed Oct 15, 2024
1 parent ad3b3f0 commit 2167188
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions pythonlib/camoufox/browserforge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -63,4 +63,4 @@ battery:
dischargingTime: battery:dischargingTime

# Unsupported: videoCodecs, audioCodecs, pluginsData, multimediaDevices
# Fonts are listed through the launcher.
# Fonts are listed through the launcher.
2 changes: 2 additions & 0 deletions pythonlib/camoufox/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion pythonlib/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 2167188

Please sign in to comment.