Skip to content

Commit

Permalink
chore: types issues
Browse files Browse the repository at this point in the history
  • Loading branch information
robertsLando committed Sep 21, 2023
1 parent 7a0b9af commit 2e488e3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions lib/MqttClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import {
IClientOptions,
IClientPublishOptions,
IClientSubscribeOptions,
IStore,
connect,
} from 'mqtt'
import { allSettled, parseJSON, sanitizeTopic } from './utils'
Expand Down Expand Up @@ -377,8 +378,10 @@ class MqttClient extends TypedEventEmitter<MqttClientEventCallbacks> {
await this.storeManager.open()

// no reason to use a memory store for incoming messages
options.incomingStore = this.storeManager.incoming
options.outgoingStore = this.storeManager.outgoing
options.incomingStore = this.storeManager
.incoming as unknown as IStore
options.outgoingStore = this.storeManager
.outgoing as unknown as IStore
}

if (config.auth) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
"jsonwebtoken": "^9.0.0",
"merge": "^2.1.1",
"morgan": "~1.10.0",
"mqtt": "^5.0.2",
"mqtt": "^5.0.5",
"mqtt-jsonl-store": "^0.2.0",
"multer": "^1.4.5-lts.1",
"native-url": "^0.3.4",
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9768,7 +9768,7 @@ __metadata:
languageName: node
linkType: hard

"mqtt@npm:^5.0.2":
"mqtt@npm:^5.0.5":
version: 5.0.5
resolution: "mqtt@npm:5.0.5"
dependencies:
Expand Down Expand Up @@ -14586,7 +14586,7 @@ __metadata:
merge: ^2.1.1
mocha: ^10.2.0
morgan: ~1.10.0
mqtt: ^5.0.2
mqtt: ^5.0.5
mqtt-jsonl-store: ^0.2.0
multer: ^1.4.5-lts.1
native-url: ^0.3.4
Expand Down

0 comments on commit 2e488e3

Please sign in to comment.