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"