Skip to content

Commit

Permalink
v3.0.35
Browse files Browse the repository at this point in the history
  • Loading branch information
mytonwalletorg committed Nov 13, 2024
1 parent 202c22b commit 7aa5fc9
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions changelogs/3.0.35.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Bug fixes and performance improvements
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mytonwallet",
"version": "3.0.34",
"version": "3.0.35",
"description": "The most feature-rich web wallet and browser extension for TON – with support of multi-accounts, tokens (jettons), NFT, TON DNS, TON Sites, TON Proxy, and TON Magic.",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion public/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.34
3.0.35
2 changes: 1 addition & 1 deletion src/api/tonConnect/sse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ async function sendRawMessage(body: string, clientId: string, toId: string, topi
function closeEventSource() {
if (!sseEventSource) return;

safeExec(() => { sseEventSource!.close(); })();
safeExec(() => { sseEventSource!.close(); });
sseEventSource = undefined;
}

Expand Down
6 changes: 5 additions & 1 deletion src/util/safeExec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import { handleError } from './handleError';

const SAFE_EXEC_ENABLED = !DEBUG_MORE;

export default function safeExec(cb: Function, rescue?: (err: Error) => void, always?: NoneToVoidFunction) {
export default function safeExec<T extends AnyFunction>(
cb: T,
rescue?: (err: Error) => void,
always?: NoneToVoidFunction,
): ReturnType<T> | undefined {
if (!SAFE_EXEC_ENABLED) {
return cb();
}
Expand Down

0 comments on commit 7aa5fc9

Please sign in to comment.