toolbox-x 2.4.4 → 2.4.7

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 (98) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/{Color-D6qMZgDm.d.mts → Color-B94hFsf4.d.mts} +1 -1
  3. package/dist/{Color-SUPeP6fO.d.cts → Color-CSi8fu6f.d.cts} +1 -1
  4. package/dist/{Stylog-B8sKWvn_.d.mts → Stylog-CFsO-yrJ.d.cts} +1 -1
  5. package/dist/{Stylog-DdPP_CJf.d.cts → Stylog-DyGx1l54.d.mts} +1 -1
  6. package/dist/{area-kW5kJaQq.d.cts → area-CQG9fGeG.d.cts} +1 -1
  7. package/dist/{area-CaK6hFzW.d.mts → area-XvKQTCT6.d.mts} +1 -1
  8. package/dist/{array-CbAKXvhH.d.mts → array-9ewbYFv0.d.mts} +1 -1
  9. package/dist/{array-EVkwcL_k.d.cts → array-DilGQJmC.d.cts} +1 -1
  10. package/dist/{basics-CUzK7wFN.cjs → basics-BGu9ygZK.cjs} +6 -6
  11. package/dist/{basics-KYRpMQNe.mjs → basics-Bd2mj0uG.mjs} +6 -6
  12. package/dist/{basics-BuHQJCNG.d.mts → basics-RNENr17b.d.mts} +13 -4
  13. package/dist/{basics-CLwtIxap.d.cts → basics-WMFx1CZ0.d.cts} +13 -4
  14. package/dist/{case-Ce8HJI8I.d.mts → case-C5giLKOG.d.mts} +1 -1
  15. package/dist/{case-BmB2aGyp.d.cts → case-Ts8jV2Wz.d.cts} +1 -1
  16. package/dist/change-case.d.cts +1 -1
  17. package/dist/change-case.d.mts +1 -1
  18. package/dist/colors/index.d.cts +2 -2
  19. package/dist/colors/index.d.mts +2 -2
  20. package/dist/constants.d.cts +1 -1
  21. package/dist/constants.d.mts +1 -1
  22. package/dist/converter/index.d.cts +2 -2
  23. package/dist/converter/index.d.mts +2 -2
  24. package/dist/date/index.d.cts +1 -1
  25. package/dist/date/index.d.mts +1 -1
  26. package/dist/dom/index.cjs +2 -2
  27. package/dist/dom/index.d.cts +5 -5
  28. package/dist/dom/index.d.mts +5 -5
  29. package/dist/dom/index.mjs +2 -2
  30. package/dist/{form-D_5I437n.d.mts → form-CbfeSccF.d.cts} +3 -3
  31. package/dist/{form-DhsFvo_D.d.cts → form-Dd-YP3DS.d.mts} +3 -3
  32. package/dist/guards/index.cjs +2 -2
  33. package/dist/guards/index.d.cts +4 -4
  34. package/dist/guards/index.d.mts +4 -4
  35. package/dist/guards/index.mjs +2 -2
  36. package/dist/hash/index.cjs +1 -1
  37. package/dist/hash/index.d.cts +4 -4
  38. package/dist/hash/index.d.mts +4 -4
  39. package/dist/hash/index.mjs +1 -1
  40. package/dist/{hash-2mygGWLk.d.mts → hash-BCZWgYS7.d.mts} +1 -1
  41. package/dist/{hash-DHawpylk.d.cts → hash-DDlZ_kb-.d.cts} +1 -1
  42. package/dist/http-status/index.d.cts +2 -2
  43. package/dist/http-status/index.d.mts +2 -2
  44. package/dist/{http-status-BXNuC-33.d.mts → http-status-DRA3A_qa.d.mts} +1 -1
  45. package/dist/{http-status-CpYDj2wq.d.cts → http-status-JhjgqpW3.d.cts} +1 -1
  46. package/dist/{object-DyVg8BFt.d.cts → index-C_v1d6lq.d.cts} +1614 -1610
  47. package/dist/{object-DyVg8BFt.d.mts → index-C_v1d6lq.d.mts} +1614 -1610
  48. package/dist/{index-D00Uqm9S.d.cts → index-Cs1P7sOW.d.mts} +2 -2
  49. package/dist/{index-BbBnKdBb.d.mts → index-VeKwBmaa.d.cts} +2 -2
  50. package/dist/index.cjs +3 -3
  51. package/dist/index.d.cts +7 -7
  52. package/dist/index.d.mts +7 -7
  53. package/dist/index.mjs +3 -3
  54. package/dist/paginator.cjs +2 -2
  55. package/dist/paginator.d.cts +5 -5
  56. package/dist/paginator.d.mts +5 -5
  57. package/dist/paginator.mjs +2 -2
  58. package/dist/{query-iJflCkq1.cjs → query-Bo-_PC3j.cjs} +1 -1
  59. package/dist/{query-B8VPCIKA.mjs → query-CLkSagHs.mjs} +1 -1
  60. package/dist/{query-BMtRmMSC.d.cts → query-Dh3MANjJ.d.mts} +2 -2
  61. package/dist/{query-C-r5ZbO-.d.mts → query-ke72ZE4p.d.cts} +2 -2
  62. package/dist/{string-edtZyJHf.d.mts → string-COB8mrdF.d.mts} +14 -3
  63. package/dist/{string-Ok_IMpHP.d.cts → string-s6NO_UGp.d.cts} +14 -3
  64. package/dist/stylog/index.d.cts +2 -2
  65. package/dist/stylog/index.d.mts +2 -2
  66. package/dist/types/array.d.cts +1 -1
  67. package/dist/types/array.d.mts +1 -1
  68. package/dist/types/colors.d.cts +1 -1
  69. package/dist/types/colors.d.mts +1 -1
  70. package/dist/types/converter.d.cts +1 -1
  71. package/dist/types/converter.d.mts +1 -1
  72. package/dist/types/date.d.cts +1 -1
  73. package/dist/types/date.d.mts +1 -1
  74. package/dist/types/form.d.cts +1 -1
  75. package/dist/types/form.d.mts +1 -1
  76. package/dist/types/hash.d.cts +1 -1
  77. package/dist/types/hash.d.mts +1 -1
  78. package/dist/types/http-status.d.cts +1 -1
  79. package/dist/types/http-status.d.mts +1 -1
  80. package/dist/types/index.d.cts +2 -2
  81. package/dist/types/index.d.mts +2 -2
  82. package/dist/types/number.d.cts +1 -1
  83. package/dist/types/number.d.mts +1 -1
  84. package/dist/types/object.d.cts +1 -1
  85. package/dist/types/object.d.mts +1 -1
  86. package/dist/types/pluralizer.d.cts +1 -1
  87. package/dist/types/pluralizer.d.mts +1 -1
  88. package/dist/types/string.d.cts +2 -2
  89. package/dist/types/string.d.mts +2 -2
  90. package/dist/types/stylog.d.cts +1 -1
  91. package/dist/types/stylog.d.mts +1 -1
  92. package/dist/types/utils.d.cts +1 -1
  93. package/dist/types/utils.d.mts +1 -1
  94. package/dist/{utils-BxZGABHS.cjs → utils-BzeK3wO9.cjs} +14 -7
  95. package/dist/{utils-DcRr0A7B.mjs → utils-DnyVgO8p.mjs} +14 -7
  96. package/dist/{uuid-CMNRM9NO.d.cts → uuid-B0xPyeI7.d.cts} +3 -2
  97. package/dist/{uuid-DvQsIl9p.d.mts → uuid-DCvH3YMX.d.mts} +3 -2
  98. package/package.json +1 -1
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { A as OmitPath, C as LeafValue, D as NumericDotKey, E as NestedPrimitiveKey, F as SanitizeOptions, I as SanitizedData, L as StrictObject, M as ParsedQueryGeneric, N as QueryObject, O as ObjectEntry, P as QueryObjectValue, S as KeyForObject, T as NestedKeyString, _ as FlattenLeafKey, a as ConvertObjectOptions, b as GenericObjectPrimitive, c as DeepKeys, d as DotNotationKeyStrict, f as DotValue, g as FlattenDotValue, h as FlattenDotKey, i as $Record, j as ParsedQuery, k as Objects, l as DeepKeysTuple, m as ExtractStringKey, n as $DoesPathStartWith, o as ConvertedObject, p as ExpandAll, r as $JoinDotKey, s as CountryDetails, t as $Countries, u as DotNotationKey, v as FlattenLeafValue, w as MergeAll, x as KeyForArray, y as GenericObject } from "../object-DyVg8BFt.cjs";
17
+ import { $r as KeyForObject, Br as DeepKeysTuple, Fr as $Record, Gr as ExtractStringKey, Hr as DotNotationKeyStrict, Ir as ConvertObjectOptions, Jr as FlattenLeafKey, Kr as FlattenDotKey, Lr as ConvertedObject, Mr as $Countries, Nr as $DoesPathStartWith, Pr as $JoinDotKey, Qr as KeyForArray, Rr as CountryDetails, Ur as DotValue, Vr as DotNotationKey, Wr as ExpandAll, Xr as GenericObject, Yr as FlattenLeafValue, Zr as GenericObjectPrimitive, ai as ObjectEntry, ci as ParsedQuery, di as QueryObjectValue, ei as LeafValue, fi as SanitizeOptions, ii as NumericDotKey, li as ParsedQueryGeneric, mi as StrictObject, ni as NestedKeyString, oi as Objects, pi as SanitizedData, qr as FlattenDotValue, ri as NestedPrimitiveKey, si as OmitPath, ti as MergeAll, ui as QueryObject, zr as DeepKeys } from "../index-C_v1d6lq.cjs";
18
18
  export { $Countries, $DoesPathStartWith, $JoinDotKey, $Record, ConvertObjectOptions, ConvertedObject, CountryDetails, DeepKeys, DeepKeysTuple, DotNotationKey, DotNotationKeyStrict, DotValue, ExpandAll, ExtractStringKey, FlattenDotKey, FlattenDotValue, FlattenLeafKey, FlattenLeafValue, GenericObject, GenericObjectPrimitive, KeyForArray, KeyForObject, LeafValue, MergeAll, NestedKeyString, NestedPrimitiveKey, NumericDotKey, ObjectEntry, Objects, OmitPath, ParsedQuery, ParsedQueryGeneric, QueryObject, QueryObjectValue, SanitizeOptions, SanitizedData, StrictObject };
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { A as OmitPath, C as LeafValue, D as NumericDotKey, E as NestedPrimitiveKey, F as SanitizeOptions, I as SanitizedData, L as StrictObject, M as ParsedQueryGeneric, N as QueryObject, O as ObjectEntry, P as QueryObjectValue, S as KeyForObject, T as NestedKeyString, _ as FlattenLeafKey, a as ConvertObjectOptions, b as GenericObjectPrimitive, c as DeepKeys, d as DotNotationKeyStrict, f as DotValue, g as FlattenDotValue, h as FlattenDotKey, i as $Record, j as ParsedQuery, k as Objects, l as DeepKeysTuple, m as ExtractStringKey, n as $DoesPathStartWith, o as ConvertedObject, p as ExpandAll, r as $JoinDotKey, s as CountryDetails, t as $Countries, u as DotNotationKey, v as FlattenLeafValue, w as MergeAll, x as KeyForArray, y as GenericObject } from "../object-DyVg8BFt.mjs";
17
+ import { $r as KeyForObject, Br as DeepKeysTuple, Fr as $Record, Gr as ExtractStringKey, Hr as DotNotationKeyStrict, Ir as ConvertObjectOptions, Jr as FlattenLeafKey, Kr as FlattenDotKey, Lr as ConvertedObject, Mr as $Countries, Nr as $DoesPathStartWith, Pr as $JoinDotKey, Qr as KeyForArray, Rr as CountryDetails, Ur as DotValue, Vr as DotNotationKey, Wr as ExpandAll, Xr as GenericObject, Yr as FlattenLeafValue, Zr as GenericObjectPrimitive, ai as ObjectEntry, ci as ParsedQuery, di as QueryObjectValue, ei as LeafValue, fi as SanitizeOptions, ii as NumericDotKey, li as ParsedQueryGeneric, mi as StrictObject, ni as NestedKeyString, oi as Objects, pi as SanitizedData, qr as FlattenDotValue, ri as NestedPrimitiveKey, si as OmitPath, ti as MergeAll, ui as QueryObject, zr as DeepKeys } from "../index-C_v1d6lq.mjs";
18
18
  export { $Countries, $DoesPathStartWith, $JoinDotKey, $Record, ConvertObjectOptions, ConvertedObject, CountryDetails, DeepKeys, DeepKeysTuple, DotNotationKey, DotNotationKeyStrict, DotValue, ExpandAll, ExtractStringKey, FlattenDotKey, FlattenDotValue, FlattenLeafKey, FlattenLeafValue, GenericObject, GenericObjectPrimitive, KeyForArray, KeyForObject, LeafValue, MergeAll, NestedKeyString, NestedPrimitiveKey, NumericDotKey, ObjectEntry, Objects, OmitPath, ParsedQuery, ParsedQueryGeneric, QueryObject, QueryObjectValue, SanitizeOptions, SanitizedData, StrictObject };
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { ct as Numeric } from "../object-DyVg8BFt.cjs";
17
+ import { E as Numeric } from "../index-C_v1d6lq.cjs";
18
18
 
