@dargmuesli/nuxt-vio 3.2.4 → 3.3.0

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.
@@ -7,7 +7,7 @@
7
7
  [
8
8
  ...(isPrimary
9
9
  ? [
10
- 'border-transparent bg-gray-800 text-text-bright hover:bg-black dark:bg-vio-primary-bg dark:text-vio-primary-text dark:hover:bg-gray-200',
10
+ 'border-transparent bg-gray-800 text-text-bright hover:brightness-90 dark:bg-vio-primary-bg dark:text-vio-primary-text',
11
11
  ]
12
12
  : [
13
13
  'border-gray-300 text-text-dark hover:bg-black/5 dark:border-gray-600 dark:text-text-bright dark:hover:bg-black/30',
@@ -2,13 +2,13 @@ export const useAppLayout = () => {
2
2
  const appConfig = useAppConfig()
3
3
  const siteConfig = useSiteConfig()
4
4
 
5
- useServerHeadSafe({
5
+ useHeadSafe({
6
6
  ...useLocaleHead({ addSeoAttributes: true }).value,
7
7
  bodyAttrs: {
8
8
  class:
9
9
  'bg-background-bright dark:bg-background-dark font-sans text-text-dark dark:text-text-bright',
10
10
  },
11
- })
11
+ }) // TODO: use `useServerHeadSafe` (https://github.com/harlan-zw/nuxt-seo-kit/issues/87)
12
12
 
13
13
  useServerSeoMeta({
14
14
  ...(appConfig.vio.themeColor
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "3.2.4",
3
+ "version": "3.3.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -98,7 +98,7 @@
98
98
  "eslint-plugin-prettier": "5.0.0",
99
99
  "eslint-plugin-yml": "1.8.0",
100
100
  "lint-staged": "14.0.1",
101
- "nuxt": "3.6.5",
101
+ "nuxt": "3.7.0",
102
102
  "prettier": "3.0.3",
103
103
  "prettier-plugin-tailwindcss": "0.5.3",
104
104
  "stylelint": "15.10.3",
@@ -74,7 +74,7 @@ export const getDomainTldPort = (host: string) => {
74
74
  if (/^localhost(:[0-9]+)?$/.test(hostParts[hostParts.length - 1]))
75
75
  return hostParts[hostParts.length - 1]
76
76
 
77
- if (hostParts.length === 1) throw new Error('Host is too short!')
77
+ if (hostParts.length === 1) return hostParts[0]
78
78
 
79
79
  return `${hostParts[hostParts.length - 2]}.${hostParts[hostParts.length - 1]}`
80
80
  }