(value)
| 162 | } |
| 163 | |
| 164 | function normalizeLuckmailPurchaseId(value) { |
| 165 | const numeric = Number(value); |
| 166 | if (!Number.isFinite(numeric) || numeric <= 0) { |
| 167 | return ''; |
| 168 | } |
| 169 | return String(Math.floor(numeric)); |
| 170 | } |
| 171 | |
| 172 | function normalizeLuckmailUsedPurchases(rawValue = {}) { |
| 173 | if (!rawValue || typeof rawValue !== 'object' || Array.isArray(rawValue)) { |
no outgoing calls
no test coverage detected