@singi-labs/sifa-sdk 0.19.18 → 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 +13 -4
- 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 +13 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4652,9 +4652,9 @@ function applyBskyPost(vm, item, record) {
|
|
|
4652
4652
|
if (media) vm.media = media;
|
|
4653
4653
|
if (externalLink) vm.externalLink = externalLink;
|
|
4654
4654
|
let body;
|
|
4655
|
-
if (
|
|
4656
|
-
else if (vm.
|
|
4657
|
-
else if (
|
|
4655
|
+
if (vm.media) body = text ? { kind: "media", text } : { kind: "media" };
|
|
4656
|
+
else if (vm.externalLink) body = text ? { kind: "link", text } : { kind: "link" };
|
|
4657
|
+
else if (text) body = { kind: "text", text };
|
|
4658
4658
|
else body = { kind: "generic" };
|
|
4659
4659
|
vm.body = body;
|
|
4660
4660
|
return vm;
|
|
@@ -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;
|