openmates 0.27.0-alpha.54 → 0.27.0-alpha.56

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.
@@ -647,11 +647,6 @@ function clearSyncCache(teamId) {
647
647
  rmSync(filePath);
648
648
  }
649
649
  }
650
- function isSyncCacheFresh(maxAgeMs = 3e5, teamId) {
651
- const cache = loadSyncCache(teamId);
652
- if (!cache) return false;
653
- return Date.now() - cache.syncedAt < (cache.pendingRecoveryOutputs ? Math.min(maxAgeMs, 6e4) : maxAgeMs);
654
- }
655
650
  function loadTrustedAccountId() {
656
651
  const trusted = readJsonFile(join(getStateDir(), TRUSTED_ACCOUNT_FILE));
657
652
  return typeof trusted?.accountId === "string" && trusted.accountId.trim() ? trusted.accountId.trim() : null;
@@ -1207,7 +1202,6 @@ export {
1207
1202
  saveSyncCache,
1208
1203
  loadSyncCache,
1209
1204
  clearSyncCache,
1210
- isSyncCacheFresh,
1211
1205
  loadTrustedAccountId,
1212
1206
  saveTrustedAccountId,
1213
1207
  assertTrustedAccountId,