Skip to content

Commit f18a000

Browse files
committed
feat(vue): rename installer to register
1 parent d485018 commit f18a000

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

packages/vue/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export interface CreateVueAnalyticsInstanceOptions
3737
router?: VueRouter
3838
}
3939

40-
export interface InstallerProviderOptions<P extends Platform> {
40+
export interface RegisterProviderOptions<P extends Platform> {
4141
platform: Platform
4242
analytics: VueAnalytics<P>
4343
}

packages/vue/src/variants/vue.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { getMajorVersion, getGlobalProperty } from '../utils'
44
import type { Platform } from '@web-analytics/core'
55
import type {
66
CreateVueAnalyticsInstanceOptions,
7-
InstallerProviderOptions,
7+
RegisterProviderOptions,
88
VueInstance,
99
} from '../types'
1010

11-
function installerProvider<P extends Platform>({
11+
function registerProvider<P extends Platform>({
1212
analytics,
1313
platform,
14-
}: InstallerProviderOptions<P>) {
14+
}: RegisterProviderOptions<P>) {
1515
return {
1616
install: (
1717
app: VueInstance,
@@ -61,7 +61,7 @@ export function createVueBaiduAnalytics() {
6161

6262
return {
6363
baiduAnalytics,
64-
installVueBaiduAnalytics: installerProvider({
64+
installVueBaiduAnalytics: registerProvider({
6565
analytics: baiduAnalytics,
6666
platform: 'baidu',
6767
}),
@@ -74,7 +74,7 @@ export function createVueCnzzAnalytics() {
7474

7575
return {
7676
cnzzAnalytics,
77-
installVueCnzzAnalytics: installerProvider({
77+
installVueCnzzAnalytics: registerProvider({
7878
analytics: cnzzAnalytics,
7979
platform: 'cnzz',
8080
}),

0 commit comments

Comments
 (0)