MCPcopy Create free account
hub / github.com/Noumena-Network/code / getLegacyCompatibleAnalyticsNames

Function getLegacyCompatibleAnalyticsNames

src/services/analytics/names.ts:26–30  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

24}
25
26export function getLegacyCompatibleAnalyticsNames(name: string): string[] {
27 const canonical = toCanonicalAnalyticsName(name)
28 const legacy = toLegacyAnalyticsName(canonical)
29 return legacy === canonical ? [canonical] : [canonical, legacy]
30}
31
32export function getLegacyCompatibleValue<T>(
33 values: Record<string, T | undefined> | undefined,

Callers 2

getLegacyCompatibleValueFunction · 0.85
names.test.tsFile · 0.85

Calls 2

toCanonicalAnalyticsNameFunction · 0.85
toLegacyAnalyticsNameFunction · 0.85

Tested by

no test coverage detected