Skip to content

Commit

Permalink
[email protected], export Packet and fixed test (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando authored Feb 27, 2020
1 parent 0602e42 commit cb704b7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions abstract.js
Original file line number Diff line number Diff line change
Expand Up @@ -906,11 +906,12 @@ function abstractPersistence (opts) {
}
var queue = []
enqueueAndUpdate(t, instance, client, sub, packet1, 42, function (updated1) {
enqueueAndUpdate(t, instance, client, sub, packet2, 42, function (updated2) {
enqueueAndUpdate(t, instance, client, sub, packet2, 43, function (updated2) {
var stream = instance.outgoingStream(client)
pump(stream, through.obj(function clearQueue (data, enc, next) {
instance.outgoingUpdate(client, data,
function (_, client, packet) {
function (err, client, packet) {
t.notOk(err, 'no error')
queue.push(packet)
next()
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
"through2": "^3.0.1"
},
"dependencies": {
"aedes-packet": "^2.1.0",
"aedes-packet": "^2.3.1",
"from2": "^2.3.0",
"qlobber": "^5.0.0"
}
Expand Down
1 change: 1 addition & 0 deletions persistence.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,3 +355,4 @@ MemoryPersistence.prototype.destroy = function (cb) {
}

module.exports = MemoryPersistence
module.exports.Packet = Packet

0 comments on commit cb704b7

Please sign in to comment.