Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-bugsnag

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-bugsnag - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

2

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc