fast-redact
Advanced tools
Comparing version 3.1.0 to 3.1.1
@@ -120,3 +120,3 @@ 'use strict' | ||
const kIsWc = k === '*' | ||
if (kIsWc || (typeof wcov === 'object' && k in wcov)) { | ||
if (kIsWc || (typeof wcov === 'object' && wcov !== null && k in wcov)) { | ||
if (kIsWc) { | ||
@@ -123,0 +123,0 @@ ov = wcov |
{ | ||
"name": "fast-redact", | ||
"version": "3.1.0", | ||
"version": "3.1.1", | ||
"description": "very fast object redaction", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1240,1 +1240,12 @@ 'use strict' | ||
}) | ||
test('handles multi wildcards with objects containing nulls', ({ end, is }) => { | ||
const redact = fastRedact({ | ||
paths: ['*.*.x'], | ||
serialize: false, | ||
censor: '[REDACTED]' | ||
}) | ||
const o = { a: { b: null } } | ||
is(redact(o), o) | ||
end() | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80310
1885