aedes 0.46.1 → 0.46.2
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/.github/workflows/ci.yml +2 -2
- package/.taprc +2 -1
- package/docs/Aedes.md +1 -1
- package/package.json +4 -4
- package/types/instance.d.ts +7 -0
package/.github/workflows/ci.yml
CHANGED
|
@@ -20,10 +20,10 @@ jobs:
|
|
|
20
20
|
os: [ubuntu-latest, windows-latest, macOS-latest]
|
|
21
21
|
|
|
22
22
|
steps:
|
|
23
|
-
- uses: actions/checkout@v2.3.
|
|
23
|
+
- uses: actions/checkout@v2.3.5
|
|
24
24
|
|
|
25
25
|
- name: Use Node.js
|
|
26
|
-
uses: actions/setup-node@v2.2
|
|
26
|
+
uses: actions/setup-node@v2.3.2
|
|
27
27
|
with:
|
|
28
28
|
node-version: ${{ matrix.node-version }}
|
|
29
29
|
|
package/.taprc
CHANGED
package/docs/Aedes.md
CHANGED
|
@@ -403,7 +403,7 @@ aedes.authorizeForward = function (client, packet) {
|
|
|
403
403
|
- client: [`<Client>`](./Client.md)
|
|
404
404
|
- callback: `<Function>`
|
|
405
405
|
|
|
406
|
-
same as [`Event: publish`](#event-publish), but provides a backpressure functionality.
|
|
406
|
+
same as [`Event: publish`](#event-publish), but provides a backpressure functionality. TLDR; If you are doing operations on packets that MUST require finishing operations on a packet before handling the next one use this otherwise, expecially for long running operations, you should use [`Event: publish`](#event-publish) instead.
|
|
407
407
|
|
|
408
408
|
[CONNECT]: https://github.com/mqttjs/mqtt-packet#connect
|
|
409
409
|
[CONNACK]: https://github.com/mqttjs/mqtt-packet#connack
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aedes",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.2",
|
|
4
4
|
"description": "Stream-based MQTT broker",
|
|
5
5
|
"main": "aedes.js",
|
|
6
6
|
"types": "aedes.d.ts",
|
|
@@ -96,14 +96,14 @@
|
|
|
96
96
|
],
|
|
97
97
|
"license": "MIT",
|
|
98
98
|
"devDependencies": {
|
|
99
|
-
"@sinonjs/fake-timers": "^
|
|
99
|
+
"@sinonjs/fake-timers": "^8.0.1",
|
|
100
100
|
"@types/node": "^16.0.0",
|
|
101
101
|
"@typescript-eslint/eslint-plugin": "^4.22.0",
|
|
102
102
|
"@typescript-eslint/parser": "^4.22.0",
|
|
103
103
|
"concat-stream": "^2.0.0",
|
|
104
104
|
"duplexify": "^4.1.1",
|
|
105
105
|
"license-checker": "^25.0.1",
|
|
106
|
-
"markdownlint-cli": "^0.
|
|
106
|
+
"markdownlint-cli": "^0.29.0",
|
|
107
107
|
"mqtt": "^4.2.6",
|
|
108
108
|
"mqtt-connection": "^4.1.0",
|
|
109
109
|
"pre-commit": "^1.2.2",
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
"snazzy": "^9.0.0",
|
|
113
113
|
"standard": "^16.0.3",
|
|
114
114
|
"tap": "^15.0.2",
|
|
115
|
-
"tsd": "^0.
|
|
115
|
+
"tsd": "^0.18.0",
|
|
116
116
|
"typescript": "^4.2.4",
|
|
117
117
|
"websocket-stream": "^5.5.2"
|
|
118
118
|
},
|
package/types/instance.d.ts
CHANGED
|
@@ -90,4 +90,11 @@ export interface Aedes extends EventEmitter {
|
|
|
90
90
|
callback: () => void
|
|
91
91
|
): void
|
|
92
92
|
close (callback?: () => void): void
|
|
93
|
+
|
|
94
|
+
preConnect: PreConnectHandler
|
|
95
|
+
authenticate: AuthenticateHandler
|
|
96
|
+
authorizePublish: AuthorizePublishHandler
|
|
97
|
+
authorizeSubscribe: AuthorizeSubscribeHandler
|
|
98
|
+
authorizeForward: AuthorizeForwardHandler
|
|
99
|
+
published: PublishedHandler
|
|
93
100
|
}
|