@qiwi/masker-trycatch
v2.0.1
Published
The plugin to capture masker exceptions
Downloads
896
Readme
@qiwi/masker-trycatch
The plugin to capture masker exceptions.
Install
yarn add @qiwi/masker-trycatch
Usage
import {masker} from '@qiwi/masker'
import {createPipe} from '@qiwi/masker-common'
import {pipe} from '@qiwi/masker-trycatch'
const errorPipe = createPipe('err', () => {
throw new Error('Error')
})
masker.sync('foobar', {
pipeline: [['trycatch', {pipeline: ['plain']}], errorPipe]
})
// '***'