@sphereon/ui-components.credential-branding 0.3.1-next.9 → 0.3.1-unstable.12

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.
@@ -174,7 +174,7 @@ var toCredentialDetailsRow = function (_a) {
174
174
  }
175
175
  _k.label = 4;
176
176
  case 4:
177
- if (!(typeof value !== 'string' && value !== null && value !== undefined)) return [3, 6];
177
+ if (!(typeof value === 'object' && value !== null && value !== undefined)) return [3, 6];
178
178
  _g = (_f = rows).concat;
179
179
  return [4, toCredentialDetailsRow({ object: value, subject: subject, issuer: issuer })];
180
180
  case 5:
@@ -185,10 +185,10 @@ var toCredentialDetailsRow = function (_a) {
185
185
  return [3, 11];
186
186
  }
187
187
  label = key;
188
- if (key === 'id' && value.startsWith('did:')) {
188
+ if (key === 'id' && typeof value === 'string' && value.startsWith('did:')) {
189
189
  label = 'subject';
190
190
  }
191
- if (value.startsWith('did:')) {
191
+ if (typeof value === 'string' && value.startsWith('did:')) {
192
192
  contacts = __spreadArray(__spreadArray([], (issuer ? [issuer] : []), true), (subject ? [subject] : []), true);
193
193
  value = findCorrelationIdName(value, contacts);
194
194
  }
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.9+89203cc",
4
+ "version": "0.3.1-unstable.12+ecdfa7b",
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.9+89203cc",
34
+ "@sphereon/ui-components.core": "0.3.1-unstable.12+ecdfa7b",
35
35
  "@veramo/core": "4.2.0",
36
36
  "@veramo/utils": "4.2.0",
37
37
  "i18n-js": "^3.8.0",
@@ -51,5 +51,5 @@
51
51
  "peerDependencies": {
52
52
  "react": ">= 18"
53
53
  },
54
- "gitHead": "89203ccd1b27ea8d7c1ca157e42d7aa3ad64544a"
54
+ "gitHead": "ecdfa7b14ecae95e787bc67e0c1d03c28883e83e"
55
55
  }