*Switch to eventemitter2
This commit is contained in:
parent
a41e162b1d
commit
e2ab0b8e91
|
@ -18,6 +18,7 @@
|
|||
"@hyperswarm/dht-relay": "^0.3.0",
|
||||
"@lumeweb/kernel-peer-discovery-client": "git+https://git.lumeweb.com/LumeWeb/kernel-peer-discovery-client.git",
|
||||
"@lumeweb/libkernel-universal": "git+https://git.lumeweb.com/LumeWeb/libkernel-universal.git",
|
||||
"eventemitter2": "^6.4.9",
|
||||
"hyperswarm": "^4.3.7"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,6 +7,7 @@ specifiers:
|
|||
'@types/random-number-csprng': ^1.0.0
|
||||
'@types/ws': ^8.5.4
|
||||
esbuild: ^0.14.54
|
||||
eventemitter2: ^6.4.9
|
||||
hyperswarm: ^4.3.7
|
||||
prettier: ^2.8.3
|
||||
rimraf: ^3.0.2
|
||||
|
@ -16,6 +17,7 @@ dependencies:
|
|||
'@hyperswarm/dht-relay': 0.3.0
|
||||
'@lumeweb/kernel-peer-discovery-client': git.lumeweb.com/LumeWeb/kernel-peer-discovery-client/ad426dafb19be8f79c64bb11c1c014b1031c96d0
|
||||
'@lumeweb/libkernel-universal': git.lumeweb.com/LumeWeb/libkernel-universal/ae9c6eeb60cd5e350012c3e393ff8b846326e468
|
||||
eventemitter2: 6.4.9
|
||||
hyperswarm: 4.3.7
|
||||
|
||||
devDependencies:
|
||||
|
@ -394,6 +396,10 @@ packages:
|
|||
esbuild-windows-arm64: 0.14.54
|
||||
dev: true
|
||||
|
||||
/eventemitter2/6.4.9:
|
||||
resolution: {integrity: sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg==}
|
||||
dev: false
|
||||
|
||||
/events/3.3.0:
|
||||
resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}
|
||||
engines: {node: '>=0.8.x'}
|
||||
|
|
|
@ -12,7 +12,7 @@ import { load } from "@lumeweb/libkernel-universal";
|
|||
// @ts-ignore
|
||||
import Hyperswarm from "hyperswarm";
|
||||
import randomNumber from "random-number-csprng";
|
||||
import EventEmitter from "node:events";
|
||||
import EventEmitter from "eventemitter2";
|
||||
|
||||
export default class HyperswarmWeb extends EventEmitter {
|
||||
private _options: any;
|
||||
|
|
Loading…
Reference in New Issue