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

nuxt-testevia

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-testevia - npm Package Compare versions

Comparing version 0.0.2 to 0.0.5

2

package.json
{
"name": "nuxt-testevia",
"version": "0.0.2",
"version": "0.0.5",
"description": "Nuxt - Testevia Logger",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -6,3 +6,3 @@ import Vue from 'vue'

constructor({settings, context}){
this.projectName = settings.projectName;
this.project = settings.project;
this.context = context;

@@ -17,20 +17,22 @@ this.config = {

init(){
Vue.config.errorHandler = (err) => {
let context = {
project: this.projectName,
url: process.server ? this.context.route.fullPath : window.location.href
}
Vue.config.errorHandler = (err) => this.sendError(err)
}
if(err.message) context['error_message'] = err.message;
if(err.stack) context['stacktrace'] = err.stack;
sendError(err){
let context = {
project: this.project,
url: process.server ? this.context.route.fullPath : window.location.href
}
axios.post('', context, this.config)
.catch(e =>{
// console.dir(e)
});
}
if(err.message) context['error_message'] = err.message;
if(err.stack) context['stacktrace'] = err.stack;
axios.post('', context, this.config)
.catch(e =>{
// console.dir(e)
});
}
}
export default (context) =>{
export default (context, inject) =>{
let testevia = new Testevia({

@@ -41,4 +43,6 @@ settings: {

context
})
});
inject('sendError', testevia.sendError)
}
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