Socket
Socket
Sign inDemoInstall

fast-redact

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fast-redact - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

2

lib/modifiers.js

@@ -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()
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc