Skip to content

Commit

Permalink
chore: minor bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed Apr 21, 2024
1 parent ccab570 commit cb43179
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@nuxt/devtools-kit": "^1.1.5",
"@nuxt/devtools-ui-kit": "^1.1.5",
"@nuxt/kit": "^3.11.2",
"@types/google.maps": "^3.55.7",
"@unhead/vue": "^1.9.7",
"consola": "^3.2.3",
"defu": "^6.1.4",
Expand Down
8 changes: 8 additions & 0 deletions pnpm-lock.yaml

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

3 changes: 0 additions & 3 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,19 +215,16 @@ export default defineNuxtModule<ModuleOptions>({
name: 'useScriptGoogleAnalytics',
key: 'googleAnalytics',
from: resolve('./runtime/registry/google-analytics'),
module: '@nuxt/third-party-capital',
},
{
name: 'useScriptGoogleTagManager',
key: 'googleTagManager',
from: resolve('./runtime/registry/google-tag-manager'),
module: '@nuxt/third-party-capital',
},
{
name: 'useScriptGoogleMaps',
key: 'googleMaps',
from: resolve('./runtime/registry/google-tag-manager'),
module: '@nuxt/third-party-capital',
},
]
registry = registry.map((i) => {
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/registry/google-analytics.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import type { GoogleAnalyticsApi } from 'third-party-capital'
import { object, string } from 'valibot'
import { registryScriptOptions } from '../utils'
import type { NuxtUseScriptOptions, ScriptDynamicSrcInput } from '#nuxt-scripts'
import { useScript } from '#imports'
import { registryScriptOptions } from '~/src/runtime/utils'

const GoogleAnalyticsOptions = object({
id: string(),
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/registry/google-maps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import type { Input } from 'valibot'
import { array, object, optional, string } from 'valibot'
import type google from 'google.maps'
import { withQuery } from 'ufo'
import { registryScriptOptions } from '../utils'
import type { NuxtUseScriptOptions, ScriptDynamicSrcInput } from '#nuxt-scripts'
import { useScript } from '#imports'
import { registryScriptOptions } from '~/src/runtime/utils'

export const GoogleMapsOptions = object({
apiKey: string(),
Expand Down

0 comments on commit cb43179

Please sign in to comment.