projects
/
squeep-logger-json-console
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update devDependencies, fix lint issues
[squeep-logger-json-console]
/
lib
/
data-sanitizers.js
diff --git
a/lib/data-sanitizers.js
b/lib/data-sanitizers.js
index bf0495074a0fc9233d9407c0b7b2561e086fe076..bc099fbf6008359c597cd86c0a40f0229b336c2b 100644
(file)
--- 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.
* 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 {
O
bject} data
- * @param {
B
oolean} sanitize
- * @returns {
B
oolean} whether sanitizer is applicable to data
+ * @param {
o
bject} data
+ * @param {
b
oolean} sanitize
+ * @returns {
b
oolean} whether sanitizer is applicable to data
*/
/* istanbul ignore next */
*/
/* 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;
function _sanitizer(data, sanitize = true) {
let unclean = false;
@@
-32,4
+38,4
@@
function _sanitizer(data, sanitize = true) {
return unclean;
}
return unclean;
}
-module.exports = {};
\ No newline at end of file
+module.exports = {};