kyd-shared-badge 0.2.12 → 0.2.13

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kyd-shared-badge",
3
- "version": "0.2.12",
3
+ "version": "0.2.13",
4
4
  "private": false,
5
5
  "main": "./src/index.ts",
6
6
  "module": "./src/index.ts",
@@ -248,10 +248,12 @@ const SharedBadgeDisplay = ({ badgeData }: { badgeData: PublicBadgeData }) => {
248
248
  const val = lists[i];
249
249
  if (!seen[val]) { seen[val] = true; dedup.push(val); }
250
250
  }
251
+ const detailed = screening_sources.sanctions_sources_detailed || [];
252
+ const useDetailed = detailed && detailed.length > 0;
251
253
  return (
252
254
  <AppendixTables
253
255
  type="sanctions"
254
- sources={dedup}
256
+ sources={useDetailed ? detailed : dedup}
255
257
  searchedAt={updatedAt}
256
258
  developerName={developerName || 'this developer'}
257
259
  />
@@ -20,7 +20,7 @@ const PAGE_SIZE = 25;
20
20
 
21
21
  interface AppendixTableProps {
22
22
  type: 'sanctions' | 'domains';
23
- sources: string[] | DomainCSVRow[];
23
+ sources: (string | DomainCSVRow | SanctionSource)[];
24
24
  searchedAt: string;
25
25
  developerName: string;
26
26
  }