@dargmuesli/nuxt-cookie-control 5.2.1 → 5.2.2

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/dist/module.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "configKey": "cookieControl",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.0.0"
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.1";
6
+ const version = "5.2.2";
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dargmuesli/nuxt-cookie-control",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
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.2.3",
39
+ "@nuxt/kit": "3.3.1",
40
40
  "@sindresorhus/slugify": "2.2.0",
41
41
  "css-vars-ponyfill": "2.4.8",
42
42
  "js-cookie": "3.0.1",
@@ -48,16 +48,16 @@
48
48
  "@nuxtjs/eslint-config-typescript": "12.0.0",
49
49
  "@types/js-cookie": "3.0.3",
50
50
  "eslint": "8.36.0",
51
- "eslint-config-prettier": "8.7.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.2.3",
56
- "prettier": "2.8.6",
55
+ "nuxt": "3.3.1",
56
+ "prettier": "2.8.7",
57
57
  "typescript": "5.0.2",
58
58
  "vue": "3.2.47",
59
59
  "vue-tsc": "1.2.0",
60
- "webpack": "5.76.2"
60
+ "webpack": "5.76.3"
61
61
  },
62
62
  "publishConfig": {
63
63
  "access": "public"