tw-framework 0.3.2__tar.gz → 0.3.4__tar.gz
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.
- {tw_framework-0.3.2 → tw_framework-0.3.4}/PKG-INFO +1 -1
- {tw_framework-0.3.2 → tw_framework-0.3.4}/pyproject.toml +1 -1
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/framework.py +5 -5
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework.egg-info/PKG-INFO +1 -1
- {tw_framework-0.3.2 → tw_framework-0.3.4}/README.md +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/setup.cfg +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tests/test_deployment.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/__init__.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/adapters/__init__.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/adapters/cloudflare.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/adapters/netlify.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/adapters/vercel.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/adapters/vercel_functions.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/advanced_diagnostics.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/asset_optimizer.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/ast_nodes.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/build.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/build_performance.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/build_report.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/cli.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/code_splitting.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/common.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/compiler.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/compiler_stats.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/dead_code.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/dependency_graph.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/deploy.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/dev.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/diagnostics.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/dynamic_imports.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/error_formatter.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/hydration.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/incremental_cache.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/interpreter.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/ir.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/lexer.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/lowering.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/parser.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/partial_rebuild.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/performance_analyzer.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/plugin_runtime.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/production_optimizer.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/reactivity.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/render_css.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/render_html.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/route_optimizer.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/router.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/runtime_model.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/runtime_values.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/semantic.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/server.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/signature.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/static_dynamic_auto.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/streaming.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/test_build_cli_pytest.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/tree_shaking.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/twm_api_runner.js +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework/twm_parser.py +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework.egg-info/SOURCES.txt +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework.egg-info/dependency_links.txt +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework.egg-info/entry_points.txt +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework.egg-info/requires.txt +0 -0
- {tw_framework-0.3.2 → tw_framework-0.3.4}/tw_framework.egg-info/top_level.txt +0 -0
|
@@ -690,12 +690,12 @@ def parse_middleware_rules(project_root: str) -> List[dict]:
|
|
|
690
690
|
elif key == "json":
|
|
691
691
|
response["json"], index = parse_object_block(index)
|
|
692
692
|
elif key == "header":
|
|
693
|
-
header_name, index =
|
|
694
|
-
header_value, index =
|
|
693
|
+
header_name, index = parse_single_value_token(tokens, index)
|
|
694
|
+
header_value, index = parse_single_value_token(tokens, index)
|
|
695
695
|
response["headers"].append((str(header_name), str(header_value)))
|
|
696
696
|
elif key == "cookie":
|
|
697
|
-
cookie_name, index =
|
|
698
|
-
cookie_value, index =
|
|
697
|
+
cookie_name, index = parse_single_value_token(tokens, index)
|
|
698
|
+
cookie_value, index = parse_single_value_token(tokens, index)
|
|
699
699
|
response["cookies"].append((str(cookie_name), str(cookie_value)))
|
|
700
700
|
else:
|
|
701
701
|
raise RuntimeError(f"Unsupported response key: {key}")
|
|
@@ -2775,7 +2775,7 @@ def build_hidden_site(project_root: str, output_dir: str, force: bool = False, w
|
|
|
2775
2775
|
|
|
2776
2776
|
# Check incremental cache
|
|
2777
2777
|
cached = cache.get(compiler.page_cache_key(page_info))
|
|
2778
|
-
if cached is not None:
|
|
2778
|
+
if cached is not None and isinstance(cached, dict):
|
|
2779
2779
|
cached_sig = cached.get("signature")
|
|
2780
2780
|
current_sig = compiler.compute_dependency_signature(dependencies)
|
|
2781
2781
|
if cached_sig == current_sig:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|