X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fdata-sanitizers.js;h=e4d0f3c4bb8238a2d5f5bcd6595440c889139559;hb=HEAD;hp=bf0495074a0fc9233d9407c0b7b2561e086fe076;hpb=5f6029bc6c75708175ade99f6c44beb1d0e2817a;p=squeep-logger-json-console diff --git a/lib/data-sanitizers.js b/lib/data-sanitizers.js index bf04950..bc099fb 100644 --- a/lib/data-sanitizers.js +++ b/lib/data-sanitizers.js @@ -12,11 +12,17 @@ * called again with `sanitize` true, but provided with a clone of the * original data to update, to avoid leaking any applied changes back to the * application. - * @param {Object} data - * @param {Boolean} sanitize - * @returns {Boolean} whether sanitizer is applicable to data + * @param {object} data + * @param {boolean} sanitize + * @returns {boolean} whether sanitizer is applicable to data */ /* istanbul ignore next */ +/** + * + * @param {object} data data object to mogrify + * @param {boolean} sanitize mogrify if truue + * @returns {boolean} whether data would be mogrified + */ function _sanitizer(data, sanitize = true) { let unclean = false; @@ -32,4 +38,4 @@ function _sanitizer(data, sanitize = true) { return unclean; } -module.exports = {}; \ No newline at end of file +module.exports = {};