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.
- package/CHANGELOG.md +15 -0
- package/dist/{Color-D6qMZgDm.d.mts → Color-B94hFsf4.d.mts} +1 -1
- package/dist/{Color-SUPeP6fO.d.cts → Color-CSi8fu6f.d.cts} +1 -1
- package/dist/{Stylog-B8sKWvn_.d.mts → Stylog-CFsO-yrJ.d.cts} +1 -1
- package/dist/{Stylog-DdPP_CJf.d.cts → Stylog-DyGx1l54.d.mts} +1 -1
- package/dist/{area-kW5kJaQq.d.cts → area-CQG9fGeG.d.cts} +1 -1
- package/dist/{area-CaK6hFzW.d.mts → area-XvKQTCT6.d.mts} +1 -1
- package/dist/{array-CbAKXvhH.d.mts → array-9ewbYFv0.d.mts} +1 -1
- package/dist/{array-EVkwcL_k.d.cts → array-DilGQJmC.d.cts} +1 -1
- package/dist/{basics-CUzK7wFN.cjs → basics-BGu9ygZK.cjs} +6 -6
- package/dist/{basics-KYRpMQNe.mjs → basics-Bd2mj0uG.mjs} +6 -6
- package/dist/{basics-BuHQJCNG.d.mts → basics-RNENr17b.d.mts} +13 -4
- package/dist/{basics-CLwtIxap.d.cts → basics-WMFx1CZ0.d.cts} +13 -4
- package/dist/{case-Ce8HJI8I.d.mts → case-C5giLKOG.d.mts} +1 -1
- package/dist/{case-BmB2aGyp.d.cts → case-Ts8jV2Wz.d.cts} +1 -1
- package/dist/change-case.d.cts +1 -1
- package/dist/change-case.d.mts +1 -1
- package/dist/colors/index.d.cts +2 -2
- package/dist/colors/index.d.mts +2 -2
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/converter/index.d.cts +2 -2
- package/dist/converter/index.d.mts +2 -2
- package/dist/date/index.d.cts +1 -1
- package/dist/date/index.d.mts +1 -1
- package/dist/dom/index.cjs +2 -2
- package/dist/dom/index.d.cts +5 -5
- package/dist/dom/index.d.mts +5 -5
- package/dist/dom/index.mjs +2 -2
- package/dist/{form-D_5I437n.d.mts → form-CbfeSccF.d.cts} +3 -3
- package/dist/{form-DhsFvo_D.d.cts → form-Dd-YP3DS.d.mts} +3 -3
- package/dist/guards/index.cjs +2 -2
- package/dist/guards/index.d.cts +4 -4
- package/dist/guards/index.d.mts +4 -4
- package/dist/guards/index.mjs +2 -2
- package/dist/hash/index.cjs +1 -1
- package/dist/hash/index.d.cts +4 -4
- package/dist/hash/index.d.mts +4 -4
- package/dist/hash/index.mjs +1 -1
- package/dist/{hash-2mygGWLk.d.mts → hash-BCZWgYS7.d.mts} +1 -1
- package/dist/{hash-DHawpylk.d.cts → hash-DDlZ_kb-.d.cts} +1 -1
- package/dist/http-status/index.d.cts +2 -2
- package/dist/http-status/index.d.mts +2 -2
- package/dist/{http-status-BXNuC-33.d.mts → http-status-DRA3A_qa.d.mts} +1 -1
- package/dist/{http-status-CpYDj2wq.d.cts → http-status-JhjgqpW3.d.cts} +1 -1
- package/dist/{object-DyVg8BFt.d.cts → index-C_v1d6lq.d.cts} +1614 -1610
- package/dist/{object-DyVg8BFt.d.mts → index-C_v1d6lq.d.mts} +1614 -1610
- package/dist/{index-D00Uqm9S.d.cts → index-Cs1P7sOW.d.mts} +2 -2
- package/dist/{index-BbBnKdBb.d.mts → index-VeKwBmaa.d.cts} +2 -2
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +7 -7
- package/dist/index.d.mts +7 -7
- package/dist/index.mjs +3 -3
- package/dist/paginator.cjs +2 -2
- package/dist/paginator.d.cts +5 -5
- package/dist/paginator.d.mts +5 -5
- package/dist/paginator.mjs +2 -2
- package/dist/{query-iJflCkq1.cjs → query-Bo-_PC3j.cjs} +1 -1
- package/dist/{query-B8VPCIKA.mjs → query-CLkSagHs.mjs} +1 -1
- package/dist/{query-BMtRmMSC.d.cts → query-Dh3MANjJ.d.mts} +2 -2
- package/dist/{query-C-r5ZbO-.d.mts → query-ke72ZE4p.d.cts} +2 -2
- package/dist/{string-edtZyJHf.d.mts → string-COB8mrdF.d.mts} +14 -3
- package/dist/{string-Ok_IMpHP.d.cts → string-s6NO_UGp.d.cts} +14 -3
- package/dist/stylog/index.d.cts +2 -2
- package/dist/stylog/index.d.mts +2 -2
- package/dist/types/array.d.cts +1 -1
- package/dist/types/array.d.mts +1 -1
- package/dist/types/colors.d.cts +1 -1
- package/dist/types/colors.d.mts +1 -1
- package/dist/types/converter.d.cts +1 -1
- package/dist/types/converter.d.mts +1 -1
- package/dist/types/date.d.cts +1 -1
- package/dist/types/date.d.mts +1 -1
- package/dist/types/form.d.cts +1 -1
- package/dist/types/form.d.mts +1 -1
- package/dist/types/hash.d.cts +1 -1
- package/dist/types/hash.d.mts +1 -1
- package/dist/types/http-status.d.cts +1 -1
- package/dist/types/http-status.d.mts +1 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/number.d.cts +1 -1
- package/dist/types/number.d.mts +1 -1
- package/dist/types/object.d.cts +1 -1
- package/dist/types/object.d.mts +1 -1
- package/dist/types/pluralizer.d.cts +1 -1
- package/dist/types/pluralizer.d.mts +1 -1
- package/dist/types/string.d.cts +2 -2
- package/dist/types/string.d.mts +2 -2
- package/dist/types/stylog.d.cts +1 -1
- package/dist/types/stylog.d.mts +1 -1
- package/dist/types/utils.d.cts +1 -1
- package/dist/types/utils.d.mts +1 -1
- package/dist/{utils-BxZGABHS.cjs → utils-BzeK3wO9.cjs} +14 -7
- package/dist/{utils-DcRr0A7B.mjs → utils-DnyVgO8p.mjs} +14 -7
- package/dist/{uuid-CMNRM9NO.d.cts → uuid-B0xPyeI7.d.cts} +3 -2
- package/dist/{uuid-DvQsIl9p.d.mts → uuid-DCvH3YMX.d.mts} +3 -2
- package/package.json +1 -1
package/dist/types/object.d.cts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
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 };
|
package/dist/types/object.d.mts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import {
|
|
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 {
|
|
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 {
|
|
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 */
|
package/dist/types/string.d.cts
CHANGED
|
@@ -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
|
|
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 };
|
package/dist/types/string.d.mts
CHANGED
|
@@ -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
|
|
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 };
|
package/dist/types/stylog.d.cts
CHANGED
|
@@ -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-
|
|
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 };
|
package/dist/types/stylog.d.mts
CHANGED
|
@@ -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-
|
|
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 };
|
package/dist/types/utils.d.cts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $
|
|
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 };
|
package/dist/types/utils.d.mts
CHANGED
|
@@ -14,5 +14,5 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
|
|
17
|
-
import { $
|
|
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
|
|
28
|
-
* @returns Truncated string
|
|
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,
|
|
29
|
+
function truncateString(str, optionsOrLength) {
|
|
31
30
|
if (!require_primitives.isNonEmptyString(str)) return "";
|
|
32
|
-
|
|
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
|
|
28
|
-
* @returns Truncated string
|
|
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,
|
|
29
|
+
function truncateString(str, optionsOrLength) {
|
|
31
30
|
if (!isNonEmptyString(str)) return "";
|
|
32
|
-
|
|
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 {
|
|
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
|
|
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 {
|
|
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
|
|
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