@dargmuesli/nuxt-vio 12.0.0 → 12.0.2

Sign up to get free protection for your applications and to get access to all the features.
package/app.config.ts CHANGED
@@ -5,57 +5,59 @@ export default defineAppConfig({
5
5
  },
6
6
  })
7
7
 
8
- declare module 'nuxt/schema' {
9
- interface AppConfigInput {
10
- vio: {
11
- pages?: {
12
- legalNotice?: {
13
- contact: {
14
- email: string
8
+ export type AppConfig = {
9
+ vio: {
10
+ pages?: {
11
+ legalNotice?: {
12
+ contact: {
13
+ email: string
14
+ }
15
+ responsibility: {
16
+ address: {
17
+ city: string
18
+ name: string
19
+ street: string
20
+ }
21
+ }
22
+ tmg: {
23
+ address: {
24
+ city: string
25
+ name: string
26
+ street: string
15
27
  }
16
- responsibility: {
28
+ }
29
+ }
30
+ privacyPolicy?: {
31
+ hostingCdn?: {
32
+ external: {
17
33
  address: {
18
34
  city: string
19
35
  name: string
20
36
  street: string
21
37
  }
22
38
  }
23
- tmg: {
39
+ }
40
+ mandatoryInfo?: {
41
+ responsible: {
24
42
  address: {
25
43
  city: string
44
+ email: string
26
45
  name: string
27
46
  street: string
28
47
  }
29
48
  }
30
49
  }
31
- privacyPolicy?: {
32
- hostingCdn?: {
33
- external: {
34
- address: {
35
- city: string
36
- name: string
37
- street: string
38
- }
39
- }
40
- }
41
- mandatoryInfo?: {
42
- responsible: {
43
- address: {
44
- city: string
45
- email: string
46
- name: string
47
- street: string
48
- }
49
- }
50
- }
51
- }
52
50
  }
53
- server?: {
54
- middleware: {
55
- headers: Record<string, string>
56
- }
51
+ }
52
+ server?: {
53
+ middleware: {
54
+ headers: Record<string, string>
57
55
  }
58
- themeColor?: string
59
56
  }
57
+ themeColor?: string
60
58
  }
61
59
  }
60
+
61
+ declare module 'nuxt/schema' {
62
+ interface AppConfigInput extends AppConfig {}
63
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "12.0.0",
3
+ "version": "12.0.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dargmuesli/vio.git"
@@ -87,7 +87,7 @@
87
87
  "prettier": "3.2.5",
88
88
  "prettier-plugin-tailwindcss": "0.5.14",
89
89
  "serve": "14.2.3",
90
- "sharp": "0.33.3",
90
+ "sharp": "0.33.4",
91
91
  "stylelint": "16.5.0",
92
92
  "stylelint-config-recommended-vue": "1.5.0",
93
93
  "stylelint-config-standard": "36.0.0",
@@ -76,6 +76,9 @@ export default defineConfig({
76
76
  /* Base URL to use in actions like `await page.goto('/')`. */
77
77
  baseURL: SITE_URL,
78
78
 
79
+ // TODO: remove once tests run without it
80
+ ignoreHTTPSErrors: true,
81
+
79
82
  /* Collect trace when retrying the failed test. See https://playwright.dev/docs/trace-viewer */
80
83
  trace: 'on-first-retry',
81
84
  },
@@ -86,6 +89,7 @@ export default defineConfig({
86
89
  env: {
87
90
  NUXT_PUBLIC_VIO_IS_TESTING: 'true',
88
91
  },
92
+ ignoreHTTPSErrors: true, // TODO: remove once tests run without it
89
93
  timeout: process.env.NODE_ENV === 'production' ? 10000 : 100000,
90
94
  url: SITE_URL,
91
95
  reuseExistingServer: !process.env.CI,
@@ -1,8 +1,10 @@
1
- import type { AppConfig } from 'nuxt/schema'
1
+ import type { AppConfig } from '../../app.config'
2
2
 
3
3
  export default defineEventHandler(async (event) => {
4
4
  const config = useAppConfig() as AppConfig
5
5
 
6
+ if (!config.vio.server) return
7
+
6
8
  for (const entry of Object.entries(config.vio.server.middleware.headers)) {
7
9
  appendHeader(event, entry[0], entry[1])
8
10
  }