litestar-vite 0.1.20__py3-none-any.whl → 0.1.21__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 litestar-vite might be problematic. Click here for more details.
- litestar_vite/commands.py +3 -4
- {litestar_vite-0.1.20.dist-info → litestar_vite-0.1.21.dist-info}/METADATA +2 -2
- {litestar_vite-0.1.20.dist-info → litestar_vite-0.1.21.dist-info}/RECORD +5 -5
- {litestar_vite-0.1.20.dist-info → litestar_vite-0.1.21.dist-info}/WHEEL +1 -1
- {litestar_vite-0.1.20.dist-info → litestar_vite-0.1.21.dist-info}/licenses/LICENSE +0 -0
litestar_vite/commands.py
CHANGED
|
@@ -5,9 +5,6 @@ import subprocess
|
|
|
5
5
|
from pathlib import Path
|
|
6
6
|
from typing import TYPE_CHECKING, Any, MutableMapping
|
|
7
7
|
|
|
8
|
-
from jinja2 import select_autoescape
|
|
9
|
-
from litestar.serialization import encode_json
|
|
10
|
-
|
|
11
8
|
if TYPE_CHECKING:
|
|
12
9
|
from jinja2 import Environment, Template
|
|
13
10
|
from litestar import Litestar
|
|
@@ -33,6 +30,8 @@ def to_json(value: Any) -> str:
|
|
|
33
30
|
Returns:
|
|
34
31
|
JSON string.
|
|
35
32
|
"""
|
|
33
|
+
from litestar.serialization import encode_json
|
|
34
|
+
|
|
36
35
|
return encode_json(value).decode("utf-8")
|
|
37
36
|
|
|
38
37
|
|
|
@@ -49,7 +48,7 @@ def init_vite(
|
|
|
49
48
|
litestar_port: int,
|
|
50
49
|
) -> None:
|
|
51
50
|
"""Initialize a new vite project."""
|
|
52
|
-
from jinja2 import Environment, FileSystemLoader
|
|
51
|
+
from jinja2 import Environment, FileSystemLoader, select_autoescape
|
|
53
52
|
from litestar.cli._utils import console
|
|
54
53
|
|
|
55
54
|
entry_point: list[str] = []
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: litestar-vite
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.21
|
|
4
4
|
Summary: Vite plugin for Litestar
|
|
5
5
|
Project-URL: Changelog, https://cofin.github.io/litestar-vite/latest/changelog
|
|
6
6
|
Project-URL: Discord, https://discord.gg/X3FJqy8d2j
|
|
@@ -30,7 +30,7 @@ Classifier: Topic :: Database :: Database Engines/Servers
|
|
|
30
30
|
Classifier: Topic :: Software Development
|
|
31
31
|
Classifier: Typing :: Typed
|
|
32
32
|
Requires-Python: >=3.8
|
|
33
|
-
Requires-Dist: litestar[
|
|
33
|
+
Requires-Dist: litestar[jinja]>=2.4.0
|
|
34
34
|
Provides-Extra: nodeenv
|
|
35
35
|
Requires-Dist: nodeenv; extra == 'nodeenv'
|
|
36
36
|
Description-Content-Type: text/markdown
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
litestar_vite/__init__.py,sha256=9X3i67Q8DJN2lQYAMa9NSPTZGzHASGn8X8yeWJqBvWg,357
|
|
2
2
|
litestar_vite/__metadata__.py,sha256=Eml1c9xezV-GSodmysksrT8jPWqE__x0ENO1wM5g6q0,319
|
|
3
3
|
litestar_vite/cli.py,sha256=6SmKu_wdduotTsx1xbmQFooQqG8SZyHwIDvZrr3KMJI,9527
|
|
4
|
-
litestar_vite/commands.py,sha256=
|
|
4
|
+
litestar_vite/commands.py,sha256=_TrBJE12HbsdKFkjGLpu8b_WvkoDp5-VV0xvRkYjsjk,4107
|
|
5
5
|
litestar_vite/config.py,sha256=L93F0CrghlNrAHlmTPqYtZxtZoLPf5kOJebqFxAlVOE,6824
|
|
6
6
|
litestar_vite/loader.py,sha256=3BFvcsXdaTwyym6bHaGhTkNDFaAcdjQDUHRfuKHj2vM,7699
|
|
7
7
|
litestar_vite/plugin.py,sha256=nNB62gqRXv6x1nxJNxZZPd67zOaw9XvGQxP_AxDyPbk,4230
|
|
@@ -13,7 +13,7 @@ litestar_vite/templates/main.css.j2,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG
|
|
|
13
13
|
litestar_vite/templates/package.json.j2,sha256=0JWgdTuaSZ25EmCltF_zbqDdpxfvCLeYuzBjXrziXNw,299
|
|
14
14
|
litestar_vite/templates/tsconfig.json.j2,sha256=q1REIuVyXUHCy4Zi2kgTkmrhdT98vyY89k-WTrImOj8,843
|
|
15
15
|
litestar_vite/templates/vite.config.ts.j2,sha256=FZ4OJaB8Kjby_nlx4_LCP8eCe1LRi8kW2GspCiVMfDY,1115
|
|
16
|
-
litestar_vite-0.1.
|
|
17
|
-
litestar_vite-0.1.
|
|
18
|
-
litestar_vite-0.1.
|
|
19
|
-
litestar_vite-0.1.
|
|
16
|
+
litestar_vite-0.1.21.dist-info/METADATA,sha256=iWyAfdMchcgSKoDC-MX6Oq6zJ5a3TBQ-kO-7ELzpBO8,6437
|
|
17
|
+
litestar_vite-0.1.21.dist-info/WHEEL,sha256=bq9SyP5NxIRA9EpQgMCd-9RmPHWvbH-4lTDGwxgIR64,87
|
|
18
|
+
litestar_vite-0.1.21.dist-info/licenses/LICENSE,sha256=HeTiEfEgvroUXZe_xAmYHxtTBgw--mbXyZLsWDYabHc,1069
|
|
19
|
+
litestar_vite-0.1.21.dist-info/RECORD,,
|
|
File without changes
|