Skip to content

Commit 6f3257c

Browse files
author
taoyuan
committed
upgrade amqper to 0.2.0
1 parent 164bbcf commit 6f3257c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/amqp/amqp-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Client.prototype.for = function (params) {
126126
};
127127

128128
function getResponseHandler(cache) {
129-
return function (message) {
129+
return function (err, message) {
130130
var payload = message.payload;
131131
if (!payload || !payload.id) return debug('invalid response', payload);
132132

lib/amqp/amqp-server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function AMQPServer(server, amqpclient, options) {
3434
}
3535

3636
function getRequestHandler(server, mqttserver) {
37-
return function (message) {
37+
return function (err, message) {
3838
var payload = message.payload;
3939
debug('received request', payload);
4040
server.call(payload, function (error, success) {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"mosca"
2525
],
2626
"dependencies": {
27-
"amqper": "^0.1.8",
27+
"amqper": "^0.2.0",
2828
"debug": "^2.2.0",
2929
"expirable": "^0.1.0",
3030
"jayson": "^1.2.0",
@@ -37,6 +37,6 @@
3737
"devDependencies": {
3838
"chai": "*",
3939
"mocha": "*",
40-
"mosca": "^0.31.0"
40+
"mosca": "^0.31.1"
4141
}
4242
}

0 commit comments

Comments
 (0)