From 9bb15ce7cc4ad7bb3eb79ed1052b3d366d77a07b Mon Sep 17 00:00:00 2001 From: KaffinPX Date: Sun, 15 Sep 2024 01:02:11 +0300 Subject: [PATCH] Bump typescript version to possibly provide better type safety --- bun.lockb | Bin 178548 -> 178920 bytes package.json | 2 +- src/wallet/messaging/protocol.ts | 2 +- src/wallet/messaging/wallet/notifier.ts | 2 +- 4 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bun.lockb b/bun.lockb index 0f3a06476e28fa429e1203df07647fe9119a2c5a..cf924e70a754453ec0d0c9d6e489110ae9f973db 100755 GIT binary patch delta 3661 zcmZ{ndsNiN6~|{rR`?-k(5fJ!JXGGxo8`5;ph*rU(n>86lVAb{6r)lFPX$F50f8bu zIw7MmMyG1N;ND%&{`;OAjp3QkjQFa`{5bv7;OPya({4>0`oKLUAY;bgyT3664qx)hocwOV zs2$%ld!oqf=~xlyWw;94Q?_{}Xh~I!X^h#9%L`s({c2V+<_pWPiZO5W-@_h>zDRQK zv2iWcjQPN-()&rPopvB)1OE^<f&v%N8o;=jpru3?~tv8P}+)j5w+CC_+=*0?n=HWBpK zh0Dr|lNc*rQc+q_T3mjo-npi@wTumi-vOJlzE-w)c}3}>@@ue(U)1|~<>k@8Sx{I} z+vuG41U;QgQCZodqQdgx>o_`{;~Df5&>u!WiZNl!?OZy1qL;_^$+oD-hT@{mjpOcR z$ogjzJCDq+pKQoLs6l2$n6&FF7)ylZF0+=JH2+G*(qIjhS-~bP4^}cPw?V4~7S6;r zOx6aPw6n0{VGSAd4Zunnw0Mw7vtaWmi*w!zSQc1<<{1vddO`MwGDui6$<6;EyKGi&mJa;BEmLc){A*cRYZXbWWp}MbtHegr z3c2LTCT^FhYpnd=vT_XqYGn5s3on%p7-2Sk{|ShaZ6LN*q{ zWY)_jZ4)fI99(8i!G(kM^q`NIn#72D`Dm?0q}I!{MvL}3c0CF{K^K)P+0|$@grJg2 zq&YZUYsN_5s>vp;7ZzP|H^~c4+I?8gO+A6lv7)-@7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|TbssL8&3lTCMEh@GG@Jd3 zjY2zDr8ppSDaAp!=oh13c@tbT@*x#I2JN|!;gA-^%xKSt&~sRxq!g{ng`-|ug%mW( z5tSAvoVFBfH1u&5hf`L|Q|yFf7uYbvNw@-J$OTpq5(+O>4+6BwkW5G@f4;&7@%$}di{Yc< zsYH7-Fq!dCgAH6AV2(dtj144alkV@&g#)g&A z3q~&tS^IA$;^p-FMqgRem9YqoBcQGdT(cEepqZRXNlI>Bx?-564E`1 z-$F?hg!2@9>|4Wm2=Cn}yTkb@HsB1AtA5GH$YYavyxD)_wzYNL`pY}sWt`DFL(c-) zKbeP^{a5iL4p+<%jgQ>_30Nm%BX|fqBj-i%6=rp7E${rptUDFAH%{biNxU`Iio2Ox zUZ%KKc{_qn(NE)cOLz8*(j3V%_|-DGDv~efH_PPbk^Gd|f0f@k{CL}*=21qZiM7UC zaldJh`=YpwHOaq6A)8VSQlG*z%#KRml{-2pXkpgKlvebLvBp_#_%g}DDcolE-^H{3 zn6P+$=7UfK#9?;$xem&XDahxM(N<({m&U0G_h0>YWqq1_cx}cv2)A2fDBL4ovG9?y za4NSa`2PctzGOvT<^F(A29nw+>VJEDH|Kc!WVkdL5(YpwK&#hDWAO^xOOEVv}v2fk|a*2VCy`Eq9q W5A-f9<)KsMjV*kr_oEgbZu&Pk+*qgp diff --git a/package.json b/package.json index bcb7e7c..7395784 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "postcss": "^8.4.32", "prettier": "3.1.1", "tailwindcss": "^3.3.6", - "typescript": "^5.3.3", + "typescript": "^5.6.2", "vite": "^5.1.1" }, "dependencies": { diff --git a/src/wallet/messaging/protocol.ts b/src/wallet/messaging/protocol.ts index d060461..66a52f2 100644 --- a/src/wallet/messaging/protocol.ts +++ b/src/wallet/messaging/protocol.ts @@ -33,7 +33,7 @@ export interface Request void tbh 'wallet:status': Status 'wallet:create': string 'wallet:import': boolean diff --git a/src/wallet/messaging/wallet/notifier.ts b/src/wallet/messaging/wallet/notifier.ts index 39fb76a..4f6b7b2 100644 --- a/src/wallet/messaging/wallet/notifier.ts +++ b/src/wallet/messaging/wallet/notifier.ts @@ -17,7 +17,7 @@ export default class Notifications { node.on('connection', (status) => this.handleEvent('node:connection', status)) node.on('network', (networkId) => this.handleEvent('node:network', networkId)) account.on('balance', (balance) => this.handleEvent('account:balance', balance)) - account.addresses.on('addresses', (addresses) => this.handleEvent('account:addresses', addresses)) + account['addresses'].on('addresses', (addresses) => this.handleEvent('account:addresses', addresses)) provider.on('connection', (url) => this.handleEvent('provider:connection', url)) }