@vef-framework/shared 2.0.10 → 2.1.0

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.
Files changed (116) hide show
  1. package/dist/cjs/_internal/_rolldown/runtime.cjs +1 -0
  2. package/dist/cjs/color/color-ops.cjs +1 -1
  3. package/dist/cjs/color/index.cjs +1 -1
  4. package/dist/cjs/color/name.cjs +1 -1
  5. package/dist/cjs/color/palette.cjs +1 -1
  6. package/dist/cjs/constants/color-names.cjs +1 -1
  7. package/dist/cjs/constants/color-palettes.cjs +1 -1
  8. package/dist/cjs/constants/index.cjs +1 -1
  9. package/dist/cjs/index.cjs +1 -1
  10. package/dist/cjs/types/color.cjs +0 -1
  11. package/dist/cjs/types/common.cjs +0 -1
  12. package/dist/cjs/types/deep-keys.cjs +0 -1
  13. package/dist/cjs/types/index.cjs +0 -1
  14. package/dist/cjs/utils/chrono.cjs +1 -1
  15. package/dist/cjs/utils/equal.cjs +1 -1
  16. package/dist/cjs/utils/error.cjs +2 -3
  17. package/dist/cjs/utils/event.cjs +1 -1
  18. package/dist/cjs/utils/format.cjs +1 -1
  19. package/dist/cjs/utils/function.cjs +1 -1
  20. package/dist/cjs/utils/id.cjs +1 -1
  21. package/dist/cjs/utils/index.cjs +1 -1
  22. package/dist/cjs/utils/key.cjs +1 -1
  23. package/dist/cjs/utils/lib.cjs +1 -1
  24. package/dist/cjs/utils/object.cjs +1 -1
  25. package/dist/cjs/utils/path.cjs +1 -1
  26. package/dist/cjs/utils/pinyin.cjs +1 -1
  27. package/dist/cjs/utils/security.cjs +1 -1
  28. package/dist/cjs/utils/string.cjs +1 -1
  29. package/dist/cjs/utils/table.cjs +1 -0
  30. package/dist/cjs/utils/task.cjs +1 -1
  31. package/dist/cjs/utils/tree.cjs +1 -1
  32. package/dist/cjs/utils/zod.cjs +1 -1
  33. package/dist/es/color/color-ops.js +55 -68
  34. package/dist/es/color/index.js +4 -18
  35. package/dist/es/color/name.js +25 -27
  36. package/dist/es/color/palette.js +70 -82
  37. package/dist/es/constants/color-names.js +1572 -1572
  38. package/dist/es/constants/color-palettes.js +1085 -360
  39. package/dist/es/constants/index.js +3 -8
  40. package/dist/es/index.js +25 -165
  41. package/dist/es/types/color.js +1 -1
  42. package/dist/es/types/common.js +1 -1
  43. package/dist/es/types/deep-keys.js +1 -1
  44. package/dist/es/types/index.js +1 -3
  45. package/dist/es/utils/chrono.js +77 -92
  46. package/dist/es/utils/equal.js +83 -118
  47. package/dist/es/utils/error.js +27 -29
  48. package/dist/es/utils/event.js +27 -51
  49. package/dist/es/utils/format.js +27 -18
  50. package/dist/es/utils/function.js +26 -36
  51. package/dist/es/utils/id.js +21 -21
  52. package/dist/es/utils/index.js +18 -79
  53. package/dist/es/utils/key.js +17 -23
  54. package/dist/es/utils/lib.js +8 -64
  55. package/dist/es/utils/object.js +12 -12
  56. package/dist/es/utils/path.js +37 -58
  57. package/dist/es/utils/pinyin.js +41 -43
  58. package/dist/es/utils/security.js +73 -31
  59. package/dist/es/utils/string.js +19 -7
  60. package/dist/es/utils/table.js +15 -0
  61. package/dist/es/utils/task.js +6 -7
  62. package/dist/es/utils/tree.js +159 -181
  63. package/dist/es/utils/zod.js +7 -7
  64. package/dist/types/constants/color-names.d.ts +2 -2
  65. package/dist/types/constants/color-palettes.d.ts +2 -2
  66. package/dist/types/src/color/color-ops.d.ts +84 -0
  67. package/dist/types/src/color/index.d.ts +3 -0
  68. package/dist/types/src/color/name.d.ts +7 -0
  69. package/dist/types/src/color/palette.d.ts +8 -0
  70. package/dist/types/src/constants/color-names.d.ts +11 -0
  71. package/dist/types/src/constants/color-palettes.d.ts +823 -0
  72. package/dist/types/src/constants/index.d.ts +2 -0
  73. package/dist/types/src/index.d.ts +4 -0
  74. package/dist/types/src/types/color.d.ts +25 -0
  75. package/dist/types/src/types/common.d.ts +29 -0
  76. package/dist/types/src/types/deep-keys.d.ts +37 -0
  77. package/dist/types/src/types/index.d.ts +3 -0
  78. package/dist/types/src/utils/chrono.d.ts +152 -0
  79. package/dist/types/src/utils/equal.d.ts +16 -0
  80. package/dist/types/src/utils/error.d.ts +22 -0
  81. package/dist/types/src/utils/event.d.ts +46 -0
  82. package/dist/types/src/utils/format.d.ts +31 -0
  83. package/dist/types/src/utils/function.d.ts +27 -0
  84. package/dist/types/src/utils/id.d.ts +6 -0
  85. package/dist/types/src/utils/index.d.ts +18 -0
  86. package/dist/types/src/utils/key.d.ts +5 -0
  87. package/dist/types/src/utils/lib.d.ts +5 -0
  88. package/dist/types/src/utils/object.d.ts +9 -0
  89. package/dist/types/src/utils/path.d.ts +13 -0
  90. package/dist/types/src/utils/pinyin.d.ts +40 -0
  91. package/dist/types/src/utils/security.d.ts +60 -0
  92. package/dist/types/src/utils/string.d.ts +15 -0
  93. package/dist/types/src/utils/table.d.ts +25 -0
  94. package/dist/types/src/utils/task.d.ts +4 -0
  95. package/dist/types/src/utils/tree.d.ts +216 -0
  96. package/dist/types/src/utils/zod.d.ts +2 -0
  97. package/dist/types/types/color.d.ts +1 -49
  98. package/dist/types/types/common.d.ts +7 -3
  99. package/dist/types/types/deep-keys.d.ts +28 -0
  100. package/dist/types/utils/chrono.d.ts +3 -13
  101. package/dist/types/utils/error.d.ts +5 -21
  102. package/dist/types/utils/event.d.ts +9 -31
  103. package/dist/types/utils/format.d.ts +0 -2
  104. package/dist/types/utils/function.d.ts +4 -36
  105. package/dist/types/utils/id.d.ts +2 -2
  106. package/dist/types/utils/index.d.ts +1 -0
  107. package/dist/types/utils/key.d.ts +2 -4
  108. package/dist/types/utils/path.d.ts +7 -70
  109. package/dist/types/utils/pinyin.d.ts +2 -3
  110. package/dist/types/utils/security.d.ts +44 -2
  111. package/dist/types/utils/string.d.ts +8 -0
  112. package/dist/types/utils/table.d.ts +25 -0
  113. package/dist/types/utils/task.d.ts +1 -3
  114. package/dist/types/utils/tree.d.ts +8 -0
  115. package/dist/types/utils/zod.d.ts +1 -0
  116. package/package.json +13 -13
