Skip to content

Commit

Permalink
Fix: Update aedes protocol decoder (#6)
Browse files Browse the repository at this point in the history
* fix: factory options

* fix: update dependencies
  • Loading branch information
getlarge authored Jan 15, 2021
1 parent 4d0811a commit b0e16e7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ const defaultOptions = {
extractSocketDetails: extractSocketDetails
}

const createServer = (aedes, options) => {
const createServer = (aedes, options = {}) => {
if (!aedes || !aedes.handle) {
throw new Error('Missing aedes handler')
}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,14 @@
"mqtt-packet": "^6.5.0",
"nyc": "^15.0.0",
"pre-commit": "^1.2.2",
"release-it": "^14.0.2",
"release-it": "^14.2.2",
"snazzy": "^8.0.0",
"standard": "^14.3.3",
"tape": "^4.13.0",
"typescript": "^4.0.2"
},
"dependencies": {
"aedes-protocol-decoder": "^2.0.0",
"aedes-protocol-decoder": "^2.0.1",
"ws": "^7.3.1"
}
}
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ type Server = NetServer | HttpServer | Http2Server | Http2SecureServer;

export type ServerFactory = (
broker: Aedes,
options: ServerFactoryOptions
options?: ServerFactoryOptions
) => Server;

export declare const createServer: ServerFactory

0 comments on commit b0e16e7

Please sign in to comment.