2.0.1 • Published 5 months ago

@qiwi/masker-trycatch v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@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]
})

// '***'

License

MIT

2.0.1

5 months ago

2.0.0

5 months ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago