open-index/open-npm huggingface dataset:
npm package: @leapwallet/sentry-config
Description: Base configuration for sentry for each platform
Latest version: 3.4.0

# sentry-config

## Usage

```bash
yarn add @leapwallet/sentry-config
```

### Browser Based Environment

```ts
import * as Sentry from '@sentry/browser';
import { createSentryConfig } from '@leapwallet/sentry-config/dist/browser';

Sentry.init(
  createSentryConfig({
    release: '1.0.0',
    environment: 'production',
    dsn: 'https://sentry.io/...',
  })
);
```

### Extension Based Environment

```ts
import * as Sentry from '@sentry/browser';
import { createSentryConfig } from '@leapwallet/sentry-config/dist/extension';

Sentry.init(
  createSentryConfig({
    release: '1.0.0',
    environment: 'production',
    dsn: 'https://sentry.io/...',
  })
);
```

### Mobile Based Environment

```ts
import * as Sentry from '@sentry/react-native';
import { createSentryConfigMobile } from '@leapwallet/sentry-config/dist/mobile';

Sentry.init(
  createSentryConfigMobile({
    // release: '1.0.0', (by default taken as version and build no.)
    environment: 'production',
    dsn: 'https://sentry.io/...',
  })
);

export default Sentry.wrap(App);
```

## Development

Clone this repository and run `yarn` to install dependencies.

To actively develop this package, run

```bash
yarn build:watch
```

It uses [microbundle](https://github.com/developit/microbundle) to build the package and watch for changes.