This package has been deprecated

Author message:

Please install isomorphic-sentry instead

@syginc/isomorphic-sentry
TypeScript icon, indicating that this package has built-in type declarations

5.3.0 • Public • Published

@syginc/isomorphic-sentry

Isomorphic sentry client for node and browser.

Installation

NPM

$ npm install --save @syginc/isomorphic-sentry

Yarn

$ yarn add @syginc/isomorphic-sentry

Usage

import {captureMessage, init, SDK_NAME} from "@syginc/isomorphic-sentry";

if (SDK_NAME === "sentry.javascript.browser") {
    // Browser configuration
    init({dsn: "__DSN__"});
} else {
    // Node configuration
    init({dsn: "__DSN__"});
}

captureMessage("Hello, world!");

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i @syginc/isomorphic-sentry

Weekly Downloads

78

Version

5.3.0

License

MIT

Unpacked Size

8.52 kB

Total Files

13

Last publish

Collaborators

  • kkobas
  • hikoma