Skip to content

Commit

Permalink
chore: replace eventemitter3 with events
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Jun 16, 2023
1 parent 02ae1a5 commit 6836774
Show file tree
Hide file tree
Showing 4 changed files with 1,317 additions and 1,317 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
]
},
"dependencies": {
"eventemitter3": "^5.0.1",
"events": "^3.3.0",
"mqtt-packet": "^8.1.2",
"react-native-tcp-socket": "^6.0.6"
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import type { Buffer } from 'buffer';
import type { Packet, Parser } from 'mqtt-packet';
import net from 'react-native-tcp-socket';
import mqtt from 'mqtt-packet';
import EventEmitter from 'eventemitter3';
import { EventEmitter } from 'events';

export type Callback = (err?: Error | undefined) => any;

Expand Down
2 changes: 1 addition & 1 deletion src/simple-mq.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
IUnsubscribePacket,
} from 'mqtt-packet';
import type { Buffer } from 'buffer';
import EventEmitter from 'eventemitter3';
import { EventEmitter } from 'events';
import { Server, Client } from './';

export interface Options {
Expand Down
Loading

0 comments on commit 6836774

Please sign in to comment.