senecajs / seneca

A microservices toolkit for Node.js.
http://senecajs.org
MIT License
3.96k stars 311 forks source link

handle arrays gracefully - e.g {arr$:[]} as msg #887

Open github-actions[bot] opened 3 years ago

github-actions[bot] commented 3 years ago

handle arrays gracefully - e.g {arr$:[]} as msg

https://github.com/senecajs/seneca/blob/0c8128dc3beefa4021b9e0feb8ebb29a02bfa08f/lib/transport.js#L68


// TODO: handle arrays gracefully - e.g {arr$:[]} as msg
function externalize_reply(seneca, err, out, meta) {
  let rep = err || out

  if (!rep) {
    rep = {}