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.5 to 1.0.1

2

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

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

@@ -7,5 +7,6 @@ import Vue from 'vue'

this.project = settings.project;
this.sendingEnabled = !context.isDev || settings.dev;
this.context = context;
this.config = {
headers: {'Authorization': `Bearer ${settings.apiKey}`}
headers: {'Authorization': settings.apiKey}
};

@@ -17,3 +18,5 @@

init(){
Vue.config.errorHandler = (err) => this.sendError(err)
Vue.config.errorHandler = (err) => {
if(this.sendingEnabled) this.sendError(err)
}
}

@@ -24,9 +27,12 @@

project: this.project,
url: process.server ? this.context.route.fullPath : window.location.href
source: 'frontend',
data: {
url: process.server ? this.context.route.fullPath : window.location.href
},
}
if(err.message) context['error_message'] = err.message;
if(err.stack) context['stacktrace'] = err.stack;
if(err.message) context.data['error_message'] = err.message;
if(err.stack) context.data['stacktrace'] = err.stack;
axios.post('', context, this.config)
axios.post('https://testevia.broj42.com/api/log-errors/', context, this.config)
.catch(e =>{

@@ -46,4 +52,3 @@ // console.dir(e)

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