@dargmuesli/nuxt-vio 3.2.5 → 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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "3.2.5",
3
+ "version": "3.3.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -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
  }