lacuscore 1.10.3__py3-none-any.whl → 1.10.4__py3-none-any.whl
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.
- lacuscore/helpers.py +2 -2
- lacuscore/lacuscore.py +2 -2
- {lacuscore-1.10.3.dist-info → lacuscore-1.10.4.dist-info}/METADATA +1 -1
- lacuscore-1.10.4.dist-info/RECORD +10 -0
- lacuscore-1.10.3.dist-info/RECORD +0 -10
- {lacuscore-1.10.3.dist-info → lacuscore-1.10.4.dist-info}/LICENSE +0 -0
- {lacuscore-1.10.3.dist-info → lacuscore-1.10.4.dist-info}/WHEEL +0 -0
lacuscore/helpers.py
CHANGED
@@ -6,7 +6,7 @@ import json
|
|
6
6
|
|
7
7
|
from enum import IntEnum, unique
|
8
8
|
from logging import LoggerAdapter
|
9
|
-
from typing import MutableMapping, Any, TypedDict,
|
9
|
+
from typing import MutableMapping, Any, TypedDict, Mapping
|
10
10
|
|
11
11
|
from defang import refang # type: ignore[import-untyped]
|
12
12
|
from pydantic import BaseModel, field_validator, model_validator, ValidationError
|
@@ -87,7 +87,7 @@ class CaptureSettings(BaseModel):
|
|
87
87
|
url: str | None = None
|
88
88
|
document_name: str | None = None
|
89
89
|
document: str | None = None
|
90
|
-
browser:
|
90
|
+
browser: str | None = None
|
91
91
|
device_name: str | None = None
|
92
92
|
user_agent: str | None = None
|
93
93
|
proxy: str | dict[str, str] | None = None
|
lacuscore/lacuscore.py
CHANGED
@@ -433,8 +433,8 @@ class LacusCore():
|
|
433
433
|
|
434
434
|
# Set default as chromium
|
435
435
|
browser_engine: BROWSER = "chromium"
|
436
|
-
if to_capture.browser:
|
437
|
-
browser_engine = to_capture.browser
|
436
|
+
if to_capture.browser in ['chromium', 'firefox', 'webkit']:
|
437
|
+
browser_engine = to_capture.browser # type: ignore[assignment]
|
438
438
|
elif to_capture.user_agent:
|
439
439
|
parsed_string = user_agent_parser.ParseUserAgent(to_capture.user_agent)
|
440
440
|
browser_family = parsed_string['family'].lower()
|
@@ -0,0 +1,10 @@
|
|
1
|
+
lacuscore/__init__.py,sha256=aLBshQPT9IBDKn5qWrX9A_exqtLFPyLsQiPWdfpAFjA,537
|
2
|
+
lacuscore/helpers.py,sha256=GAn47fHikhVciuKtFK0-EbxHbBUNiImtUH6EJ_Vdgu4,9594
|
3
|
+
lacuscore/lacus_monitoring.py,sha256=UOfE_1-_rhVeKJXQ_m9XxYkr7VwyQnA6iK-x_tcXJfo,2775
|
4
|
+
lacuscore/lacuscore.py,sha256=rFOqUJ0cY58iFK0EwDRSqlSydLjEzUZZiWG5xHCNN_M,39437
|
5
|
+
lacuscore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
+
lacuscore/task_logger.py,sha256=8WbdJdKnGeFCxt9gtCNLI9vAQQZbsy2I5PRQpHP7XFU,1916
|
7
|
+
lacuscore-1.10.4.dist-info/LICENSE,sha256=4C4hLYrIkUD96Ggk-y_Go1Qf7PBZrEm9PSeTGe2nd4s,1516
|
8
|
+
lacuscore-1.10.4.dist-info/METADATA,sha256=N0kfRd8E1FjpauTYBnbUsWtQbSejNT8ae9gaNX9Zp0c,2747
|
9
|
+
lacuscore-1.10.4.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
10
|
+
lacuscore-1.10.4.dist-info/RECORD,,
|
@@ -1,10 +0,0 @@
|
|
1
|
-
lacuscore/__init__.py,sha256=aLBshQPT9IBDKn5qWrX9A_exqtLFPyLsQiPWdfpAFjA,537
|
2
|
-
lacuscore/helpers.py,sha256=y7LWHUMMOrB9-qWNoz_2zTP_yazf_opxXykhYjpNves,9640
|
3
|
-
lacuscore/lacus_monitoring.py,sha256=UOfE_1-_rhVeKJXQ_m9XxYkr7VwyQnA6iK-x_tcXJfo,2775
|
4
|
-
lacuscore/lacuscore.py,sha256=eQMJBf0ZYkCkACu3OWCdidpNEYn0wZ1piIVHP1kv_kU,39372
|
5
|
-
lacuscore/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
6
|
-
lacuscore/task_logger.py,sha256=8WbdJdKnGeFCxt9gtCNLI9vAQQZbsy2I5PRQpHP7XFU,1916
|
7
|
-
lacuscore-1.10.3.dist-info/LICENSE,sha256=4C4hLYrIkUD96Ggk-y_Go1Qf7PBZrEm9PSeTGe2nd4s,1516
|
8
|
-
lacuscore-1.10.3.dist-info/METADATA,sha256=3atezw3BS7UKKcXg9Tn4UGjba6obW-MPxUEH_AwGj5k,2747
|
9
|
-
lacuscore-1.10.3.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
10
|
-
lacuscore-1.10.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|