19
19
  //#region src/types/pluralizer.d.ts
20
20
  /** A pair of RegExp and replacement for pluralization rules */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { ct as Numeric } from "../object-DyVg8BFt.mjs";
17
+ import { E as Numeric } from "../index-C_v1d6lq.mjs";
18
18
 
19
19
  //#region src/types/pluralizer.d.ts
20
20
  /** A pair of RegExp and replacement for pluralization rules */
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { A as HighlightedText, B as RemovedDiffLine, C as CountryShortISO, D as DiffResult, E as DiffLineType, F as PascalCase, G as TitleCase, H as SnakeCase, I as PascalSnakeCase, J as UnchangedOrModifiedDiffLine, K as TrainCase, L as PathCase, M as IsAlphabet, N as KebabCase, O as DiffStats, P as MaskOptions, R as QueryString, S as CountryName, T as DiffLineDetails, U as SpecialCharacter, V as SentenceCase, W as StringCaseOptions, _ as CharDiffResult, a as $NormalizeString, b as CountryCode, c as $TrimRight, d as AddedDiffLine, f as Alphabet, g as CaseFormat, h as CapitalizeOptions, i as $LowercaseWords, j as Includes, k as DotCase, l as $UppercaseWords, m as CamelCase, n as $EnsureString, o as $TitleCaseWords, p as AnagramOptions, q as Trim, r as $LowerCaseWord, s as $TrimLeft, t as $CapitalizeWords, u as $WidenEmpty, v as ConstantCase, w as DiffLine, x as CountryISO, y as Country, z as RandomIdOptions } from "../string-Ok_IMpHP.cjs";
18
- export { $CapitalizeWords, $EnsureString, $LowerCaseWord, $LowercaseWords, $NormalizeString, $TitleCaseWords, $TrimLeft, $TrimRight, $UppercaseWords, $WidenEmpty, AddedDiffLine, Alphabet, AnagramOptions, CamelCase, CapitalizeOptions, CaseFormat, CharDiffResult, ConstantCase, Country, CountryCode, CountryISO, CountryName, CountryShortISO, DiffLine, DiffLineDetails, DiffLineType, DiffResult, DiffStats, DotCase, HighlightedText, Includes, IsAlphabet, KebabCase, MaskOptions, PascalCase, PascalSnakeCase, PathCase, QueryString, RandomIdOptions, RemovedDiffLine, SentenceCase, SnakeCase, SpecialCharacter, StringCaseOptions, TitleCase, TrainCase, Trim, UnchangedOrModifiedDiffLine };
17
+ import { A as HighlightedText, B as RemovedDiffLine, C as CountryShortISO, D as DiffResult, E as DiffLineType, F as PascalCase, G as TitleCase, H as SnakeCase, I as PascalSnakeCase, J as TruncateOptions, K as TrainCase, L as PathCase, M as IsAlphabet, N as KebabCase, O as DiffStats, P as MaskOptions, R as QueryString, S as CountryName, T as DiffLineDetails, U as SpecialCharacter, V as SentenceCase, W as StringCaseOptions, Y as UnchangedOrModifiedDiffLine, _ as CharDiffResult, a as $NormalizeString, b as CountryCode, c as $TrimRight, d as AddedDiffLine, f as Alphabet, g as CaseFormat, h as CapitalizeOptions, i as $LowercaseWords, j as Includes, k as DotCase, l as $UppercaseWords, m as CamelCase, n as $EnsureString, o as $TitleCaseWords, p as AnagramOptions, q as Trim, r as $LowerCaseWord, s as $TrimLeft, t as $CapitalizeWords, u as $WidenEmpty, v as ConstantCase, w as DiffLine, x as CountryISO, y as Country, z as RandomIdOptions } from "../string-s6NO_UGp.cjs";
18
+ export { $CapitalizeWords, $EnsureString, $LowerCaseWord, $LowercaseWords, $NormalizeString, $TitleCaseWords, $TrimLeft, $TrimRight, $UppercaseWords, $WidenEmpty, AddedDiffLine, Alphabet, AnagramOptions, CamelCase, CapitalizeOptions, CaseFormat, CharDiffResult, ConstantCase, Country, CountryCode, CountryISO, CountryName, CountryShortISO, DiffLine, DiffLineDetails, DiffLineType, DiffResult, DiffStats, DotCase, HighlightedText, Includes, IsAlphabet, KebabCase, MaskOptions, PascalCase, PascalSnakeCase, PathCase, QueryString, RandomIdOptions, RemovedDiffLine, SentenceCase, SnakeCase, SpecialCharacter, StringCaseOptions, TitleCase, TrainCase, Trim, TruncateOptions, UnchangedOrModifiedDiffLine };
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { A as HighlightedText, B as RemovedDiffLine, C as CountryShortISO, D as DiffResult, E as DiffLineType, F as PascalCase, G as TitleCase, H as SnakeCase, I as PascalSnakeCase, J as UnchangedOrModifiedDiffLine, K as TrainCase, L as PathCase, M as IsAlphabet, N as KebabCase, O as DiffStats, P as MaskOptions, R as QueryString, S as CountryName, T as DiffLineDetails, U as SpecialCharacter, V as SentenceCase, W as StringCaseOptions, _ as CharDiffResult, a as $NormalizeString, b as CountryCode, c as $TrimRight, d as AddedDiffLine, f as Alphabet, g as CaseFormat, h as CapitalizeOptions, i as $LowercaseWords, j as Includes, k as DotCase, l as $UppercaseWords, m as CamelCase, n as $EnsureString, o as $TitleCaseWords, p as AnagramOptions, q as Trim, r as $LowerCaseWord, s as $TrimLeft, t as $CapitalizeWords, u as $WidenEmpty, v as ConstantCase, w as DiffLine, x as CountryISO, y as Country, z as RandomIdOptions } from "../string-edtZyJHf.mjs";
18
- export { $CapitalizeWords, $EnsureString, $LowerCaseWord, $LowercaseWords, $NormalizeString, $TitleCaseWords, $TrimLeft, $TrimRight, $UppercaseWords, $WidenEmpty, AddedDiffLine, Alphabet, AnagramOptions, CamelCase, CapitalizeOptions, CaseFormat, CharDiffResult, ConstantCase, Country, CountryCode, CountryISO, CountryName, CountryShortISO, DiffLine, DiffLineDetails, DiffLineType, DiffResult, DiffStats, DotCase, HighlightedText, Includes, IsAlphabet, KebabCase, MaskOptions, PascalCase, PascalSnakeCase, PathCase, QueryString, RandomIdOptions, RemovedDiffLine, SentenceCase, SnakeCase, SpecialCharacter, StringCaseOptions, TitleCase, TrainCase, Trim, UnchangedOrModifiedDiffLine };
17
+ import { A as HighlightedText, B as RemovedDiffLine, C as CountryShortISO, D as DiffResult, E as DiffLineType, F as PascalCase, G as TitleCase, H as SnakeCase, I as PascalSnakeCase, J as TruncateOptions, K as TrainCase, L as PathCase, M as IsAlphabet, N as KebabCase, O as DiffStats, P as MaskOptions, R as QueryString, S as CountryName, T as DiffLineDetails, U as SpecialCharacter, V as SentenceCase, W as StringCaseOptions, Y as UnchangedOrModifiedDiffLine, _ as CharDiffResult, a as $NormalizeString, b as CountryCode, c as $TrimRight, d as AddedDiffLine, f as Alphabet, g as CaseFormat, h as CapitalizeOptions, i as $LowercaseWords, j as Includes, k as DotCase, l as $UppercaseWords, m as CamelCase, n as $EnsureString, o as $TitleCaseWords, p as AnagramOptions, q as Trim, r as $LowerCaseWord, s as $TrimLeft, t as $CapitalizeWords, u as $WidenEmpty, v as ConstantCase, w as DiffLine, x as CountryISO, y as Country, z as RandomIdOptions } from "../string-COB8mrdF.mjs";
18
+ export { $CapitalizeWords, $EnsureString, $LowerCaseWord, $LowercaseWords, $NormalizeString, $TitleCaseWords, $TrimLeft, $TrimRight, $UppercaseWords, $WidenEmpty, AddedDiffLine, Alphabet, AnagramOptions, CamelCase, CapitalizeOptions, CaseFormat, CharDiffResult, ConstantCase, Country, CountryCode, CountryISO, CountryName, CountryShortISO, DiffLine, DiffLineDetails, DiffLineType, DiffResult, DiffStats, DotCase, HighlightedText, Includes, IsAlphabet, KebabCase, MaskOptions, PascalCase, PascalSnakeCase, PathCase, QueryString, RandomIdOptions, RemovedDiffLine, SentenceCase, SnakeCase, SpecialCharacter, StringCaseOptions, TitleCase, TrainCase, Trim, TruncateOptions, UnchangedOrModifiedDiffLine };
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { a as AnsiSequence, c as Styles, i as Ansi16Value, l as StylogChain, o as BGColor, r as Ansi16Color, s as CSS16Color, u as TextStyle } from "../Stylog-DdPP_CJf.cjs";
17
+ import { a as AnsiSequence, c as Styles, i as Ansi16Value, l as StylogChain, o as BGColor, r as Ansi16Color, s as CSS16Color, u as TextStyle } from "../Stylog-CFsO-yrJ.cjs";
18
18
  export { Ansi16Color, Ansi16Value, AnsiSequence, BGColor, CSS16Color, Styles, StylogChain, TextStyle };
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { a as AnsiSequence, c as Styles, i as Ansi16Value, l as StylogChain, o as BGColor, r as Ansi16Color, s as CSS16Color, u as TextStyle } from "../Stylog-B8sKWvn_.mjs";
17
+ import { a as AnsiSequence, c as Styles, i as Ansi16Value, l as StylogChain, o as BGColor, r as Ansi16Color, s as CSS16Color, u as TextStyle } from "../Stylog-DyGx1l54.mjs";
18
18
  export { Ansi16Color, Ansi16Value, AnsiSequence, BGColor, CSS16Color, Styles, StylogChain, TextStyle };
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $r as RenameKeys, Ar as FromMetaOptions, Br as OmitByValue, Cr as ArrayToTuple, Dr as DeepPartialAll, Er as DeepPartial, Fr as KeysOfUnion, Gr as PickByValue, Hr as PageListOptions, Ir as LooseLiteral, Jr as PropertyOptional, Kr as Pop, Lr as MapObjectValues, Mr as IsStrictObject, Nr as Join, Or as ExtractOptional, Pr as Keyof, Qr as RemoveNever, Rr as Merge, Sr as ArrayToStringOptions, Tr as DeepKeyof, Ur as PaginatorMeta, Vr as OneOf, Wr as PaginatorOptions, Xr as ProtoMethodOptions, Yr as PropertyRequired, Zr as RangeTuple, _r as $Subtract, ai as RequireExactly, br as ArrayOfObjectsToStringOptions, ci as Tuple, di as ValueOf, dr as $BuildTuple, ei as Repeat, fi as ValueOptional, fr as $DeepPartial, gr as $Range, hr as $JoinRepeat, ii as RequireBetween, jr as Immutable, kr as ExtractRequired, li as TupleOf, mr as $Forbid, ni as ReplaceFirst, oi as RequireOnly, pr as $Expand, qr as Prettify, ri as RequireAtLeast, si as Split, ti as Replace, ui as TupleToUnion, vr as $UnionToIntersection, wr as Cast, xr as ArrayOfPrimitivesToStringOptions, yr as $Without, zr as Mutable } from "../object-DyVg8BFt.cjs";
17
+ import { $n as Keyof, An as $BuildTuple, Ar as ValueOf, Bn as ArrayOfPrimitivesToStringOptions, Cr as RequireBetween, Dr as Tuple, Er as Split, Fn as $Range, Gn as DeepPartial, Hn as ArrayToTuple, In as $Subtract, Jn as ExtractRequired, Kn as DeepPartialAll, Ln as $UnionToIntersection, Mn as $Expand, Nn as $Forbid, Or as TupleOf, Pn as $JoinRepeat, Qn as Join, Rn as $Without, Sr as RequireAtLeast, Tr as RequireOnly, Un as Cast, Vn as ArrayToStringOptions, Wn as DeepKeyof, Xn as Immutable, Yn as FromMetaOptions, Zn as IsStrictObject, _r as RemoveNever, ar as OmitByValue, br as Replace, cr as PaginatorMeta, dr as Pop, er as KeysOfUnion, fr as Prettify, gr as RangeTuple, hr as ProtoMethodOptions, ir as Mutable, jn as $DeepPartial, jr as ValueOptional, kr as TupleToUnion, lr as PaginatorOptions, mr as PropertyRequired, nr as MapObjectValues, or as OneOf, pr as PropertyOptional, qn as ExtractOptional, rr as Merge, sr as PageListOptions, tr as LooseLiteral, ur as PickByValue, vr as RenameKeys, wr as RequireExactly, xr as ReplaceFirst, yr as Repeat, zn as ArrayOfObjectsToStringOptions } from "../index-C_v1d6lq.cjs";
18
18
  export { $BuildTuple, $DeepPartial, $Expand, $Forbid, $JoinRepeat, $Range, $Subtract, $UnionToIntersection, $Without, ArrayOfObjectsToStringOptions, ArrayOfPrimitivesToStringOptions, ArrayToStringOptions, ArrayToTuple, Cast, DeepKeyof, DeepPartial, DeepPartialAll, ExtractOptional, ExtractRequired, FromMetaOptions, Immutable, IsStrictObject, Join, Keyof, KeysOfUnion, LooseLiteral, MapObjectValues, Merge, Mutable, OmitByValue, OneOf, PageListOptions, PaginatorMeta, PaginatorOptions, PickByValue, Pop, Prettify, PropertyOptional, PropertyRequired, ProtoMethodOptions, RangeTuple, RemoveNever, RenameKeys, Repeat, Replace, ReplaceFirst, RequireAtLeast, RequireBetween, RequireExactly, RequireOnly, Split, Tuple, TupleOf, TupleToUnion, ValueOf, ValueOptional };
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $r as RenameKeys, Ar as FromMetaOptions, Br as OmitByValue, Cr as ArrayToTuple, Dr as DeepPartialAll, Er as DeepPartial, Fr as KeysOfUnion, Gr as PickByValue, Hr as PageListOptions, Ir as LooseLiteral, Jr as PropertyOptional, Kr as Pop, Lr as MapObjectValues, Mr as IsStrictObject, Nr as Join, Or as ExtractOptional, Pr as Keyof, Qr as RemoveNever, Rr as Merge, Sr as ArrayToStringOptions, Tr as DeepKeyof, Ur as PaginatorMeta, Vr as OneOf, Wr as PaginatorOptions, Xr as ProtoMethodOptions, Yr as PropertyRequired, Zr as RangeTuple, _r as $Subtract, ai as RequireExactly, br as ArrayOfObjectsToStringOptions, ci as Tuple, di as ValueOf, dr as $BuildTuple, ei as Repeat, fi as ValueOptional, fr as $DeepPartial, gr as $Range, hr as $JoinRepeat, ii as RequireBetween, jr as Immutable, kr as ExtractRequired, li as TupleOf, mr as $Forbid, ni as ReplaceFirst, oi as RequireOnly, pr as $Expand, qr as Prettify, ri as RequireAtLeast, si as Split, ti as Replace, ui as TupleToUnion, vr as $UnionToIntersection, wr as Cast, xr as ArrayOfPrimitivesToStringOptions, yr as $Without, zr as Mutable } from "../object-DyVg8BFt.mjs";
17
+ import { $n as Keyof, An as $BuildTuple, Ar as ValueOf, Bn as ArrayOfPrimitivesToStringOptions, Cr as RequireBetween, Dr as Tuple, Er as Split, Fn as $Range, Gn as DeepPartial, Hn as ArrayToTuple, In as $Subtract, Jn as ExtractRequired, Kn as DeepPartialAll, Ln as $UnionToIntersection, Mn as $Expand, Nn as $Forbid, Or as TupleOf, Pn as $JoinRepeat, Qn as Join, Rn as $Without, Sr as RequireAtLeast, Tr as RequireOnly, Un as Cast, Vn as ArrayToStringOptions, Wn as DeepKeyof, Xn as Immutable, Yn as FromMetaOptions, Zn as IsStrictObject, _r as RemoveNever, ar as OmitByValue, br as Replace, cr as PaginatorMeta, dr as Pop, er as KeysOfUnion, fr as Prettify, gr as RangeTuple, hr as ProtoMethodOptions, ir as Mutable, jn as $DeepPartial, jr as ValueOptional, kr as TupleToUnion, lr as PaginatorOptions, mr as PropertyRequired, nr as MapObjectValues, or as OneOf, pr as PropertyOptional, qn as ExtractOptional, rr as Merge, sr as PageListOptions, tr as LooseLiteral, ur as PickByValue, vr as RenameKeys, wr as RequireExactly, xr as ReplaceFirst, yr as Repeat, zn as ArrayOfObjectsToStringOptions } from "../index-C_v1d6lq.mjs";
18
18
  export { $BuildTuple, $DeepPartial, $Expand, $Forbid, $JoinRepeat, $Range, $Subtract, $UnionToIntersection, $Without, ArrayOfObjectsToStringOptions, ArrayOfPrimitivesToStringOptions, ArrayToStringOptions, ArrayToTuple, Cast, DeepKeyof, DeepPartial, DeepPartialAll, ExtractOptional, ExtractRequired, FromMetaOptions, Immutable, IsStrictObject, Join, Keyof, KeysOfUnion, LooseLiteral, MapObjectValues, Merge, Mutable, OmitByValue, OneOf, PageListOptions, PaginatorMeta, PaginatorOptions, PickByValue, Pop, Prettify, PropertyOptional, PropertyRequired, ProtoMethodOptions, RangeTuple, RemoveNever, RenameKeys, Repeat, Replace, ReplaceFirst, RequireAtLeast, RequireBetween, RequireExactly, RequireOnly, Split, Tuple, TupleOf, TupleToUnion, ValueOf, ValueOptional };
