Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ackee-report

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ackee-report - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

8

CHANGELOG.md

@@ -0,1 +1,9 @@

## [v2.0.1] - 2021-07-10
[Release notes](https://github.com/BetaHuhn/ackee-report/releases/tag/v2.0.1) · [Compare](https://github.com/BetaHuhn/ackee-report/compare/v2.0.0...v2.0.1) · [Tag](https://github.com/BetaHuhn/ackee-report/tree/v2.0.1) · Archive ([zip](https://github.com/BetaHuhn/ackee-report/archive/v2.0.1.zip) · [tar.gz](https://github.com/BetaHuhn/ackee-report/archive/v2.0.1.tar.gz))
### Bug fixes
- [`f55126c`](https://github.com/BetaHuhn/ackee-report/commit/f55126c) Display data correctly
## [v2.0.0] - 2021-07-03

@@ -2,0 +10,0 @@

2

package.json
{
"name": "ackee-report",
"version": "2.0.0",
"version": "2.0.1",
"description": "CLI tool to generate performance reports of websites using the self-hosted analytics tool Ackee.",

@@ -5,0 +5,0 @@ "bin": "./src/index.js",

@@ -127,4 +127,4 @@ const axios = require('axios')

const durationAvg = () => {
const durations = data.filter((domain) => domain.facts.averageDuration > 0)
const avg = data.reduce((n, { facts }) => n + facts.averageDuration, 0) / durations.length
const durations = data.filter((domain) => domain.facts.averageDuration.count > 0)
const avg = data.reduce((n, { facts }) => n + facts.averageDuration.count, 0) / durations.length
return Math.round(avg / 1000)

@@ -147,4 +147,4 @@ }

viewsYear: domain.facts.viewsYear,
viewsAvg: domain.facts.averageViews,
durationAvg: Math.round(domain.facts.averageDuration / 1000),
viewsAvg: domain.facts.averageViews.count,
durationAvg: Math.round(domain.facts.averageDuration.count / 1000),
pages: domain.statistics.pages,

@@ -204,32 +204,32 @@ referrers: domain.statistics.referrers,

views(interval: DAILY, type: UNIQUE, limit: ${ this.range.days }) {
id
count
id: value
}
pages(sorting: TOP, limit: ${ this.limit }, range: $range) {
id
count
id: value
}
referrers(sorting: TOP, limit: ${ this.limit }, range: $range, type: WITH_SOURCE) {
id
count
id: value
}
languages(sorting: TOP, limit: ${ this.limit }, range: $range) {
id
count
id: value
}
browsers(sorting: TOP, type: WITH_VERSION, limit: ${ this.limit }, range: $range) {
id
count
id: value
}
devices(sorting: TOP, type: WITH_MODEL, limit: ${ this.limit }, range: $range) {
id
count
id: value
}
sizes(sorting: TOP, type: SCREEN_RESOLUTION, limit: ${ this.limit }, range: $range) {
id
count
id: value
}
systems(sorting: TOP, type: NO_VERSION, limit: ${ this.limit }, range: $range) {
id
count
id: value
}

@@ -255,2 +255,4 @@ }

console.log(domain)
return domain

@@ -272,3 +274,3 @@

list(sorting: TOP, type: ${ this.eventType }, range: $range, limit: ${ this.limit }) {
id
id: value
count

@@ -275,0 +277,0 @@ }

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