@finema/core 1.4.61 → 1.4.62

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": "@finema/core",
3
- "version": "1.4.61",
3
+ "version": "1.4.62",
4
4
  "configKey": "core",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.7.4"
package/dist/module.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { defineNuxtModule, createResolver, installModule, addPlugin, addComponentsDir, addImportsDir } from '@nuxt/kit';
2
2
 
3
3
  const name = "@finema/core";
4
- const version = "1.4.61";
4
+ const version = "1.4.62";
5
5
 
6
6
  const colors = {
7
7
  black: "#20243E",
@@ -384,6 +384,10 @@ const module = defineNuxtModule({
384
384
  nuxtRunTimeConfigOptions,
385
385
  nuxt.options.runtimeConfig
386
386
  );
387
+ nuxt.options.build = {
388
+ ...nuxt.options.build || {},
389
+ transpile: [...nuxt.options.build?.transpile || [], "date-fns"]
390
+ };
387
391
  await installModule("@pinia/nuxt");
388
392
  await installModule("@vee-validate/nuxt", veeValidateNuxtOptions);
389
393
  await installModule("nuxt-security", nuxtSecurityOptions);
@@ -1,5 +1,5 @@
1
1
  import { addHours, addYears, format, formatISO, isDate, isValid, parse, subHours } from "date-fns";
2
- import th from "date-fns/locale/th/index";
2
+ import * as locales from "date-fns/locale";
3
3
  import { useCoreConfig } from "#core/composables/useConfig";
4
4
  const dateFormat = useCoreConfig().date_format;
5
5
  const dateTimeFormat = useCoreConfig().date_time_format;
@@ -14,7 +14,7 @@ export class TimeHelper {
14
14
  newDateStr = addYears(dateStr, 543);
15
15
  }
16
16
  if (isThaiMonth) {
17
- options.locale = th;
17
+ options.locale = locales.th;
18
18
  }
19
19
  return format(newDateStr, formatStr, options);
20
20
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finema/core",
3
- "version": "1.4.61",
3
+ "version": "1.4.62",
4
4
  "repository": "https://gitlab.finema.co/finema/ui-kit",
5
5
  "license": "MIT",
6
6
  "author": "Finema Dev Core Team",