@@ -20,19 +20,25 @@ const require_utilities = require('./utilities-_COSGq1U.cjs');
20
20
  const require_guards = require('./guards-DalSfIxV.cjs');
21
21
 
22
22
  //#region src/string/basics.ts
23
- /**
24
- * * Utility to truncate a string to a specified length.
23
+ /** Utility to truncate a string to a specified length.
25
24
  *
26
25
  * @param str The string to truncate.
27
- * @param maxLength The maximum length of the truncated string.
28
- * @returns Truncated string with ellipsis (`...`) (only if it has more length than `maxLength`).
26
+ * @param optionsOrLength The maximum length of the truncated string or options.
27
+ * @returns Truncated string based on provided options.
29
28
  */
30
- function truncateString(str, maxLength) {
29
+ function truncateString(str, optionsOrLength) {
31
30
  if (!require_primitives.isNonEmptyString(str)) return "";
32
- const trimmedString = str.trim();
31
+ let maxLength = 100, suffix = "...", trim = false;
32
+ if (require_primitives.isNumber(optionsOrLength) && optionsOrLength > 0) maxLength = optionsOrLength;
33
+ else if (require_specials.isNotEmptyObject(optionsOrLength)) {
34
+ maxLength = optionsOrLength?.maxLength ?? maxLength;
35
+ suffix = optionsOrLength?.suffix ?? suffix;
36
+ trim = optionsOrLength?.trim ?? trim;
37
+ }
38
+ const trimmedString = trim ? trimString(str) : str;
33
39
  if (!trimmedString) return "";
34
40
  if (trimmedString.length <= maxLength) return trimmedString;
35
- return trimmedString.slice(0, maxLength).concat("...");
41
+ return trimmedString.slice(0, maxLength).concat(suffix);
36
42
  }
37
43
  /**
38
44
  * * Generates a random alphanumeric (16 characters long, this length is customizable in the options) ID string composed of an optional `prefix`, `suffix`, a `timestamp`, `caseOption` and a customizable `separator`.
@@ -41,6 +47,7 @@ function truncateString(str, maxLength) {
41
47
  * @returns The generated ID string composed of the random alphanumeric string of specified length with optional `timeStamp`, `prefix`, and `suffix`, `caseOption` and `separator`.
42
48
  *
43
49
  * @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/hash/uuid uuid} for `uuid` generation
50
+ * @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/hash/random-numeric randomHex} for random numeric string generation
44
51
  * @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/hash/random-hex randomHex} for random hexadecimal string generation
45
52
  *
46
53
  * @example
@@ -20,19 +20,25 @@ import { a as normalizeNumber } from "./utilities-CmPwOkdy.mjs";
20
20
  import { t as isDateLike } from "./guards-CyOZsZ1r.mjs";
21
21
 
22
22
  //#region src/string/basics.ts
23
- /**
24
- * * Utility to truncate a string to a specified length.
23
+ /** Utility to truncate a string to a specified length.
25
24
  *
26
25
  * @param str The string to truncate.
27
- * @param maxLength The maximum length of the truncated string.
28
- * @returns Truncated string with ellipsis (`...`) (only if it has more length than `maxLength`).
26
+ * @param optionsOrLength The maximum length of the truncated string or options.
27
+ * @returns Truncated string based on provided options.
29
28
  */
30
- function truncateString(str, maxLength) {
29
+ function truncateString(str, optionsOrLength) {
31
30
  if (!isNonEmptyString(str)) return "";
32
- const trimmedString = str.trim();
31
+ let maxLength = 100, suffix = "...", trim = false;
32
+ if (isNumber(optionsOrLength) && optionsOrLength > 0) maxLength = optionsOrLength;
33
+ else if (isNotEmptyObject(optionsOrLength)) {
34
+ maxLength = optionsOrLength?.maxLength ?? maxLength;
35
+ suffix = optionsOrLength?.suffix ?? suffix;
36
+ trim = optionsOrLength?.trim ?? trim;
37
+ }
38
+ const trimmedString = trim ? trimString(str) : str;
33
39
  if (!trimmedString) return "";
34
40
  if (trimmedString.length <= maxLength) return trimmedString;
35
- return trimmedString.slice(0, maxLength).concat("...");
41
+ return trimmedString.slice(0, maxLength).concat(suffix);
36
42
  }
37
43
  /**
38
44
  * * Generates a random alphanumeric (16 characters long, this length is customizable in the options) ID string composed of an optional `prefix`, `suffix`, a `timestamp`, `caseOption` and a customizable `separator`.
@@ -41,6 +47,7 @@ function truncateString(str, maxLength) {
41
47
  * @returns The generated ID string composed of the random alphanumeric string of specified length with optional `timeStamp`, `prefix`, and `suffix`, `caseOption` and `separator`.
42
48
  *
43
49
  * @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/hash/uuid uuid} for `uuid` generation
50
+ * @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/hash/random-numeric randomHex} for random numeric string generation
44
51
  * @see {@link https://toolbox-x.nazmul-nhb.dev/docs/utils/hash/random-hex randomHex} for random hexadecimal string generation
45
52
  *
46
53
  * @example
@@ -14,7 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { c as DecodedUUID, f as SupportedVersion, g as UUIDVersion, h as UUIDOptions, m as UUID } from "./hash-DHawpylk.cjs";
17
+ import { T as Nullable } from "./index-C_v1d6lq.cjs";
18
+ import { c as DecodedUUID, f as SupportedVersion, g as UUIDVersion, h as UUIDOptions, m as UUID } from "./hash-DDlZ_kb-.cjs";
18
19
 
19
20
  //#region src/guards/specials.d.ts
20
21
  /**
@@ -180,7 +181,7 @@ declare function uuid<V extends SupportedVersion = 'v4'>(options?: UUIDOptions<V
180
181
  * - `v8` decoding only returns timestamp if it matches a known layout.
181
182
  * - `v3/v5` hash UUIDs contain no timestamp information.
182
183
  */
183
- declare function decodeUUID(uuid: string): DecodedUUID | null;
184
+ declare function decodeUUID(uuid: string): Nullable<DecodedUUID>;
184
185
  /** Check if a value is UUID version 1 */
185
186
  declare function isUUIDv1(value: unknown): value is UUID<'v1'>;
186
187
  /** Check if a value is UUID version 2 */
@@ -14,7 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { c as DecodedUUID, f as SupportedVersion, g as UUIDVersion, h as UUIDOptions, m as UUID } from "./hash-2mygGWLk.mjs";
17
+ import { T as Nullable } from "./index-C_v1d6lq.mjs";
18
+ import { c as DecodedUUID, f as SupportedVersion, g as UUIDVersion, h as UUIDOptions, m as UUID } from "./hash-BCZWgYS7.mjs";
18
19
 
19
20
  //#region src/guards/specials.d.ts
20
21
  /**
@@ -180,7 +181,7 @@ declare function uuid<V extends SupportedVersion = 'v4'>(options?: UUIDOptions<V
180
181
  * - `v8` decoding only returns timestamp if it matches a known layout.
181
182
  * - `v3/v5` hash UUIDs contain no timestamp information.
182
183
  */
183
- declare function decodeUUID(uuid: string): DecodedUUID | null;
184
+ declare function decodeUUID(uuid: string): Nullable<DecodedUUID>;
184
185
  /** Check if a value is UUID version 1 */
185
186
  declare function isUUIDv1(value: unknown): value is UUID<'v1'>;
186
187
  /** Check if a value is UUID version 2 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolbox-x",
3
- "version": "2.4.4",
3
+ "version": "2.4.7",
4
4
  "description": "A versatile collection of smart, efficient, and reusable utility functions, classes and types for everyday development needs.",
5
5
  "main": "./dist/index.cjs",
6
6
  "type": "module",