toolbox-x 1.1.2 → 1.2.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 (86) hide show
  1. package/README.md +1 -1
  2. package/dist/{Color-C_KH9aj6.d.mts → Color-DCfoQk_-.d.mts} +2 -7
  3. package/dist/{Color-G-pOkVp7.d.cts → Color-Dsut0Bex.d.cts} +2 -7
  4. package/dist/{Stylog-D4g1SdeP.d.cts → Stylog-DXZtHAbp.d.mts} +1 -1
  5. package/dist/{Stylog-D7Y2WHkI.d.mts → Stylog-TyLCTRtT.d.cts} +1 -1
  6. package/dist/{area-Cav_1uPb.d.cts → area-CcRQ6TfR.d.cts} +6 -4
  7. package/dist/{area-DTOvByQG.d.mts → area-CvSC96va.d.mts} +6 -4
  8. package/dist/{array-CUFCqgSq.d.cts → array-B6jWzJ4F.d.mts} +1 -1
  9. package/dist/{array-DcOUzJQy.d.mts → array-CqDu610k.d.cts} +1 -1
  10. package/dist/{basics-DI2qHvp4.d.mts → basics-KobRNhV-.d.cts} +1 -1
  11. package/dist/{basics-yBwg_DfG.d.cts → basics-V5M2oltn.d.mts} +1 -1
  12. package/dist/{case-B3Sjlcjo.d.cts → case--Vjea9DS.d.cts} +1 -1
  13. package/dist/{case-Cpq94CEY.d.mts → case-KdrBKjjK.d.mts} +1 -1
  14. package/dist/change-case.d.cts +1 -1
  15. package/dist/change-case.d.mts +1 -1
  16. package/dist/colors.cjs +0 -12
  17. package/dist/colors.d.cts +3 -12
  18. package/dist/colors.d.mts +3 -12
  19. package/dist/colors.mjs +1 -12
  20. package/dist/constants.d.cts +1 -1
  21. package/dist/constants.d.mts +1 -1
  22. package/dist/converter.d.cts +2 -2
  23. package/dist/converter.d.mts +2 -2
  24. package/dist/date.d.cts +1 -1
  25. package/dist/date.d.mts +1 -1
  26. package/dist/dom.d.cts +3 -3
  27. package/dist/dom.d.mts +3 -3
  28. package/dist/{form-CY3RefN-.d.cts → form-DoQGMTOc.d.mts} +2 -2
  29. package/dist/{form-zhtuXugI.d.mts → form-mP-nl8EC.d.cts} +2 -2
  30. package/dist/guards.d.cts +3 -3
  31. package/dist/guards.d.mts +3 -3
  32. package/dist/{hash-BK2nQJct.d.cts → hash-BcoFHSu1.d.cts} +13 -8
  33. package/dist/{hash-CqmKYZqL.d.mts → hash-GYRx2ee_.d.mts} +13 -8
  34. package/dist/hash.cjs +2 -2
  35. package/dist/hash.d.cts +4 -4
  36. package/dist/hash.d.mts +4 -4
  37. package/dist/hash.mjs +2 -2
  38. package/dist/{http-status-D8AT3mEI.d.cts → http-status-C0DOpCDf.d.cts} +1 -1
  39. package/dist/{http-status-Dsj58sVl.d.mts → http-status-xrlR-LlB.d.mts} +1 -1
  40. package/dist/http-status.d.cts +2 -2
  41. package/dist/http-status.d.mts +2 -2
  42. package/dist/index.d.cts +5 -5
  43. package/dist/index.d.mts +5 -5
  44. package/dist/{object-D70hzkoY.d.cts → object-ChFVh95z.d.cts} +9 -5
  45. package/dist/{object-D70hzkoY.d.mts → object-ChFVh95z.d.mts} +9 -5
  46. package/dist/paginator.d.cts +1 -1
  47. package/dist/paginator.d.mts +1 -1
  48. package/dist/{pluralizer-B2oIrpwo.d.cts → pluralizer-CdG-VJ6t.d.cts} +1 -1
  49. package/dist/{pluralizer-BVMdlDZq.d.mts → pluralizer-D2Lh8CdU.d.mts} +1 -1
  50. package/dist/pluralizer.d.cts +1 -1
  51. package/dist/pluralizer.d.mts +1 -1
  52. package/dist/{string-DXiOVFK6.d.mts → string-CkwTVFeL.d.mts} +10 -6
  53. package/dist/{string-Drwam5NL.d.cts → string-Dq2b8rcN.d.cts} +10 -6
  54. package/dist/stylog.d.cts +2 -2
  55. package/dist/stylog.d.mts +2 -2
  56. package/dist/types/array.d.cts +1 -1
  57. package/dist/types/array.d.mts +1 -1
  58. package/dist/types/colors.d.cts +2 -2
  59. package/dist/types/colors.d.mts +2 -2
  60. package/dist/types/converter.d.cts +1 -1
  61. package/dist/types/converter.d.mts +1 -1
  62. package/dist/types/date.d.cts +1 -1
  63. package/dist/types/date.d.mts +1 -1
  64. package/dist/types/form.d.cts +1 -1
  65. package/dist/types/form.d.mts +1 -1
  66. package/dist/types/hash.d.cts +1 -1
  67. package/dist/types/hash.d.mts +1 -1
  68. package/dist/types/http-status.d.cts +1 -1
  69. package/dist/types/http-status.d.mts +1 -1
  70. package/dist/types/index.d.cts +1 -1
  71. package/dist/types/index.d.mts +1 -1
  72. package/dist/types/number.d.cts +1 -1
  73. package/dist/types/number.d.mts +1 -1
  74. package/dist/types/object.d.cts +1 -1
  75. package/dist/types/object.d.mts +1 -1
  76. package/dist/types/pluralizer.d.cts +1 -1
  77. package/dist/types/pluralizer.d.mts +1 -1
  78. package/dist/types/string.d.cts +1 -1
  79. package/dist/types/string.d.mts +1 -1
  80. package/dist/types/stylog.d.cts +1 -1
  81. package/dist/types/stylog.d.mts +1 -1
  82. package/dist/types/utils.d.cts +1 -1
  83. package/dist/types/utils.d.mts +1 -1
  84. package/dist/{uuid-B5JYv6ao.d.cts → uuid-DgTBxcVu.d.cts} +1 -1
  85. package/dist/{uuid-DU64TmIe.d.mts → uuid-Yc3Uu8qr.d.mts} +1 -1
  86. package/package.json +1 -1
