@singi-labs/sifa-sdk 0.14.6 → 0.14.7
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 +14 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -11
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2789,6 +2789,15 @@ function pickPrimaryPosition(positions) {
|
|
|
2789
2789
|
return [...active].sort((a, b) => (b.startedAt ?? "").localeCompare(a.startedAt ?? ""))[0];
|
|
2790
2790
|
}
|
|
2791
2791
|
|
|
2792
|
+
// src/profile/headline-role-dedupe.ts
|
|
2793
|
+
function normalize(value) {
|
|
2794
|
+
return value.trim().replace(/\s+/g, " ").replace(/[.,;:·|]+$/, "").trim().toLowerCase();
|
|
2795
|
+
}
|
|
2796
|
+
function isRoleLineRedundant(headline, roleLine) {
|
|
2797
|
+
if (!headline || !roleLine) return false;
|
|
2798
|
+
return normalize(headline) === normalize(roleLine);
|
|
2799
|
+
}
|
|
2800
|
+
|
|
2792
2801
|
// src/profile/section-model.ts
|
|
2793
2802
|
var SECTION_GROUPS = [
|
|
2794
2803
|
{ id: "overview", labelKey: "groupOverview" },
|
|
@@ -2915,7 +2924,10 @@ function buildMetaDescription(profile) {
|
|
|
2915
2924
|
if (currentPosition.title) positionParts.push(currentPosition.title);
|
|
2916
2925
|
const company = currentPosition.entityName ?? currentPosition.company;
|
|
2917
2926
|
if (company) positionParts.push(`at ${company}`);
|
|
2918
|
-
if (positionParts.length > 0)
|
|
2927
|
+
if (positionParts.length > 0) {
|
|
2928
|
+
const roleLine = positionParts.join(" ");
|
|
2929
|
+
if (!isRoleLineRedundant(profile.headline, roleLine)) parts.push(roleLine);
|
|
2930
|
+
}
|
|
2919
2931
|
}
|
|
2920
2932
|
if (profile.location) {
|
|
2921
2933
|
parts.push(formatLocation(profile.location));
|
|
@@ -5086,15 +5098,6 @@ var sortCertifications = (items) => sortByDateDesc(items, certDateExtractor);
|
|
|
5086
5098
|
var sortHonors = (items) => sortByDateDesc(items, singleDateExtractor);
|
|
5087
5099
|
var sortLanguages = (items) => sortLanguagesByProficiency(items);
|
|
5088
5100
|
|
|
5089
|
-
// src/profile/headline-role-dedupe.ts
|
|
5090
|
-
function normalize(value) {
|
|
5091
|
-
return value.trim().replace(/\s+/g, " ").replace(/[.,;:·|]+$/, "").trim().toLowerCase();
|
|
5092
|
-
}
|
|
5093
|
-
function isRoleLineRedundant(headline, roleLine) {
|
|
5094
|
-
if (!headline || !roleLine) return false;
|
|
5095
|
-
return normalize(headline) === normalize(roleLine);
|
|
5096
|
-
}
|
|
5097
|
-
|
|
5098
5101
|
// src/profile/involvement-grouping.ts
|
|
5099
5102
|
var INVOLVEMENT_HEADING_ORDER = [
|
|
5100
5103
|
"Open Source",
|
|
@@ -5942,7 +5945,7 @@ function describeSifaRecord(collection, value) {
|
|
|
5942
5945
|
}
|
|
5943
5946
|
|
|
5944
5947
|
// src/index.ts
|
|
5945
|
-
var SIFA_SDK_VERSION = "0.14.
|
|
5948
|
+
var SIFA_SDK_VERSION = "0.14.7";
|
|
5946
5949
|
|
|
5947
5950
|
exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
|
|
5948
5951
|
exports.ACTIVITY_VERBS = ACTIVITY_VERBS;
|