(x)
| 1010 | } |
| 1011 | |
| 1012 | function parseError(x) { |
| 1013 | const error = {} |
| 1014 | let start = 5 |
| 1015 | for (let i = 5; i < x.length - 1; i++) { |
| 1016 | if (x[i] === 0) { |
| 1017 | error[errorFields[x[start]]] = x.toString('utf8', start + 1, i) |
| 1018 | start = i + 1 |
| 1019 | } |
| 1020 | } |
| 1021 | return error |
| 1022 | } |
| 1023 | |
| 1024 | function md5(x) { |
| 1025 | return crypto.createHash('md5').update(x).digest('hex') |
no outgoing calls
no test coverage detected