@@ -1,36 +1,34 @@
1
+ /*! @vef-framework/shared v2.1.0 made by Venus | 2026-03-27T07:12:59.574Z */
2
+ import { getBaseName as e } from "./path.js";
1
3
  import * as t from "stacktrace-js";
2
- import { getBaseName as o } from "./path.js";
3
- async function i(e, r) {
4
- return await t.fromError(e, {
5
- offline: !0,
6
- filter: r
7
- });
4
+ //#region src/utils/error.ts
5
+ function n(e, n) {
6
+ return t.fromError(e, {
7
+ offline: !0,
8
+ filter: n
9
+ });
8
10
  }
9
- function u(e) {
10
- return !e.fileName || !e.fileName.includes("node_modules");
11
+ function r(e) {
12
+ return !e.fileName || !e.fileName.includes("node_modules");
11
13
  }
12
- async function f(e) {
13
- const a = (await i(e, u)).map((n) => ` at ${n.functionName || "anonymous"} (${n.fileName ? o(n.fileName, !0) : "unknown"}:${n.lineNumber}:${n.columnNumber})`).join(`
14
- `);
15
- return `${e.name}: ${e.message}
16
- ${a}`;
14
+ function i(t) {
15
+ return ` at ${t.functionName || "anonymous"} (${`${t.fileName ? e(t.fileName, !0) : "unknown"}:${t.lineNumber}:${t.columnNumber}`})`;
17
16
  }
18
- async function m(e) {
19
- return await t.get({
20
- offline: !0,
21
- filter: e
22
- });
17
+ async function a(e) {
18
+ let t = (await n(e, r)).map((e) => i(e)).join("\n");
19
+ return `${e.name}: ${e.message}\n${t}`;
20
+ }
21
+ function o(e) {
22
+ return t.get({
23
+ offline: !0,
24
+ filter: e
25
+ });
23
26
  }
24
27
  function s(e) {
25
- return t.getSync({
26
- offline: !0,
27
- filter: e
28
- });
28
+ return t.getSync({
29
+ offline: !0,
30
+ filter: e
31
+ });
29
32
  }
30
- export {
31
- u as filterUserFrame,
32
- m as getCurrentStack,
33
- s as getCurrentStackSync,
34
- f as getSanitizedErrorStack,
35
- i as parseErrorStack
36
- };
33
+ //#endregion
34
+ export { r as filterUserFrame, o as getCurrentStack, s as getCurrentStackSync, a as getSanitizedErrorStack, n as parseErrorStack };
@@ -1,52 +1,28 @@
1
- import r from "mitt";
2
- class s {
3
- /** Private mitt instance for handling the actual event operations */
4
- #t = r();
5
- /**
6
- * Subscribe to an event with a listener function.
7
- * Returns an unsubscribe function for easy cleanup.
8
- *
9
- * @param eventType - The type of event to listen for
10
- * @param eventListener - The function to call when the event is emitted
11
- * @returns A function that removes this specific listener when called
12
- */
13
- on(t, i) {
14
- return this.#t.on(t, i), () => {
15
- this.#t.off(t, i);
16
- };
17
- }
18
- emit(t, i) {
19
- i ? this.#t.emit(t, i) : this.#t.emit(t);
20
- }
21
- /**
22
- * Remove a specific listener for an event type.
23
- * If no listener is provided, removes all listeners for that event type.
24
- *
25
- * @param eventType - The type of event to remove listeners from
26
- * @param eventListener - Optional specific listener to remove
27
- */
28
- off(t, i) {
29
- this.#t.off(t, i);
30
- }
31
- /**
32
- * Remove all event listeners from all event types.
33
- * Useful for cleanup when the emitter is no longer needed.
34
- */
35
- clear() {
36
- this.#t.all.clear();
37
- }
38
- /**
39
- * Get all registered listeners for debugging purposes.
40
- * Returns a Map of event types to their listener arrays.
41
- */
42
- getAllListeners() {
43
- return this.#t.all;
44
- }
45
- }
46
- function l() {
47
- return new s();
48
- }
49
- export {
50
- s as EventEmitter,
51
- l as createEventEmitter
1
+ /*! @vef-framework/shared v2.1.0 made by Venus | 2026-03-27T07:12:59.574Z */
2
+ import e from "mitt";
3
+ //#region src/utils/event.ts
4
+ var t = class {
5
+ #e = e();
6
+ on(e, t) {
7
+ return this.#e.on(e, t), () => {
8
+ this.#e.off(e, t);
9
+ };
10
+ }
11
+ emit(e, t) {
12
+ t === void 0 ? this.#e.emit(e) : this.#e.emit(e, t);
13
+ }
14
+ off(e, t) {
15
+ this.#e.off(e, t);
16
+ }
17
+ clear() {
18
+ this.#e.all.clear();
19
+ }
20
+ getAllListeners() {
21
+ return this.#e.all;
22
+ }
52
23
  };
24
+ function n() {
25
+ return new t();
26
+ }
27
+ //#endregion
28
+ export { t as EventEmitter, n as createEventEmitter };
@@ -1,20 +1,29 @@
1
- const a = ["B", "KB", "MB", "GB", "TB", "PB"];
2
- const N = ["", "K", "M", "B", "T"];
3
- function M(t, r = 2) {
4
- if (t === 0)
5
- return "0 B";
6
- const B = Math.max(r, 0), o = Math.floor(Math.log(t) / Math.log(1024));
7
- return `${Number.parseFloat((t / 1024 ** o).toFixed(B))} ${a[o]}`;
1
+ /*! @vef-framework/shared v2.1.0 made by Venus | 2026-03-27T07:12:59.574Z */
2
+ //#region src/utils/format.ts
3
+ var e = 1024, t = [
4
+ "B",
5
+ "KB",
6
+ "MB",
7
+ "GB",
8
+ "TB",
9
+ "PB"
10
+ ], n = 1e3, r = [
11
+ "",
12
+ "K",
13
+ "M",
14
+ "B",
15
+ "T"
16
+ ], i = Math.log(e), a = Math.log(n);
17
+ function o(n, r = 2) {
18
+ if (n === 0) return "0 B";
19
+ let a = Math.max(r, 0), o = Math.floor(Math.log(n) / i);
20
+ return `${Number.parseFloat((n / e ** o).toFixed(a))} ${t[o]}`;
8
21
  }
9
- function n(t, r = 2) {
10
- if (t === 0)
11
- return "0";
12
- if (t < 1e3)
13
- return t.toString();
14
- const B = Math.max(r, 0), o = Math.floor(Math.log(t) / Math.log(1e3));
15
- return `${Number.parseFloat((t / 1e3 ** o).toFixed(B))} ${N[o]}`;
22
+ function s(e, t = 2) {
23
+ if (e === 0) return "0";
24
+ if (e < n) return e.toString();
25
+ let i = Math.max(t, 0), o = Math.floor(Math.log(e) / a);
26
+ return `${Number.parseFloat((e / n ** o).toFixed(i))} ${r[o]}`;
16
27
  }
17
- export {
18
- M as formatBytes,
19
- n as formatNumber
20
- };
28
+ //#endregion
29
+ export { o as formatBytes, s as formatNumber };
@@ -1,41 +1,31 @@
1
- function m(t) {
2
- return t.constructor.name === "AsyncFunction" || Object.prototype.toString.call(t) === "[object AsyncFunction]" || t.toString().startsWith("async ");
1
+ /*! @vef-framework/shared v2.1.0 made by Venus | 2026-03-27T07:12:59.574Z */
2
+ //#region src/utils/function.ts
3
+ function e(e) {
4
+ let t = e.constructor.name;
5
+ return t === "AsyncFunction" || t === "AsyncGeneratorFunction";
3
6
  }
4
- async function y(t, e, c) {
5
- const {
6
- onInvoke: i,
7
- onSuccess: s,
8
- onError: l,
9
- onFinally: u
10
- } = c, r = t(...e);
11
- if (r instanceof Promise) {
12
- let o;
13
- try {
14
- o = i?.();
15
- const n = await r;
16
- return s?.(n, o), n;
17
- } catch (n) {
18
- throw l?.(n, o), n;
19
- } finally {
20
- u?.(o);
21
- }
22
- } else
23
- return r;
7
+ async function t(e, t, n) {
8
+ let { onInvoke: r, onSuccess: i, onError: a, onFinally: o } = n, s = e(...t);
9
+ if (!(s instanceof Promise)) return s;
10
+ let c = r?.();
11
+ try {
12
+ let e = await s;
13
+ return i?.(e, c), e;
14
+ } catch (e) {
15
+ throw a?.(e, c), e;
16
+ } finally {
17
+ o?.(c);
18
+ }
24
19
  }
25
- function p(t) {
26
- return t;
20
+ function n(e) {
21
+ return e;
27
22
  }
28
- function w(t) {
29
- return () => a(t);
23
+ function r(e) {
24
+ return () => i(e);
30
25
  }
31
- function a(t) {
32
- const e = t ? `${t} not implemented` : "Not implemented";
33
- throw new Error(e);
26
+ function i(e) {
27
+ let t = e ? `${e} not implemented` : "Not implemented";
28
+ throw Error(t);
34
29
  }
35
- export {
36
- w as createThrowNotImplementedFn,
37
- p as identity,
38
- y as invokeAwaitableFn,
39
- m as isAsyncFunction,
40
- a as throwNotImplemented
41
- };
30
+ //#endregion
31
+ export { r as createThrowNotImplementedFn, n as identity, t as invokeAwaitableFn, e as isAsyncFunction, i as throwNotImplemented };
@@ -1,25 +1,25 @@
1
- import { init as r } from "@paralleldrive/cuid2";
2
- import { isNullish as n } from "radashi";
3
- function o() {
4
- return !(n(navigator) || navigator.userAgent.includes("jsdom"));
1
+ /*! @vef-framework/shared v2.1.0 made by Venus | 2026-03-27T07:12:59.574Z */
2
+ import { init as e } from "@paralleldrive/cuid2";
3
+ import { isNullish as t } from "radashi";
4
+ //#region src/utils/id.ts
5
+ var n = "0cd902ccad1f26c27b8db84af2282b7b", r = 16;
6
+ function i() {
7
+ return !t(navigator) && !navigator.userAgent.includes("jsdom");
5
8
  }
6
- let e = r({
7
- length: 16,
8
- // vef-framework default fingerprint
9
- fingerprint: "0cd902ccad1f26c27b8db84af2282b7b"
9
+ var a = e({
10
+ length: r,
11
+ fingerprint: n
10
12
  });
11
- o() && import("@fingerprintjs/fingerprintjs").then(({ load: t }) => t()).then((t) => t.get()).then((t) => {
12
- const i = t.visitorId;
13
- e = r({
14
- length: 16,
15
- fingerprint: i
16
- });
17
- }).catch((t) => {
18
- console.error("Failed to initialize fingerprint:", t);
13
+ i() && import("@fingerprintjs/fingerprintjs").then(({ load: e }) => e()).then((e) => e.get()).then((t) => {
14
+ a = e({
15
+ length: r,
16
+ fingerprint: t.visitorId
17
+ });
18
+ }).catch((e) => {
19
+ console.error("Failed to initialize fingerprint:", e);
19
20
  });
20
- function c() {
21
- return e();
21
+ function o() {
22
+ return a();
22
23
  }
23
- export {
24
- c as generateId
25
- };
24
+ //#endregion
25
+ export { o as generateId };
@@ -1,80 +1,19 @@
1
- import { DEFAULT_DATETIME_FORMAT as o, DEFAULT_DATE_FORMAT as a, DEFAULT_TIME_FORMAT as i, LOCALIZED_DATETIME_FORMAT as m, LOCALIZED_DATE_FORMAT as n, formatDate as s, formatDuration as p, getLocalizedDateTime as T, getNow as f, getNowDateString as l, getNowDateTimeString as g, getNowTimeString as E, getTemporalFormats as A, parseDate as D, tryParseDate as h } from "./chrono.js";
2
- import { isDeepEqual as c, isShallowEqual as F } from "./equal.js";
3
- import { filterUserFrame as S, getCurrentStack as d, getCurrentStackSync as u, getSanitizedErrorStack as w, parseErrorStack as N } from "./error.js";
4
- import { EventEmitter as I, createEventEmitter as _ } from "./event.js";
5
- import { formatBytes as L, formatNumber as R } from "./format.js";
6
- import { createThrowNotImplementedFn as k, identity as v, invokeAwaitableFn as U, isAsyncFunction as C, throwNotImplemented as b } from "./function.js";
7
- import { generateId as q } from "./id.js";
8
- import { hashKey as W } from "./key.js";
9
- import { alwaysFalse as j, alwaysTrue as K } from "./lib.js";
10
- import { mergeWith as H } from "./object.js";
11
- import { formatPath as Q, getBaseName as V, getDirName as X, getExtName as Y, getRelativePath as $, isAbsolutePath as ee, joinPaths as te, normalizePath as re, parsePath as oe, pathSeparator as ae, resolvePath as ie } from "./path.js";
12
- import { getPinyin as ne, getPinyinInitials as se, withPinyin as pe } from "./pinyin.js";
13
- import { decryptUsingRSA as fe, encryptUsingRSA as le } from "./security.js";
14
- import { constantCase as Ee } from "./string.js";
15
- import { scheduleMicrotask as De } from "./task.js";
16
- import { buildTree as xe, filterTree as ce, filterTreeWithAncestors as Fe, findNodeInTree as ye, flattenTree as Se, mapTree as de, traverseTree as ue } from "./tree.js";
1
+ /*! @vef-framework/shared v2.1.0 made by Venus | 2026-03-27T07:12:59.574Z */
2
+ import "./chrono.js";
3
+ import "./equal.js";
4
+ import "./path.js";
5
+ import "./error.js";
6
+ import "./event.js";
7
+ import "./format.js";
8
+ import "./function.js";
9
+ import "./id.js";
10
+ import "./lib.js";
11
+ import "./key.js";
12
+ import "./object.js";
13
+ import "./pinyin.js";
14
+ import "./security.js";
15
+ import "./string.js";
16
+ import "./table.js";
17
+ import "./task.js";
18
+ import "./tree.js";
17
19
  import "./zod.js";
18
- export {
19
- o as DEFAULT_DATETIME_FORMAT,
20
- a as DEFAULT_DATE_FORMAT,
21
- i as DEFAULT_TIME_FORMAT,
22
- I as EventEmitter,
23
- m as LOCALIZED_DATETIME_FORMAT,
24
- n as LOCALIZED_DATE_FORMAT,
25
- j as alwaysFalse,
26
- K as alwaysTrue,
27
- xe as buildTree,
28
- Ee as constantCase,
29
- _ as createEventEmitter,
30
- k as createThrowNotImplementedFn,
31
- fe as decryptUsingRSA,
32
- le as encryptUsingRSA,
33
- ce as filterTree,
34
- Fe as filterTreeWithAncestors,
35
- S as filterUserFrame,
36
- ye as findNodeInTree,
37
- Se as flattenTree,
38
- L as formatBytes,
39
- s as formatDate,
40
- p as formatDuration,
41
- R as formatNumber,
42
- Q as formatPath,
43
- q as generateId,
44
- V as getBaseName,
45
- d as getCurrentStack,
46
- u as getCurrentStackSync,
47
- X as getDirName,
48
- Y as getExtName,
49
- T as getLocalizedDateTime,
50
- f as getNow,
51
- l as getNowDateString,
52
- g as getNowDateTimeString,
53
- E as getNowTimeString,
54
- ne as getPinyin,
55
- se as getPinyinInitials,
56
- $ as getRelativePath,
57
- w as getSanitizedErrorStack,
58
- A as getTemporalFormats,
59
- W as hashKey,
60
- v as identity,
61
- U as invokeAwaitableFn,
62
- ee as isAbsolutePath,
63
- C as isAsyncFunction,
64
- c as isDeepEqual,
65
- F as isShallowEqual,
66
- te as joinPaths,
67
- de as mapTree,
68
- H as mergeWith,
69
- re as normalizePath,
70
- D as parseDate,
71
- N as parseErrorStack,
72
- oe as parsePath,
73
- ae as pathSeparator,
74
- ie as resolvePath,
75
- De as scheduleMicrotask,
76
- b as throwNotImplemented,
77
- ue as traverseTree,
78
- h as tryParseDate,
79
- pe as withPinyin
80
- };
@@ -1,24 +1,18 @@
1
- import "./lib.js";
2
- import { isPlainObject as c } from "radashi";
3
- function m(n) {
4
- return JSON.stringify(
5
- n,
6
- (f, o) => {
7
- if (c(o)) {
8
- const e = Object.keys(o).toSorted(), y = Object.getOwnPropertySymbols(o), r = {};
9
- for (const t of e)
10
- r[t] = o[t];
11
- const s = {};
12
- for (const t of y)
13
- s[t.toString()] = o[t];
14
- for (const t of Object.keys(s).toSorted())
15
- r[`@@${t}`] = s[t];
16
- return r;
17
- }
18
- return o;
19
- }
20
- );
1
+ /*! @vef-framework/shared v2.1.0 made by Venus | 2026-03-27T07:12:59.574Z */
2
+ import { isPlainObject as e } from "./lib.js";
3
+ //#region src/utils/key.ts
4
+ function t(e) {
5
+ let t = {}, n = Object.keys(e).toSorted(), r = Object.getOwnPropertySymbols(e);
6
+ for (let r of n) t[r] = e[r];
7
+ let i = r.map((t) => ({
8
+ key: t.toString(),
9
+ value: e[t]
10
+ })).toSorted((e, t) => e.key.localeCompare(t.key));
11
+ for (let { key: e, value: n } of i) t[`@@${e}`] = n;
12
+ return t;
21
13
  }
22
- export {
23
- m as hashKey
24
- };
14
+ function n(n) {
15
+ return JSON.stringify(n, (n, r) => e(r) ? t(r) : r);
16
+ }
17
+ //#endregion
18
+ export { n as hashKey };
@@ -1,64 +1,8 @@
1
- import { always as s } from "radashi";
2
- import { always as r, assign as n, camel as l, capitalize as m, cluster as c, debounce as p, first as u, get as y, isArray as g, isBigInt as f, isBoolean as b, isDate as d, isEmpty as k, isError as S, isFloat as x, isFunction as w, isInt as C, isIntString as F, isMap as I, isNullish as h, isNumber as E, isObject as P, isPlainObject as j, isPrimitive as z, isPromise as B, isRegExp as D, isSet as M, isString as N, isSymbol as O, isUndefined as Q, isWeakMap as W, isWeakSet as q, dash as v, last as A, max as R, memo as T, min as U, noop as G, omit as H, once as J, pascal as K, pick as L, set as V, similarity as X, snake as Y, sum as Z, template as _, throttle as $, toFloat as ss, toInt as es, trim as is, unique as as } from "radashi";
3
- import { klona as os } from "klona";
4
- import { parse as ns, stringify as ls } from "qs";
5
- const i = s(!0), a = s(!1);
6
- export {
7
- r as always,
8
- a as alwaysFalse,
9
- i as alwaysTrue,
10
- n as assign,
11
- l as camelCase,
12
- m as capitalize,
13
- os as cloneDeep,
14
- c as cluster,
15
- p as debounce,
16
- ns as decodeQueryString,
17
- ls as encodeQueryString,
18
- u as first,
19
- y as get,
20
- g as isArray,
21
- f as isBigInt,
22
- b as isBoolean,
23
- d as isDate,
24
- k as isEmpty,
25
- S as isError,
26
- x as isFloat,
27
- w as isFunction,
28
- C as isInt,
29
- F as isIntString,
30
- I as isMap,
31
- h as isNullish,
32
- E as isNumber,
33
- P as isObject,
34
- j as isPlainObject,
35
- z as isPrimitive,
36
- B as isPromise,
37
- D as isRegExp,
38
- M as isSet,
39
- N as isString,
40
- O as isSymbol,
41
- Q as isUndefined,
42
- W as isWeakMap,
43
- q as isWeakSet,
44
- v as kebabCase,
45
- A as last,
46
- R as max,
47
- T as memoize,
48
- U as min,
49
- G as noop,
50
- H as omit,
51
- J as once,
52
- K as pascalCase,
53
- L as pick,
54
- V as set,
55
- X as similarity,
56
- Y as snakeCase,
57
- Z as sum,
58
- _ as template,
59
- $ as throttle,
60
- ss as toFloat,
61
- es as toInt,
62
- is as trim,
63
- as as unique
64
- };
1
+ /*! @vef-framework/shared v2.1.0 made by Venus | 2026-03-27T07:12:59.574Z */
2
+ import { always as e, always as t, assign as n, camel as r, capitalize as i, cluster as a, dash as o, debounce as s, first as c, get as l, isArray as u, isBigInt as d, isBoolean as f, isDate as p, isEmpty as m, isError as h, isFloat as g, isFunction as _, isInt as v, isIntString as y, isMap as b, isNullish as x, isNumber as S, isObject as C, isPlainObject as w, isPrimitive as T, isPromise as E, isRegExp as D, isSet as O, isString as k, isSymbol as A, isUndefined as j, isWeakMap as M, isWeakSet as N, last as P, max as F, memo as I, min as L, noop as R, omit as z, once as B, pascal as V, pick as H, set as U, similarity as W, snake as G, sum as K, template as q, throttle as J, toFloat as Y, toInt as X, trim as Z, unique as Q } from "radashi";
3
+ import { klona as $ } from "klona";
4
+ import { parse as ee, stringify as te } from "qs";
5
+ //#region src/utils/lib.ts
6
+ var ne = e(!0), re = e(!1);
7
+ //#endregion
8
+ export { t as always, re as alwaysFalse, ne as alwaysTrue, n as assign, r as camelCase, i as capitalize, $ as cloneDeep, a as cluster, s as debounce, ee as decodeQueryString, te as encodeQueryString, c as first, l as get, u as isArray, d as isBigInt, f as isBoolean, p as isDate, m as isEmpty, h as isError, g as isFloat, _ as isFunction, v as isInt, y as isIntString, b as isMap, x as isNullish, S as isNumber, C as isObject, w as isPlainObject, T as isPrimitive, E as isPromise, D as isRegExp, O as isSet, k as isString, A as isSymbol, j as isUndefined, M as isWeakMap, N as isWeakSet, o as kebabCase, P as last, F as max, I as memoize, L as min, R as noop, z as omit, B as once, V as pascalCase, H as pick, U as set, W as similarity, G as snakeCase, K as sum, q as template, J as throttle, Y as toFloat, X as toInt, Z as trim, Q as unique };
@@ -1,13 +1,13 @@
1
- import "./lib.js";
2
- import { isUndefined as o } from "radashi";
3
- function m(e, r, f = !1) {
4
- const s = Object.entries(r).filter(([t, i]) => !o(i));
5
- for (const [t, i] of s) {
6
- const n = t;
7
- (f || o(e[n])) && (e[n] = i);
8
- }
9
- return e;
1
+ /*! @vef-framework/shared v2.1.0 made by Venus | 2026-03-27T07:12:59.574Z */
2
+ import { isUndefined as e } from "./lib.js";
3
+ //#region src/utils/object.ts
4
+ function t(t, n, r = !1) {
5
+ for (let [i, a] of Object.entries(n)) {
6
+ if (e(a)) continue;
7
+ let n = i;
8
+ (r || e(t[n])) && (t[n] = a);
9
+ }
10
+ return t;
10
11
  }
11
- export {
12
- m as mergeWith
13
- };
12
+ //#endregion
13
+ export { t as mergeWith };
@@ -1,58 +1,37 @@
1
- import o from "path-browserify";
2
- const {
3
- basename: a,
4
- dirname: u,
5
- extname: n,
6
- isAbsolute: i,
7
- join: s,
8
- normalize: f,
9
- parse: c,
10
- relative: m,
11
- resolve: h,
12
- format: l,
13
- sep: P
14
- } = o;
15
- function v(t, e = !0) {
16
- const r = e ? void 0 : n(t);
17
- return a(t, r);
18
- }
19
- function g(t) {
20
- return n(t);
21
- }
22
- function x(t) {
23
- return u(t);
24
- }
25
- function b(...t) {
26
- return s(...t);
27
- }
28
- function N(t) {
29
- return i(t);
30
- }
31
- function d(t) {
32
- return f(t);
33
- }
34
- function j(t) {
35
- return c(t);
36
- }
37
- function z(t) {
38
- return l(t);
39
- }
40
- function A(t, e) {
41
- return m(t, e);
42
- }
43
- function B(...t) {
44
- return h(...t);
45
- }
46
- export {
47
- z as formatPath,
48
- v as getBaseName,
49
- x as getDirName,
50
- g as getExtName,
51
- A as getRelativePath,
52
- N as isAbsolutePath,
53
- b as joinPaths,
54
- d as normalizePath,
55
- j as parsePath,
56
- P as pathSeparator,
57
- B as resolvePath
58
- };
1
+ /*! @vef-framework/shared v2.1.0 made by Venus | 2026-03-27T07:12:59.574Z */
2
+ import e from "path-browserify";
3
+ //#region src/utils/path.ts
4
+ function t(t, n = !0) {
5
+ let r = n ? void 0 : e.extname(t);
6
+ return e.basename(t, r);
7
+ }
8
+ function n(t) {
9
+ return e.extname(t);
10
+ }
11
+ function r(t) {
12
+ return e.dirname(t);
13
+ }
14
+ function i(...t) {
15
+ return e.join(...t);
16
+ }
17
+ function a(t) {
18
+ return e.isAbsolute(t);
19
+ }
20
+ function o(t) {
21
+ return e.normalize(t);
22
+ }
23
+ function s(t) {
24
+ return e.parse(t);
25
+ }
26
+ function c(t) {
27
+ return e.format(t);
28
+ }
29
+ function l(t, n) {
30
+ return e.relative(t, n);
31
+ }
32
+ function u(...t) {
33
+ return e.resolve(...t);
34
+ }
35
+ var d = e.sep;
36
+ //#endregion
37
+ export { c as formatPath, t as getBaseName, r as getDirName, n as getExtName, l as getRelativePath, a as isAbsolutePath, i as joinPaths, o as normalizePath, s as parsePath, d as pathSeparator, u as resolvePath };