UNPKG

mongoose-logging-plugin

Version:

[![npm version](https://img.shields.io/npm/v/mongoose-logging-plugin.svg)](https://www.npmjs.com/package/mongoose-logging-plugin) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)

10 lines (9 loc) 313 B
type Primitive = string | number | boolean | Date | null | undefined; type SanitizedValue = Primitive | { [key: string]: SanitizedValue; } | SanitizedValue[]; export declare function sanitizeMongoLogObject(obj: any): { sanitized: SanitizedValue; replacements: Record<string, Primitive>; }; export {};