MCPcopy Index your code
hub / github.com/QLHazyCoder/FlowPilot / isLuckmailPurchaseExpired

Function isLuckmailPurchaseExpired

luckmail-utils.js:291–295  ·  view source on GitHub ↗
(purchase, now = Date.now())

Source from the content-addressed store, hash-verified

289 }
290
291 function isLuckmailPurchaseExpired(purchase, now = Date.now()) {
292 const normalizedPurchase = normalizeLuckmailPurchase(purchase);
293 const expiresAt = normalizeTimestamp(normalizedPurchase.warranty_until);
294 return Boolean(expiresAt && expiresAt <= Number(now || 0));
295 }
296
297 function isLuckmailPurchaseDisabled(purchase) {
298 return Number(normalizeLuckmailPurchase(purchase).user_disabled) === 1;

Callers 1

Calls 2

normalizeTimestampFunction · 0.70

Tested by

no test coverage detected