2.0.1 • Published 2 years ago

@qiwi/masker-trycatch v2.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

2.0.0

2 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago