Skip to content

Commit 7873a9a

Browse files
severinbeauvaisbolyachevetsseeker25dependabot[bot]Severin Beauvais
authored
26211 Created version 3.0.15a (#384)
* handle empty dict (#375) * Fix linting issue * fix lint * Bump elliptic from 6.5.4 to 6.6.1 in /vue/sbc-common-components (#378) Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.4 to 6.6.1. - [Commits](indutny/elliptic@v6.5.4...v6.6.1) --- updated-dependencies: - dependency-name: elliptic dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * SBC-Common-Components V3 - Upgrade keycloak library (#381) * upgrade keycloak library * Fix keycloak * Fix some unit tests * remove postcss.config * restore missing * lint * - app version = 3.0.15a --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Andrew Bolyachevets <Andriy.Bolyachevets@gov.bc.ca> Co-authored-by: Travis Semple <travis8814@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Severin Beauvais <severin.beauvais@gov.bc.ca>
1 parent 43c90c0 commit 7873a9a

20 files changed

+16058
-33080
lines changed

python/src/sbc_common_components/utils/camel_case_response.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,16 @@ def camelcase(string):
4141

4242
def camelcase_dict(data, camel_dict: Dict[str, any]):
4343
"""Iterate through the dict and convert to camel case."""
44-
if data:
45-
# Handle the scenario where we aren't a dict
46-
if isinstance(data, list):
47-
return [camelcase_dict(item, {}) for item in data]
44+
45+
if isinstance(data, list):
46+
if not data: # empty array is falsy
47+
return []
48+
return [camelcase_dict(item, {}) for item in data]
49+
50+
if isinstance(data, dict):
51+
if not data: # empty dict is falsy
52+
return {}
53+
4854
for key, value in data.items():
4955
key = camelcase(key)
5056
if isinstance(value, dict):
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
6+
<meta name="viewport" content="width=device-width,initial-scale=1.0">
7+
<title>sbc-common-components</title>
8+
</head>
9+
<body>
10+
<noscript>
11+
<strong>
12+
We're sorry but sbc-common-components doesn't work properly
13+
without JavaScript enabled. Please enable it to continue.
14+
</strong>
15+
</noscript>
16+
<div id="app"></div>
17+
<script type="module" src="/src/main.ts"></script>
18+
</body>
19+
</html>

vue/sbc-common-components/jest.config.js

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)