nuxt-umami
Advanced tools
Comparing version 2.4.2 to 2.4.3
@@ -74,6 +74,8 @@ import { useTitle } from '@vueuse/core'; | ||
const { host, customEndpoint, version } = umConfig.value; | ||
const root = new URL(host); | ||
const branch = customEndpoint || (version === 2 ? '/api/send' : '/api/collect'); | ||
return `${root.protocol}//${root.host}${branch}`; | ||
const { host: urlHost, protocol } = new URL(host); | ||
const _v = urlHost === 'analytics.umami.is' ? 2 : version; | ||
const branch = customEndpoint || (_v === 2 ? '/api/send' : '/api/collect'); | ||
return `${protocol}//${urlHost}${branch}`; | ||
}); | ||
@@ -80,0 +82,0 @@ |
{ | ||
"name": "nuxt-umami", | ||
"type": "module", | ||
"version": "2.4.2", | ||
"version": "2.4.3", | ||
"description": "Integrate Umami Analytics into Nuxt", | ||
@@ -43,10 +43,10 @@ "author": "ML <me.mlaure@gmail.com>", | ||
"devDependencies": { | ||
"@antfu/eslint-config": "^0.38.6", | ||
"@types/node": "^18.16.5", | ||
"bumpp": "^9.1.0", | ||
"eslint": "^8.40.0", | ||
"eslint-plugin-vue": "^9.11.0", | ||
"nuxt": "^3.4.3", | ||
"typescript": "^5.0.4" | ||
"@antfu/eslint-config": "^0.39.5", | ||
"@types/node": "^20.3.0", | ||
"bumpp": "^9.1.1", | ||
"eslint": "^8.42.0", | ||
"eslint-plugin-vue": "^9.14.1", | ||
"nuxt": "^3.5.3", | ||
"typescript": "^5.1.3" | ||
} | ||
} |
@@ -20,3 +20,3 @@ # Nuxt Umami | ||
- 💯 Simplified usage, feature complete, extensive config | ||
- ✅ Better Typescript, JSDocs, auto completion | ||
- ✅ Typescript, JSDocs, auto completion | ||
- ✅ Error handling + debugging | ||
@@ -23,0 +23,0 @@ - ✅ Nuxt utils + auto import |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18361
401