nats-hemera
Advanced tools
Comparing version 5.6.0 to 5.7.0
@@ -90,2 +90,3 @@ 'use strict' | ||
context.log = context.log.child({ | ||
tag: context._config.tag, | ||
requestId: context.request$.id, | ||
@@ -152,2 +153,3 @@ parentSpanId: context.trace$.parentSpanId, | ||
context.log = context.log.child({ | ||
tag: context._config.tag, | ||
requestId: context.request$.id, | ||
@@ -236,2 +238,3 @@ parentSpanId: context.trace$.parentSpanId, | ||
context.log = context.log.child({ | ||
tag: context._config.tag, | ||
requestId: context.request$.id, | ||
@@ -264,2 +267,3 @@ parentSpanId: context.trace$.parentSpanId, | ||
context.log = context.log.child({ | ||
tag: context._config.tag, | ||
requestId: context.request$.id, | ||
@@ -266,0 +270,0 @@ parentSpanId: context.trace$.parentSpanId, |
@@ -951,9 +951,5 @@ 'use strict' | ||
result.then( | ||
payload => { | ||
self.reply.send(payload) | ||
}, | ||
payload => self.reply.send(payload), | ||
err => { | ||
if (err) { | ||
self._isValidError(err) | ||
} | ||
self._isValidError(err) | ||
self.reply.send(err) | ||
@@ -985,4 +981,6 @@ } | ||
self._isValidError(err) | ||
self.reply.send(err) | ||
return | ||
} | ||
self.reply.send(err || result) | ||
self.reply.send(result) | ||
}) | ||
@@ -989,0 +987,0 @@ } |
{ | ||
"name": "nats-hemera", | ||
"author": "Dustin Deus (https://github.com/StarpTech)", | ||
"version": "5.6.0", | ||
"version": "5.7.0", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "homepage": "https://hemerajs.github.io/hemera/", |
81490
3287