*Switch to eventemitter2

This commit is contained in:
Derrick Hammer 2023-01-31 05:43:29 -05:00
parent a41e162b1d
commit e2ab0b8e91
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
3 changed files with 8 additions and 1 deletions

View File

@ -18,6 +18,7 @@
"@hyperswarm/dht-relay": "^0.3.0", "@hyperswarm/dht-relay": "^0.3.0",
"@lumeweb/kernel-peer-discovery-client": "git+https://git.lumeweb.com/LumeWeb/kernel-peer-discovery-client.git", "@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", "@lumeweb/libkernel-universal": "git+https://git.lumeweb.com/LumeWeb/libkernel-universal.git",
"eventemitter2": "^6.4.9",
"hyperswarm": "^4.3.7" "hyperswarm": "^4.3.7"
} }
} }

View File

@ -7,6 +7,7 @@ specifiers:
'@types/random-number-csprng': ^1.0.0 '@types/random-number-csprng': ^1.0.0
'@types/ws': ^8.5.4 '@types/ws': ^8.5.4
esbuild: ^0.14.54 esbuild: ^0.14.54
eventemitter2: ^6.4.9
hyperswarm: ^4.3.7 hyperswarm: ^4.3.7
prettier: ^2.8.3 prettier: ^2.8.3
rimraf: ^3.0.2 rimraf: ^3.0.2
@ -16,6 +17,7 @@ dependencies:
'@hyperswarm/dht-relay': 0.3.0 '@hyperswarm/dht-relay': 0.3.0
'@lumeweb/kernel-peer-discovery-client': git.lumeweb.com/LumeWeb/kernel-peer-discovery-client/ad426dafb19be8f79c64bb11c1c014b1031c96d0 '@lumeweb/kernel-peer-discovery-client': git.lumeweb.com/LumeWeb/kernel-peer-discovery-client/ad426dafb19be8f79c64bb11c1c014b1031c96d0
'@lumeweb/libkernel-universal': git.lumeweb.com/LumeWeb/libkernel-universal/ae9c6eeb60cd5e350012c3e393ff8b846326e468 '@lumeweb/libkernel-universal': git.lumeweb.com/LumeWeb/libkernel-universal/ae9c6eeb60cd5e350012c3e393ff8b846326e468
eventemitter2: 6.4.9
hyperswarm: 4.3.7 hyperswarm: 4.3.7
devDependencies: devDependencies:
@ -394,6 +396,10 @@ packages:
esbuild-windows-arm64: 0.14.54 esbuild-windows-arm64: 0.14.54
dev: true dev: true
/eventemitter2/6.4.9:
resolution: {integrity: sha512-JEPTiaOt9f04oa6NOkc4aH+nVp5I3wEjpHbIPqfgCdD5v5bUzy7xQqwcVO2aDQgOWhI28da57HksMrzK9HlRxg==}
dev: false
/events/3.3.0: /events/3.3.0:
resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==} resolution: {integrity: sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q==}
engines: {node: '>=0.8.x'} engines: {node: '>=0.8.x'}

View File

@ -12,7 +12,7 @@ import { load } from "@lumeweb/libkernel-universal";
// @ts-ignore // @ts-ignore
import Hyperswarm from "hyperswarm"; import Hyperswarm from "hyperswarm";
import randomNumber from "random-number-csprng"; import randomNumber from "random-number-csprng";
import EventEmitter from "node:events"; import EventEmitter from "eventemitter2";
export default class HyperswarmWeb extends EventEmitter { export default class HyperswarmWeb extends EventEmitter {
private _options: any; private _options: any;