1.0.0-alpha.12 • Published 1 year ago

@watchcathq/browser v1.0.0-alpha.12

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

npm.io @watchcathq/browser

Browser SDK for watchcat.io.

Installation and Usage

To install the package, use your preferred package manager:

npm install @watchcathq/browser
yarn add @watchcathq/browser

Alternatively, you can include the package directly on your web page:

<script src="https://unpkg.com/@watchcathq/browser/dist/watchcat.js"></script>

<!-- UMD -->
<script src="https://unpkg.com/@watchcathq/browser/dist/watchcat.umd.js"></script>

To set up the package, import it and initialize it with your application token:

import WatchCat from "@watchcathq/browser";

WatchCat.init({
    token: "APP_TOKEN"
})

Once installed and set up, all unhandled exceptions will be automatically reported. You can also manually send logs and exceptions using the following methods:

WatchCat.warn('Warning message!')
WatchCat.error('Error message!')

try {
    const res = yourService.call(data)
} catch (e) {
    WatchCat.exception(e)
}

Documentation

See https://watchcat.io/docs

1.0.0-alpha.9

1 year ago

1.0.0-alpha.7

1 year ago

1.0.0-alpha.6

1 year ago

1.0.0-alpha.10

1 year ago

1.0.0-alpha.5

1 year ago

0.2.0

1 year ago

1.0.0-alpha.12

1 year ago

1.0.0-alpha.11

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago