@singi-labs/sifa-sdk 0.12.15 → 0.12.16

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
@@ -805,11 +805,13 @@ var PLATFORM_LABELS = {
805
805
  keyoxide: "Keyoxide"
806
806
  };
807
807
  var PLATFORM_TOKEN_PREFIX = "id.sifa.defs#platform";
808
+ var PLATFORM_ALIASES = {
809
+ activitypub: "fediverse",
810
+ mastodon: "fediverse"
811
+ };
808
812
  function normalizePlatformId(platform) {
809
- if (platform.startsWith(PLATFORM_TOKEN_PREFIX)) {
810
- return platform.slice(PLATFORM_TOKEN_PREFIX.length).toLowerCase();
811
- }
812
- return platform;
813
+ const code = platform.startsWith(PLATFORM_TOKEN_PREFIX) ? platform.slice(PLATFORM_TOKEN_PREFIX.length).toLowerCase() : platform;
814
+ return PLATFORM_ALIASES[code.toLowerCase()] ?? code;
813
815
  }
814
816
  function isKnownPlatform(platform) {
815
817
  return platform in PLATFORM_LABELS;
@@ -4563,7 +4565,7 @@ var ProfileVolunteeringRecordSchema = zod.z.object({
4563
4565
  });
4564
4566
 
4565
4567
  // src/index.ts
4566
- var SIFA_SDK_VERSION = "0.12.15";
4568
+ var SIFA_SDK_VERSION = "0.12.16";
4567
4569
 
4568
4570
  exports.ACTIVITY_TIERS = ACTIVITY_TIERS;
4569
4571
  exports.ACTIVITY_VERBS = ACTIVITY_VERBS;