Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbouchard authored and boly38 committed Dec 31, 2022
1 parent 0322622 commit 494726e
Show file tree
Hide file tree
Showing 72 changed files with 7,473 additions and 4,519 deletions.
12 changes: 6 additions & 6 deletions lib/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import core from '@actions/core';
import github from '@actions/github';

import axios from 'axios'
import UmamiAPIClient from 'umami-api'
import UmamiApiClient from 'umami-api'

import ReportGenerator from './reportGenerator.js';

Expand Down Expand Up @@ -111,12 +111,12 @@ class Action {
tz = 'Europe/Paris';
}

const umami = new UmamiAPIClient(server, user, password, false);
const umami = new UmamiApiClient(server, user, password);
const site = isSet(domain) ? await umami.getWebsiteBy("domain", domain).catch(rethrow) : await umami.getWebsite().catch(rethrow);
const siteStats = await umami.getStats(site.websiteUuid, { period }).catch(rethrow);
const sitePageViews = await umami.getPageviews(site.websiteUuid, { period, unit, tz }).catch(rethrow);
const siteEvents = await umami.getEvents(site.websiteUuid, { period, unit, tz }).catch(rethrow);
const siteMetricsUrl = await umami.getMetrics(site.websiteUuid, { period }).catch(rethrow);
const siteStats = await site.getStats({ period }).catch(rethrow);
const sitePageViews = await site.getPageviews({ period, unit, tz }).catch(rethrow);
const siteEvents = await site.getEvents({ period, unit, tz }).catch(rethrow);
const siteMetricsUrl = await site.getMetrics({ period }).catch(rethrow);

DEBUG_ACTION && console.log(site);
DEBUG_ACTION && console.log(siteStats);
Expand Down
27 changes: 17 additions & 10 deletions node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

267 changes: 193 additions & 74 deletions node_modules/axios/CHANGELOG.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 494726e

Please sign in to comment.