(value, limit = 180)
| 95 | } |
| 96 | |
| 97 | function shortJson(value, limit = 180) { |
| 98 | const text = typeof value === "string" ? value : JSON.stringify(value); |
| 99 | if (!text) return ""; |
| 100 | return text.length > limit ? `${text.slice(0, limit)}...` : text; |
| 101 | } |
| 102 | |
| 103 | function okCode(res) { |
| 104 | return String(res?.code) === "10000" || res?.success === true || Number(res?.err) === 0; |
no outgoing calls
no test coverage detected