@dargmuesli/nuxt-vio 18.0.1 → 18.1.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.
@@ -61,8 +61,8 @@ export interface Breadcrumb {
61
61
  }
62
62
 
63
63
  interface Props {
64
- prefixes?: Array<Breadcrumb>
65
- suffixes?: Array<Breadcrumb>
64
+ prefixes?: Breadcrumb[]
65
+ suffixes?: Breadcrumb[]
66
66
  }
67
67
  withDefaults(defineProps<Props>(), {
68
68
  prefixes: undefined,
@@ -14,7 +14,7 @@
14
14
 
15
15
  <script setup lang="ts">
16
16
  interface Props {
17
- span: Array<string | Array<string>>
17
+ span: (string | string[])[]
18
18
  }
19
19
  withDefaults(defineProps<Props>(), {})
20
20
  </script>
package/node.ts ADDED
@@ -0,0 +1,2 @@
1
+ export const IS_IN_PRODUCTION = process.env.NODE_ENV === 'production'
2
+ export const IS_IN_STACK = !!process.env.NUXT_PUBLIC_SITE_URL
package/package.json CHANGED
@@ -37,6 +37,7 @@
37
37
  "vue-tsc": "2.2.8"
38
38
  },
39
39
  "devDependencies": {
40
+ "@types/node": "22.13.10",
40
41
  "@urql/devtools": "2.0.3",
41
42
  "@urql/exchange-graphcache": "7.2.3",
42
43
  "consola": "3.4.2",
@@ -66,6 +67,7 @@
66
67
  "i18n",
67
68
  "server",
68
69
  "shared",
70
+ "node.ts",
69
71
  "nuxt.config.ts",
70
72
  "package.json"
71
73
  ],
@@ -104,5 +106,5 @@
104
106
  "start:static": "serve .playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key"
105
107
  },
106
108
  "type": "module",
107
- "version": "18.0.1"
109
+ "version": "18.1.0"
108
110
  }
@@ -0,0 +1,3 @@
1
+ import { IS_IN_PRODUCTION, IS_IN_STACK } from '../../node'
2
+
3
+ export const IS_IN_FRONTEND_DEVELOPMENT = !IS_IN_PRODUCTION && !IS_IN_STACK
@@ -3,5 +3,5 @@ import type { RouteLocationRaw } from '#vue-router'
3
3
  export const append = (path: string, pathToAppend?: RouteLocationRaw) =>
4
4
  path + (path.endsWith('/') ? '' : '/') + (pathToAppend ?? '')
5
5
 
6
- export const arrayRemoveNulls = <T>(array?: Array<T>) =>
6
+ export const arrayRemoveNulls = <T>(array?: T[]) =>
7
7
  array?.flatMap((x: T) => (x ? [x] : [])) || []