@singi-labs/sifa-sdk 0.19.47 → 0.19.48
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 +17 -1
- package/dist/index.d.ts +17 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/logic/following-feed-fallback.js +11 -0
- package/dist/logic/following-feed-fallback.js.map +1 -0
- package/dist/logic/index.js +2 -0
- package/dist/logic/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -5854,6 +5854,14 @@ function countRecentActivity(days, windowDays, now = /* @__PURE__ */ new Date())
|
|
|
5854
5854
|
return days.reduce((sum, day) => day.date >= cutoff ? sum + day.total : sum, 0);
|
|
5855
5855
|
}
|
|
5856
5856
|
|
|
5857
|
+
// src/logic/following-feed-fallback.ts
|
|
5858
|
+
function followingFeedFallbackApp(feed) {
|
|
5859
|
+
if (!feed || feed.items.length > 0 || !feed.apps?.length) return null;
|
|
5860
|
+
let busiest = feed.apps[0];
|
|
5861
|
+
for (const app of feed.apps) if (app.count > busiest.count) busiest = app;
|
|
5862
|
+
return busiest.id;
|
|
5863
|
+
}
|
|
5864
|
+
|
|
5857
5865
|
// src/logic/self-app.ts
|
|
5858
5866
|
var SELF_APP_ID = "sifa";
|
|
5859
5867
|
function excludeSelfApp(apps) {
|
|
@@ -7071,7 +7079,7 @@ function describeSifaRecord(collection, value) {
|
|
|
7071
7079
|
}
|
|
7072
7080
|
|
|
7073
7081
|
// src/index.ts
|
|
7074
|
-
var SIFA_SDK_VERSION = "0.19.
|
|
7082
|
+
var SIFA_SDK_VERSION = "0.19.48";
|
|
7075
7083
|
|
|
7076
7084
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
7077
7085
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|
|
@@ -7230,6 +7238,7 @@ exports.excludeSelfApp = excludeSelfApp;
|
|
|
7230
7238
|
exports.externalRecordRefSchema = externalRecordRefSchema;
|
|
7231
7239
|
exports.filterHidden = filterHidden;
|
|
7232
7240
|
exports.findIndustry = findIndustry;
|
|
7241
|
+
exports.followingFeedFallbackApp = followingFeedFallbackApp;
|
|
7233
7242
|
exports.formatCompanyName = formatCompanyName;
|
|
7234
7243
|
exports.formatCredentialDateRange = formatCredentialDateRange;
|
|
7235
7244
|
exports.formatDateRange = formatDateRange;
|