1.0.0-alpha.12 • Published 2 years ago

@watchcathq/browser v1.0.0-alpha.12

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

2 years ago

1.0.0-alpha.7

2 years ago

1.0.0-alpha.6

2 years ago

1.0.0-alpha.10

2 years ago

1.0.0-alpha.5

2 years ago

0.2.0

2 years ago

1.0.0-alpha.12

2 years ago

1.0.0-alpha.11

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago