@infermedica/vue-sentry-plugin
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -34,4 +34,6 @@ /* global __sentry */ | ||
setUser(id, username, name, email) { | ||
const cleanUserObject = {id, username, name, email}; | ||
Object.keys(cleanUserObject).forEach((key) => !cleanUserObject[key] && delete cleanUserObject[key]); | ||
Sentry.configureScope((scope) => { | ||
scope.setUser({id, username, name, email}); | ||
scope.setUser(cleanUserObject); | ||
}); | ||
@@ -38,0 +40,0 @@ }, |
{ | ||
"name": "@infermedica/vue-sentry-plugin", | ||
"description": "Sentry plugin for Vue applications.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"author": "Infermedica", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
@@ -38,3 +38,7 @@ # Infermedica Vue Sentry Plugin | ||
This plugin automatically sets two Sentry tags: | ||
* "instance" to the value of `window.location.hostname` | ||
* "event_layer" to the value "frontend" | ||
### Set additional global Sentry tags | ||
@@ -41,0 +45,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4739
51
82