()
| 165 | } |
| 166 | |
| 167 | function monthRange() { |
| 168 | const now = new Date(); |
| 169 | const firstDay = new Date(now.getFullYear(), now.getMonth(), 1).getTime(); |
| 170 | const nextMonth = new Date(now.getFullYear(), now.getMonth() + 1, 1).getTime(); |
| 171 | return { |
| 172 | BeginDate: firstDay - 15 * 24 * 60 * 60 * 1000, |
| 173 | EndDate: nextMonth - 1000 + 15 * 24 * 60 * 60 * 1000, |
| 174 | }; |
| 175 | } |
| 176 | |
| 177 | function normalizeStatus(status = "") { |
| 178 | const map = { |
no test coverage detected