@vuepress/plugin-umami-analytics 2.0.0-rc.125 → 2.0.0-rc.127
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.
package/dist/client/config.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as vuepress_client0 from "vuepress/client";
|
|
1
|
+
import * as _$vuepress_client0 from "vuepress/client";
|
|
2
2
|
|
|
3
3
|
//#region src/client/config.d.ts
|
|
4
|
-
declare const _default: vuepress_client0.ClientConfig;
|
|
4
|
+
declare const _default: _$vuepress_client0.ClientConfig;
|
|
5
5
|
//#endregion
|
|
6
6
|
export { _default as default };
|
|
7
7
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","names":[],"sources":["../../src/client/config.ts"],"sourcesContent":["import { defineClientConfig } from 'vuepress/client'\nimport type { UmamiOptions } from '../shared/index.js'\nimport { useUmamiAnalytics } from './composables/index.js'\n\ndeclare const __UMM_OPTIONS__: UmamiOptions\n\nexport default defineClientConfig({\n setup() {\n if (__VUEPRESS_SSR__) return\n useUmamiAnalytics(__UMM_OPTIONS__)\n },\n})\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"config.js","names":[],"sources":["../../src/client/config.ts"],"sourcesContent":["import { defineClientConfig } from 'vuepress/client'\n\nimport type { UmamiOptions } from '../shared/index.js'\nimport { useUmamiAnalytics } from './composables/index.js'\n\ndeclare const __UMM_OPTIONS__: UmamiOptions\n\nexport default defineClientConfig({\n setup() {\n if (__VUEPRESS_SSR__) return\n useUmamiAnalytics(__UMM_OPTIONS__)\n },\n})\n"],"mappings":"0GAOA,IAAA,EAAe,EAAmB,CAChC,OAAQ,CACF,kBACJ,EAAkB,gBAAgB,EAErC,CAAC"}
|
package/dist/node/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/node/umamiAnalyticsPlugin.ts"],"sourcesContent":["import { Logger } from '@vuepress/helper'\nimport type { Plugin, PluginObject } from 'vuepress/core'\nimport { colors, getDirname, path } from 'vuepress/utils'\nimport type { UmamiOptions } from '../shared/index.js'\n\nconst __dirname = import.meta.dirname || getDirname(import.meta.url)\n\nconst PLUGIN_NAME = '@vuepress/plugin-umami-analytics'\n\nconst logger = new Logger(PLUGIN_NAME)\n\n/**\n * Umami Analytics plugin for VuePress\n *\n * VuePress 的 Umami Analytics 插件\n *\n * @description Integrates Umami Analytics tracking into VuePress applications.\n * Only active in production builds when a valid website ID is provided.\n *\n * 集成 Umami Analytics 追踪到 VuePress 应用中。\n * 仅在生产构建且提供有效网站 ID 时启用。\n *\n * @example\n * ```ts\n * import { umamiAnalyticsPlugin } from '@vuepress/plugin-umami-analytics'\n *\n * export default {\n * plugins: [\n * umamiAnalyticsPlugin({\n * id: 'your-website-id',\n * link: 'https://your-umami-instance.com/script.js'\n * })\n * ]\n * }\n * ```\n */\nexport const umamiAnalyticsPlugin =\n ({ id, ...options }: UmamiOptions): Plugin =>\n (app) => {\n const plugin: PluginObject = {\n name: PLUGIN_NAME,\n }\n\n if (!id) {\n logger.warn(`${colors.cyan('id')} is required!`)\n\n return plugin\n }\n\n // returns an empty plugin in dev mode when debug mode is not enabled\n if (app.env.isDev) return plugin\n\n return {\n ...plugin,\n\n define: {\n __UMM_OPTIONS__: { id, ...options },\n },\n\n clientConfigFile: path.resolve(__dirname, '../client/config.js'),\n }\n }\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/node/umamiAnalyticsPlugin.ts"],"sourcesContent":["import { Logger } from '@vuepress/helper'\nimport type { Plugin, PluginObject } from 'vuepress/core'\nimport { colors, getDirname, path } from 'vuepress/utils'\n\nimport type { UmamiOptions } from '../shared/index.js'\n\nconst __dirname = import.meta.dirname || getDirname(import.meta.url)\n\nconst PLUGIN_NAME = '@vuepress/plugin-umami-analytics'\n\nconst logger = new Logger(PLUGIN_NAME)\n\n/**\n * Umami Analytics plugin for VuePress\n *\n * VuePress 的 Umami Analytics 插件\n *\n * @description Integrates Umami Analytics tracking into VuePress applications.\n * Only active in production builds when a valid website ID is provided.\n *\n * 集成 Umami Analytics 追踪到 VuePress 应用中。\n * 仅在生产构建且提供有效网站 ID 时启用。\n *\n * @example\n * ```ts\n * import { umamiAnalyticsPlugin } from '@vuepress/plugin-umami-analytics'\n *\n * export default {\n * plugins: [\n * umamiAnalyticsPlugin({\n * id: 'your-website-id',\n * link: 'https://your-umami-instance.com/script.js'\n * })\n * ]\n * }\n * ```\n */\nexport const umamiAnalyticsPlugin =\n ({ id, ...options }: UmamiOptions): Plugin =>\n (app) => {\n const plugin: PluginObject = {\n name: PLUGIN_NAME,\n }\n\n if (!id) {\n logger.warn(`${colors.cyan('id')} is required!`)\n\n return plugin\n }\n\n // returns an empty plugin in dev mode when debug mode is not enabled\n if (app.env.isDev) return plugin\n\n return {\n ...plugin,\n\n define: {\n __UMM_OPTIONS__: { id, ...options },\n },\n\n clientConfigFile: path.resolve(__dirname, '../client/config.js'),\n }\n }\n"],"mappings":"4GAMA,MAAM,EAAY,OAAO,KAAK,SAAW,EAAW,OAAO,KAAK,IAAI,CAE9D,EAAc,mCAEd,EAAS,IAAI,EAAO,EAAY,CA2BzB,GACV,CAAE,KAAI,GAAG,KACT,GAAQ,CACP,IAAM,EAAuB,CAC3B,KAAM,EACP,CAWD,OATK,EAOD,EAAI,IAAI,MAAc,EAEnB,CACL,GAAG,EAEH,OAAQ,CACN,gBAAiB,CAAE,KAAI,GAAG,EAAS,CACpC,CAED,iBAAkB,EAAK,QAAQ,EAAW,sBAAsB,CACjE,EAhBC,EAAO,KAAK,GAAG,EAAO,KAAK,KAAK,CAAC,eAAe,CAEzC"}
|
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.127",
|
|
4
4
|
"description": "VuePress plugin - umami-analytics",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"analytics",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"access": "public"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@vuepress/helper": "2.0.0-rc.
|
|
48
|
-
"vue": "^3.5.
|
|
47
|
+
"@vuepress/helper": "2.0.0-rc.127",
|
|
48
|
+
"vue": "^3.5.31"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"vuepress": "2.0.0-rc.
|
|
51
|
+
"vuepress": "2.0.0-rc.27"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "405b7cdccc7ed0ee2efea0dfa2b3f0036cc25e87"
|
|
54
54
|
}
|