Socket
Socket
Sign inDemoInstall

aedes

Package Overview
Dependencies
36
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.35.3 to 0.36.0

2

aedes.js

@@ -39,3 +39,3 @@ 'use strict'

this.id = shortid()
this.id = opts.id || shortid()
this.counter = 0

@@ -42,0 +42,0 @@ this.connectTimeout = opts.connectTimeout

@@ -152,6 +152,2 @@ 'use strict'

function drainRequest (req) {
req.callback()
}
function onError (err) {

@@ -279,8 +275,2 @@ this.errored = true

// hack to clean up the write callbacks
// supports streams2 & streams3, so node 0.10, 0.11, and iojs
var state = that.conn._writableState
var list = (state.getBuffer && state.getBuffer()) || state.buffer
list.forEach(drainRequest)
// clear up the drain event listeners

@@ -287,0 +277,0 @@ that.conn.emit('drain')

{
"name": "aedes",
"version": "0.35.3",
"version": "0.36.0",
"description": "Stream-based MQTT broker",

@@ -41,3 +41,3 @@ "main": "aedes.js",

"devDependencies": {
"@types/node": "^8.10.25",
"@types/node": "^8.10.38",
"compute-mode": "^1.0.0",

@@ -47,13 +47,13 @@ "concat-stream": "^1.6.2",

"coveralls": "^3.0.2",
"duplexify": "^3.6.0",
"duplexify": "^3.6.1",
"faucet": "0.0.1",
"istanbul": "^0.4.1",
"mqtt": "^2.18.3",
"mqtt-connection": "^3.2.0",
"mqtt": "^2.18.8",
"mqtt-connection": "^4.0.0",
"pre-commit": "^1.0.10",
"standard": "^11.0.0",
"standard": "^12.0.0",
"tape": "^4.9.1",
"tslint": "^5.11.0",
"tslint-config-standard": "^7.1.0",
"typescript": "^2.9.2",
"tslint-config-standard": "^8.0.1",
"typescript": "^3.1.6",
"websocket-stream": "^5.1.2"

@@ -63,3 +63,3 @@ },

"aedes-packet": "^1.0.0",
"aedes-persistence": "^5.1.1",
"aedes-persistence": "^6.0.0",
"bulk-write-stream": "^1.1.4",

@@ -72,9 +72,8 @@ "end-of-stream": "^1.4.1",

"mqemitter": "^2.2.0",
"mqtt-packet": "^5.6.0",
"mqtt-packet": "^6.0.0",
"pump": "^3.0.0",
"retimer": "^1.1.0",
"reusify": "^1.0.4",
"safe-buffer": "^5.1.2",
"shortid": "^2.2.12",
"through2": "^2.0.0",
"shortid": "^2.2.14",
"through2": "^3.0.0",
"uuid": "^3.3.2",

@@ -81,0 +80,0 @@ "xtend": "^4.0.1"

@@ -98,2 +98,4 @@ # Aedes  [![Build Status](https://travis-ci.org/mcollina/aedes.svg?branch=master)](https://travis-ci.org/mcollina/aedes) [![Coverage Status](https://coveralls.io/repos/mcollina/aedes/badge.svg?branch=master&service=github)](https://coveralls.io/github/mcollina/aedes?branch=master)

packet to arrive, defaults to `30000` milliseconds
* `id`: id used to identify this broker instance in `$SYS` messages,
defaults to `shortid()`
* `authenticate`: function used to authenticate clients, see

@@ -100,0 +102,0 @@ [instance.authenticate()](#authenticate)

@@ -717,1 +717,13 @@ 'use strict'

})
test('id option', function (t) {
t.plan(2)
var broker1 = aedes()
setup(broker1)
t.ok(broker1.id, 'broker gets random id when id option not set')
var broker2 = aedes({ id: 'abc' })
setup(broker2)
t.equal(broker2.id, 'abc', 'broker id equals id option when set')
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc