(value = "")
| 72 | } |
| 73 | |
| 74 | function mask(value = "") { |
| 75 | value = String(value); |
| 76 | if (!value) return ""; |
| 77 | if (value.length <= 12) return `${value.slice(0, 3)}***`; |
| 78 | return `${value.slice(0, 6)}***${value.slice(-6)}`; |
| 79 | } |
| 80 | |
| 81 | function parseJsonMaybe(text) { |
| 82 | if (!text || typeof text !== "string") return text; |