From 4a7ff6af8b21e81408b9c62098cb914f8eee46d7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 17 Jan 2023 20:42:24 +0200 Subject: [PATCH] chore(deps-dev): Bump typescript from 4.3.5 to 4.9.4 (#414) * chore(deps-dev): Bump typescript from 4.3.5 to 4.9.4 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.9.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](https://github.com/Microsoft/TypeScript/compare/v4.3.5...v4.9.4) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] * chore: upgrade workflow node-js version * chore: update typescript version * chore: fix build issues Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Ivan Vilanculo --- .github/workflows/node.js.yml | 2 +- package.json | 2 +- src/routes.ts | 2 +- yarn.lock | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml index 1988ff97..eea5e5c4 100644 --- a/.github/workflows/node.js.yml +++ b/.github/workflows/node.js.yml @@ -14,7 +14,7 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 14.x + node-version: 18.x - name: restore cache uses: actions/cache@v2 with: diff --git a/package.json b/package.json index 04a3848d..3e0c6991 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "supertest": "^6.0.1", "ts-jest": "^26.4.1", "ts-node": "^10.1.0", - "typescript": "^4.0.3" + "typescript": "^4.9.4" }, "dependencies": { "body-parser": "^1.19.0", diff --git a/src/routes.ts b/src/routes.ts index 1d6cade1..6309b1bc 100644 --- a/src/routes.ts +++ b/src/routes.ts @@ -35,7 +35,7 @@ export default function createRoutes(iocContainer: Container): Router { res.setHeader('Content-Type', 'application/pdf') res.send(pdf).end() } catch (e) { - logger.error(e.message, e) + logger.error((e as Error).message) res .status(500) .json({ diff --git a/yarn.lock b/yarn.lock index 53f83717..d52ed21c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5907,10 +5907,10 @@ typedarray-to-buffer@^3.1.5: dependencies: is-typedarray "^1.0.0" -typescript@^4.0.3: - version "4.3.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.5.tgz#4d1c37cc16e893973c45a06886b7113234f119f4" - integrity sha512-DqQgihaQ9cUrskJo9kIyW/+g0Vxsk8cDtZ52a3NGh0YNTfpUSArXSohyUGnvbPazEPLu398C0UxmKSOrPumUzA== +typescript@^4.9.4: + version "4.9.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.4.tgz#a2a3d2756c079abda241d75f149df9d561091e78" + integrity sha512-Uz+dTXYzxXXbsFpM86Wh3dKCxrQqUcVMxwU54orwlJjOpO3ao8L7j5lH+dWfTwgCwIuM9GQ2kvVotzYJMXTBZg== uglify-js@^3.1.4: version "3.13.4"