mqtt 4.2.7 → 4.2.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mqtt",
3
3
  "description": "A library for the MQTT protocol",
4
- "version": "4.2.7",
4
+ "version": "4.2.8",
5
5
  "contributors": [
6
6
  "Adam Rudd <adamvrr@gmail.com>",
7
7
  "Matteo Collina <matteo.collina@gmail.com> (https://github.com/mcollina)",
@@ -74,7 +74,7 @@
74
74
  "readable-stream": "^3.6.0",
75
75
  "reinterval": "^1.1.0",
76
76
  "split2": "^3.1.0",
77
- "ws": "^7.3.1",
77
+ "ws": "^7.5.0",
78
78
  "xtend": "^4.0.2"
79
79
  },
80
80
  "devDependencies": {
@@ -71,9 +71,10 @@ export declare type OnDisconnectCallback = (packet: IDisconnectPacket) => void
71
71
  export declare type ClientSubscribeCallback = (err: Error, granted: ISubscriptionGrant[]) => void
72
72
  export declare type OnMessageCallback = (topic: string, payload: Buffer, packet: IPublishPacket) => void
73
73
  export declare type OnPacketCallback = (packet: Packet) => void
74
+ export declare type OnCloseCallback = () => void
74
75
  export declare type OnErrorCallback = (error: Error) => void
75
76
  export declare type PacketCallback = (error?: Error, packet?: Packet) => any
76
- export declare type CloseCallback = () => void
77
+ export declare type CloseCallback = (error?: Error) => void
77
78
 
78
79
  export interface IStream extends events.EventEmitter {
79
80
  pipe (to: any): any