vuetify-nuxt-module 0.4.8 → 0.4.9

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
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": "^3.0.0"
6
6
  },
7
- "version": "0.4.8"
7
+ "version": "0.4.9"
8
8
  }
package/dist/module.mjs CHANGED
@@ -6,7 +6,7 @@ import { isAbsolute, join, relative } from 'pathe';
6
6
  import { normalizePath as normalizePath$1 } from 'vite';
7
7
  import { isPackageExists } from 'local-pkg';
8
8
 
9
- const version = "0.4.8";
9
+ const version = "0.4.9";
10
10
 
11
11
  function isSubdir(root, test) {
12
12
  const relative$1 = relative(root, test);
@@ -224,13 +224,12 @@ export function vuetifyConfiguration() {
224
224
  ${deepCopy ? `function deepCopy(src,des) {
225
225
  for (const key in src) {
226
226
  if (typeof src[key] === 'object') {
227
- if (!typeof des[key] === 'object') des[key] = {}
227
+ if (typeof des[key] !== 'object') des[key] = {}
228
228
  deepCopy(src[key], des[key])
229
229
  } else {
230
230
  des[key] = src[key]
231
231
  }
232
232
  }
233
- return des
234
233
  }
235
234
  ` : ""}
236
235
  `;
@@ -364,10 +363,7 @@ ${deepCopy ? `function deepCopy(src,des) {
364
363
  else
365
364
  componentsEntry = `options.components = {${Array.from(config.labComponents).join(",")}}`;
366
365
  }
367
- if (
368
- /*! i18n && */
369
- localeMessages
370
- ) {
366
+ if (!i18n && localeMessages) {
371
367
  const useLocales = Array.isArray(localeMessages) ? [.../* @__PURE__ */ new Set([...localeMessages])] : [localeMessages];
372
368
  config.imports.push(`import {${useLocales.join(",")}} from 'vuetify/locale'`);
373
369
  config.messages = `
@@ -376,9 +372,9 @@ ${deepCopy ? `function deepCopy(src,des) {
376
372
  ${useLocales.map((locale) => {
377
373
  return `
378
374
  if ('${locale}' in options.locale.messages)
379
- options.locale.messages['${locale}'] = deepCopy(options.locale.messages['${locale}'],${locale})
380
- else
381
- options.locale.messages['${locale}'] = ${locale}
375
+ deepCopy(options.locale.messages['${locale}'],${locale})
376
+
377
+ options.locale.messages['${locale}'] = ${locale}
382
378
  `;
383
379
  }).join("")}
384
380
  `;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "vuetify-nuxt-module",
3
3
  "type": "module",
4
- "version": "0.4.8",
4
+ "version": "0.4.9",
5
5
  "packageManager": "pnpm@8.6.9",
6
6
  "description": "Zero-Config Nuxt Module for Vuetify",
7
7
  "author": "userquin <userquin@gmail.com>",
@@ -125,4 +125,4 @@
125
125
  "installDependencies": false,
126
126
  "startCommand": "node .stackblitz.js && pnpm install && pnpm run dev"
127
127
  }
128
- }
128
+ }