ackee-report
Advanced tools
Comparing version 0.6.1 to 0.6.2
@@ -7,2 +7,9 @@ # Changelog | ||
## [v0.6.2] - 2020-11-22 | ||
### Changed | ||
- pages and referrers are now links in the email and rss feed | ||
- press enter to skip optional config options | ||
## [v0.6.1] - 2020-11-21 | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "ackee-report", | ||
"version": "0.6.1", | ||
"version": "0.6.2", | ||
"description": "CLI tool to generate performance reports of websites using the self-hosted analytics tool Ackee.", | ||
@@ -5,0 +5,0 @@ "bin": "./src/index.js", |
@@ -14,4 +14,6 @@ const Configstore = require('configstore') | ||
const text = field.split('.').join(' ') | ||
let value = prompt(`${ text }: `) | ||
if (value.length < 1) { | ||
const required = !field.includes('email') | ||
const output = text + (required ? ' (required):' : ' (press enter to skip):') | ||
let value = prompt(output) | ||
if (value.length < 1 && required) { | ||
value = verifyField(field) | ||
@@ -26,4 +28,3 @@ } | ||
if (!(config.get('ackee.token') || (config.get('ackee.username') && config.get('ackee.password')))) { | ||
const token = prompt('Ackee token (press enter to skip): ') | ||
const token = prompt('ackee token (press enter to skip): ') | ||
if (token.length < 1) { | ||
@@ -37,3 +38,2 @@ | ||
} | ||
} | ||
@@ -40,0 +40,0 @@ |
@@ -29,3 +29,7 @@ const fs = require('fs') | ||
field.forEach((item) => { | ||
list += (`<p>${ item.id } - ${ item.count } times</p>`) | ||
if (items[idx] === 'pages' || items[idx] === 'referrers') { | ||
list += (`<p><a href="${ item.id }">${ item.id }</a> - ${ item.count } times</p>`) | ||
} else { | ||
list += (`<p>${ item.id } - ${ item.count } times</p>`) | ||
} | ||
}) | ||
@@ -32,0 +36,0 @@ |
Sorry, the diff of this file is not supported yet
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
79065
976