Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
Merge e32b79f into f497683
Browse files Browse the repository at this point in the history
  • Loading branch information
smolijar committed Nov 22, 2019
2 parents f497683 + e32b79f commit dfc1ff1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/declarations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' {
Expand Down
5 changes: 4 additions & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ import isEmpty = require('lodash.isempty');
import omit = require('omit-deep');

const removeEmpty = (obj: Dictionary<any>): 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;

Expand Down

0 comments on commit dfc1ff1

Please sign in to comment.