@geek/logger
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -165,36 +165,35 @@ /* eslint-disable eqeqeq */ | ||
const { message = '' } = clone; | ||
let extra; | ||
// let extra; | ||
//TODO: Need to move some of these to a new home... | ||
switch (message) { | ||
case 'screen_view': | ||
extra = args.screen_name; | ||
break; | ||
// switch (message) { | ||
// case 'screen_view': | ||
// extra = args.screen_name; | ||
// break; | ||
case 'app_first_launch_update': | ||
extra = args.app_previous_version; | ||
break; | ||
// case 'app_first_launch_update': | ||
// extra = args.app_previous_version; | ||
// break; | ||
case 'toggle_beta': | ||
extra = args.allow_beta_updates; | ||
break; | ||
// case 'toggle_beta': | ||
// extra = args.allow_beta_updates; | ||
// break; | ||
case 'toggle_anonymous': | ||
extra = args.anonymize_name; | ||
break; | ||
// case 'toggle_anonymous': | ||
// extra = args.anonymize_name; | ||
// break; | ||
case 'article_open': | ||
extra = args.article_id; | ||
break; | ||
// case 'article_open': | ||
// extra = args.article_id; | ||
// break; | ||
case 'office_select': | ||
extra = args.new_office_id; | ||
break; | ||
// case 'office_select': | ||
// extra = args.new_office_id; | ||
// break; | ||
default: | ||
// default: | ||
} | ||
// } | ||
if (![ undefined, null ].includes(extra)) { | ||
clone.message = `${red.bold('Event Generated:')} ${cyan(message)} -- ${green(extra)}`; | ||
if (![ undefined, null ].includes(args.event_value)) { | ||
clone.message = `${red.bold('Event Generated:')} ${cyan(message)} -- ${green(args.event_value)}`; | ||
} else { | ||
@@ -201,0 +200,0 @@ clone.message = `${red.bold('Event Generated:')} ${cyan(message)}`; |
{ | ||
"name": "@geek/logger", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Logging module for Node.js and Axway Titanium", | ||
@@ -5,0 +5,0 @@ "main": "Logger.js", |
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
88354
941