@dargmuesli/nuxt-vio 12.0.2 → 12.0.4

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-vio",
3
- "version": "12.0.2",
3
+ "version": "12.0.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/dargmuesli/vio.git"
@@ -40,10 +40,10 @@
40
40
  "@http-util/status-i18n": "0.8.1",
41
41
  "@intlify/eslint-plugin-vue-i18n": "3.0.0-next.12",
42
42
  "@nuxt/devtools": "1.3.1",
43
- "@nuxt/eslint": "0.3.12",
43
+ "@nuxt/eslint": "0.3.13",
44
44
  "@nuxt/image": "1.7.0",
45
45
  "@nuxtjs/color-mode": "3.4.1",
46
- "@nuxtjs/html-validator": "1.8.1",
46
+ "@nuxtjs/html-validator": "1.8.2",
47
47
  "@nuxtjs/i18n": "8.3.0",
48
48
  "@nuxtjs/seo": "2.0.0-rc.10",
49
49
  "@nuxtjs/tailwindcss": "6.12.0",
@@ -56,14 +56,14 @@
56
56
  "@vuelidate/validators": "2.0.4",
57
57
  "clipboardy": "4.0.0",
58
58
  "dayjs": "2.0.0-alpha.4",
59
- "eslint": "9.2.0",
59
+ "eslint": "9.3.0",
60
60
  "eslint-config-prettier": "9.1.0",
61
61
  "eslint-plugin-compat": "4.2.0",
62
62
  "eslint-plugin-prettier": "5.1.3",
63
63
  "eslint-plugin-yml": "1.14.0",
64
- "globals": "15.2.0",
64
+ "globals": "15.3.0",
65
65
  "jose": "5.3.0",
66
- "nuxt-gtag": "2.0.5",
66
+ "nuxt-gtag": "2.0.6",
67
67
  "nuxt-security": "1.4.3",
68
68
  "sweetalert2": "11.11.0"
69
69
  },
@@ -6,10 +6,7 @@ export const SITE_NAME = 'Vio'
6
6
  export const SITE_URL =
7
7
  process.env.SITE_URL ||
8
8
  process.env.NUXT_PUBLIC_SITE_URL ||
9
- (process.env.HOST ? 'https' : 'http') +
10
- '://' +
11
- (process.env.HOST ||
12
- `${process.env.HOST || 'localhost'}:${process.env.PORT || '3000'}`)
9
+ `https://${process.env.HOST || 'localhost'}:${process.env.PORT || '3000'}`
13
10
  export const CACHE_VERSION = 'bOXMwoKlJr'
14
11
  export const COOKIE_PREFIX = SITE_NAME.toLocaleLowerCase()
15
12
  export const COOKIE_SEPARATOR = '_'
@@ -100,14 +97,14 @@ export const GET_CSP = (siteUrl: string) =>
100
97
  // nuxt
101
98
  'connect-src': [
102
99
  "'self'", // e.g. `/_nuxt/builds/meta/`, `/_payload.json`, `/privacy-policy/_payload.json`
103
- ...(process.env.NODE_ENV === 'development'
104
- ? [
105
- 'http://localhost:3000/_nuxt/', // hot reload
106
- 'https://localhost:3000/_nuxt/', // hot reload
107
- 'ws://localhost:3000/_nuxt/', // hot reload
108
- 'wss://localhost:3000/_nuxt/', // hot reload
109
- ] // TODO: generalize for different ports
110
- : []),
100
+ // ...(process.env.NODE_ENV === 'development'
101
+ // ? [
102
+ // 'http://localhost:3000/_nuxt/', // hot reload
103
+ // 'https://localhost:3000/_nuxt/', // hot reload
104
+ // 'ws://localhost:3000/_nuxt/', // hot reload
105
+ // 'wss://localhost:3000/_nuxt/', // hot reload
106
+ // ] // TODO: generalize for different ports
107
+ // : []),
111
108
  ],
112
109
  'img-src': [
113
110
  "'self'", // e.g. favicon
@@ -102,7 +102,9 @@ export const getServiceHref = ({
102
102
 
103
103
  if (stagingHost) {
104
104
  return `https://${nameSubdomainString}${stagingHost}`
105
- } else if (isSsr && import.meta.server) {
105
+ // TODO: remove disable below (https://github.com/nuxt/nuxt/issues/25323)
106
+ // eslint-disable-next-line nuxt/prefer-import-meta
107
+ } else if (isSsr && process.server) {
106
108
  return `http://${name}${portString}`
107
109
  } else {
108
110
  return `https://${nameSubdomainString}${getDomainTldPort(host)}`
File without changes