Skip to content

Commit e12cc8e

Browse files
committed
fix: useBotDetection importing incorrectly
Fixes #227
1 parent 19dc57d commit e12cc8e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,9 @@
105105
"vue": "^3.5.18",
106106
"vue-router": "^4.5.1"
107107
},
108+
"resolutions": {
109+
"@nuxtjs/robots": "workspace:*"
110+
},
108111
"pnpm": {
109112
"onlyBuiltDependencies": [
110113
"@firebase/util",

src/runtime/app/utils/fingerprinting.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import type { BotDetectionResult } from '@fingerprintjs/botd'
2-
import type { BotDetectionContext } from '../../../util'
2+
import type { BotDetectionContext } from '@nuxtjs/robots/util'
3+
import { mapBotKindToCategory } from '@nuxtjs/robots/util'
34
import { useStorage } from '@vueuse/core'
45
import { ref } from 'vue'
5-
import { mapBotKindToCategory } from '../../../const-bots'
66

77
// Persistent storage for client-side fingerprint detection results only
88
const botDetectionStorage = import.meta.client

0 commit comments

Comments
 (0)