forked from waja/action-debian-package
12 lines
233 B
JavaScript
12 lines
233 B
JavaScript
|
'use strict'
|
||
|
const fastRedact = require('..')
|
||
|
const redact = fastRedact({
|
||
|
paths: ['a'],
|
||
|
serialize: false
|
||
|
})
|
||
|
const o = { a: 1, b: 2 }
|
||
|
console.log(redact(o) === o)
|
||
|
console.log(o)
|
||
|
console.log(redact.restore(o) === o)
|
||
|
console.log(o)
|