vue-bugsnag
Advanced tools
Comparing version 0.0.1 to 0.0.2
{ | ||
"name": "vue-bugsnag", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Vue.js plugin for bugsnag js", | ||
@@ -5,0 +5,0 @@ "main": "dist/vue-bugsnag.js", |
@@ -34,13 +34,26 @@ # Vue Bugsnag | ||
``` | ||
* Prevent development errors from reporting | ||
* Prevent Bugsnag from being initialized in development | ||
```js | ||
if (process.env.NODE_ENV === 'production') { | ||
// Initialize bugsnag here | ||
// Initialize Bugsnag here | ||
} | ||
``` | ||
* Limit error reporting to specific release [stages](https://docs.bugsnag.com/platforms/browsers/configuration-options/#releasestage) | ||
```js | ||
Bugsnag.releaseStage = "YOUR-CURRENT-ENVIRONMENT"; | ||
Bugsnag.notifyReleaseStages = ['staging', 'production']; | ||
``` | ||
## Use with Vue Router | ||
* Use an global `afterEach` [navigation guard](https://router.vuejs.org/en/advanced/navigation-guards.html#global-after-hooks) to reset the Bugsnag error [rate limit](https://docs.bugsnag.com/platforms/browsers/configuration-options/#refresh). | ||
```js | ||
router.afterEach((to, from) => { | ||
Bugsnag.refresh(); | ||
}); | ||
``` | ||
## Use in browser (without webpack) | ||
* Include required files | ||
```html | ||
<!-- Add bugsnag core library --> | ||
<!-- Add Bugsnag core library --> | ||
<script src="//d2wy8f7a9ursnm.cloudfront.net/bugsnag-3.min.js" | ||
@@ -60,6 +73,9 @@ data-apikey="YOUR-API-KEY-HERE"></script> | ||
### Credits | ||
* [raven-js](https://github.com/getsentry/raven-js) | ||
### Credits and Thanks | ||
* Thanks to Sentry for their [Vue.js plugin](https://github.com/getsentry/raven-js) | ||
### Resources | ||
* [Bugsnag Browser integration guide](https://docs.bugsnag.com/platforms/browsers/) | ||
### License | ||
[MIT](LICENSE.txt) License |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
12462
80