From 39f4a2160a770d58c8e0b62b3c22aa706a8a4b98 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Tue, 23 Feb 2021 23:51:55 +0000 Subject: [PATCH 1/2] Update dependency typescript to v4.2.2 Signed-off-by: Renovate Bot --- package.json | 2 +- yarn.lock | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 6c75ea65e..785d8f22e 100644 --- a/package.json +++ b/package.json @@ -74,7 +74,7 @@ "ts-loader": "8.0.17", "ts-node": "9.1.1", "tsconfig-paths": "3.9.0", - "typescript": "4.1.5" + "typescript": "4.2.2" }, "jest": { "moduleFileExtensions": [ diff --git a/yarn.lock b/yarn.lock index c4698e681..e7184af57 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7000,6 +7000,11 @@ typescript@4.1.5: resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.5.tgz#123a3b214aaff3be32926f0d8f1f6e704eb89a72" integrity sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA== +typescript@4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.2.tgz#1450f020618f872db0ea17317d16d8da8ddb8c4c" + integrity sha512-tbb+NVrLfnsJy3M59lsDgrzWIflR4d4TIUjz+heUnHZwdF7YsrMTKoRERiIvI2lvBG95dfpLxB21WZhys1bgaQ== + uid-safe@~2.1.5: version "2.1.5" resolved "https://registry.yarnpkg.com/uid-safe/-/uid-safe-2.1.5.tgz#2b3d5c7240e8fc2e58f8aa269e5ee49c0857bd3a" From ca064526a792d659c00fa604f7fb85f053dc1f6a Mon Sep 17 00:00:00 2001 From: Philip Molares Date: Wed, 24 Feb 2021 10:30:20 +0100 Subject: [PATCH 2/2] ConsoleLogger: Add typing to localeStringOptions This is necessary as typescript is unable to determine that `year` in this object is of type "numeric" and not string. Signed-off-by: Philip Molares --- src/logger/console-logger.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/logger/console-logger.service.ts b/src/logger/console-logger.service.ts index bf5892296..f280e6859 100644 --- a/src/logger/console-logger.service.ts +++ b/src/logger/console-logger.service.ts @@ -7,6 +7,7 @@ import { Injectable, Optional, Scope } from '@nestjs/common'; import { isObject } from '@nestjs/common/utils/shared.utils'; import * as clc from 'cli-color'; +import DateTimeFormatOptions = Intl.DateTimeFormatOptions; @Injectable({ scope: Scope.TRANSIENT }) export class ConsoleLoggerService { @@ -85,7 +86,7 @@ export class ConsoleLoggerService { ? `${color('Object:')}\n${JSON.stringify(message, null, 2)}\n` : color(message); - const localeStringOptions = { + const localeStringOptions: DateTimeFormatOptions = { year: 'numeric', hour: 'numeric', minute: 'numeric',