chore:(deps): bump typescript from 4.3.5 to 4.4.2 in /explorer (#19463)
* chore:(deps): bump typescript from 4.3.5 to 4.4.2 in /explorer Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.4.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.5...v4.4.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * fix error type Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Justin Starry <justin@solana.com>
This commit is contained in:
parent
2efc519368
commit
bbc4fdb767
|
@ -50,7 +50,7 @@
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"react-select": "^4.3.1",
|
"react-select": "^4.3.1",
|
||||||
"superstruct": "^0.15.2",
|
"superstruct": "^0.15.2",
|
||||||
"typescript": "^4.3.5"
|
"typescript": "^4.4.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/code-frame": {
|
"node_modules/@babel/code-frame": {
|
||||||
|
@ -22737,9 +22737,9 @@
|
||||||
"integrity": "sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g=="
|
"integrity": "sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g=="
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "4.3.5",
|
"version": "4.4.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.5.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.2.tgz",
|
||||||
"integrity": "sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==",
|
"integrity": "sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==",
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
"tsserver": "bin/tsserver"
|
"tsserver": "bin/tsserver"
|
||||||
|
@ -43676,9 +43676,9 @@
|
||||||
"integrity": "sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g=="
|
"integrity": "sha512-7uc1O8h1M1g0rArakJdf0uLRSSgFcYexrVoKo+bzJd32gd4gDy2L/Z+8/FjPnU9ydY3pEnVPtr9FyscYY60K1g=="
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "4.3.5",
|
"version": "4.4.2",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.5.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.2.tgz",
|
||||||
"integrity": "sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA=="
|
"integrity": "sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ=="
|
||||||
},
|
},
|
||||||
"unicode-canonical-property-names-ecmascript": {
|
"unicode-canonical-property-names-ecmascript": {
|
||||||
"version": "1.0.4",
|
"version": "1.0.4",
|
||||||
|
|
|
@ -46,7 +46,7 @@
|
||||||
"react-scripts": "^4.0.3",
|
"react-scripts": "^4.0.3",
|
||||||
"react-select": "^4.3.1",
|
"react-select": "^4.3.1",
|
||||||
"superstruct": "^0.15.2",
|
"superstruct": "^0.15.2",
|
||||||
"typescript": "^4.3.5"
|
"typescript": "^4.4.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
|
|
|
@ -113,7 +113,7 @@ export function RawInput({
|
||||||
setError(undefined);
|
setError(undefined);
|
||||||
return;
|
return;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
setError(err.message);
|
if (err instanceof Error) setError(err.message);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
setError(undefined);
|
setError(undefined);
|
||||||
|
|
|
@ -273,7 +273,9 @@ function useSimulator(message: Message) {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.error(err);
|
console.error(err);
|
||||||
setLogs(null);
|
setLogs(null);
|
||||||
setError(err.message);
|
if (err instanceof Error) {
|
||||||
|
setError(err.message);
|
||||||
|
}
|
||||||
} finally {
|
} finally {
|
||||||
setSimulating(false);
|
setSimulating(false);
|
||||||
}
|
}
|
||||||
|
|
|
@ -126,14 +126,16 @@ export function SolanaClusterStatsProvider({ children }: Props) {
|
||||||
if (cluster !== Cluster.Custom) {
|
if (cluster !== Cluster.Custom) {
|
||||||
reportError(error, { url });
|
reportError(error, { url });
|
||||||
}
|
}
|
||||||
dispatchPerformanceInfo({
|
if (error instanceof Error) {
|
||||||
type: PerformanceInfoActionType.SetError,
|
dispatchPerformanceInfo({
|
||||||
data: error.toString(),
|
type: PerformanceInfoActionType.SetError,
|
||||||
});
|
data: error.toString(),
|
||||||
dispatchDashboardInfo({
|
});
|
||||||
type: DashboardInfoActionType.SetError,
|
dispatchDashboardInfo({
|
||||||
data: error.toString(),
|
type: DashboardInfoActionType.SetError,
|
||||||
});
|
data: error.toString(),
|
||||||
|
});
|
||||||
|
}
|
||||||
setActive(false);
|
setActive(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -149,10 +151,12 @@ export function SolanaClusterStatsProvider({ children }: Props) {
|
||||||
if (cluster !== Cluster.Custom) {
|
if (cluster !== Cluster.Custom) {
|
||||||
reportError(error, { url });
|
reportError(error, { url });
|
||||||
}
|
}
|
||||||
dispatchPerformanceInfo({
|
if (error instanceof Error) {
|
||||||
type: PerformanceInfoActionType.SetError,
|
dispatchPerformanceInfo({
|
||||||
data: error.toString(),
|
type: PerformanceInfoActionType.SetError,
|
||||||
});
|
data: error.toString(),
|
||||||
|
});
|
||||||
|
}
|
||||||
setActive(false);
|
setActive(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -169,10 +173,12 @@ export function SolanaClusterStatsProvider({ children }: Props) {
|
||||||
if (cluster !== Cluster.Custom) {
|
if (cluster !== Cluster.Custom) {
|
||||||
reportError(error, { url });
|
reportError(error, { url });
|
||||||
}
|
}
|
||||||
dispatchDashboardInfo({
|
if (error instanceof Error) {
|
||||||
type: DashboardInfoActionType.SetError,
|
dispatchDashboardInfo({
|
||||||
data: error.toString(),
|
type: DashboardInfoActionType.SetError,
|
||||||
});
|
data: error.toString(),
|
||||||
|
});
|
||||||
|
}
|
||||||
setActive(false);
|
setActive(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,13 +6,15 @@ type Tags =
|
||||||
}
|
}
|
||||||
| undefined;
|
| undefined;
|
||||||
|
|
||||||
export function reportError(err: Error, tags: Tags) {
|
export function reportError(err: unknown, tags: Tags) {
|
||||||
console.error(err, err.message);
|
if (err instanceof Error) {
|
||||||
try {
|
console.error(err, err.message);
|
||||||
Sentry.captureException(err, {
|
try {
|
||||||
tags,
|
Sentry.captureException(err, {
|
||||||
});
|
tags,
|
||||||
} catch (err) {
|
});
|
||||||
// Sentry can fail if error rate limit is reached
|
} catch (err) {
|
||||||
|
// Sentry can fail if error rate limit is reached
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue