Bump typescript from 4.2.4 to 4.4.2 (#1081)

* Bump typescript from 4.2.4 to 4.4.2

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.2.4 to 4.4.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.2.4...v4.4.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jon Koops <jonkoops@gmail.com>
This commit is contained in:
dependabot[bot] 2021-09-06 09:48:53 +02:00 committed by GitHub
parent d1bc304d52
commit aba9e3d501
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 25 additions and 16 deletions

7
cypress/tsconfig.json Normal file
View file

@ -0,0 +1,7 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"module": "ES2015",
"target": "ES2015",
}
}

12
package-lock.json generated
View file

@ -63,7 +63,7 @@
"snowpack": "^3.8.2", "snowpack": "^3.8.2",
"ts-jest": "^26.5.6", "ts-jest": "^26.5.6",
"ts-node": "^10.2.1", "ts-node": "^10.2.1",
"typescript": "4.2.4" "typescript": "4.4.2"
}, },
"engines": { "engines": {
"node": "16" "node": "16"
@ -16891,8 +16891,9 @@
} }
}, },
"node_modules/typescript": { "node_modules/typescript": {
"version": "4.2.4", "version": "4.4.2",
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.2.tgz",
"integrity": "sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==",
"dev": true, "dev": true,
"bin": { "bin": {
"tsc": "bin/tsc", "tsc": "bin/tsc",
@ -30289,8 +30290,9 @@
} }
}, },
"typescript": { "typescript": {
"version": "4.2.4", "version": "4.4.2",
"integrity": "sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.2.tgz",
"integrity": "sha512-gzP+t5W4hdy4c+68bfcv0t400HVJMMd2+H9B7gae1nQlBzCqvrXX+6GL/b3GAgyTH966pzrZ70/fRjwAtZksSQ==",
"dev": true "dev": true
}, },
"unbox-primitive": { "unbox-primitive": {

View file

@ -79,7 +79,7 @@
"snowpack": "^3.8.2", "snowpack": "^3.8.2",
"ts-jest": "^26.5.6", "ts-jest": "^26.5.6",
"ts-node": "^10.2.1", "ts-node": "^10.2.1",
"typescript": "4.2.4" "typescript": "4.4.2"
}, },
"lint-staged": { "lint-staged": {
"*.{js,jsx,mjs,ts,tsx}": "eslint --cache --fix" "*.{js,jsx,mjs,ts,tsx}": "eslint --cache --fix"

View file

@ -93,7 +93,7 @@ export const FlowDetails = () => {
await Promise.all(requests); await Promise.all(requests);
refresh(); refresh();
addAlert(t("updateFlowSuccess"), AlertVariant.success); addAlert(t("updateFlowSuccess"), AlertVariant.success);
} catch (error) { } catch (error: any) {
addAlert( addAlert(
t("updateFlowError", { t("updateFlowError", {
error: error.response?.data?.errorMessage || error, error: error.response?.data?.errorMessage || error,
@ -113,7 +113,7 @@ export const FlowDetails = () => {
); );
refresh(); refresh();
addAlert(t("updateFlowSuccess"), AlertVariant.success); addAlert(t("updateFlowSuccess"), AlertVariant.success);
} catch (error) { } catch (error: any) {
addAlert( addAlert(
t("updateFlowError", { t("updateFlowError", {
error: error.response?.data?.errorMessage || error, error: error.response?.data?.errorMessage || error,

View file

@ -34,7 +34,7 @@ export const CreateFlow = () => {
try { try {
await adminClient.authenticationManagement.createFlow(flow); await adminClient.authenticationManagement.createFlow(flow);
addAlert(t("flowCreatedSuccess"), AlertVariant.success); addAlert(t("flowCreatedSuccess"), AlertVariant.success);
} catch (error) { } catch (error: any) {
addAlert( addAlert(
t("flowCreateError", { t("flowCreateError", {
error: error.response?.data?.errorMessage || error, error: error.response?.data?.errorMessage || error,

View file

@ -90,7 +90,7 @@ export const ClientScopesSection = () => {
for (const scope of selectedScopes) { for (const scope of selectedScopes) {
try { try {
await removeScope(adminClient, scope); await removeScope(adminClient, scope);
} catch (error) { } catch (error: any) {
console.warn( console.warn(
"could not remove scope", "could not remove scope",
error.response?.data?.errorMessage || error error.response?.data?.errorMessage || error

View file

@ -92,7 +92,7 @@ export const RoleMappingForm = () => {
try { try {
await adminClient.clientScopes.addProtocolMapper({ id }, mapping); await adminClient.clientScopes.addProtocolMapper({ id }, mapping);
addAlert(t("mapperCreateSuccess")); addAlert(t("mapperCreateSuccess"));
} catch (error) { } catch (error: any) {
addAlert(t("mapperCreateError", error)); addAlert(t("mapperCreateError", error));
} }
}; };

View file

@ -211,7 +211,7 @@ export const GroupTable = () => {
} else { } else {
await adminClient.groups.create(move); await adminClient.groups.create(move);
} }
} catch (error) { } catch (error: any) {
if (error.response) { if (error.response) {
throw error; throw error;
} }

View file

@ -45,7 +45,7 @@ export const AddSamlConnect = () => {
history.push( history.push(
`/${realm}/identity-providers/${id}/${provider.alias}/settings` `/${realm}/identity-providers/${id}/${provider.alias}/settings`
); );
} catch (error) { } catch (error: any) {
addAlert( addAlert(
t("createError", { t("createError", {
error: error.response?.data?.errorMessage || error, error: error.response?.data?.errorMessage || error,

View file

@ -75,7 +75,7 @@ export const OpenIdConnectSettings = () => {
); );
const result = await response.json(); const result = await response.json();
setupForm(result); setupForm(result);
} catch (error) { } catch (error: any) {
setDiscoveryResult({ error }); setDiscoveryResult({ error });
} }
} }

View file

@ -94,7 +94,7 @@ export const SamlConnectSettings = () => {
); );
const result = await response.json(); const result = await response.json();
setupForm(result); setupForm(result);
} catch (error) { } catch (error: any) {
setDiscoveryResult({ error }); setDiscoveryResult({ error });
} }
} }

View file

@ -148,7 +148,7 @@ export const UserFederationKerberosSettings = () => {
await adminClient.components.del({ id }); await adminClient.components.del({ id });
addAlert(t("userFedDeletedSuccess"), AlertVariant.success); addAlert(t("userFedDeletedSuccess"), AlertVariant.success);
history.replace(`/${realm}/user-federation`); history.replace(`/${realm}/user-federation`);
} catch (error) { } catch (error: any) {
addAlert("user-federation:userFedDeleteError", error); addAlert("user-federation:userFedDeleteError", error);
} }
}, },