From 8beb26e84e032d70e5f77459955294ef87175c79 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 28 Sep 2021 10:56:46 +0200 Subject: [PATCH] chore(deps): update dependency typescript to v4.4.3 (#43316) * chore(deps): update dependency typescript to v4.4.3 * fix: use UserType correctly Co-authored-by: Renovate Bot Co-authored-by: Oliver Eyton-Williams --- client/package-lock.json | 6 +++--- client/package.json | 2 +- .../client-only-routes/show-profile-or-four-oh-four.tsx | 7 ++----- package-lock.json | 6 +++--- package.json | 2 +- tools/challenge-helper-scripts/package-lock.json | 6 +++--- tools/challenge-helper-scripts/package.json | 2 +- 7 files changed, 14 insertions(+), 17 deletions(-) diff --git a/client/package-lock.json b/client/package-lock.json index be8f90bbfb..23b9adfb08 100644 --- a/client/package-lock.json +++ b/client/package-lock.json @@ -20576,9 +20576,9 @@ } }, "typescript": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.5.tgz", - "integrity": "sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==" + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.3.tgz", + "integrity": "sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==" }, "typescript-compare": { "version": "0.0.2", diff --git a/client/package.json b/client/package.json index d00a417626..14f4f327f9 100644 --- a/client/package.json +++ b/client/package.json @@ -125,7 +125,7 @@ "sass.js": "0.11.1", "store": "2.0.12", "stream-browserify": "3.0.0", - "typescript": "4.3.5", + "typescript": "4.4.3", "uuid": "8.3.2", "validator": "13.6.0" }, diff --git a/client/src/client-only-routes/show-profile-or-four-oh-four.tsx b/client/src/client-only-routes/show-profile-or-four-oh-four.tsx index a8cf25b2c5..2cab086fc2 100644 --- a/client/src/client-only-routes/show-profile-or-four-oh-four.tsx +++ b/client/src/client-only-routes/show-profile-or-four-oh-four.tsx @@ -30,7 +30,7 @@ interface IShowProfileOrFourOhFourProps { const createRequestedUserSelector = () => (state: unknown, { maybeUser = '' }) => - userByNameSelector(maybeUser.toLowerCase())(state) as string; + userByNameSelector(maybeUser.toLowerCase())(state) as UserType; const createIsSessionUserSelector = () => (state: unknown, { maybeUser = '' }) => @@ -44,10 +44,7 @@ const makeMapStateToProps = state ) as IShowProfileOrFourOhFourProps['fetchState']; return { - requestedUser: requestedUserSelector( - state, - props - ) as IShowProfileOrFourOhFourProps['requestedUser'], + requestedUser: requestedUserSelector(state, props), isSessionUser: isSessionUserSelector(state, props), showLoading: fetchState.pending, fetchState diff --git a/package-lock.json b/package-lock.json index 770bf6c104..bc61e74555 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22418,9 +22418,9 @@ } }, "typescript": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.5.tgz", - "integrity": "sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.3.tgz", + "integrity": "sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==", "dev": true }, "uc.micro": { diff --git a/package.json b/package.json index bedd76bb4a..45e67bc66c 100644 --- a/package.json +++ b/package.json @@ -141,7 +141,7 @@ "process": "0.11.10", "shx": "0.3.3", "start-server-and-test": "1.14.0", - "typescript": "4.3.5", + "typescript": "4.4.3", "webpack-bundle-analyzer": "4.4.2" } } diff --git a/tools/challenge-helper-scripts/package-lock.json b/tools/challenge-helper-scripts/package-lock.json index 5995f1657e..e51826bcdd 100644 --- a/tools/challenge-helper-scripts/package-lock.json +++ b/tools/challenge-helper-scripts/package-lock.json @@ -677,9 +677,9 @@ "dev": true }, "typescript": { - "version": "4.3.5", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.3.5.tgz", - "integrity": "sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.4.3.tgz", + "integrity": "sha512-4xfscpisVgqqDfPaJo5vkd+Qd/ItkoagnHpufr+i2QCHBsNYp+G7UAoyFl8aPtx879u38wPV65rZ8qbGZijalA==", "dev": true }, "util-deprecate": { diff --git a/tools/challenge-helper-scripts/package.json b/tools/challenge-helper-scripts/package.json index b9fd3a854c..06bc483f69 100644 --- a/tools/challenge-helper-scripts/package.json +++ b/tools/challenge-helper-scripts/package.json @@ -30,6 +30,6 @@ "inquirer": "8.1.2", "prettier": "2.4.1", "ts-node": "10.2.1", - "typescript": "4.3.5" + "typescript": "4.4.3" } }