package/README.md CHANGED
@@ -353,7 +353,7 @@ throttleAction(updateScrollPosition, 100);
353
353
  debounceAction(fetchResults, 300);
354
354
  ```
355
355
 
356
- [Full Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/misc/debounceAction)
356
+ [Documentation →](https://toolbox-x.nazmul-nhb.dev/docs/utilities/misc/debounceAction)
357
357
 
358
358
  > These utilities represent just a portion of the comprehensive `toolbox-x`. Each is designed with production-grade reliability and developer experience in mind. Explore more in the [full documentation](https://toolbox-x.nazmul-nhb.dev). All the utilities and classes are categorized.
359
359
 
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as Maybe, Jn as Percent, V as Branded } from "./object-D70hzkoY.mjs";
17
+ import { $ as Maybe, Jn as Percent, V as Branded } from "./object-ChFVh95z.mjs";
18
18
  import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.mjs";
19
19
 
20
20
  //#region src/types/colors.d.ts
@@ -65,11 +65,6 @@ type RGBA = `rgba(${number}, ${number}, ${number}, ${number})` | `rgba(${number}
65
65
  * * Format: `hsla(H, S%, L%, A)`
66
66
  */
67
67
  type HSLA = `hsla(${number}, ${number}%, ${number}%, ${number})` | `hsla(${number},${number}%,${number}%,${number})`;
68
- /** Represents an object with `hex` (`hex6`) and `rgb` color */
69
- type RandomHexRGB = {
70
- /** Represents a hexadecimal color code. */hex: Hex6; /** Represents an RGB color string. */
71
- rgb: RGB;
72
- };
73
68
  /** Basic color type: `hex`, `rgb` or `hsl`. */
74
69
  type $ColorType = 'hex' | 'rgb' | 'hsl';
75
70
  /** Options for random color generation. */
@@ -483,4 +478,4 @@ declare class Color {
483
478
  static isCSSColor(color: string): color is CSSColor;
484
479
  }
485
480
  //#endregion
486
- export { RandomColorOptions as C, Tetrad as D, SolidValues as E, Triad as O, RandomColor as S, SolidColors as T, Hex as _, AlphaValues as a, RGB as b, ColorInput as c, ColorTypeAlpha as d, ColorTypeSolid as f, HSLA as g, HSL as h, AlphaValue as i, ColorInputArray as l, ConvertedColors as m, $ColorType as n, Analogous as o, Colors as p, AlphaColors as r, CSSColor as s, Color as t, ColorType as u, Hex6 as v, RandomHexRGB as w, RGBA as x, Hex8 as y };
481
+ export { RandomColorOptions as C, Triad as D, Tetrad as E, RandomColor as S, SolidValues as T, Hex as _, AlphaValues as a, RGB as b, ColorInput as c, ColorTypeAlpha as d, ColorTypeSolid as f, HSLA as g, HSL as h, AlphaValue as i, ColorInputArray as l, ConvertedColors as m, $ColorType as n, Analogous as o, Colors as p, AlphaColors as r, CSSColor as s, Color as t, ColorType as u, Hex6 as v, SolidColors as w, RGBA as x, Hex8 as y };
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as Maybe, Jn as Percent, V as Branded } from "./object-D70hzkoY.cjs";
17
+ import { $ as Maybe, Jn as Percent, V as Branded } from "./object-ChFVh95z.cjs";
18
18
  import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.cjs";
19
19
 
20
20
  //#region src/types/colors.d.ts
