@getmagical/cli 0.15.0 → 0.15.4
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/README.md +24 -13
- package/dist/index.js +253 -164
- package/dist/index.js.map +3 -3
- package/dist/network-recording-archive.py +4 -4
- package/package.json +1 -1
|
@@ -13,7 +13,7 @@ import zlib
|
|
|
13
13
|
from datetime import datetime, timezone
|
|
14
14
|
from typing import Any, BinaryIO
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
SUPPORTED_MITMPROXY_VERSIONS = ("12.2.3", "12.3.0")
|
|
17
17
|
MAX_REQUEST_BYTES = 64 * 1024
|
|
18
18
|
READ_CHUNK_BYTES = 64 * 1024
|
|
19
19
|
EXCHANGE_REFERENCE_PATTERN = re.compile(
|
|
@@ -487,12 +487,12 @@ def main() -> int:
|
|
|
487
487
|
except ImportError as error:
|
|
488
488
|
raise ArchiveError(
|
|
489
489
|
"RUNTIME_UNAVAILABLE",
|
|
490
|
-
"Python environment does not contain mitmproxy 12.
|
|
490
|
+
"Python environment does not contain mitmproxy. Install mitmproxy==12.3.0.",
|
|
491
491
|
) from error
|
|
492
|
-
if version.VERSION
|
|
492
|
+
if version.VERSION not in SUPPORTED_MITMPROXY_VERSIONS:
|
|
493
493
|
raise ArchiveError(
|
|
494
494
|
"RUNTIME_VERSION_MISMATCH",
|
|
495
|
-
f"Expected mitmproxy {
|
|
495
|
+
f"Expected mitmproxy {' or '.join(SUPPORTED_MITMPROXY_VERSIONS)}.",
|
|
496
496
|
)
|
|
497
497
|
archive_path = require_string(request, "archivePath")
|
|
498
498
|
size_bytes, archive_sha256 = archive_identity(
|