jararaca 0.3.8__py3-none-any.whl → 0.3.9__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.
Potentially problematic release.
This version of jararaca might be problematic. Click here for more details.
- jararaca/tools/typescript/interface_parser.py +14 -4
- {jararaca-0.3.8.dist-info → jararaca-0.3.9.dist-info}/METADATA +1 -1
- {jararaca-0.3.8.dist-info → jararaca-0.3.9.dist-info}/RECORD +6 -6
- {jararaca-0.3.8.dist-info → jararaca-0.3.9.dist-info}/LICENSE +0 -0
- {jararaca-0.3.8.dist-info → jararaca-0.3.9.dist-info}/WHEEL +0 -0
- {jararaca-0.3.8.dist-info → jararaca-0.3.9.dist-info}/entry_points.txt +0 -0
|
@@ -74,13 +74,23 @@ def parse_literal_value(value: Any) -> str:
|
|
|
74
74
|
use_parse_context().mapped_types.add(value.__class__)
|
|
75
75
|
return f"{value.__class__.__name__}.{value.name}"
|
|
76
76
|
if isinstance(value, str):
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
return
|
|
77
|
+
# Properly escape quotes for TypeScript string literals
|
|
78
|
+
escaped_value = value.replace("\\", "\\\\").replace('"', '\\"')
|
|
79
|
+
return f'"{escaped_value}"'
|
|
80
80
|
if isinstance(value, float):
|
|
81
81
|
return str(value)
|
|
82
82
|
if isinstance(value, bool):
|
|
83
|
-
|
|
83
|
+
# Ensure Python's True/False are properly converted to JavaScript's true/false
|
|
84
|
+
return "true" if value else "false"
|
|
85
|
+
# Special handling for Python symbols that might appear in literal types
|
|
86
|
+
if value is True:
|
|
87
|
+
return "true"
|
|
88
|
+
if value is False:
|
|
89
|
+
return "false"
|
|
90
|
+
if value is None:
|
|
91
|
+
return "null"
|
|
92
|
+
if isinstance(value, int):
|
|
93
|
+
return str(value)
|
|
84
94
|
return "unknown"
|
|
85
95
|
|
|
86
96
|
|
|
@@ -63,11 +63,11 @@ jararaca/tools/app_config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
|
63
63
|
jararaca/tools/app_config/decorators.py,sha256=-ckkMZ1dswOmECdo1rFrZ15UAku--txaNXMp8fd1Ndk,941
|
|
64
64
|
jararaca/tools/app_config/interceptor.py,sha256=nfFZiS80hrbnL7-XEYrwmp2rwaVYBqxvqu3Y-6o_ov4,2575
|
|
65
65
|
jararaca/tools/metadata.py,sha256=7nlCDYgItNybentPSSCc2MLqN7IpBd0VyQzfjfQycVI,1402
|
|
66
|
-
jararaca/tools/typescript/interface_parser.py,sha256=
|
|
66
|
+
jararaca/tools/typescript/interface_parser.py,sha256=35xbOrZDQDyTXdMrVZQ8nnFw79f28lJuLYNHAspIqi8,30492
|
|
67
67
|
jararaca/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
68
68
|
jararaca/utils/rabbitmq_utils.py,sha256=FPDP8ZVgvitZXV-oK73D7EIANsqUzXTW7HdpEKsIsyI,2811
|
|
69
|
-
jararaca-0.3.
|
|
70
|
-
jararaca-0.3.
|
|
71
|
-
jararaca-0.3.
|
|
72
|
-
jararaca-0.3.
|
|
73
|
-
jararaca-0.3.
|
|
69
|
+
jararaca-0.3.9.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
70
|
+
jararaca-0.3.9.dist-info/METADATA,sha256=QUd0KvFdDWQNVvIzaVfGRWXzttqzP_AqAo7HbjzZ0pc,4951
|
|
71
|
+
jararaca-0.3.9.dist-info/WHEEL,sha256=fGIA9gx4Qxk2KDKeNJCbOEwSrmLtjWCwzBz351GyrPQ,88
|
|
72
|
+
jararaca-0.3.9.dist-info/entry_points.txt,sha256=WIh3aIvz8LwUJZIDfs4EeH3VoFyCGEk7cWJurW38q0I,45
|
|
73
|
+
jararaca-0.3.9.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|