@vuepress/plugin-umami-analytics 2.0.0-rc.42 → 2.0.0-rc.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,8 +12,7 @@ declare global {
|
|
|
12
12
|
/**
|
|
13
13
|
* Add umami analytics to the site
|
|
14
14
|
*
|
|
15
|
-
* @see https://
|
|
16
|
-
* @see https://
|
|
17
|
-
* @see https://tongji.umami.com/holmes/Analytics/%E6%8A%80%E6%9C%AF%E6%8E%A5%E5%85%A5%E6%8C%87%E5%8D%97/JS%20API/JS%20API%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3/_trackPageview
|
|
15
|
+
* @see https://umami.is/docs/install
|
|
16
|
+
* @see https://umami.is/docs/tracker-functions
|
|
18
17
|
*/
|
|
19
18
|
export declare const useUmamiAnalytics: ({ link, id, domains, autoTrack, cache, hostUrl, }: UmamiOptions) => void;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Add umami analytics to the site
|
|
3
3
|
*
|
|
4
|
-
* @see https://
|
|
5
|
-
* @see https://
|
|
6
|
-
* @see https://tongji.umami.com/holmes/Analytics/%E6%8A%80%E6%9C%AF%E6%8E%A5%E5%85%A5%E6%8C%87%E5%8D%97/JS%20API/JS%20API%E6%8A%80%E6%9C%AF%E6%96%87%E6%A1%A3/_trackPageview
|
|
4
|
+
* @see https://umami.is/docs/install
|
|
5
|
+
* @see https://umami.is/docs/tracker-functions
|
|
7
6
|
*/
|
|
8
|
-
export const useUmamiAnalytics = ({
|
|
7
|
+
export const useUmamiAnalytics = ({
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-deprecated
|
|
9
|
+
link = 'https://us.umami.is/script.js', id, domains, autoTrack, cache, hostUrl, }) => {
|
|
9
10
|
// avoid duplicated import
|
|
10
11
|
if ('umami' in window)
|
|
11
12
|
return;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vuepress/plugin-umami-analytics",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.43",
|
|
4
4
|
"description": "VuePress plugin - umami-analytics",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vuepress-plugin",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
"lib"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
40
|
-
"vue": "^3.4
|
|
39
|
+
"@vuepress/helper": "2.0.0-rc.43",
|
|
40
|
+
"vue": "^3.5.4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"vuepress": "2.0.0-rc.15"
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "7c75a58f6aed788e2ee40e2b2f0451a76ec20a23"
|
|
49
49
|
}
|