MCPcopy Create free account
hub / github.com/CommE2E/comm / stringToVersionKey

Function stringToVersionKey

lib/push/utils.js:39–48  ·  view source on GitHub ↗
(versionKeyString: string)

Source from the content-addressed store, hash-verified

37}
38
39function stringToVersionKey(versionKeyString: string): VersionKey {
40 invariant(
41 versionKeyRegex.test(versionKeyString),
42 'should pass correct version key string',
43 );
44 const [codeVersion, stateVersion, majorDesktopVersion] = versionKeyString
45 .split('|')
46 .map(Number);
47 return { codeVersion, stateVersion, majorDesktopVersion };
48}
49
50function getDevicesByPlatform(
51 devices: $ReadOnlyArray<Device>,

Callers 3

preparePushNotifFunction · 0.90
updateBadgeCountFunction · 0.90
buildNotifsForPlatformFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected