Skip to content

Commit 494726e

Browse files
imjuniperboly38
authored andcommitted
Update dependencies
1 parent 0322622 commit 494726e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+7473
-4519
lines changed

lib/action.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import core from '@actions/core';
44
import github from '@actions/github';
55

66
import axios from 'axios'
7-
import UmamiAPIClient from 'umami-api'
7+
import UmamiApiClient from 'umami-api'
88

99
import ReportGenerator from './reportGenerator.js';
1010

@@ -111,12 +111,12 @@ class Action {
111111
tz = 'Europe/Paris';
112112
}
113113

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

121121
DEBUG_ACTION && console.log(site);
122122
DEBUG_ACTION && console.log(siteStats);

node_modules/.package-lock.json

Lines changed: 17 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

node_modules/axios/CHANGELOG.md

Lines changed: 193 additions & 74 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)