@@ -65,11 +65,6 @@ type RGBA = `rgba(${number}, ${number}, ${number}, ${number})` | `rgba(${number}
65
65
  * * Format: `hsla(H, S%, L%, A)`
66
66
  */
67
67
  type HSLA = `hsla(${number}, ${number}%, ${number}%, ${number})` | `hsla(${number},${number}%,${number}%,${number})`;
68
- /** Represents an object with `hex` (`hex6`) and `rgb` color */
69
- type RandomHexRGB = {
70
- /** Represents a hexadecimal color code. */hex: Hex6; /** Represents an RGB color string. */
71
- rgb: RGB;
72
- };
73
68
  /** Basic color type: `hex`, `rgb` or `hsl`. */
74
69
  type $ColorType = 'hex' | 'rgb' | 'hsl';
75
70
  /** Options for random color generation. */
@@ -483,4 +478,4 @@ declare class Color {
483
478
  static isCSSColor(color: string): color is CSSColor;
484
479
  }
485
480
  //#endregion
486
- export { RandomColorOptions as C, Tetrad as D, SolidValues as E, Triad as O, RandomColor as S, SolidColors as T, Hex as _, AlphaValues as a, RGB as b, ColorInput as c, ColorTypeAlpha as d, ColorTypeSolid as f, HSLA as g, HSL as h, AlphaValue as i, ColorInputArray as l, ConvertedColors as m, $ColorType as n, Analogous as o, Colors as p, AlphaColors as r, CSSColor as s, Color as t, ColorType as u, Hex6 as v, RandomHexRGB as w, RGBA as x, Hex8 as y };
481
+ export { RandomColorOptions as C, Triad as D, Tetrad as E, RandomColor as S, SolidValues as T, Hex as _, AlphaValues as a, RGB as b, ColorInput as c, ColorTypeAlpha as d, ColorTypeSolid as f, HSLA as g, HSL as h, AlphaValue as i, ColorInputArray as l, ConvertedColors as m, $ColorType as n, Analogous as o, Colors as p, AlphaColors as r, CSSColor as s, Color as t, ColorType as u, Hex6 as v, SolidColors as w, RGBA as x, Hex8 as y };
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { s as CSSColor } from "./Color-G-pOkVp7.cjs";
17
+ import { s as CSSColor } from "./Color-DCfoQk_-.mjs";
18
18
 
19
19
  //#region src/stylog/constants.d.ts
20
20
  /** Records of ANSI-16 colors with values */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { s as CSSColor } from "./Color-C_KH9aj6.mjs";
17
+ import { s as CSSColor } from "./Color-Dsut0Bex.cjs";
18
18
 
19
19
  //#region src/stylog/constants.d.ts
20
20
  /** Records of ANSI-16 colors with values */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Ar as LooseLiteral, Nr as Mutable, i as $Record, it as Numeric } from "./object-D70hzkoY.cjs";
17
+ import { Ar as LooseLiteral, Nr as Mutable, i as $Record, it as Numeric } from "./object-ChFVh95z.cjs";
18
18
  import { t as UNITS } from "./constants-D8RzBjsL.cjs";
19
19
 
20
20
  //#region src/converter/data.d.ts
@@ -229,10 +229,12 @@ type CategoryUnits<Cat extends Category> = UnitMap[Cat];
229
229
  /** * Type for the returned converter instance based on the provided unit `U`. */
230
230
  type Converted<U extends $Unit> = InferCategory<U> extends never ? $BaseConverter<U> : InferCategory<U> extends 'area' ? $Area : InferCategory<U> extends 'time' ? $Time : InferCategory<U> extends 'length' ? $Length : InferCategory<U> extends 'mass' ? $Mass : InferCategory<U> extends 'data' ? $Data : InferCategory<U> extends 'temp' ? $Temperature : InferCategory<U> extends 'volume' ? $Volume : $BaseConverter<U>;
231
231
  /** * Options for formatting converted values for unit converter method(s). */
232
- type FormatToOptions = {
233
- /** Style of formatting. Default is `'plural'`. */style?: 'compact' | 'scientific' | 'plural'; /** Number of decimal places to include. Default is `2`. */
232
+ interface FormatToOptions {
233
+ /** Style of formatting. Default is `'plural'`. */
234
+ style?: 'compact' | 'scientific' | 'plural';
235
+ /** Number of decimal places to include. Default is `2`. */
234
236
  decimals?: number;
235
- };
237
+ }
236
238
  /** Union type for all the area units */
237
239
  type $AreaUnit = UnitMap['area'];
238
240
  /** Union type for all the data units */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Ar as LooseLiteral, Nr as Mutable, i as $Record, it as Numeric } from "./object-D70hzkoY.mjs";
17
+ import { Ar as LooseLiteral, Nr as Mutable, i as $Record, it as Numeric } from "./object-ChFVh95z.mjs";
18
18
  import { t as UNITS } from "./constants-D8RzBjsL.mjs";
19
19
 
20
20
  //#region src/converter/data.d.ts
@@ -229,10 +229,12 @@ type CategoryUnits<Cat extends Category> = UnitMap[Cat];
229
229
  /** * Type for the returned converter instance based on the provided unit `U`. */
230
230
  type Converted<U extends $Unit> = InferCategory<U> extends never ? $BaseConverter<U> : InferCategory<U> extends 'area' ? $Area : InferCategory<U> extends 'time' ? $Time : InferCategory<U> extends 'length' ? $Length : InferCategory<U> extends 'mass' ? $Mass : InferCategory<U> extends 'data' ? $Data : InferCategory<U> extends 'temp' ? $Temperature : InferCategory<U> extends 'volume' ? $Volume : $BaseConverter<U>;
231
231
  /** * Options for formatting converted values for unit converter method(s). */
232
- type FormatToOptions = {
233
- /** Style of formatting. Default is `'plural'`. */style?: 'compact' | 'scientific' | 'plural'; /** Number of decimal places to include. Default is `2`. */
232
+ interface FormatToOptions {
233
+ /** Style of formatting. Default is `'plural'`. */
234
+ style?: 'compact' | 'scientific' | 'plural';
235
+ /** Number of decimal places to include. Default is `2`. */
234
236
  decimals?: number;
235
- };
237
+ }
236
238
  /** Union type for all the area units */
237
239
  type $AreaUnit = UnitMap['area'];
238
240
  /** Union type for all the data units */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { E as NestedPrimitiveKey, nt as NormalPrimitiveKey, y as GenericObject } from "./object-D70hzkoY.cjs";
17
+ import { E as NestedPrimitiveKey, nt as NormalPrimitiveKey, y as GenericObject } from "./object-ChFVh95z.mjs";
18
18
 
19
19
  //#region src/types/array.d.ts
20
20
  /** * Flatten Array or Wrap in Array */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { E as NestedPrimitiveKey, nt as NormalPrimitiveKey, y as GenericObject } from "./object-D70hzkoY.mjs";
17
+ import { E as NestedPrimitiveKey, nt as NormalPrimitiveKey, y as GenericObject } from "./object-ChFVh95z.cjs";
18
18
 
19
19
  //#region src/types/array.d.ts
20
20
  /** * Flatten Array or Wrap in Array */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { F as RandomIdOptions } from "./string-DXiOVFK6.mjs";
17
+ import { F as RandomIdOptions } from "./string-Dq2b8rcN.cjs";
18
18
 
19
19
  //#region src/string/basics.d.ts
20
20
  /**
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { F as RandomIdOptions } from "./string-Drwam5NL.cjs";
17
+ import { F as RandomIdOptions } from "./string-CkwTVFeL.mjs";
18
18
 
19
19
  //#region src/string/basics.d.ts
20
20
  /**
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-Drwam5NL.cjs";
17
+ import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-Dq2b8rcN.cjs";
18
18
 
19
19
  //#region src/string/case.d.ts
20
20
  /**
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-DXiOVFK6.mjs";
17
+ import { B as TitleCase, I as SentenceCase, L as SnakeCase, M as PascalSnakeCase, N as PathCase, T as DotCase, V as TrainCase, f as CamelCase, g as ConstantCase, j as PascalCase, k as KebabCase, m as CaseFormat, p as CapitalizeOptions, z as StringCaseOptions } from "./string-CkwTVFeL.mjs";
18
18
 
19
19
  //#region src/string/case.d.ts
20
20
  /**
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-B3Sjlcjo.cjs";
17
+ import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case--Vjea9DS.cjs";
18
18
  export { capitalizeString, convertStringCase, toCamelCase, toConstantCase, toDotCase, toKebabCase, toPascalCase, toPascalSnakeCase, toPathCase, toSentenceCase, toSnakeCase, toTitleCase, toTrainCase };
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-Cpq94CEY.mjs";
17
+ import { a as toDotCase, c as toPascalSnakeCase, d as toSnakeCase, f as toTitleCase, i as toConstantCase, l as toPathCase, n as convertStringCase, o as toKebabCase, p as toTrainCase, r as toCamelCase, s as toPascalCase, t as capitalizeString, u as toSentenceCase } from "./case-KdrBKjjK.mjs";
18
18
  export { capitalizeString, convertStringCase, toCamelCase, toConstantCase, toDotCase, toKebabCase, toPascalCase, toPascalSnakeCase, toPathCase, toSentenceCase, toSnakeCase, toTitleCase, toTrainCase };
package/dist/colors.cjs CHANGED
@@ -43,17 +43,6 @@ const generateRandomHSLColor = (maxColors = 16) => {
43
43
  return color;
44
44
  };
45
45
  /**
46
- * @deprecated For optimized performance and more flexibility, please consider using {@link generateRandomColor}.
47
- *
48
- * * Utility to generate a unique random color in `Hex6` and `RGB` format.
49
- *
50
- * @param maxColors - The maximum number of recent colors to store in memory. Default is `16`.
51
- * @returns An object of generated unique random color in both `Hex` and `RGB` formats.
52
- */
53
- const generateRandomColorInHexRGB = (maxColors = 16) => {
54
- return require_convert.convertColorCode(generateRandomHSLColor(maxColors));
55
- };
56
- /**
57
46
  * * Generates a random unique color in one of three formats: `Hex6`, `RGB`, or `HSL`.
58
47
  *
59
48
  * @remarks
@@ -565,7 +554,6 @@ exports.convertRgbaToHsla = require_convert.convertRgbaToHsla;
565
554
  exports.extractAlphaColorValues = require_convert.extractAlphaColorValues;
566
555
  exports.extractSolidColorValues = require_convert.extractSolidColorValues;
567
556
  exports.generateRandomColor = generateRandomColor;
568
- exports.generateRandomColorInHexRGB = generateRandomColorInHexRGB;
569
557
  exports.generateRandomHSL = generateRandomHSLColor;
570
558
  exports.generateRandomHSLColor = generateRandomHSLColor;
571
559
  exports.getColorForInitial = getColorForInitial;
package/dist/colors.d.cts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Jn as Percent } from "./object-D70hzkoY.cjs";
18
- import { C as RandomColorOptions, E as SolidValues, S as RandomColor, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, w as RandomHexRGB, x as RGBA, y as Hex8 } from "./Color-G-pOkVp7.cjs";
17
+ import { Jn as Percent } from "./object-ChFVh95z.cjs";
18
+ import { C as RandomColorOptions, S as RandomColor, T as SolidValues, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, x as RGBA, y as Hex8 } from "./Color-Dsut0Bex.cjs";
19
19
 
20
20
  //#region src/colors/convert.d.ts
21
21
  /**
@@ -234,15 +234,6 @@ declare function getColorForInitial(input: ColorInputArray, opacity?: Percent):
234
234
  * @returns Generated unique random color in `HSL` format.
235
235
  */
236
236
  declare const generateRandomHSLColor: (maxColors?: number) => HSL;
237
- /**
238
- * @deprecated For optimized performance and more flexibility, please consider using {@link generateRandomColor}.
239
- *
240
- * * Utility to generate a unique random color in `Hex6` and `RGB` format.
241
- *
242
- * @param maxColors - The maximum number of recent colors to store in memory. Default is `16`.
243
- * @returns An object of generated unique random color in both `Hex` and `RGB` formats.
244
- */
245
- declare const generateRandomColorInHexRGB: (maxColors?: number) => RandomHexRGB;
246
237
  /**
247
238
  * * Generates a random unique color in one of three formats: `Hex6`, `RGB`, or `HSL`.
248
239
  *
@@ -352,4 +343,4 @@ declare function applyOpacityToHex(color: Hex, opacity: Percent): Hex8;
352
343
  */
353
344
  declare function applyOpacityToHex(color: Hex, opacity: string): Hex8;
354
345
  //#endregion
355
- export { Color, Color as Colour, applyOpacityToHex, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, extractAlphaColorValues, extractSolidColorValues, generateRandomColor, generateRandomColor as getRandomColor, generateRandomColorInHexRGB, generateRandomHSLColor as generateRandomHSL, generateRandomHSLColor, generateRandomHSLColor as getRandomHSL, getColorForInitial, percentToHex };
346
+ export { Color, Color as Colour, applyOpacityToHex, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, extractAlphaColorValues, extractSolidColorValues, generateRandomColor, generateRandomColor as getRandomColor, generateRandomHSLColor as generateRandomHSL, generateRandomHSLColor, generateRandomHSLColor as getRandomHSL, getColorForInitial, percentToHex };
package/dist/colors.d.mts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Jn as Percent } from "./object-D70hzkoY.mjs";
18
- import { C as RandomColorOptions, E as SolidValues, S as RandomColor, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, w as RandomHexRGB, x as RGBA, y as Hex8 } from "./Color-C_KH9aj6.mjs";
17
+ import { Jn as Percent } from "./object-ChFVh95z.mjs";
18
+ import { C as RandomColorOptions, S as RandomColor, T as SolidValues, _ as Hex, a as AlphaValues, b as RGB, g as HSLA, h as HSL, l as ColorInputArray, n as $ColorType, t as Color, v as Hex6, x as RGBA, y as Hex8 } from "./Color-DCfoQk_-.mjs";
19
19
 
20
20
  //#region src/colors/convert.d.ts
21
21
  /**
@@ -234,15 +234,6 @@ declare function getColorForInitial(input: ColorInputArray, opacity?: Percent):
234
234
  * @returns Generated unique random color in `HSL` format.
235
235
  */
236
236
  declare const generateRandomHSLColor: (maxColors?: number) => HSL;
237
- /**
238
- * @deprecated For optimized performance and more flexibility, please consider using {@link generateRandomColor}.
239
- *
240
- * * Utility to generate a unique random color in `Hex6` and `RGB` format.
241
- *
242
- * @param maxColors - The maximum number of recent colors to store in memory. Default is `16`.
243
- * @returns An object of generated unique random color in both `Hex` and `RGB` formats.
244
- */
245
- declare const generateRandomColorInHexRGB: (maxColors?: number) => RandomHexRGB;
246
237
  /**
247
238
  * * Generates a random unique color in one of three formats: `Hex6`, `RGB`, or `HSL`.
248
239
  *
@@ -352,4 +343,4 @@ declare function applyOpacityToHex(color: Hex, opacity: Percent): Hex8;
352
343
  */
353
344
  declare function applyOpacityToHex(color: Hex, opacity: string): Hex8;
354
345
  //#endregion
355
- export { Color, Color as Colour, applyOpacityToHex, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, extractAlphaColorValues, extractSolidColorValues, generateRandomColor, generateRandomColor as getRandomColor, generateRandomColorInHexRGB, generateRandomHSLColor as generateRandomHSL, generateRandomHSLColor, generateRandomHSLColor as getRandomHSL, getColorForInitial, percentToHex };
346
+ export { Color, Color as Colour, applyOpacityToHex, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, extractAlphaColorValues, extractSolidColorValues, generateRandomColor, generateRandomColor as getRandomColor, generateRandomHSLColor as generateRandomHSL, generateRandomHSLColor, generateRandomHSLColor as getRandomHSL, getColorForInitial, percentToHex };
package/dist/colors.mjs CHANGED
@@ -42,17 +42,6 @@ const generateRandomHSLColor = (maxColors = 16) => {
42
42
  return color;
43
43
  };
44
44
  /**
45
- * @deprecated For optimized performance and more flexibility, please consider using {@link generateRandomColor}.
46
- *
47
- * * Utility to generate a unique random color in `Hex6` and `RGB` format.
48
- *
49
- * @param maxColors - The maximum number of recent colors to store in memory. Default is `16`.
50
- * @returns An object of generated unique random color in both `Hex` and `RGB` formats.
51
- */
52
- const generateRandomColorInHexRGB = (maxColors = 16) => {
53
- return convertColorCode(generateRandomHSLColor(maxColors));
54
- };
55
- /**
56
45
  * * Generates a random unique color in one of three formats: `Hex6`, `RGB`, or `HSL`.
57
46
  *
58
47
  * @remarks
@@ -544,4 +533,4 @@ function getColorForInitial(input = "", opacity = 100) {
544
533
  }
545
534
 
546
535
  //#endregion
547
- export { Color, Color as Colour, applyOpacityToHex, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, extractAlphaColorValues, extractSolidColorValues, generateRandomColor, generateRandomColor as getRandomColor, generateRandomColorInHexRGB, generateRandomHSLColor as generateRandomHSL, generateRandomHSLColor, generateRandomHSLColor as getRandomHSL, getColorForInitial, percentToHex };
536
+ export { Color, Color as Colour, applyOpacityToHex, convertColorCode, convertHex8ToHsla, convertHex8ToRgba, convertHexToHsl, convertHexToRgb, convertHslToHex, convertHslToRgb, convertHslaToHex8, convertHslaToRgba, convertRgbToHex, convertRgbToHsl, convertRgbToRgba, convertRgbaToHex8, convertRgbaToHsla, extractAlphaColorValues, extractSolidColorValues, generateRandomColor, generateRandomColor as getRandomColor, generateRandomHSLColor as generateRandomHSL, generateRandomHSLColor, generateRandomHSLColor as getRandomHSL, getColorForInitial, percentToHex };
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { t as LOWERCASE } from "./constants-C7wERz5m.cjs";
18
- import { Ci as COUNTRIES, Si as WESTERN_ZODIAC_SIGNS, _i as TIME_ZONE_IDS, bi as MONTHS, ci as CURRENCY_CODES, di as LOCALE_CODES, fi as UNITS$1, gi as TIME_ZONES_NATIVE, hi as TIME_ZONES, li as CURRENCY_LOCALES, mi as NATIVE_TZ_IDS, pi as IANA_TZ_IDS, ui as FRANKFURTER_CURRENCIES, vi as TIME_ZONE_LABELS, xi as VEDIC_ZODIAC_SIGNS, yi as DAYS } from "./object-D70hzkoY.cjs";
18
+ import { Ci as COUNTRIES, Si as WESTERN_ZODIAC_SIGNS, _i as TIME_ZONE_IDS, bi as MONTHS, ci as CURRENCY_CODES, di as LOCALE_CODES, fi as UNITS$1, gi as TIME_ZONES_NATIVE, hi as TIME_ZONES, li as CURRENCY_LOCALES, mi as NATIVE_TZ_IDS, pi as IANA_TZ_IDS, ui as FRANKFURTER_CURRENCIES, vi as TIME_ZONE_LABELS, xi as VEDIC_ZODIAC_SIGNS, yi as DAYS } from "./object-ChFVh95z.cjs";
19
19
  import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.cjs";
20
20
  import { t as UNITS } from "./constants-D8RzBjsL.cjs";
21
21
  import { t as HTTP_STATUS_CODES } from "./constants-DNIXgBkz.cjs";
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { t as LOWERCASE } from "./constants-C7wERz5m.mjs";
18
- import { Ci as COUNTRIES, Si as WESTERN_ZODIAC_SIGNS, _i as TIME_ZONE_IDS, bi as MONTHS, ci as CURRENCY_CODES, di as LOCALE_CODES, fi as UNITS$1, gi as TIME_ZONES_NATIVE, hi as TIME_ZONES, li as CURRENCY_LOCALES, mi as NATIVE_TZ_IDS, pi as IANA_TZ_IDS, ui as FRANKFURTER_CURRENCIES, vi as TIME_ZONE_LABELS, xi as VEDIC_ZODIAC_SIGNS, yi as DAYS } from "./object-D70hzkoY.mjs";
18
+ import { Ci as COUNTRIES, Si as WESTERN_ZODIAC_SIGNS, _i as TIME_ZONE_IDS, bi as MONTHS, ci as CURRENCY_CODES, di as LOCALE_CODES, fi as UNITS$1, gi as TIME_ZONES_NATIVE, hi as TIME_ZONES, li as CURRENCY_LOCALES, mi as NATIVE_TZ_IDS, pi as IANA_TZ_IDS, ui as FRANKFURTER_CURRENCIES, vi as TIME_ZONE_LABELS, xi as VEDIC_ZODIAC_SIGNS, yi as DAYS } from "./object-ChFVh95z.mjs";
19
19
  import { t as CSS_COLORS } from "./css-colors-Dqz6Bfnp.mjs";
20
20
  import { t as UNITS } from "./constants-D8RzBjsL.mjs";
21
21
  import { t as HTTP_STATUS_CODES } from "./constants-DNIXgBkz.mjs";
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { it as Numeric } from "./object-D70hzkoY.cjs";
18
- import { C as $Length, S as $Mass, b as $Time, c as $Unit, f as Converted, t as $Area, w as $Data, x as $Temperature, y as $Volume } from "./area-Cav_1uPb.cjs";
17
+ import { it as Numeric } from "./object-ChFVh95z.cjs";
18
+ import { C as $Length, S as $Mass, b as $Time, c as $Unit, f as Converted, t as $Area, w as $Data, x as $Temperature, y as $Volume } from "./area-CcRQ6TfR.cjs";
19
19
 
20
20
  //#region src/converter/Converter.d.ts
21
21
  /**
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { it as Numeric } from "./object-D70hzkoY.mjs";
18
- import { C as $Length, S as $Mass, b as $Time, c as $Unit, f as Converted, t as $Area, w as $Data, x as $Temperature, y as $Volume } from "./area-DTOvByQG.mjs";
17
+ import { it as Numeric } from "./object-ChFVh95z.mjs";
18
+ import { C as $Length, S as $Mass, b as $Time, c as $Unit, f as Converted, t as $Area, w as $Data, x as $Temperature, y as $Volume } from "./area-CvSC96va.mjs";
19
19
 
20
20
  //#region src/converter/Converter.d.ts
21
21
  /**
package/dist/date.d.cts CHANGED
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as Maybe, Dt as ClockTime, Gt as ISODateTimeString, Ht as HourMinutes, Ot as DateArgs, Sn as UTCOffset, Vt as GreetingConfigs, Wt as ISODateFormat, an as SafeFormat, bn as TimestampOptions, bt as $TimeZoneIdentifier, cn as TimeOnlyFormat, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, kt as DateFormatOptions, mn as TimeZoneDetails } from "./object-D70hzkoY.cjs";
17
+ import { $ as Maybe, Dt as ClockTime, Gt as ISODateTimeString, Ht as HourMinutes, Ot as DateArgs, Sn as UTCOffset, Vt as GreetingConfigs, Wt as ISODateFormat, an as SafeFormat, bn as TimestampOptions, bt as $TimeZoneIdentifier, cn as TimeOnlyFormat, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, kt as DateFormatOptions, mn as TimeZoneDetails } from "./object-ChFVh95z.cjs";
18
18
 
19
19
  //#region src/date/greet.d.ts
20
20
  /**
package/dist/date.d.mts CHANGED
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as Maybe, Dt as ClockTime, Gt as ISODateTimeString, Ht as HourMinutes, Ot as DateArgs, Sn as UTCOffset, Vt as GreetingConfigs, Wt as ISODateFormat, an as SafeFormat, bn as TimestampOptions, bt as $TimeZoneIdentifier, cn as TimeOnlyFormat, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, kt as DateFormatOptions, mn as TimeZoneDetails } from "./object-D70hzkoY.mjs";
17
+ import { $ as Maybe, Dt as ClockTime, Gt as ISODateTimeString, Ht as HourMinutes, Ot as DateArgs, Sn as UTCOffset, Vt as GreetingConfigs, Wt as ISODateFormat, an as SafeFormat, bn as TimestampOptions, bt as $TimeZoneIdentifier, cn as TimeOnlyFormat, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, kt as DateFormatOptions, mn as TimeZoneDetails } from "./object-ChFVh95z.mjs";
18
18
 
19
19
  //#region src/date/greet.d.ts
20
20
  /**
package/dist/dom.d.cts CHANGED
@@ -14,9 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { A as ParsedQuery, G as Deserializer, M as QueryObject, ct as Serializer, j as ParsedQueryGeneric, y as GenericObject } from "./object-D70hzkoY.cjs";
18
- import { P as QueryString } from "./string-Drwam5NL.cjs";
19
- import { a as OriginFileObj, i as FormDataConfigs, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "./form-CY3RefN-.cjs";
17
+ import { A as ParsedQuery, G as Deserializer, M as QueryObject, ct as Serializer, j as ParsedQueryGeneric, y as GenericObject } from "./object-ChFVh95z.cjs";
18
+ import { P as QueryString } from "./string-Dq2b8rcN.cjs";
19
+ import { a as OriginFileObj, i as FormDataConfigs, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "./form-mP-nl8EC.cjs";
20
20
 
21
21
  //#region src/dom/query.d.ts
22
22
  /**
package/dist/dom.d.mts CHANGED
@@ -14,9 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { A as ParsedQuery, G as Deserializer, M as QueryObject, ct as Serializer, j as ParsedQueryGeneric, y as GenericObject } from "./object-D70hzkoY.mjs";
18
- import { P as QueryString } from "./string-DXiOVFK6.mjs";
19
- import { a as OriginFileObj, i as FormDataConfigs, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "./form-zhtuXugI.mjs";
17
+ import { A as ParsedQuery, G as Deserializer, M as QueryObject, ct as Serializer, j as ParsedQueryGeneric, y as GenericObject } from "./object-ChFVh95z.mjs";
18
+ import { P as QueryString } from "./string-CkwTVFeL.mjs";
19
+ import { a as OriginFileObj, i as FormDataConfigs, o as ParsedFormData, r as FileUpload, s as SerializedForm, t as CustomFile } from "./form-DoQGMTOc.mjs";
20
20
 
21
21
  //#region src/dom/query.d.ts
22
22
  /**
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $r as RequireExactly, S as KeyForObject, T as NestedKeyString, u as DotNotationKey, x as KeyForArray } from "./object-D70hzkoY.cjs";
18
- import { P as QueryString } from "./string-Drwam5NL.cjs";
17
+ import { $r as RequireExactly, S as KeyForObject, T as NestedKeyString, u as DotNotationKey, x as KeyForArray } from "./object-ChFVh95z.mjs";
18
+ import { P as QueryString } from "./string-CkwTVFeL.mjs";
19
19
 
20
20
  //#region src/types/form.d.ts
21
21
  /** - Configuration options to control FormData generation behavior. */
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $r as RequireExactly, S as KeyForObject, T as NestedKeyString, u as DotNotationKey, x as KeyForArray } from "./object-D70hzkoY.mjs";
18
- import { P as QueryString } from "./string-DXiOVFK6.mjs";
17
+ import { $r as RequireExactly, S as KeyForObject, T as NestedKeyString, u as DotNotationKey, x as KeyForArray } from "./object-ChFVh95z.cjs";
18
+ import { P as QueryString } from "./string-Dq2b8rcN.cjs";
19
19
 
20
20
  //#region src/types/form.d.ts
21
21
  /** - Configuration options to control FormData generation behavior. */
package/dist/guards.d.cts CHANGED
@@ -14,9 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as Maybe, Dt as ClockTime, J as FalsyPrimitive, Sn as UTCOffset, X as GenericFn, bt as $TimeZoneIdentifier, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, jt as DateLike, lt as ValidArray, st as Primitive, tt as NormalPrimitive, y as GenericObject, z as AsyncFunction } from "./object-D70hzkoY.cjs";
18
- import { b as RGB, g as HSLA, h as HSL, s as CSSColor, v as Hex6, x as RGBA, y as Hex8 } from "./Color-G-pOkVp7.cjs";
19
- import { C as isURL, S as isPhoneNumber, _ as isEnvironment, a as isUUIDv4, b as isNode, c as isUUIDv7, d as isBase64, f as isBinaryString, g as isEmailArray, h as isEmail, i as isUUIDv3, l as isUUIDv8, m as isDateString, n as isUUIDv1, o as isUUIDv5, p as isBrowser, r as isUUIDv2, s as isUUIDv6, v as isHexString, w as isUUID, x as isNumericString, y as isIPAddress } from "./uuid-B5JYv6ao.cjs";
17
+ import { $ as Maybe, Dt as ClockTime, J as FalsyPrimitive, Sn as UTCOffset, X as GenericFn, bt as $TimeZoneIdentifier, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, jt as DateLike, lt as ValidArray, st as Primitive, tt as NormalPrimitive, y as GenericObject, z as AsyncFunction } from "./object-ChFVh95z.cjs";
18
+ import { b as RGB, g as HSLA, h as HSL, s as CSSColor, v as Hex6, x as RGBA, y as Hex8 } from "./Color-Dsut0Bex.cjs";
19
+ import { C as isURL, S as isPhoneNumber, _ as isEnvironment, a as isUUIDv4, b as isNode, c as isUUIDv7, d as isBase64, f as isBinaryString, g as isEmailArray, h as isEmail, i as isUUIDv3, l as isUUIDv8, m as isDateString, n as isUUIDv1, o as isUUIDv5, p as isBrowser, r as isUUIDv2, s as isUUIDv6, v as isHexString, w as isUUID, x as isNumericString, y as isIPAddress } from "./uuid-DgTBxcVu.cjs";
20
20
 
21
21
  //#region src/colors/guards.d.ts
22
22
  /**
package/dist/guards.d.mts CHANGED
@@ -14,9 +14,9 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as Maybe, Dt as ClockTime, J as FalsyPrimitive, Sn as UTCOffset, X as GenericFn, bt as $TimeZoneIdentifier, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, jt as DateLike, lt as ValidArray, st as Primitive, tt as NormalPrimitive, y as GenericObject, z as AsyncFunction } from "./object-D70hzkoY.mjs";
18
- import { b as RGB, g as HSLA, h as HSL, s as CSSColor, v as Hex6, x as RGBA, y as Hex8 } from "./Color-C_KH9aj6.mjs";
19
- import { C as isURL, S as isPhoneNumber, _ as isEnvironment, a as isUUIDv4, b as isNode, c as isUUIDv7, d as isBase64, f as isBinaryString, g as isEmailArray, h as isEmail, i as isUUIDv3, l as isUUIDv8, m as isDateString, n as isUUIDv1, o as isUUIDv5, p as isBrowser, r as isUUIDv2, s as isUUIDv6, v as isHexString, w as isUUID, x as isNumericString, y as isIPAddress } from "./uuid-DU64TmIe.mjs";
17
+ import { $ as Maybe, Dt as ClockTime, J as FalsyPrimitive, Sn as UTCOffset, X as GenericFn, bt as $TimeZoneIdentifier, fn as TimeWithUnit, gn as TimeZoneIdNative, it as Numeric, jt as DateLike, lt as ValidArray, st as Primitive, tt as NormalPrimitive, y as GenericObject, z as AsyncFunction } from "./object-ChFVh95z.mjs";
18
+ import { b as RGB, g as HSLA, h as HSL, s as CSSColor, v as Hex6, x as RGBA, y as Hex8 } from "./Color-DCfoQk_-.mjs";
19
+ import { C as isURL, S as isPhoneNumber, _ as isEnvironment, a as isUUIDv4, b as isNode, c as isUUIDv7, d as isBase64, f as isBinaryString, g as isEmailArray, h as isEmail, i as isUUIDv3, l as isUUIDv8, m as isDateString, n as isUUIDv1, o as isUUIDv5, p as isBrowser, r as isUUIDv2, s as isUUIDv6, v as isHexString, w as isUUID, x as isNumericString, y as isIPAddress } from "./uuid-Yc3Uu8qr.mjs";
20
20
 
21
21
  //#region src/colors/guards.d.ts
22
22
  /**
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { V as Branded, fn as TimeWithUnit, it as Numeric, y as GenericObject } from "./object-D70hzkoY.cjs";
17
+ import { V as Branded, fn as TimeWithUnit, it as Numeric, y as GenericObject } from "./object-ChFVh95z.cjs";
18
18
 
19
19
  //#region src/types/hash.d.ts
20
20
  /** UUID versions as number from `1-8` */
@@ -61,16 +61,21 @@ interface DecodedUUID {
61
61
  node?: string;
62
62
  }
63
63
  /** Header for `Signet` */
64
- type SignetHeader = {
65
- /** Algorithm used. Currently supports `'HS256'` only */alg: 'HS256'; /** Type of token. Fixed `'SIGNET+JWT'` */
64
+ interface SignetHeader {
65
+ /** Algorithm used. Currently supports `'HS256'` only */
66
+ alg: 'HS256';
67
+ /** Type of token. Fixed `'SIGNET+JWT'` */
66
68
  typ: 'SIGNET+JWT';
67
- };
69
+ }
68
70
  /** Options for token verification */
69
- type VerifyOptions = {
70
- /** Where the token is allowed to be used */audience?: string | string[]; /** Who the token is about */
71
- subject?: string; /** From where/who the token is issued */
71
+ interface VerifyOptions {
72
+ /** Where the token is allowed to be used */
73
+ audience?: string | string[];
74
+ /** Who the token is about */
75
+ subject?: string;
76
+ /** From where/who the token is issued */
72
77
  issuer?: string;
73
- };
78
+ }
74
79
  /** Token signing options */
75
80
  interface SignOptions extends VerifyOptions {
76
81
  /**
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { V as Branded, fn as TimeWithUnit, it as Numeric, y as GenericObject } from "./object-D70hzkoY.mjs";
17
+ import { V as Branded, fn as TimeWithUnit, it as Numeric, y as GenericObject } from "./object-ChFVh95z.mjs";
18
18
 
19
19
  //#region src/types/hash.d.ts
20
20
  /** UUID versions as number from `1-8` */
@@ -61,16 +61,21 @@ interface DecodedUUID {
61
61
  node?: string;
62
62
  }
63
63
  /** Header for `Signet` */
64
- type SignetHeader = {
65
- /** Algorithm used. Currently supports `'HS256'` only */alg: 'HS256'; /** Type of token. Fixed `'SIGNET+JWT'` */
64
+ interface SignetHeader {
65
+ /** Algorithm used. Currently supports `'HS256'` only */
66
+ alg: 'HS256';
67
+ /** Type of token. Fixed `'SIGNET+JWT'` */
66
68
  typ: 'SIGNET+JWT';
67
- };
69
+ }
68
70
  /** Options for token verification */
69
- type VerifyOptions = {
70
- /** Where the token is allowed to be used */audience?: string | string[]; /** Who the token is about */
71
- subject?: string; /** From where/who the token is issued */
71
+ interface VerifyOptions {
72
+ /** Where the token is allowed to be used */
73
+ audience?: string | string[];
74
+ /** Who the token is about */
75
+ subject?: string;
76
+ /** From where/who the token is issued */
72
77
  issuer?: string;
73
- };
78
+ }
74
79
  /** Token signing options */
75
80
  interface SignOptions extends VerifyOptions {
76
81
  /**
package/dist/hash.cjs CHANGED
@@ -478,7 +478,7 @@ var Signet = class {
478
478
  if (!aud) return false;
479
479
  const payloadAud = Array.isArray(aud) ? aud : [aud];
480
480
  const expectedAud = Array.isArray(expected) ? expected : [expected];
481
- return payloadAud.some((tokenAud) => expectedAud.includes(tokenAud));
481
+ return !payloadAud.some((tokenAud) => expectedAud.includes(tokenAud));
482
482
  }
483
483
  /**
484
484
  * * Validates a token's `sub` (subject) claim against an expected value.
@@ -578,7 +578,7 @@ var Signet = class {
578
578
  if (this.hasExpired(token)) throw new Error("Token has expired!");
579
579
  if (this.isTooEarly(token)) throw new Error("Token is not active yet!");
580
580
  if (this.isInvalidIssuer(token, issuer)) throw new Error("Invalid token issuer!");
581
- if (this.isInvalidAudience(token, audience)) throw new Error("Invalid token audience(s!");
581
+ if (this.isInvalidAudience(token, audience)) throw new Error("Invalid token audience(s)!");
582
582
  if (this.isInvalidSubject(token, subject)) throw new Error("Invalid token subject!");
583
583
  return {
584
584
  isValid: true,
package/dist/hash.d.cts CHANGED
@@ -14,10 +14,10 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as Maybe, y as GenericObject } from "./object-D70hzkoY.cjs";
18
- import { _ as VerifiedToken, d as SignetPayload, l as SignOptions, p as TokenString, s as DecodedToken, v as VerifyOptions } from "./hash-BK2nQJct.cjs";
19
- import { a as isUUIDv4, c as isUUIDv7, i as isUUIDv3, l as isUUIDv8, n as isUUIDv1, o as isUUIDv5, r as isUUIDv2, s as isUUIDv6, t as decodeUUID, u as uuid, w as isUUID } from "./uuid-B5JYv6ao.cjs";
20
- import { t as generateRandomID } from "./basics-yBwg_DfG.cjs";
17
+ import { $ as Maybe, y as GenericObject } from "./object-ChFVh95z.cjs";
18
+ import { _ as VerifiedToken, d as SignetPayload, l as SignOptions, p as TokenString, s as DecodedToken, v as VerifyOptions } from "./hash-BcoFHSu1.cjs";
19
+ import { a as isUUIDv4, c as isUUIDv7, i as isUUIDv3, l as isUUIDv8, n as isUUIDv1, o as isUUIDv5, r as isUUIDv2, s as isUUIDv6, t as decodeUUID, u as uuid, w as isUUID } from "./uuid-DgTBxcVu.cjs";
20
+ import { t as generateRandomID } from "./basics-KobRNhV-.cjs";
21
21
 
22
22
  //#region src/hash/Cipher.d.ts
23
23
  /**