Skip to content

Commit

Permalink
remove test for older protobufjs versions. in stream emit all errors …
Browse files Browse the repository at this point in the history
…not just one. update deps
  • Loading branch information
bojand committed Mar 16, 2019
1 parent aa327c8 commit c0ae2dc
Show file tree
Hide file tree
Showing 13 changed files with 1,628 additions and 2,279 deletions.
4 changes: 2 additions & 2 deletions lib/app.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const util = require('util')
const assert = require('assert')
const Emitter = require('events')
const util = require('util')
const compose = require('@malijs/compose')
const grpc = require('grpc')
const gi = require('grpc-inspect')
Expand Down Expand Up @@ -392,7 +392,7 @@ class Mali extends Emitter {
* Inspect implementation.
* @return {Object}
*/
inspect () {
[util.inspect.custom] (depth, options) {
return this.toJSON()
}

Expand Down
2 changes: 1 addition & 1 deletion lib/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function execStream (ctx, handler) {
handler(ctx).then(() => {
ctx.response.sendMetadata()
ctx.res.pipe(ctx.call)
ctx.res.once('error', err => {
ctx.res.on('error', err => {
ctx.call.emit('error', err)
onerror(err, ctx)
})
Expand Down

0 comments on commit c0ae2dc

Please sign in to comment.