sos-sdk-node-ts 0.1.10 → 0.1.11

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.1.11 - 2026-10-20
6
+
7
+ - Keep valid owned human cards discoverable when the same verified identity
8
+ also has active profile or controller licenses whose authorized subject is
9
+ not a card DID; malformed card-shaped DIDs still fail closed.
10
+
5
11
  ## 0.1.10 - 2026-10-20
6
12
 
7
13
  - Discover canonical animal cards through any governed `animal-*` sector,
@@ -193,6 +193,8 @@ function readAcceptedLicenses(body, context) {
193
193
  const subjectDid = String(meta.authorizedSubjectDid || '').trim();
194
194
  if (!subjectDid)
195
195
  return [];
196
+ if (!isSubjectCardCandidate(subjectDid, context))
197
+ return [];
196
198
  requireCanonicalSubjectDid(subjectDid, context);
197
199
  const claims = objectRecord(meta.claims);
198
200
  const relatedRoles = String(claims[CLAIM_RELATED_PERSON_ROLE] || '')
@@ -238,6 +240,11 @@ function requireCanonicalSubjectDid(subjectDid, context) {
238
240
  throw new Error('human_card_did_invalid');
239
241
  }
240
242
  }
243
+ function isSubjectCardCandidate(subjectDid, context) {
244
+ return isAnimalSector(context.sector)
245
+ ? subjectDid.toLowerCase().includes(':card:vetchain:')
246
+ : subjectDid.toLowerCase().includes(':card:uhc:');
247
+ }
241
248
  function isAnimalSector(sector) {
242
249
  return sector.toLowerCase().startsWith('animal-');
243
250
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sos-sdk-node-ts",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Product-neutral Node adapters shared by SOSChain, Vet and UHC runtimes",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Connecting Solution & Applications Ltd",