aedes 1.0.0 → 1.0.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/.claude/settings.local.json +14 -0
- package/aedes.d.ts +3 -3
- package/docs/Examples.md +1 -1
- package/package.json +7 -2
- package/test/types/aedes.test-d.ts +1 -1
- package/types/client.d.ts +2 -2
- package/types/instance.d.ts +2 -2
- package/types/packet.d.ts +1 -1
package/aedes.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './types/instance'
|
|
2
|
-
export * from './types/packet'
|
|
3
|
-
export * from './types/client'
|
|
1
|
+
export * from './types/instance.js'
|
|
2
|
+
export * from './types/packet.js'
|
|
3
|
+
export * from './types/client.js'
|
package/docs/Examples.md
CHANGED
package/package.json
CHANGED
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aedes",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Stream-based MQTT broker",
|
|
5
|
-
"exports":
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./aedes.d.ts",
|
|
8
|
+
"default": "./aedes.js"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
6
11
|
"type": "module",
|
|
7
12
|
"types": "aedes.d.ts",
|
|
8
13
|
"scripts": {
|
|
@@ -7,7 +7,7 @@ import type {
|
|
|
7
7
|
Connection
|
|
8
8
|
} from '../../aedes.js'
|
|
9
9
|
import { Aedes } from '../../aedes.js'
|
|
10
|
-
import type { AedesPublishPacket, ConnackPacket, ConnectPacket, PingreqPacket, PublishPacket, PubrelPacket, Subscription, SubscribePacket, UnsubscribePacket } from '../../types/packet'
|
|
10
|
+
import type { AedesPublishPacket, ConnackPacket, ConnectPacket, PingreqPacket, PublishPacket, PubrelPacket, Subscription, SubscribePacket, UnsubscribePacket } from '../../types/packet.js'
|
|
11
11
|
import { expectType } from 'tsd'
|
|
12
12
|
|
|
13
13
|
// Aedes server
|
package/types/client.d.ts
CHANGED
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
Subscription,
|
|
6
6
|
Subscriptions,
|
|
7
7
|
UnsubscribePacket
|
|
8
|
-
} from './packet'
|
|
9
|
-
import { Connection } from './instance'
|
|
8
|
+
} from './packet.js'
|
|
9
|
+
import { Connection } from './instance.js'
|
|
10
10
|
import { EventEmitter } from 'node:events'
|
|
11
11
|
|
|
12
12
|
export interface Client extends EventEmitter {
|
package/types/instance.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Duplex } from 'node:stream'
|
|
2
2
|
import { Socket } from 'node:net'
|
|
3
3
|
import { IncomingMessage } from 'node:http'
|
|
4
|
-
import { Client } from './client'
|
|
4
|
+
import { Client } from './client.js'
|
|
5
5
|
import type {
|
|
6
6
|
AedesPublishPacket,
|
|
7
7
|
ConnectPacket,
|
|
@@ -10,7 +10,7 @@ import type {
|
|
|
10
10
|
PingreqPacket,
|
|
11
11
|
PublishPacket,
|
|
12
12
|
PubrelPacket
|
|
13
|
-
} from './packet'
|
|
13
|
+
} from './packet.js'
|
|
14
14
|
import { EventEmitter } from 'node:events'
|
|
15
15
|
|
|
16
16
|
type LastHearthbeatTimestamp = Date
|
package/types/packet.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
ISubscription,
|
|
10
10
|
IUnsubscribePacket
|
|
11
11
|
} from 'mqtt-packet'
|
|
12
|
-
import { Client } from './client'
|
|
12
|
+
import { Client } from './client.js'
|
|
13
13
|
|
|
14
14
|
export type SubscribePacket = ISubscribePacket & { cmd: 'subscribe' }
|
|
15
15
|
export type UnsubscribePacket = IUnsubscribePacket & { cmd: 'unsubscribe' }
|