@sphereon/ui-components.credential-branding 0.3.1-next.7 → 0.3.1-next.8

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.
@@ -139,11 +139,17 @@ var toCredentialDetailsRow = function (_a) {
139
139
  switch (_k.label) {
140
140
  case 0:
141
141
  rows = [];
142
+ if (!object) {
143
+ return [2, rows];
144
+ }
142
145
  _i = 0, _b = Object.entries(object);
143
146
  _k.label = 1;
144
147
  case 1:
145
148
  if (!(_i < _b.length)) return [3, 12];
146
149
  _c = _b[_i], key = _c[0], value = _c[1];
150
+ if (!key) {
151
+ return [3, 11];
152
+ }
147
153
  if (!key.toLowerCase().includes('image')) return [3, 3];
148
154
  image = typeof value === 'string' ? value : value.id;
149
155
  _e = (_d = rows).push;
@@ -168,14 +174,14 @@ var toCredentialDetailsRow = function (_a) {
168
174
  }
169
175
  _k.label = 4;
170
176
  case 4:
171
- if (!(typeof value !== 'string' && value !== undefined)) return [3, 6];
177
+ if (!(typeof value !== 'string' && value !== null && value !== undefined)) return [3, 6];
172
178
  _g = (_f = rows).concat;
173
179
  return [4, toCredentialDetailsRow({ object: value, subject: subject, issuer: issuer })];
174
180
  case 5:
175
181
  rows = _g.apply(_f, [_k.sent()]);
176
182
  return [3, 11];
177
183
  case 6:
178
- if (key === '0' || value === undefined) {
184
+ if (key === '0' || value === undefined || value === null) {
179
185
  return [3, 11];
180
186
  }
181
187
  label = key;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sphereon/ui-components.credential-branding",
3
3
  "private": false,
4
- "version": "0.3.1-next.7+01eb911",
4
+ "version": "0.3.1-next.8+8306b26",
5
5
  "description": "SSI UI components credential branding",
6
6
  "repository": "git@github.com:Sphereon-Opensource/UI-Components.git",
7
7
  "author": "Sphereon <dev@sphereon.com>",
@@ -31,7 +31,7 @@
31
31
  "@sphereon/ssi-sdk.core": "0.29.0",
32
32
  "@sphereon/ssi-sdk.data-store": "0.29.0",
33
33
  "@sphereon/ssi-types": "0.29.0",
34
- "@sphereon/ui-components.core": "0.3.1-next.7+01eb911",
34
+ "@sphereon/ui-components.core": "0.3.1-next.8+8306b26",
35
35
  "@veramo/core": "4.2.0",
36
36
  "@veramo/utils": "4.2.0",
37
37
  "i18n-js": "^3.8.0",
@@ -39,14 +39,17 @@
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/i18n-js": "^3.8.4",
42
+ "@types/jest": "^29.5.12",
42
43
  "@types/node": "^20.4.0",
43
44
  "@types/react": "~18.2.79",
44
45
  "@types/uuid": "^9.0.8",
46
+ "jest": "^29.7.0",
45
47
  "react": "18.2.0",
48
+ "ts-jest": "^29.2.5",
46
49
  "typescript": "4.9.5"
47
50
  },
48
51
  "peerDependencies": {
49
52
  "react": ">= 18"
50
53
  },
51
- "gitHead": "01eb9113b05f0114dfd629ddb8e05aa0fc5d84d5"
54
+ "gitHead": "8306b26d8922e867a44be31cd4a76838efecebb6"
52
55
  }