X-Git-Url: https://git.squeep.com/?a=blobdiff_plain;f=lib%2Fdata-sanitizers.js;fp=lib%2Fdata-sanitizers.js;h=bc099fbf6008359c597cd86c0a40f0229b336c2b;hb=3a9765afcca9e255749f925767290fe1e823f0c3;hp=bf0495074a0fc9233d9407c0b7b2561e086fe076;hpb=5a9119c279eca438d174c05a0c926d32468112af;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 = {};