ts-backend-check 1.2.1__py3-none-any.whl → 1.2.2__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.
- ts_backend_check/cli/main.py +2 -2
- {ts_backend_check-1.2.1.dist-info → ts_backend_check-1.2.2.dist-info}/METADATA +1 -2
- {ts_backend_check-1.2.1.dist-info → ts_backend_check-1.2.2.dist-info}/RECORD +8 -8
- {ts_backend_check-1.2.1.data → ts_backend_check-1.2.2.data}/data/requirements.txt +0 -0
- {ts_backend_check-1.2.1.dist-info → ts_backend_check-1.2.2.dist-info}/WHEEL +0 -0
- {ts_backend_check-1.2.1.dist-info → ts_backend_check-1.2.2.dist-info}/entry_points.txt +0 -0
- {ts_backend_check-1.2.1.dist-info → ts_backend_check-1.2.2.dist-info}/licenses/LICENSE.txt +0 -0
- {ts_backend_check-1.2.1.dist-info → ts_backend_check-1.2.2.dist-info}/top_level.txt +0 -0
ts_backend_check/cli/main.py
CHANGED
|
@@ -124,7 +124,7 @@ def main() -> None:
|
|
|
124
124
|
|
|
125
125
|
if missing := checker.check():
|
|
126
126
|
rprint(
|
|
127
|
-
"\n[red]❌ ts-backend-check error: There are inconsistencies between the provided backend models and TypeScript interfaces. Please see the output below for details.[/red]
|
|
127
|
+
"\n[red]❌ ts-backend-check error: There are inconsistencies between the provided backend models and TypeScript interfaces. Please see the output below for details.[/red]"
|
|
128
128
|
)
|
|
129
129
|
|
|
130
130
|
# Print each error message in red.
|
|
@@ -133,7 +133,7 @@ def main() -> None:
|
|
|
133
133
|
|
|
134
134
|
field_or_fields = "fields" if len(missing) > 1 else "field"
|
|
135
135
|
rprint(
|
|
136
|
-
f"[red]
|
|
136
|
+
f"[red]\nPlease fix the {len(missing)} {field_or_fields} above to have the backend models of {args.backend_model_file} synced with the typescript interfaces of {(args.typescript_file)}.[/red]"
|
|
137
137
|
)
|
|
138
138
|
sys.exit(1)
|
|
139
139
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ts-backend-check
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.2
|
|
4
4
|
Summary: Check TypeScript types against their corresponding backend models to assure that all fields have been accounted for.
|
|
5
5
|
Home-page: https://github.com/activist-org/ts-backend-check
|
|
6
6
|
Author: ts-backend-check developers
|
|
@@ -101,7 +101,6 @@ Example success and error outputs for the CLI are:
|
|
|
101
101
|
|
|
102
102
|
```
|
|
103
103
|
ts-backend-check -bmf backend/models/user.py -tsf frontend/types/user.ts
|
|
104
|
-
|
|
105
104
|
✅ Success: All backend models are synced with their corresponding TypeScript interfaces for the provided files.
|
|
106
105
|
```
|
|
107
106
|
|
|
@@ -6,16 +6,16 @@ ts_backend_check/utils.py,sha256=N9_25_wW2g3dkmGGLWHQj_AHsXI9Rx2XqRnYxT5i2Rk,897
|
|
|
6
6
|
ts_backend_check/cli/__init__.py,sha256=wJK9tO9MtI10L0xRjrk7WP_qZZRBjbFw1U9jJbIbX7I,108
|
|
7
7
|
ts_backend_check/cli/check_blank.py,sha256=gg6v01UYNmzs8eLasxauCaBCfN9esUtiAwqhqNTzE3w,3377
|
|
8
8
|
ts_backend_check/cli/config.py,sha256=AgzjY3qbgW4ya5JJEdKaBQ9J8h0Ip-39xJNbAjFpA6s,4463
|
|
9
|
-
ts_backend_check/cli/main.py,sha256
|
|
9
|
+
ts_backend_check/cli/main.py,sha256=-MlRG8syI6BMv1CBgXyfenlx6YS0cIKW4vhuQX_C77Q,4405
|
|
10
10
|
ts_backend_check/cli/upgrade.py,sha256=P2LdIDCLdOFs-fOMuKLQoUMijQIyKEIA5PFZVsAUwDg,2952
|
|
11
11
|
ts_backend_check/cli/version.py,sha256=lsocMaxAfF-FHW9O-NGH1sAo6svjuLgdGFxaC-XVoZc,2845
|
|
12
12
|
ts_backend_check/parsers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
13
13
|
ts_backend_check/parsers/django_parser.py,sha256=U5OP6IyrSdwI9rDUGU4GbWTDfozwhretWg7lmF6QGB8,3242
|
|
14
14
|
ts_backend_check/parsers/typescript_parser.py,sha256=UAExnEKxuFREFY6bJgQreG0b7SyVhWRaHw5TjN0CSU4,2680
|
|
15
|
-
ts_backend_check-1.2.
|
|
16
|
-
ts_backend_check-1.2.
|
|
17
|
-
ts_backend_check-1.2.
|
|
18
|
-
ts_backend_check-1.2.
|
|
19
|
-
ts_backend_check-1.2.
|
|
20
|
-
ts_backend_check-1.2.
|
|
21
|
-
ts_backend_check-1.2.
|
|
15
|
+
ts_backend_check-1.2.2.data/data/requirements.txt,sha256=ixdwNPm86WRSX0oBBaNegCQL7HQP8evsCRAdEFHLxGk,540
|
|
16
|
+
ts_backend_check-1.2.2.dist-info/licenses/LICENSE.txt,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
17
|
+
ts_backend_check-1.2.2.dist-info/METADATA,sha256=oiQpyko2T9eKhHPZlC6GOFFUoYipxqtT6ay-NoltxaM,11258
|
|
18
|
+
ts_backend_check-1.2.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
19
|
+
ts_backend_check-1.2.2.dist-info/entry_points.txt,sha256=QeY7RJu20otBnQlhMMZxPL8nB3mP3M3U3h3nOlSFWSU,68
|
|
20
|
+
ts_backend_check-1.2.2.dist-info/top_level.txt,sha256=VzfNWQ3fPNdl-OBdtUKsUWR8Asdd27E3OJNUg2oQU8Y,17
|
|
21
|
+
ts_backend_check-1.2.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|