@dargmuesli/nuxt-cookie-control 5.2.1 → 5.2.3
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/README.md +1 -1
- package/dist/module.json +1 -1
- package/dist/module.mjs +6 -6
- package/dist/runtime/locale/index.mjs +2 -0
- package/package.json +9 -10
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
✅ Translated for: ar, az, cs, da, de, en, es, fr, hr, hu, it, ja, ko, lt, nl, no, pt, ru, sk, sv, tr and uk
|
|
7
|
+
✅ Translated for: ar, az, cs, da, de, en, es, fi, fr, hr, hu, it, ja, ko, lt, nl, no, pt, ru, sk, sv, tr and uk
|
|
8
8
|
|
|
9
9
|
✅ Vue 3 support
|
|
10
10
|
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { pathToFileURL } from 'node:url';
|
|
|
3
3
|
import { createResolver, defineNuxtModule, addPlugin, addImports, addTemplate, extendWebpackConfig, resolvePath } from '@nuxt/kit';
|
|
4
4
|
|
|
5
5
|
const name = "@dargmuesli/nuxt-cookie-control";
|
|
6
|
-
const version = "5.2.
|
|
6
|
+
const version = "5.2.3";
|
|
7
7
|
|
|
8
8
|
const en = {
|
|
9
9
|
accept: "Accept",
|
|
@@ -86,23 +86,23 @@ const module = defineNuxtModule({
|
|
|
86
86
|
hooks: {
|
|
87
87
|
"components:dirs"(dirs) {
|
|
88
88
|
dirs.push({
|
|
89
|
-
path: resolve(runtimeDir, "components"),
|
|
89
|
+
path: resolver.resolve(runtimeDir, "components"),
|
|
90
90
|
prefix: "cookie"
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
94
|
async setup(moduleOptions, nuxt) {
|
|
95
|
-
nuxt.options.alias["#cookie-control/set-vars"] = moduleOptions.isCssPonyfillEnabled ? resolve(runtimeDir, "set-vars/ponyfill") : resolve(runtimeDir, "set-vars/native");
|
|
95
|
+
nuxt.options.alias["#cookie-control/set-vars"] = moduleOptions.isCssPonyfillEnabled ? resolver.resolve(runtimeDir, "set-vars/ponyfill") : resolver.resolve(runtimeDir, "set-vars/native");
|
|
96
96
|
nuxt.options.alias["#cookie-control"] = runtimeDir;
|
|
97
97
|
nuxt.options.build.transpile.push(runtimeDir);
|
|
98
98
|
pushCss(moduleOptions, nuxt);
|
|
99
99
|
blockIframes(moduleOptions);
|
|
100
100
|
await loadLocales(moduleOptions);
|
|
101
|
-
addPlugin(resolve(runtimeDir, "plugin"));
|
|
101
|
+
addPlugin(resolver.resolve(runtimeDir, "plugin"));
|
|
102
102
|
addImports({
|
|
103
103
|
name: "useCookieControl",
|
|
104
104
|
as: "useCookieControl",
|
|
105
|
-
from: resolve(runtimeDir, "composables")
|
|
105
|
+
from: resolver.resolve(runtimeDir, "composables")
|
|
106
106
|
});
|
|
107
107
|
addTemplate({
|
|
108
108
|
filename: "cookie-control-options.ts",
|
|
@@ -161,7 +161,7 @@ const loadLocales = async (moduleOptions) => {
|
|
|
161
161
|
};
|
|
162
162
|
const pushCss = (moduleOptions, nuxt) => {
|
|
163
163
|
if (moduleOptions.isCssEnabled)
|
|
164
|
-
nuxt.options.css.push(resolve(runtimeDir, "styles.css"));
|
|
164
|
+
nuxt.options.css.push(resolver.resolve(runtimeDir, "styles.css"));
|
|
165
165
|
};
|
|
166
166
|
|
|
167
167
|
export { module as default };
|
|
@@ -5,6 +5,7 @@ import da from "./da.mjs";
|
|
|
5
5
|
import de from "./de.mjs";
|
|
6
6
|
import en from "./en.mjs";
|
|
7
7
|
import es from "./es.mjs";
|
|
8
|
+
import fi from "./fi.mjs";
|
|
8
9
|
import fr from "./fr.mjs";
|
|
9
10
|
import hr from "./hr.mjs";
|
|
10
11
|
import hu from "./hu.mjs";
|
|
@@ -28,6 +29,7 @@ export const locales = [
|
|
|
28
29
|
de,
|
|
29
30
|
en,
|
|
30
31
|
es,
|
|
32
|
+
fi,
|
|
31
33
|
fr,
|
|
32
34
|
hr,
|
|
33
35
|
hu,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dargmuesli/nuxt-cookie-control",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.3",
|
|
4
4
|
"description": "Nuxt Cookies Control Module",
|
|
5
5
|
"author": "Dario Ferderber <dario.ferderber@broj42.com>",
|
|
6
6
|
"maintainers": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"lint": "pnpm prepack && eslint --ext .js,.ts,.vue . && nuxi typecheck playground"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@nuxt/kit": "3.
|
|
39
|
+
"@nuxt/kit": "3.3.3",
|
|
40
40
|
"@sindresorhus/slugify": "2.2.0",
|
|
41
41
|
"css-vars-ponyfill": "2.4.8",
|
|
42
42
|
"js-cookie": "3.0.1",
|
|
@@ -47,20 +47,19 @@
|
|
|
47
47
|
"@nuxt/module-builder": "0.2.1",
|
|
48
48
|
"@nuxtjs/eslint-config-typescript": "12.0.0",
|
|
49
49
|
"@types/js-cookie": "3.0.3",
|
|
50
|
-
"eslint": "8.
|
|
51
|
-
"eslint-config-prettier": "8.
|
|
50
|
+
"eslint": "8.37.0",
|
|
51
|
+
"eslint-config-prettier": "8.8.0",
|
|
52
52
|
"eslint-plugin-prettier": "4.2.1",
|
|
53
53
|
"husky": "8.0.3",
|
|
54
54
|
"lint-staged": "13.2.0",
|
|
55
|
-
"nuxt": "3.
|
|
56
|
-
"prettier": "2.8.
|
|
57
|
-
"typescript": "5.0.
|
|
55
|
+
"nuxt": "3.3.3",
|
|
56
|
+
"prettier": "2.8.7",
|
|
57
|
+
"typescript": "5.0.3",
|
|
58
58
|
"vue": "3.2.47",
|
|
59
59
|
"vue-tsc": "1.2.0",
|
|
60
|
-
"webpack": "5.
|
|
60
|
+
"webpack": "5.77.0"
|
|
61
61
|
},
|
|
62
62
|
"publishConfig": {
|
|
63
63
|
"access": "public"
|
|
64
|
-
}
|
|
65
|
-
"scheduleVersion": "5.2.1"
|
|
64
|
+
}
|
|
66
65
|
}
|