GithubHelp home page GithubHelp logo

vue-rollbar's Introduction

vue-rollbar

npm (scoped with tag) npm Dependencies js-standard-style

Rollbar plugin for Vue.js

Installation

npm install vue-rollbar --save

Usage

var Vue = require('vue');
var Rollbar = require('vue-rollbar');

Vue.use(Rollbar, {
  accessToken: 'YOUR_ROLLBAR_FRONT_TOKEN',
  ...options
});

You can now use Rollbar anywhere in your Vue app.

Vue.rollbar.debug('Yohyo!');
// or in a vue component
this.$rollbar.debug('Yohyo!')

See Rollbar javascript documentation for options

vue-rollbar's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

vue-rollbar's Issues

is_js vulnerable to Regular Expression Denial of Service

is_js is a dependency that has no resolved patch yet.

Field Details
Severity High
Issue is_js vulnerable to Regular Expression Denial of Service
Package is_js
Patched in No patch available
Dependency of vue-rollbar
Path vue-rollbar > rollbar > request-ip > is_js
More info npm advisory

How to exclude/ignore specific errors ? Error: Request failed with status code 401

When the user is unauthenticated and tries to make requests he gets 401 (Unauthenticated) error.

However this is not an error of course and I was looking if there is any way to exclude such errors requests.

I found something here in the docs which I am not sure yet how to implement, but it says

Some of our other libraries don't implement checkIgnore yet.

And in vue.js docs I can't see it so maybe it's not implemented there.

In there any way I can exclude/ignore specific errors ?

this.rollbar undefined in component

Hi @zevran
Just a heads up that in my build of Vue (^2.3.3) I ran into an issue where the this.rollbar was not available on the component. I fixed it by instantiating Rollbar as a mixin like so:

var Rollbar = require("rollbar");
module.exports = function (Vue, options) {
  Vue.mixin({
    created: function () {
      this.$rollbar = new Rollbar(options);
    }
  })
}

Not sure of the root cause or if that's the appropriate solution but it worked for me.

Typscript support planned?

We're wanting to use this module, but our Vue project is using Typescript. Are there any plans to create a types file for this module so it can be used?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.