@highoutput/amqp
Advanced tools
Comparing version 0.11.9 to 0.11.12
@@ -84,3 +84,5 @@ "use strict"; | ||
: message.body; | ||
const request = Object.assign(Object.assign({}, body), { arguments: this.options.deserialize ? serialize_1.deserialize(body.arguments) : body.arguments }); | ||
const request = Object.assign(Object.assign({}, body), { arguments: this.options.deserialize | ||
? serialize_1.deserialize(body.arguments) | ||
: body.arguments }); | ||
logger_1.default.tag(['worker', 'request']).verbose(request); | ||
@@ -102,2 +104,5 @@ let result = null; | ||
}; | ||
if (error) { | ||
logger_1.default.tag(['worker', 'response']).error(error); | ||
} | ||
logger_1.default.tag(['worker', 'response']).verbose(response); | ||
@@ -141,7 +146,7 @@ const sender = await this.getSender(message.reply_to); | ||
const now = Date.now(); | ||
if (message.absolute_expiry_time | ||
&& now > message.absolute_expiry_time) { | ||
if (message.absolute_expiry_time && | ||
now > message.absolute_expiry_time) { | ||
logger_1.default | ||
.tag(['worker', 'message']) | ||
.verbose('received an expired message.'); | ||
.warn('received an expired message.'); | ||
if (!this.shutdown) { | ||
@@ -148,0 +153,0 @@ context.receiver.add_credit(1); |
{ | ||
"name": "@highoutput/amqp", | ||
"version": "0.11.9", | ||
"version": "0.11.12", | ||
"description": "A simplified client for ActiveMQ", | ||
@@ -62,3 +62,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "21a4a230bb088980e0eb23dc74bc59750f5d9860" | ||
"gitHead": "6f03976b965c2848ed771b0604686500d6172c3d" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
71143
879