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 1.0.9 to 1.1.0

2

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

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

@@ -47,20 +47,22 @@ import axios from 'axios'

if(err['code']) context.data['code'] = err['code'];
if(err.stack) {
let stack = '';
if(urls) stack = '\nUrls: ' + urls.reverse().join('\n') + '\n';
stack += '\nStack: ' + err.stack
context.data['stacktrace'] = stack;
}
for(let key in err){
context.data[key] = err[key]
}
if(process.browser){
let stack = '\n';
if(urls) stack = 'Urls: ' + urls.reverse().join('\n') + '\n';
if(!process.server){
stack += '\nClient side\n'
try{
context.data['browser'] = whichBrowser() + ' - OS: ' + whichOS();
} catch(e){
}
} else {
stack += '\nServer side\n'
}
if(err.stack) {
stack += '\nStack: ' + err.stack
}
context.data['stacktrace'] = stack;
axios.post('https://testevia.broj42.com/api/log-errors/', context, {headers: {'Authorization': options.apiKey}})

@@ -67,0 +69,0 @@ .catch(function(e){

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