@singi-labs/sifa-sdk 0.19.66 → 0.19.67

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/dist/index.cjs CHANGED
@@ -4959,6 +4959,10 @@ function recordHasSubjectRef(record) {
4959
4959
  return false;
4960
4960
  }
4961
4961
  function resolveSourceUrl(item, record) {
4962
+ if (item.collection === "at.marque.domain") {
4963
+ const domain = asNonEmptyString(record.domain);
4964
+ if (domain && /^[a-z0-9-]+(\.[a-z0-9-]+)+$/i.test(domain)) return `https://${domain}`;
4965
+ }
4962
4966
  const authorDid = didFromUri(item.uri) ?? "";
4963
4967
  const authorHandle = asNonEmptyString(item.authorHandle) ?? asNonEmptyString(record.handle);
4964
4968
  const url = resolveCardUrl({
@@ -7197,7 +7201,7 @@ function describeSifaRecord(collection, value) {
7197
7201
  }
7198
7202
 
7199
7203
  // src/index.ts
7200
- var SIFA_SDK_VERSION = "0.19.66";
7204
+ var SIFA_SDK_VERSION = "0.19.67";
7201
7205
 
7202
7206
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
7203
7207
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;