@dargmuesli/nuxt-cookie-control 2.0.0-beta.2 → 2.0.0-beta.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/dist/module.json +1 -1
- package/dist/module.mjs +4 -4
- package/package.json +4 -5
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { resolve } from 'path';
|
|
2
|
-
import { createResolver, defineNuxtModule, addPlugin, addImports, addTemplate, isNuxt2, extendWebpackConfig } from '@nuxt/kit';
|
|
1
|
+
import { resolve } from 'node:path';
|
|
2
|
+
import { createResolver, defineNuxtModule, addPlugin, addImports, addTemplate, isNuxt2, extendWebpackConfig, resolvePath } from '@nuxt/kit';
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
@@ -11,7 +11,7 @@ const __filename = __cjs_url__.fileURLToPath(import.meta.url);
|
|
|
11
11
|
const __dirname = __cjs_path__.dirname(__filename);
|
|
12
12
|
const require = __cjs_mod__.createRequire(import.meta.url);
|
|
13
13
|
const name = "@dargmuesli/nuxt-cookie-control";
|
|
14
|
-
const version = "2.0.0-beta.
|
|
14
|
+
const version = "2.0.0-beta.4";
|
|
15
15
|
|
|
16
16
|
const en = {
|
|
17
17
|
acceptAll: "Accept all",
|
|
@@ -171,7 +171,7 @@ const loadLocales = async (moduleOptions) => {
|
|
|
171
171
|
const locales = moduleOptions.locales;
|
|
172
172
|
moduleOptions.locales = [];
|
|
173
173
|
for (const locale of locales) {
|
|
174
|
-
const text = await import(resolve(runtimeDir, "locale",
|
|
174
|
+
const text = await import(await resolvePath(resolve(runtimeDir, "locale", locale))).then((r) => r.default || r);
|
|
175
175
|
if (!text)
|
|
176
176
|
throw new Error(`Could not import text for locale ${locale}`);
|
|
177
177
|
moduleOptions.locales.push(locale);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dargmuesli/nuxt-cookie-control",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.4",
|
|
4
4
|
"description": "Nuxt Cookies Control Module",
|
|
5
5
|
"author": "Dario Ferderber <dario.ferderber@broj42.com>",
|
|
6
6
|
"maintainers": [
|
|
@@ -29,12 +29,11 @@
|
|
|
29
29
|
"src/locale"
|
|
30
30
|
],
|
|
31
31
|
"scripts": {
|
|
32
|
-
"
|
|
32
|
+
"prepack": "nuxt-module-build --stub && nuxi prepare playground && nuxt-module-build",
|
|
33
33
|
"dev": "nuxi dev playground",
|
|
34
|
+
"dev:prepare": "nuxt-module-build --stub && nuxi prepare playground",
|
|
34
35
|
"dev:build": "nuxi build playground",
|
|
35
|
-
"lint": "eslint --ext .js,.ts,.vue . && nuxi typecheck playground"
|
|
36
|
-
"prepack": "npm run build",
|
|
37
|
-
"postinstall": "nuxt-module-build --stub && nuxi prepare playground"
|
|
36
|
+
"lint": "eslint --ext .js,.ts,.vue . && nuxi typecheck playground"
|
|
38
37
|
},
|
|
39
38
|
"dependencies": {
|
|
40
39
|
"@nuxt/kit": "3.0.0",
|