(date = new Date(), separator = "-")
| 52 | } |
| 53 | |
| 54 | function formatDate(date = new Date(), separator = "-") { |
| 55 | const y = date.getFullYear(); |
| 56 | const m = String(date.getMonth() + 1).padStart(2, "0"); |
| 57 | const d = String(date.getDate()).padStart(2, "0"); |
| 58 | return [y, m, d].join(separator); |
| 59 | } |
| 60 | |
| 61 | function normalizeAuthorization(value = "") { |
| 62 | const token = String(value || "").trim(); |
no outgoing calls
no test coverage detected