Matteo Collina
4250665041
Use @pinojs/redact ( #2321 )
...
Signed-off-by: Matteo Collina <hello@matteocollina.com>
2025-10-14 07:33:27 -07:00
Matteo Collina
6cbfbe84aa
Replace fast-redact with slow-redact ( #2298 )
...
* replace fast-redact with slow-redact
* update slow-redact to 0.3.0 - fixes most compatibility issues
* fixed last remaining tests
Signed-off-by: Matteo Collina <hello@matteocollina.com>
---------
Signed-off-by: Matteo Collina <hello@matteocollina.com>
2025-09-28 03:36:42 -07:00
salesh
2fd82b761f
Replacing var with let/const, somewhere left var because scope, somewhere left var because for + resolved all standard issues
2021-01-13 23:52:56 +01:00
Alex Malin
f498f683e6
Making sure path is passed to censor when there is only a top level key.
2020-10-05 00:27:21 +02:00
Alex Malin
cc179cb84a
integrate fast-redact v3
2020-10-03 18:22:18 +02:00
Ethan Resnick
588fb11359
fix(redaction): fix corner cases with paths ( #732 )
...
In particular, this supports single-item paths where the first item is
bracketed (e.g. `{ redact: ["['some-key']"] }`) and paths where one of
the segments is the empty string [in brackets] (e.g., `{ redact:
["a[''].x"] }`).
Conceptually, the change is quite simple: it uses the namespace rather,
than the string, even for single-segment paths, since the namespace has
the brackets + quotes removed. It also changes the namespace `.replace`
regex to allow 0 character (i.e., `.*` instead of `.+`) between the
quotes.
2019-11-08 16:29:00 +01:00
David Mark Clements
016b5e54c2
bump fast redact
2019-09-27 23:58:14 +02:00
Dmitry Shirokov
8551286c3f
Fix wildcard redacting with a custom censor function ( #617 )
2019-03-27 11:42:00 +01:00
n4zukker
f4cb85022b
Fixes and tests for top level key corner cases
2019-01-21 14:19:33 -05:00
n4zukker
b2fa1e3328
Leading wildcard ( #587 )
...
* Support redact paths which start with "*."
* Support redact paths which start with "*." add test
* Get back to 100% coverage
2019-01-18 16:46:52 -05:00
Nathan Woltman
d65c0d1e9e
Fix failing test - Allow censor function ( #551 )
...
* Fix failing test - Allow censor function
`fast-redact` allows the `censor` option to be a function starting in version `1.4.0`.
* Remove censor validation error message
2018-11-22 18:14:02 +01:00
Matteo Collina
40f3640c40
Do not error "primitives cannot be redacted" ( #514 )
2018-09-06 09:43:14 +02:00
Matteo Collina
d3e3aff74a
Updated standard to v12. ( #506 )
2018-08-29 16:24:38 +02:00
davidmarkclements
5cacdc239b
redaction: support leading brackets
2018-08-12 21:03:49 +02:00
davidmarkclements
17c7df7abc
redaction: support bracket notation
2018-08-12 20:54:11 +02:00
davidmarkclements
f8877f1400
consistent exports, redact symbol tidy
2018-06-11 21:01:49 +02:00
davidmarkclements
e6248537ab
more functional style for setup
2018-06-08 13:19:33 +02:00