@finema/core 1.4.55 → 1.4.57

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.55",
3
+ "version": "1.4.57",
4
4
  "configKey": "core",
5
5
  "compatibility": {
6
6
  "nuxt": "^3.7.4"
package/dist/module.mjs CHANGED
@@ -1,8 +1,7 @@
1
1
  import { defineNuxtModule, createResolver, installModule, addPlugin, addComponentsDir, addImportsDir } from '@nuxt/kit';
2
- import 'lodash-es';
3
2
 
4
3
  const name = "@finema/core";
5
- const version = "1.4.55";
4
+ const version = "1.4.57";
6
5
 
7
6
  const colors = {
8
7
  black: "#20243E",
@@ -352,8 +351,11 @@ const module = defineNuxtModule({
352
351
  await installModule("@nuxt/ui", {
353
352
  safelistColors: ["secondary", "success", "info", "danger", "warning"]
354
353
  });
354
+ await installModule("nuxt-lodash", {
355
+ prefix: "_",
356
+ upperAfterPrefix: false
357
+ });
355
358
  nuxt.options.appConfig.ui = _deepMerge(
356
- {},
357
359
  {
358
360
  table,
359
361
  pagination,
@@ -14,7 +14,7 @@ export interface IColumn<P extends Record<string, any> = Record<string, any>, O
14
14
  class?: string;
15
15
  component?: any;
16
16
  type?: COLUMN_TYPES;
17
- transform?: (value: any, row: any, column: IColumn) => any;
17
+ transform?: (value: any, item: any, column: IColumn) => any;
18
18
  props?: P;
19
19
  on?: O;
20
20
  }
@@ -1,8 +1,8 @@
1
1
  import { ObjectHelper } from "../utils/ObjectHelper.mjs";
2
2
  import { ParamHelper } from "../utils/ParamHelper.mjs";
3
3
  import { NewRequester } from "../lib/Requester.mjs";
4
- import { _findIndex, _get, _shuffle } from "../utils/lodash.mjs";
5
4
  import { useCoreConfig } from "../composables/useConfig.mjs";
5
+ import { _findIndex, _get, _shuffle } from "#imports";
6
6
  export const apiAddHelper = async (state, onUpdateStatus, onUpdateOptions, onUpdateData, onUpdateItems, data, opts) => {
7
7
  onUpdateStatus(ObjectHelper.toLoadingStatus(state().status));
8
8
  onUpdateOptions({});
@@ -4,7 +4,9 @@ import { zodI18nMap } from "zod-i18n-map";
4
4
  import i18next from "i18next";
5
5
  import en from "zod-i18n-map/locales/en/zod.json";
6
6
  export default defineNuxtPlugin((nuxtApp) => {
7
- console.log("Plugin injected by @finema/core module!");
7
+ if (process.env.NODE_ENV !== "production") {
8
+ console.log("Plugin injected by @finema/core module!");
9
+ }
8
10
  i18next.init({
9
11
  lng: "th",
10
12
  resources: {
@@ -1,4 +1,4 @@
1
- import { _get } from "../utils/lodash.mjs";
1
+ import { get as _get } from "lodash";
2
2
  export class ArrayHelper {
3
3
  static toOptions(data, valueAttr = "id", labelAttr = "name") {
4
4
  return ArrayHelper.toArray(data).map((item) => {
@@ -1,5 +1,6 @@
1
- import { _get, _isEmpty } from "./lodash.mjs";
2
1
  import { ParamHelper } from "./ParamHelper.mjs";
2
+ import { _get } from "#build/imports";
3
+ import { _isEmpty } from "~/test/fixtures/basic/.nuxt/pctjej/imports";
3
4
  export class ObjectHelper {
4
5
  static createOption(value, label = "") {
5
6
  return {
@@ -1,4 +1,4 @@
1
- import { _get } from "./lodash.mjs";
1
+ import { _get } from "#build/imports";
2
2
  export class ParamHelper {
3
3
  static getParams = (opts, reqOptions) => {
4
4
  if (opts.params) {
@@ -1,120 +1 @@
1
- /// <reference types="lodash" />
2
- /// <reference types="lodash" />
3
- /// <reference types="lodash" />
4
- /// <reference types="lodash" />
5
- /// <reference types="lodash" />
6
- export declare const _get: {
7
- <TObject extends object, TKey extends keyof TObject>(object: TObject, path: TKey | [TKey]): TObject[TKey];
8
- <TObject_1 extends object, TKey_1 extends keyof TObject_1>(object: TObject_1 | null | undefined, path: TKey_1 | [TKey_1]): TObject_1[TKey_1] | undefined;
9
- <TObject_2 extends object, TKey_2 extends keyof TObject_2, TDefault>(object: TObject_2 | null | undefined, path: TKey_2 | [TKey_2], defaultValue: TDefault): TDefault | Exclude<TObject_2[TKey_2], undefined>;
10
- <TObject_3 extends object, TKey1 extends keyof TObject_3, TKey2 extends keyof TObject_3[TKey1]>(object: TObject_3, path: [TKey1, TKey2]): TObject_3[TKey1][TKey2];
11
- <TObject_4 extends object, TKey1_1 extends keyof TObject_4, TKey2_1 extends keyof TObject_4[TKey1_1]>(object: TObject_4 | null | undefined, path: [TKey1_1, TKey2_1]): TObject_4[TKey1_1][TKey2_1] | undefined;
12
- <TObject_5 extends object, TKey1_2 extends keyof TObject_5, TKey2_2 extends keyof TObject_5[TKey1_2], TDefault_1>(object: TObject_5 | null | undefined, path: [TKey1_2, TKey2_2], defaultValue: TDefault_1): TDefault_1 | Exclude<TObject_5[TKey1_2][TKey2_2], undefined>;
13
- <TObject_6 extends object, TKey1_3 extends keyof TObject_6, TKey2_3 extends keyof TObject_6[TKey1_3], TKey3 extends keyof TObject_6[TKey1_3][TKey2_3]>(object: TObject_6, path: [TKey1_3, TKey2_3, TKey3]): TObject_6[TKey1_3][TKey2_3][TKey3];
14
- <TObject_7 extends object, TKey1_4 extends keyof TObject_7, TKey2_4 extends keyof TObject_7[TKey1_4], TKey3_1 extends keyof TObject_7[TKey1_4][TKey2_4]>(object: TObject_7 | null | undefined, path: [TKey1_4, TKey2_4, TKey3_1]): TObject_7[TKey1_4][TKey2_4][TKey3_1] | undefined;
15
- <TObject_8 extends object, TKey1_5 extends keyof TObject_8, TKey2_5 extends keyof TObject_8[TKey1_5], TKey3_2 extends keyof TObject_8[TKey1_5][TKey2_5], TDefault_2>(object: TObject_8 | null | undefined, path: [TKey1_5, TKey2_5, TKey3_2], defaultValue: TDefault_2): TDefault_2 | Exclude<TObject_8[TKey1_5][TKey2_5][TKey3_2], undefined>;
16
- <TObject_9 extends object, TKey1_6 extends keyof TObject_9, TKey2_6 extends keyof TObject_9[TKey1_6], TKey3_3 extends keyof TObject_9[TKey1_6][TKey2_6], TKey4 extends keyof TObject_9[TKey1_6][TKey2_6][TKey3_3]>(object: TObject_9, path: [TKey1_6, TKey2_6, TKey3_3, TKey4]): TObject_9[TKey1_6][TKey2_6][TKey3_3][TKey4];
17
- <TObject_10 extends object, TKey1_7 extends keyof TObject_10, TKey2_7 extends keyof TObject_10[TKey1_7], TKey3_4 extends keyof TObject_10[TKey1_7][TKey2_7], TKey4_1 extends keyof TObject_10[TKey1_7][TKey2_7][TKey3_4]>(object: TObject_10 | null | undefined, path: [TKey1_7, TKey2_7, TKey3_4, TKey4_1]): TObject_10[TKey1_7][TKey2_7][TKey3_4][TKey4_1] | undefined;
18
- <TObject_11 extends object, TKey1_8 extends keyof TObject_11, TKey2_8 extends keyof TObject_11[TKey1_8], TKey3_5 extends keyof TObject_11[TKey1_8][TKey2_8], TKey4_2 extends keyof TObject_11[TKey1_8][TKey2_8][TKey3_5], TDefault_3>(object: TObject_11 | null | undefined, path: [TKey1_8, TKey2_8, TKey3_5, TKey4_2], defaultValue: TDefault_3): TDefault_3 | Exclude<TObject_11[TKey1_8][TKey2_8][TKey3_5][TKey4_2], undefined>;
19
- <T>(object: import("lodash").NumericDictionary<T>, path: number): T;
20
- <T_1>(object: import("lodash").NumericDictionary<T_1> | null | undefined, path: number): T_1 | undefined;
21
- <T_2, TDefault_4>(object: import("lodash").NumericDictionary<T_2> | null | undefined, path: number, defaultValue: TDefault_4): T_2 | TDefault_4;
22
- <TDefault_5>(object: null | undefined, path: import("lodash").PropertyPath, defaultValue: TDefault_5): TDefault_5;
23
- (object: null | undefined, path: import("lodash").PropertyPath): undefined;
24
- <TObject_12, TPath extends string>(data: TObject_12, path: TPath): string extends TPath ? any : import("lodash").GetFieldType<TObject_12, TPath>;
25
- <TObject_13, TPath_1 extends string, TDefault_6 = import("lodash").GetFieldType<TObject_13, TPath_1>>(data: TObject_13, path: TPath_1, defaultValue: TDefault_6): TDefault_6 | Exclude<import("lodash").GetFieldType<TObject_13, TPath_1>, null | undefined>;
26
- (object: any, path: import("lodash").PropertyPath, defaultValue?: any): any;
27
- };
28
- export declare const _range: {
29
- (start: number, end?: number | undefined, step?: number | undefined): number[];
30
- (end: number, index: string | number, guard: object): number[];
31
- };
32
- export declare const _concat: <T>(...values: import("lodash").Many<T>[]) => T[];
33
- export declare const _toNumber: (value: any) => number;
34
- export declare const _isUndefined: (value: any) => value is undefined;
35
- export declare const _dropRight: <T>(array: import("lodash").List<T> | null | undefined, n?: number | undefined) => T[];
36
- export declare const _intersection: <T>(...arrays: (import("lodash").List<T> | null | undefined)[]) => T[];
37
- export declare const _set: {
38
- <T extends object>(object: T, path: import("lodash").PropertyPath, value: any): T;
39
- <TResult>(object: object, path: import("lodash").PropertyPath, value: any): TResult;
40
- };
41
- export declare const _map: {
42
- <T, TResult>(collection: T[] | null | undefined, iteratee: import("lodash").ArrayIterator<T, TResult>): TResult[];
43
- <T_1, TResult_1>(collection: import("lodash").List<T_1> | null | undefined, iteratee: import("lodash").ListIterator<T_1, TResult_1>): TResult_1[];
44
- <T_2>(collection: import("lodash").Dictionary<T_2> | import("lodash").NumericDictionary<T_2> | null | undefined): T_2[];
45
- <T_3 extends object, TResult_2>(collection: T_3 | null | undefined, iteratee: import("lodash").ObjectIterator<T_3, TResult_2>): TResult_2[];
46
- <T_4, K extends keyof T_4>(collection: import("lodash").Dictionary<T_4> | import("lodash").NumericDictionary<T_4> | null | undefined, iteratee: K): T_4[K][];
47
- <T_5>(collection: import("lodash").Dictionary<T_5> | import("lodash").NumericDictionary<T_5> | null | undefined, iteratee?: string | undefined): any[];
48
- <T_6>(collection: import("lodash").Dictionary<T_6> | import("lodash").NumericDictionary<T_6> | null | undefined, iteratee?: object | undefined): boolean[];
49
- };
50
- export declare const _merge: {
51
- <TObject, TSource>(object: TObject, source: TSource): TObject & TSource;
52
- <TObject_1, TSource1, TSource2>(object: TObject_1, source1: TSource1, source2: TSource2): TObject_1 & TSource1 & TSource2;
53
- <TObject_2, TSource1_1, TSource2_1, TSource3>(object: TObject_2, source1: TSource1_1, source2: TSource2_1, source3: TSource3): TObject_2 & TSource1_1 & TSource2_1 & TSource3;
54
- <TObject_3, TSource1_2, TSource2_2, TSource3_1, TSource4>(object: TObject_3, source1: TSource1_2, source2: TSource2_2, source3: TSource3_1, source4: TSource4): TObject_3 & TSource1_2 & TSource2_2 & TSource3_1 & TSource4;
55
- (object: any, ...otherArgs: any[]): any;
56
- };
57
- export declare const _flatDeep: <T>(array: import("lodash").ListOfRecursiveArraysOrValues<T> | null | undefined) => import("lodash").Flat<T>[];
58
- export declare const _uniq: <T>(array: import("lodash").List<T> | null | undefined) => T[];
59
- export declare const _sortBy: {
60
- <T>(collection: import("lodash").List<T> | null | undefined, ...iteratees: import("lodash").Many<import("lodash").ListIteratee<T>>[]): T[];
61
- <T_1 extends object>(collection: T_1 | null | undefined, ...iteratees: import("lodash").Many<import("lodash").ObjectIteratee<T_1>>[]): T_1[keyof T_1][];
62
- };
63
- export declare const _uniqBy: <T>(array: import("lodash").List<T> | null | undefined, iteratee: import("lodash").ValueIteratee<T>) => T[];
64
- export declare const _random: {
65
- (floating?: boolean | undefined): number;
66
- (max: number, floating?: boolean | undefined): number;
67
- (min: number, max: number, floating?: boolean | undefined): number;
68
- (min: number, index: string | number, guard: object): number;
69
- };
70
- export declare const _cloneDeep: <T>(value: T) => T;
71
- export declare const _isEmpty: {
72
- <T extends {
73
- __trapAny: any;
74
- }>(value?: T | undefined): boolean;
75
- (value: string): value is "";
76
- (value: Map<any, any> | Set<any> | import("lodash").List<any> | null | undefined): boolean;
77
- (value: object): boolean;
78
- <T_1 extends object>(value: T_1 | null | undefined): value is import("lodash").EmptyObjectOf<T_1> | null | undefined;
79
- (value?: any): boolean;
80
- };
81
- export declare const _isObject: (value?: any) => value is object;
82
- export declare const _isArray: {
83
- (value?: any): value is any[];
84
- <T>(value?: any): value is any[];
85
- };
86
- export declare const _findIndex: <T>(array: import("lodash").List<T> | null | undefined, predicate?: import("lodash").ListIterateeCustom<T, boolean> | undefined, fromIndex?: number | undefined) => number;
87
- export declare const _isEqual: (value: any, other: any) => boolean;
88
- export declare const _difference: <T>(array: import("lodash").List<T> | null | undefined, ...values: import("lodash").List<T>[]) => T[];
89
- export declare const _shuffle: {
90
- <T>(collection: import("lodash").List<T> | null | undefined): T[];
91
- <T_1 extends object>(collection: T_1 | null | undefined): T_1[keyof T_1][];
92
- };
93
- export declare const _size: (collection: string | object | null | undefined) => number;
94
- export declare const _toPairs: {
95
- <T>(object?: import("lodash").Dictionary<T> | import("lodash").NumericDictionary<T> | undefined): [string, T][];
96
- (object?: object | undefined): [string, any][];
97
- };
98
- export declare const _orderBy: {
99
- <T>(collection: import("lodash").List<T> | null | undefined, iteratees?: import("lodash").Many<import("lodash").ListIterator<T, unknown>> | undefined, orders?: import("lodash").Many<boolean | "asc" | "desc"> | undefined): T[];
100
- <T_1>(collection: import("lodash").List<T_1> | null | undefined, iteratees?: import("lodash").Many<import("lodash").ListIteratee<T_1>> | undefined, orders?: import("lodash").Many<boolean | "asc" | "desc"> | undefined): T_1[];
101
- <T_2 extends object>(collection: T_2 | null | undefined, iteratees?: import("lodash").Many<import("lodash").ObjectIterator<T_2, unknown>> | undefined, orders?: import("lodash").Many<boolean | "asc" | "desc"> | undefined): T_2[keyof T_2][];
102
- <T_3 extends object>(collection: T_3 | null | undefined, iteratees?: import("lodash").Many<import("lodash").ObjectIteratee<T_3>> | undefined, orders?: import("lodash").Many<boolean | "asc" | "desc"> | undefined): T_3[keyof T_3][];
103
- };
104
- export declare const _fromPairs: {
105
- <T>(pairs: import("lodash").List<[import("lodash").PropertyName, T]> | null | undefined): import("lodash").Dictionary<T>;
106
- (pairs: import("lodash").List<any[]> | null | undefined): import("lodash").Dictionary<any>;
107
- };
108
- export declare const _xor: <T>(...arrays: (import("lodash").List<T> | null | undefined)[]) => T[];
109
- export declare const _omit: {
110
- <T extends object, K extends import("lodash").PropertyName[]>(object: T | null | undefined, ...paths: K): Pick<T, Exclude<keyof T, K[number]>>;
111
- <T_1 extends object, K_1 extends keyof T_1>(object: T_1 | null | undefined, ...paths: import("lodash").Many<K_1>[]): import("lodash").Omit<T_1, K_1>;
112
- <T_2 extends object>(object: T_2 | null | undefined, ...paths: import("lodash").Many<import("lodash").PropertyName>[]): Partial<T_2>;
113
- };
114
- export declare const _pick: {
115
- <T extends object, U extends keyof T>(object: T, ...props: import("lodash").Many<U>[]): Pick<T, U>;
116
- <T_1>(object: T_1 | null | undefined, ...props: import("lodash").Many<import("lodash").PropertyPath>[]): Partial<T_1>;
117
- };
118
- export declare const _clone: (object: any) => any;
119
- export declare const _debounce: <T extends (...args: any[]) => any>(func: T, wait?: number) => import("lodash").DebouncedFunc<T>;
120
1
  export declare const _deepMerge: (target: any, ...sources: any[]) => any;
@@ -1,76 +1,3 @@
1
- import {
2
- concat,
3
- dropRight,
4
- range,
5
- toNumber,
6
- isUndefined,
7
- set,
8
- map,
9
- merge,
10
- flattenDeep,
11
- uniq,
12
- sortBy,
13
- uniqBy,
14
- random,
15
- cloneDeep,
16
- isEmpty,
17
- isObject,
18
- isArray,
19
- findIndex,
20
- isEqual,
21
- difference,
22
- shuffle,
23
- size,
24
- toPairs,
25
- orderBy,
26
- fromPairs,
27
- xor,
28
- debounce,
29
- intersection,
30
- get,
31
- omit,
32
- pick
33
- } from "lodash-es";
34
- export const _get = get;
35
- export const _range = range;
36
- export const _concat = concat;
37
- export const _toNumber = toNumber;
38
- export const _isUndefined = isUndefined;
39
- export const _dropRight = dropRight;
40
- export const _intersection = intersection;
41
- export const _set = set;
42
- export const _map = map;
43
- export const _merge = merge;
44
- export const _flatDeep = flattenDeep;
45
- export const _uniq = uniq;
46
- export const _sortBy = sortBy;
47
- export const _uniqBy = uniqBy;
48
- export const _random = random;
49
- export const _cloneDeep = cloneDeep;
50
- export const _isEmpty = isEmpty;
51
- export const _isObject = isObject;
52
- export const _isArray = isArray;
53
- export const _findIndex = findIndex;
54
- export const _isEqual = isEqual;
55
- export const _difference = difference;
56
- export const _shuffle = shuffle;
57
- export const _size = size;
58
- export const _toPairs = toPairs;
59
- export const _orderBy = orderBy;
60
- export const _fromPairs = fromPairs;
61
- export const _xor = xor;
62
- export const _omit = omit;
63
- export const _pick = pick;
64
- export const _clone = (object) => {
65
- try {
66
- return JSON.parse(JSON.stringify(object || {}));
67
- } catch (e) {
68
- return {};
69
- }
70
- };
71
- export const _debounce = (func, wait = 150) => {
72
- return debounce(func, wait);
73
- };
74
1
  const isObj = (item) => item && typeof item === "object" && !Array.isArray(item);
75
2
  export const _deepMerge = (target, ...sources) => {
76
3
  if (!sources.length)
package/dist/types.d.mts CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- import type { ModuleOptions } from './module'
2
+ import type { ModuleOptions } from './module.js'
3
3
 
4
4
 
5
5
  declare module '@nuxt/schema' {
@@ -13,4 +13,4 @@ declare module 'nuxt/schema' {
13
13
  }
14
14
 
15
15
 
16
- export type { core } from './module'
16
+ export type { core } from './module.js'
package/package.json CHANGED
@@ -1,89 +1,88 @@
1
- {
2
- "name": "@finema/core",
3
- "version": "1.4.55",
4
- "repository": "https://gitlab.finema.co/finema/ui-kit",
5
- "license": "MIT",
6
- "author": "Finema Dev Core Team",
7
- "type": "module",
8
- "exports": {
9
- ".": {
10
- "types": "./dist/types.d.ts",
11
- "import": "./dist/module.mjs",
12
- "require": "./dist/module.cjs"
13
- }
14
- },
15
- "main": "./dist/module.cjs",
16
- "types": "./dist/types.d.ts",
17
- "files": [
18
- "dist"
19
- ],
20
- "engines": {
21
- "node": ">=18.0.0"
22
- },
23
- "scripts": {
24
- "prepack": "nuxt-module-build build",
25
- "dev": "nuxi dev playground",
26
- "dev:build": "nuxi build playground",
27
- "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
28
- "lint": "eslint . --cache",
29
- "lint:fix": "eslint . --fix --cache",
30
- "test": "vitest run",
31
- "test:watch": "vitest watch",
32
- "release": "release-it --ci",
33
- "prepare": "husky install"
34
- },
35
- "dependencies": {
36
- "@nuxt/kit": "^3.7.4",
37
- "@nuxt/ui": "^2.13.0",
38
- "@pinia/nuxt": "^0.5.1",
39
- "@vee-validate/nuxt": "^4.12.5",
40
- "@vee-validate/zod": "^4.12.5",
41
- "@vuepic/vue-datepicker": "^7.4.1",
42
- "axios": "^1.6.7",
43
- "date-fns": "^3.3.1",
44
- "i18next": "^23.8.2",
45
- "lodash-es": "^4.17.21",
46
- "nuxt-security": "^1.1.0",
47
- "pinia": "^2.1.7",
48
- "qrcode.vue": "^3.4.1",
49
- "url-join": "^5.0.0",
50
- "zod": "^3.22.4",
51
- "zod-i18n-map": "^2.27.0"
52
- },
53
- "devDependencies": {
54
- "@finema/eslint-config": "^1.2.0",
55
- "@nuxt/devtools": "latest",
56
- "@nuxt/eslint-config": "^0.2.0",
57
- "@nuxt/module-builder": "^0.5.4",
58
- "@nuxt/schema": "^3.7.4",
59
- "@nuxt/test-utils": "^3.11.0",
60
- "@release-it/conventional-changelog": "^8.0.1",
61
- "@types/lodash-es": "^4.17.12",
62
- "@types/node": "^20.10.8",
63
- "@vue/test-utils": "^2.4.3",
64
- "changelogen": "^0.5.5",
65
- "eslint": "^8.56.0",
66
- "happy-dom": "^13.0.0",
67
- "husky": "^8.0.3",
68
- "lint-staged": "^15.2.0",
69
- "nuxt": "^3.10.1",
70
- "playwright-core": "^1.40.1",
71
- "prettier": "^3.1.1",
72
- "release-it": "^17.0.1",
73
- "sass": "^1.69.5",
74
- "stylelint": "^16.1.0",
75
- "stylelint-config-prettier-scss": "^1.0.0",
76
- "stylelint-config-standard-scss": "^13.0.0",
77
- "vitest": "^1.2.2",
78
- "vue": "3.4.8"
79
- },
80
- "lint-staged": {
81
- "*.{ts,vue,tsx,js}": "eslint --fix --cache",
82
- "*.{html,json}": "prettier --write"
83
- },
84
- "pnpm": {
85
- "overrides": {
86
- "vue": "3.4.8"
87
- }
88
- }
89
- }
1
+ {
2
+ "name": "@finema/core",
3
+ "version": "1.4.57",
4
+ "repository": "https://gitlab.finema.co/finema/ui-kit",
5
+ "license": "MIT",
6
+ "author": "Finema Dev Core Team",
7
+ "type": "module",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/types.d.ts",
11
+ "import": "./dist/module.mjs",
12
+ "require": "./dist/module.cjs"
13
+ }
14
+ },
15
+ "main": "./dist/module.cjs",
16
+ "types": "./dist/types.d.ts",
17
+ "files": [
18
+ "dist"
19
+ ],
20
+ "engines": {
21
+ "node": ">=18.0.0"
22
+ },
23
+ "scripts": {
24
+ "prepack": "nuxt-module-build build",
25
+ "dev": "nuxi dev playground",
26
+ "dev:build": "nuxi build playground",
27
+ "dev:prepare": "nuxt-module-build build --stub && nuxt-module-build prepare && nuxi prepare playground",
28
+ "lint": "eslint . --cache",
29
+ "lint:fix": "eslint . --fix --cache",
30
+ "test": "vitest run",
31
+ "test:watch": "vitest watch",
32
+ "release": "release-it --ci",
33
+ "prepare": "husky install"
34
+ },
35
+ "dependencies": {
36
+ "@nuxt/kit": "^3.10.1",
37
+ "@nuxt/ui": "^2.13.0",
38
+ "@pinia/nuxt": "^0.5.1",
39
+ "@vee-validate/nuxt": "^4.12.5",
40
+ "@vee-validate/zod": "^4.12.5",
41
+ "@vuepic/vue-datepicker": "^7.4.1",
42
+ "axios": "^1.6.7",
43
+ "date-fns": "^3.3.1",
44
+ "i18next": "^23.8.2",
45
+ "nuxt-security": "^1.1.0",
46
+ "pinia": "^2.1.7",
47
+ "qrcode.vue": "^3.4.1",
48
+ "url-join": "^5.0.0",
49
+ "zod": "^3.22.4",
50
+ "nuxt-lodash": "^2.5.3",
51
+ "zod-i18n-map": "^2.27.0"
52
+ },
53
+ "devDependencies": {
54
+ "@finema/eslint-config": "^1.2.0",
55
+ "@nuxt/devtools": "latest",
56
+ "@nuxt/eslint-config": "^0.2.0",
57
+ "@nuxt/module-builder": "^0.5.5",
58
+ "@nuxt/schema": "^3.10.1",
59
+ "@nuxt/test-utils": "^3.11.0",
60
+ "@release-it/conventional-changelog": "^8.0.1",
61
+ "@types/node": "^20.10.17",
62
+ "@vue/test-utils": "^2.4.3",
63
+ "changelogen": "^0.5.5",
64
+ "eslint": "^8.56.0",
65
+ "happy-dom": "^13.0.0",
66
+ "husky": "^8.0.3",
67
+ "lint-staged": "^15.2.0",
68
+ "nuxt": "^3.10.1",
69
+ "playwright-core": "^1.40.1",
70
+ "prettier": "^3.1.1",
71
+ "release-it": "^17.0.1",
72
+ "sass": "^1.69.5",
73
+ "stylelint": "^16.1.0",
74
+ "stylelint-config-prettier-scss": "^1.0.0",
75
+ "stylelint-config-standard-scss": "^13.0.0",
76
+ "vitest": "^1.2.2",
77
+ "vue": "3.4.8"
78
+ },
79
+ "lint-staged": {
80
+ "*.{ts,vue,tsx,js}": "eslint --fix --cache",
81
+ "*.{html,json}": "prettier --write"
82
+ },
83
+ "pnpm": {
84
+ "overrides": {
85
+ "vue": "3.4.8"
86
+ }
87
+ }
88
+ }
@@ -1 +0,0 @@
1
- export {};
@@ -1,27 +0,0 @@
1
- import { assert, test } from "vitest";
2
- import { _deepMerge } from "./lodash.mjs";
3
- test("_deepMerge", () => {
4
- const input = _deepMerge(
5
- {},
6
- {
7
- head: {
8
- htmlAttrs: {
9
- lang: "en"
10
- }
11
- }
12
- },
13
- {
14
- head: {
15
- title: "hi bro"
16
- }
17
- }
18
- );
19
- assert.deepEqual(input, {
20
- head: {
21
- title: "hi bro",
22
- htmlAttrs: {
23
- lang: "en"
24
- }
25
- }
26
- });
27
- });