(value)
| 104 | } |
| 105 | |
| 106 | function parseDateToMs(value) { |
| 107 | const timestamp = Date.parse(value || ""); |
| 108 | return Number.isFinite(timestamp) ? timestamp : 0; |
| 109 | } |
| 110 | |
| 111 | function getTimeWindowMs(timeWindow) { |
| 112 | if (timeWindow === "1d") return 1 * 24 * 60 * 60 * 1000; |
no outgoing calls
no test coverage detected