@dargmuesli/nuxt-vio 12.0.3 → 12.0.4
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@dargmuesli/nuxt-vio",
|
3
|
-
"version": "12.0.
|
3
|
+
"version": "12.0.4",
|
4
4
|
"repository": {
|
5
5
|
"type": "git",
|
6
6
|
"url": "git+https://github.com/dargmuesli/vio.git"
|
@@ -61,7 +61,7 @@
|
|
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.
|
64
|
+
"globals": "15.3.0",
|
65
65
|
"jose": "5.3.0",
|
66
66
|
"nuxt-gtag": "2.0.6",
|
67
67
|
"nuxt-security": "1.4.3",
|
package/utils/constants.ts
CHANGED
@@ -97,14 +97,14 @@ export const GET_CSP = (siteUrl: string) =>
|
|
97
97
|
// nuxt
|
98
98
|
'connect-src': [
|
99
99
|
"'self'", // e.g. `/_nuxt/builds/meta/`, `/_payload.json`, `/privacy-policy/_payload.json`
|
100
|
-
...(process.env.NODE_ENV === 'development'
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
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
|
+
// : []),
|
108
108
|
],
|
109
109
|
'img-src': [
|
110
110
|
"'self'", // e.g. favicon
|
package/utils/networking.ts
CHANGED
@@ -102,7 +102,9 @@ export const getServiceHref = ({
|
|
102
102
|
|
103
103
|
if (stagingHost) {
|
104
104
|
return `https://${nameSubdomainString}${stagingHost}`
|
105
|
-
|
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
|