mirror of
https://github.com/logos-messaging/examples.waku.org.git
synced 2026-01-07 15:23:06 +00:00
chore(relay-angular-chat): bump js-waku to 0.28.1
This commit is contained in:
parent
ee918a84c2
commit
10297bf818
@ -21,7 +21,7 @@
|
|||||||
"@angular/platform-browser": "~14.2.0",
|
"@angular/platform-browser": "~14.2.0",
|
||||||
"@angular/platform-browser-dynamic": "~14.2.0",
|
"@angular/platform-browser-dynamic": "~14.2.0",
|
||||||
"@angular/router": "~14.2.0",
|
"@angular/router": "~14.2.0",
|
||||||
"js-waku": "0.28.0",
|
"js-waku": "0.28.1",
|
||||||
"protobufjs": "^7.1.0",
|
"protobufjs": "^7.1.0",
|
||||||
"rxjs": "~7.5.0",
|
"rxjs": "~7.5.0",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0",
|
||||||
|
|||||||
8
relay-angular-chat/pnpm-lock.yaml
generated
8
relay-angular-chat/pnpm-lock.yaml
generated
@ -16,7 +16,7 @@ specifiers:
|
|||||||
'@types/node': ^17.0.21
|
'@types/node': ^17.0.21
|
||||||
is-ci-cli: ^2.2.0
|
is-ci-cli: ^2.2.0
|
||||||
jasmine-core: ~4.3.0
|
jasmine-core: ~4.3.0
|
||||||
js-waku: 0.28.0
|
js-waku: 0.28.1
|
||||||
karma: ~6.4.0
|
karma: ~6.4.0
|
||||||
karma-chrome-launcher: ~3.1.0
|
karma-chrome-launcher: ~3.1.0
|
||||||
karma-coverage: ~2.2.0
|
karma-coverage: ~2.2.0
|
||||||
@ -37,7 +37,7 @@ dependencies:
|
|||||||
'@angular/platform-browser': 14.2.0_afytwol7hs4qio34buyx2grhfa
|
'@angular/platform-browser': 14.2.0_afytwol7hs4qio34buyx2grhfa
|
||||||
'@angular/platform-browser-dynamic': 14.2.0_owch6soaoexeadly32xw5vendq
|
'@angular/platform-browser-dynamic': 14.2.0_owch6soaoexeadly32xw5vendq
|
||||||
'@angular/router': 14.2.0_6lk4yxyxfaqzosenawf2bqx6vy
|
'@angular/router': 14.2.0_6lk4yxyxfaqzosenawf2bqx6vy
|
||||||
js-waku: 0.28.0
|
js-waku: 0.28.1
|
||||||
protobufjs: 7.1.0
|
protobufjs: 7.1.0
|
||||||
rxjs: 7.5.6
|
rxjs: 7.5.6
|
||||||
tslib: 2.4.0
|
tslib: 2.4.0
|
||||||
@ -5440,8 +5440,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
resolution: {integrity: sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==}
|
||||||
dev: true
|
dev: true
|
||||||
|
|
||||||
/js-waku/0.28.0:
|
/js-waku/0.28.1:
|
||||||
resolution: {integrity: sha512-MEIFugvio2IaQMQT+g+bn24BvlJ5S4PdSKD0AGVZlR7q1BhECwlpRoytyz0A/hC1+EJWhrZB8cpIAmxwtYWTBw==}
|
resolution: {integrity: sha512-0h9TpV6jywyjdes8hr9tFV/5iJh3LQN3sQFYHcXyi4cK+4htNiMrCRjBSqRBtfhs/j+4tOkrht8gRJRLHdA5RA==}
|
||||||
engines: {node: '>=16'}
|
engines: {node: '>=16'}
|
||||||
dependencies:
|
dependencies:
|
||||||
'@chainsafe/libp2p-gossipsub': 4.1.1
|
'@chainsafe/libp2p-gossipsub': 4.1.1
|
||||||
|
|||||||
@ -24,6 +24,7 @@ export class MessagesComponent implements OnInit {
|
|||||||
messageCount: number = 0;
|
messageCount: number = 0;
|
||||||
waku!: WakuPrivacy;
|
waku!: WakuPrivacy;
|
||||||
wakuStatus!: string;
|
wakuStatus!: string;
|
||||||
|
deleteObserver?: () => void;
|
||||||
|
|
||||||
constructor(private wakuService: WakuService) {}
|
constructor(private wakuService: WakuService) {}
|
||||||
|
|
||||||
@ -34,18 +35,17 @@ export class MessagesComponent implements OnInit {
|
|||||||
|
|
||||||
this.wakuService.waku.subscribe((waku) => {
|
this.wakuService.waku.subscribe((waku) => {
|
||||||
this.waku = waku;
|
this.waku = waku;
|
||||||
this.waku.relay.addObserver(this.processIncomingMessages, [
|
this.deleteObserver = this.waku.relay.addObserver(
|
||||||
this.contentTopic,
|
this.processIncomingMessages,
|
||||||
]);
|
[this.contentTopic]
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
window.onbeforeunload = () => this.ngOnDestroy();
|
window.onbeforeunload = () => this.ngOnDestroy();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
ngOnDestroy(): void {
|
||||||
this.waku.relay.deleteObserver(this.processIncomingMessages, [
|
if (this.deleteObserver) this.deleteObserver();
|
||||||
this.contentTopic,
|
|
||||||
]);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
sendMessage(): void {
|
sendMessage(): void {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user