From 4ae750370087d6275c20f9de1cc3ea75beb6a6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaroslav=20=C5=A0mol=C3=ADk?= Date: Thu, 21 Nov 2019 14:29:41 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20Fix=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/declarations.ts | 4 +--- src/utils.ts | 5 ++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/declarations.ts b/src/declarations.ts index b972e88..1886070 100644 --- a/src/declarations.ts +++ b/src/declarations.ts @@ -8,9 +8,7 @@ declare module 'pick-deep' { export = pickDeep; } -declare module 'pino-multi-stream' { - -} +declare module 'pino-multi-stream' {} // there is a @typed/pino-multi-stream package, but it has wrong type in its Streams definition. So until its fixed, we use this /* declare module 'pino-multi-stream' { diff --git a/src/utils.ts b/src/utils.ts index 9676ca5..46d157d 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -4,7 +4,10 @@ import isEmpty = require('lodash.isempty'); import omit = require('omit-deep'); const removeEmpty = (obj: Dictionary): object => - omit(obj, Object.keys(obj).filter(key => obj[key] === undefined || isEmpty(obj[key]))); + omit( + obj, + Object.keys(obj).filter(key => obj[key] === undefined || isEmpty(obj[key])) + ); const matchPath = (pattern: RegExp) => (req: Request): boolean => req.originalUrl.match(pattern) !== null;