@singi-labs/sifa-sdk 0.19.19 → 0.19.20
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 +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5004,6 +5004,15 @@ function genericSubject(record) {
|
|
|
5004
5004
|
return void 0;
|
|
5005
5005
|
}
|
|
5006
5006
|
function withResolvedSubjectMeta(subject, item) {
|
|
5007
|
+
if (subject.kind === "person") {
|
|
5008
|
+
const handle = nonBlankString(item.subjectHandle) ?? subject.handle;
|
|
5009
|
+
const displayName = nonBlankString(item.subjectDisplayName) ?? subject.displayName;
|
|
5010
|
+
return {
|
|
5011
|
+
...subject,
|
|
5012
|
+
...handle ? { handle } : {},
|
|
5013
|
+
...displayName ? { displayName } : {}
|
|
5014
|
+
};
|
|
5015
|
+
}
|
|
5007
5016
|
if (subject.kind !== "record") return subject;
|
|
5008
5017
|
const title = nonBlankString(item.subjectTitle) ?? subject.title;
|
|
5009
5018
|
const url = nonBlankString(item.subjectUrl);
|
|
@@ -6601,7 +6610,7 @@ function describeSifaRecord(collection, value) {
|
|
|
6601
6610
|
}
|
|
6602
6611
|
|
|
6603
6612
|
// src/index.ts
|
|
6604
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
6613
|
+
var SIFA_SDK_VERSION = "0.19.20";
|
|
6605
6614
|
|
|
6606
6615
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
6607
6616
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|