toolbox-x 1.1.2 → 1.2.1

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 (102) 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.cjs +2 -2
  25. package/dist/date.d.cts +1 -1
  26. package/dist/date.d.mts +1 -1
  27. package/dist/date.mjs +2 -2
  28. package/dist/dom.cjs +3 -3
  29. package/dist/dom.d.cts +3 -3
  30. package/dist/dom.d.mts +3 -3
  31. package/dist/dom.mjs +3 -3
  32. package/dist/{form-CY3RefN-.d.cts → form-DoQGMTOc.d.mts} +2 -2
  33. package/dist/{form-zhtuXugI.d.mts → form-mP-nl8EC.d.cts} +2 -2
  34. package/dist/{guards-Cp6KAkVI.mjs → guards-C0smSAKC.mjs} +1 -1
  35. package/dist/{guards-DP5k4_Mm.cjs → guards-ClGDJrQp.cjs} +1 -1
  36. package/dist/guards.cjs +1 -2
  37. package/dist/guards.d.cts +4 -4
  38. package/dist/guards.d.mts +4 -4
  39. package/dist/guards.mjs +2 -2
  40. package/dist/{hash-BK2nQJct.d.cts → hash-BcoFHSu1.d.cts} +13 -8
  41. package/dist/{hash-CqmKYZqL.d.mts → hash-GYRx2ee_.d.mts} +13 -8
  42. package/dist/hash.cjs +4 -4
  43. package/dist/hash.d.cts +4 -4
  44. package/dist/hash.d.mts +4 -4
  45. package/dist/hash.mjs +4 -4
  46. package/dist/{http-status-D8AT3mEI.d.cts → http-status-C0DOpCDf.d.cts} +1 -1
  47. package/dist/{http-status-Dsj58sVl.d.mts → http-status-xrlR-LlB.d.mts} +1 -1
  48. package/dist/http-status.d.cts +2 -2
  49. package/dist/http-status.d.mts +2 -2
  50. package/dist/index.cjs +2 -2
  51. package/dist/index.d.cts +5 -5
  52. package/dist/index.d.mts +5 -5
  53. package/dist/index.mjs +2 -2
  54. package/dist/{object-D70hzkoY.d.cts → object-ChFVh95z.d.cts} +9 -5
  55. package/dist/{object-D70hzkoY.d.mts → object-ChFVh95z.d.mts} +9 -5
  56. package/dist/{objectify-CfXtS_E0.mjs → objectify-DEnFpPt1.mjs} +2 -2
  57. package/dist/{objectify-CZJr9hwg.cjs → objectify-DewBSJP_.cjs} +2 -2
  58. package/dist/paginator.d.cts +1 -1
  59. package/dist/paginator.d.mts +1 -1
  60. package/dist/{parse-rcJRAOJl.mjs → parse-BhZ6-tKg.mjs} +4 -4
  61. package/dist/{parse-BpUlILVi.cjs → parse-DovagZFA.cjs} +3 -3
  62. package/dist/{pluralizer-B2oIrpwo.d.cts → pluralizer-CdG-VJ6t.d.cts} +1 -1
  63. package/dist/{pluralizer-BVMdlDZq.d.mts → pluralizer-D2Lh8CdU.d.mts} +1 -1
  64. package/dist/pluralizer.d.cts +1 -1
  65. package/dist/pluralizer.d.mts +1 -1
  66. package/dist/{string-DXiOVFK6.d.mts → string-CkwTVFeL.d.mts} +10 -6
  67. package/dist/{string-Drwam5NL.d.cts → string-Dq2b8rcN.d.cts} +10 -6
  68. package/dist/stylog.d.cts +2 -2
  69. package/dist/stylog.d.mts +2 -2
  70. package/dist/types/array.d.cts +1 -1
  71. package/dist/types/array.d.mts +1 -1
  72. package/dist/types/colors.d.cts +2 -2
  73. package/dist/types/colors.d.mts +2 -2
  74. package/dist/types/converter.d.cts +1 -1
  75. package/dist/types/converter.d.mts +1 -1
  76. package/dist/types/date.d.cts +1 -1
  77. package/dist/types/date.d.mts +1 -1
  78. package/dist/types/form.d.cts +1 -1
  79. package/dist/types/form.d.mts +1 -1
  80. package/dist/types/hash.d.cts +1 -1
  81. package/dist/types/hash.d.mts +1 -1
  82. package/dist/types/http-status.d.cts +1 -1
  83. package/dist/types/http-status.d.mts +1 -1
  84. package/dist/types/index.d.cts +1 -1
  85. package/dist/types/index.d.mts +1 -1
  86. package/dist/types/number.d.cts +1 -1
  87. package/dist/types/number.d.mts +1 -1
  88. package/dist/types/object.d.cts +1 -1
  89. package/dist/types/object.d.mts +1 -1
  90. package/dist/types/pluralizer.d.cts +1 -1
  91. package/dist/types/pluralizer.d.mts +1 -1
  92. package/dist/types/string.d.cts +1 -1
  93. package/dist/types/string.d.mts +1 -1
  94. package/dist/types/stylog.d.cts +1 -1
  95. package/dist/types/stylog.d.mts +1 -1
  96. package/dist/types/utils.d.cts +1 -1
  97. package/dist/types/utils.d.mts +1 -1
  98. package/dist/{utils-CFyEFj2Y.cjs → utils-BxguWSoa.cjs} +1 -1
  99. package/dist/{utils-CN3ocK98.mjs → utils-DXovsTKs.mjs} +1 -1
  100. package/dist/{uuid-B5JYv6ao.d.cts → uuid-DgTBxcVu.d.cts} +1 -1
  101. package/dist/{uuid-DU64TmIe.d.mts → uuid-Yc3Uu8qr.d.mts} +1 -1
  102. package/package.json +1 -1
package/dist/guards.mjs CHANGED
@@ -17,8 +17,8 @@
17
17
  import { a as isNonEmptyString, c as isNumber, d as isString, f as isSymbol, i as isInteger, l as isPositiveInteger, m as isUndefined, n as isBoolean, o as isNormalPrimitive, p as isTruthy, r as isFalsy, s as isNull, t as isBigInt, u as isPrimitive } from "./primitives-Djsevc69.mjs";
18
18
  import { a as isHex8, i as isHex6, n as isHSL, o as isRGB, r as isHSLA, s as isRGBA, t as isCSSColor } from "./guards-DziDBD0p.mjs";
19
19
  import { A as isSet, C as isMethodDescriptor, D as isPromise, E as isObjectWithKeys, O as isRegExp, S as isMap, T as isObject, _ as isDate, a as isEmail, b as isFunction, c as isHexString, d as isNumericString, f as isPhoneNumber, g as isArrayOfType, h as isArray, i as isDateString, j as isValidArray, k as isReturningPromise, l as isIPAddress, m as isUUID, n as isBinaryString, o as isEmailArray, p as isURL, r as isBrowser, s as isEnvironment, t as isBase64, u as isNode, v as isEmptyObject, w as isNotEmptyObject, x as isJSON, y as isError } from "./specials-Cye93-uo.mjs";
20
- import { a as isValidTime, i as isTimeWithUnit, n as isLeapYear, o as isValidTimeZoneId, r as isNativeTimeZoneId, s as isValidUTCOffset, t as isDateLike } from "./guards-Cp6KAkVI.mjs";
20
+ import { a as isValidTime, i as isTimeWithUnit, n as isLeapYear, o as isValidTimeZoneId, r as isNativeTimeZoneId, s as isValidUTCOffset, t as isDateLike } from "./guards-C0smSAKC.mjs";
21
21
  import { a as isUUIDv1, c as isUUIDv4, d as isUUIDv7, f as isUUIDv8, l as isUUIDv5, o as isUUIDv2, s as isUUIDv3, u as isUUIDv6 } from "./basics-1_M7UvCn.mjs";
22
22
  import { _ as isFibonacci, a as isPascalCase, b as isPerfectSquare, g as isEven, h as areInvalidNumbers, i as isPalindrome, n as isEmojiOnly, o as isSnakeCase, r as isKebabCase, t as isCamelCase, v as isMultiple, y as isOdd } from "./guards-DeO4ukiK.mjs";
23
23
 
24
- export { areInvalidNumbers, areInvalidNumbers as areNumbersInvalid, areInvalidNumbers as isInvalidNumber, areInvalidNumbers as isNumberInvalid, isReturningPromise as doesReturnPromise, isReturningPromise, isArray, isArrayOfType, isValidArray as isArrayWithLength, isValidArray, isBase64, isBigInt, isBinaryString, isBoolean, isBrowser, isCSSColor, isCamelCase, isDate, isDateLike, isDateString, isEmail, isEmail as isValidEmail, isEmailArray, isEmojiOnly, isEmptyObject, isEmptyObject as isEmptyObjectGuard, isEmptyObject as isObjectEmpty, isEnvironment, isEnvironment as isExpectedNodeENV, isEnvironment as isNodeENV, isEnvironment as isNodeEnvironment, isError, isEven, isEven as isEvenNumber, isFalsy, isFibonacci, isFibonacci as isPartOfFibonacci, isFibonacci as isPartOfFibonacciSeries, isFunction, isHSL, isHSLA, isHex6, isHex8, isHexString, isIPAddress, isInteger, isJSON, isJSON as isJSONObject, isJSON as isValidJSON, isKebabCase, isLeapYear, isMap, isMap as isValidMap, isMethodDescriptor as isMethod, isMethodDescriptor, isMultiple, isNativeTimeZoneId, isNode, isNonEmptyString, isNormalPrimitive, isNotEmptyObject, isNotEmptyObject as isValidObject, isNull, isNumber, isNumericString, isObject, isObjectWithKeys, isOdd, isOdd as isOddNumber, isPalindrome, isPascalCase, isPerfectSquare, isPhoneNumber, isPositiveInteger, isPrimitive, isPromise, isRGB, isRGBA, isRegExp, isRegExp as isRegularExpression, isSet, isSet as isValidSet, isSnakeCase, isString, isSymbol, isTimeWithUnit, isTruthy, isURL, isURL as isValidURL, isUUID, isUUIDv1, isUUIDv2, isUUIDv3, isUUIDv4, isUUIDv5, isUUIDv6, isUUIDv7, isUUIDv8, isUndefined, isValidTime, isValidTime as isValidTimeString, isValidTimeZoneId, isValidUTCOffset as isValidUTC, isValidUTCOffset as isValidUTCOffSet, isValidUTCOffset };
24
+ export { areInvalidNumbers, areInvalidNumbers as areNumbersInvalid, areInvalidNumbers as isInvalidNumber, areInvalidNumbers as isNumberInvalid, isReturningPromise as doesReturnPromise, isReturningPromise, isArray, isArrayOfType, isValidArray as isArrayWithLength, isValidArray, isBase64, isBigInt, isBinaryString, isBoolean, isBrowser, isCSSColor, isCamelCase, isDate, isDateLike, isDateString, isEmail, isEmail as isValidEmail, isEmailArray, isEmojiOnly, isEmptyObject, isEmptyObject as isEmptyObjectGuard, isEmptyObject as isObjectEmpty, isEnvironment, isEnvironment as isExpectedNodeENV, isEnvironment as isNodeENV, isEnvironment as isNodeEnvironment, isError, isEven, isEven as isEvenNumber, isFalsy, isFibonacci, isFibonacci as isPartOfFibonacci, isFibonacci as isPartOfFibonacciSeries, isFunction, isHSL, isHSLA, isHex6, isHex8, isHexString, isIPAddress, isInteger, isJSON, isJSON as isJSONObject, isJSON as isValidJSON, isKebabCase, isLeapYear, isMap, isMap as isValidMap, isMethodDescriptor as isMethod, isMethodDescriptor, isMultiple, isNativeTimeZoneId, isNode, isNonEmptyString, isNormalPrimitive, isNotEmptyObject, isNotEmptyObject as isValidObject, isNull, isNumber, isNumericString, isObject, isObjectWithKeys, isOdd, isOdd as isOddNumber, isPalindrome, isPascalCase, isPerfectSquare, isPhoneNumber, isPositiveInteger, isPrimitive, isPromise, isRGB, isRGBA, isRegExp, isRegExp as isRegularExpression, isSet, isSet as isValidSet, isSnakeCase, isString, isSymbol, isTimeWithUnit, isTruthy, isURL, isURL as isValidURL, isUUID, isUUIDv1, isUUIDv2, isUUIDv3, isUUIDv4, isUUIDv5, isUUIDv6, isUUIDv7, isUUIDv8, isUndefined, isValidTime, isValidTime as isValidTimeString, isValidTimeZoneId, isValidUTCOffset as isValidUTC, isValidUTCOffset };
@@ -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
@@ -17,9 +17,9 @@
17
17
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
18
18
  const require_primitives = require('./primitives-CBGICrDR.cjs');
19
19
  const require_specials = require('./specials-BM6cx43o.cjs');
20
- const require_parse = require('./parse-BpUlILVi.cjs');
20
+ const require_parse = require('./parse-DovagZFA.cjs');
21
21
  const require_basics = require('./basics-K8BDSYD6.cjs');
22
- const require_utils = require('./utils-CFyEFj2Y.cjs');
22
+ const require_utils = require('./utils-BxguWSoa.cjs');
23
23
 
24
24
  //#region src/hash/Cipher.ts
25
25
  /**
@@ -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
  /**
package/dist/hash.d.mts 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.mjs";
18
- import { _ as VerifiedToken, d as SignetPayload, l as SignOptions, p as TokenString, s as DecodedToken, v as VerifyOptions } from "./hash-CqmKYZqL.mjs";
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-DU64TmIe.mjs";
20
- import { t as generateRandomID } from "./basics-DI2qHvp4.mjs";
17
+ import { $ as Maybe, y as GenericObject } from "./object-ChFVh95z.mjs";
18
+ import { _ as VerifiedToken, d as SignetPayload, l as SignOptions, p as TokenString, s as DecodedToken, v as VerifyOptions } from "./hash-GYRx2ee_.mjs";
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-Yc3Uu8qr.mjs";
20
+ import { t as generateRandomID } from "./basics-V5M2oltn.mjs";
21
21
 
22
22
  //#region src/hash/Cipher.d.ts
23
23
  /**
package/dist/hash.mjs CHANGED
@@ -16,9 +16,9 @@
16
16
 
17
17
  import { a as isNonEmptyString } from "./primitives-Djsevc69.mjs";
18
18
  import { c as isHexString, m as isUUID, n as isBinaryString, t as isBase64, w as isNotEmptyObject } from "./specials-Cye93-uo.mjs";
19
- import { c as _toSeconds, s as _secToDate, t as parseMSec } from "./parse-rcJRAOJl.mjs";
19
+ import { c as _toSeconds, s as _secToDate, t as parseMSec } from "./parse-BhZ6-tKg.mjs";
20
20
  import { A as uint8To32ArrayBE, C as bytesToUtf8, D as intTo4BytesBE, E as hmacSha256, O as randomHex, S as bytesToHex, T as hexToBytes, _ as _constantTimeEquals, a as isUUIDv1, b as base64ToBytes, c as isUUIDv4, d as isUUIDv7, f as isUUIDv8, g as sha256, h as sha1, i as decodeUUID, j as utf8ToBytes, k as sha256Bytes, l as isUUIDv5, m as md5, o as isUUIDv2, p as uuid, s as isUUIDv3, t as generateRandomID, u as isUUIDv6, v as _padStartWith0, w as concatBytes, x as bytesToBase64, y as _splitByCharLength } from "./basics-1_M7UvCn.mjs";
21
- import { h as stripJsonEdgeGarbage, m as stableStringify } from "./utils-CN3ocK98.mjs";
21
+ import { h as stripJsonEdgeGarbage, m as stableStringify } from "./utils-DXovsTKs.mjs";
22
22
 
23
23
  //#region src/hash/Cipher.ts
24
24
  /**
@@ -477,7 +477,7 @@ var Signet = class {
477
477
  if (!aud) return false;
478
478
  const payloadAud = Array.isArray(aud) ? aud : [aud];
479
479
  const expectedAud = Array.isArray(expected) ? expected : [expected];
480
- return payloadAud.some((tokenAud) => expectedAud.includes(tokenAud));
480
+ return !payloadAud.some((tokenAud) => expectedAud.includes(tokenAud));
481
481
  }
482
482
  /**
483
483
  * * Validates a token's `sub` (subject) claim against an expected value.
@@ -577,7 +577,7 @@ var Signet = class {
577
577
  if (this.hasExpired(token)) throw new Error("Token has expired!");
578
578
  if (this.isTooEarly(token)) throw new Error("Token is not active yet!");
579
579
  if (this.isInvalidIssuer(token, issuer)) throw new Error("Invalid token issuer!");
580
- if (this.isInvalidAudience(token, audience)) throw new Error("Invalid token audience(s!");
580
+ if (this.isInvalidAudience(token, audience)) throw new Error("Invalid token audience(s)!");
581
581
  if (this.isInvalidSubject(token, subject)) throw new Error("Invalid token subject!");
582
582
  return {
583
583
  isValid: true,
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Ar as LooseLiteral } from "./object-D70hzkoY.cjs";
17
+ import { Ar as LooseLiteral } from "./object-ChFVh95z.cjs";
18
18
  import { n as HTTP_STATUS_DATA } from "./constants-DNIXgBkz.cjs";
19
19
 
20
20
  //#region src/types/http-status.d.ts
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Ar as LooseLiteral } from "./object-D70hzkoY.mjs";
17
+ import { Ar as LooseLiteral } from "./object-ChFVh95z.mjs";
18
18
  import { n as HTTP_STATUS_DATA } from "./constants-DNIXgBkz.mjs";
19
19
 
20
20
  //#region src/types/http-status.d.ts
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as Maybe } from "./object-D70hzkoY.cjs";
18
- import { a as HttpStatusCode, c as StatusCode, l as StatusEntry, o as HttpStatusName, s as StatusCategory, u as StatusName } from "./http-status-D8AT3mEI.cjs";
17
+ import { $ as Maybe } from "./object-ChFVh95z.cjs";
18
+ import { a as HttpStatusCode, c as StatusCode, l as StatusEntry, o as HttpStatusName, s as StatusCategory, u as StatusName } from "./http-status-C0DOpCDf.cjs";
19
19
 
20
20
  //#region src/http-status/HttpStatus.d.ts
21
21
  /**
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as Maybe } from "./object-D70hzkoY.mjs";
18
- import { a as HttpStatusCode, c as StatusCode, l as StatusEntry, o as HttpStatusName, s as StatusCategory, u as StatusName } from "./http-status-Dsj58sVl.mjs";
17
+ import { $ as Maybe } from "./object-ChFVh95z.mjs";
18
+ import { a as HttpStatusCode, c as StatusCode, l as StatusEntry, o as HttpStatusName, s as StatusCategory, u as StatusName } from "./http-status-xrlR-LlB.mjs";
19
19
 
20
20
  //#region src/http-status/HttpStatus.d.ts
21
21
  /**
package/dist/index.cjs CHANGED
@@ -23,8 +23,8 @@ const require_specials = require('./specials-BM6cx43o.cjs');
23
23
  const require_utilities = require('./utilities-CzyXCRHM.cjs');
24
24
  const require_basics = require('./basics-K8BDSYD6.cjs');
25
25
  const require_guards = require('./guards-0VjySrPM.cjs');
26
- const require_objectify = require('./objectify-CZJr9hwg.cjs');
27
- const require_utils = require('./utils-CFyEFj2Y.cjs');
26
+ const require_objectify = require('./objectify-DewBSJP_.cjs');
27
+ const require_utils = require('./utils-BxguWSoa.cjs');
28
28
 
29
29
  //#region src/string/anagram.ts
30
30
  /** `WeakMap` to cache user provided dictionary array */
package/dist/index.d.cts CHANGED
@@ -14,11 +14,11 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as Maybe, $n as RomanCapital, An as BnDigitResult, B as BasicPrimitive, D as NumericDotKey, E as NestedPrimitiveKey, F as SanitizedData, Gn as LooseRomanNumeral, H as ClassDetails, Ln as FrankFurterCurrency, Mn as ConvertedDecimal, Nn as CurrencyCode, O as Objects, P as SanitizeOptions, Pn as DecimalOptions, Qn as RangedNumbers, R as Any, U as Constructor, W as DelayedFn, Wn as LocaleCode, Wr as ProtoMethodOptions, Xn as RandomNumberOptions, Y as FlattenPartial, Yn as PercentageOptions, Zn as RangeOptions, a as ConvertObjectOptions, at as OwnKeys, c as DeepKeys, g as FlattenDotValue, hr as ArrayOfPrimitivesToStringOptions, it as Numeric, jn as ConvertOptions, mr as ArrayOfObjectsToStringOptions, ni as Tuple, o as ConvertedObject, ot as PartialOrRequired, p as ExpandAll, qn as NumberType, s as CountryDetails, si as Unit, st as Primitive, u as DotNotationKey, ut as VoidFn, v as FlattenLeafValue, w as MergeAll, y as GenericObject } from "./object-D70hzkoY.cjs";
18
- import { A as MaskOptions, d as AnagramOptions, h as CharDiffResult, w as DiffResult } from "./string-Drwam5NL.cjs";
19
- import { n as convertStringCase, t as capitalizeString } from "./case-B3Sjlcjo.cjs";
20
- import { n as trimString, r as truncateString, t as generateRandomID } from "./basics-yBwg_DfG.cjs";
21
- import { a as Flattened, c as OrderOption, l as SortByOption, n as FindOptions, s as OptionsConfig, t as FieldValue, u as SortNature } from "./array-CUFCqgSq.cjs";
17
+ import { $ as Maybe, $n as RomanCapital, An as BnDigitResult, B as BasicPrimitive, D as NumericDotKey, E as NestedPrimitiveKey, F as SanitizedData, Gn as LooseRomanNumeral, H as ClassDetails, Ln as FrankFurterCurrency, Mn as ConvertedDecimal, Nn as CurrencyCode, O as Objects, P as SanitizeOptions, Pn as DecimalOptions, Qn as RangedNumbers, R as Any, U as Constructor, W as DelayedFn, Wn as LocaleCode, Wr as ProtoMethodOptions, Xn as RandomNumberOptions, Y as FlattenPartial, Yn as PercentageOptions, Zn as RangeOptions, a as ConvertObjectOptions, at as OwnKeys, c as DeepKeys, g as FlattenDotValue, hr as ArrayOfPrimitivesToStringOptions, it as Numeric, jn as ConvertOptions, mr as ArrayOfObjectsToStringOptions, ni as Tuple, o as ConvertedObject, ot as PartialOrRequired, p as ExpandAll, qn as NumberType, s as CountryDetails, si as Unit, st as Primitive, u as DotNotationKey, ut as VoidFn, v as FlattenLeafValue, w as MergeAll, y as GenericObject } from "./object-ChFVh95z.cjs";
18
+ import { A as MaskOptions, d as AnagramOptions, h as CharDiffResult, w as DiffResult } from "./string-Dq2b8rcN.cjs";
19
+ import { n as convertStringCase, t as capitalizeString } from "./case--Vjea9DS.cjs";
20
+ import { n as trimString, r as truncateString, t as generateRandomID } from "./basics-KobRNhV-.cjs";
21
+ import { a as Flattened, c as OrderOption, l as SortByOption, n as FindOptions, s as OptionsConfig, t as FieldValue, u as SortNature } from "./array-CqDu610k.cjs";
22
22
 
23
23
  //#region src/string/anagram.d.ts
24
24
  /**
package/dist/index.d.mts CHANGED
@@ -14,11 +14,11 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { $ as Maybe, $n as RomanCapital, An as BnDigitResult, B as BasicPrimitive, D as NumericDotKey, E as NestedPrimitiveKey, F as SanitizedData, Gn as LooseRomanNumeral, H as ClassDetails, Ln as FrankFurterCurrency, Mn as ConvertedDecimal, Nn as CurrencyCode, O as Objects, P as SanitizeOptions, Pn as DecimalOptions, Qn as RangedNumbers, R as Any, U as Constructor, W as DelayedFn, Wn as LocaleCode, Wr as ProtoMethodOptions, Xn as RandomNumberOptions, Y as FlattenPartial, Yn as PercentageOptions, Zn as RangeOptions, a as ConvertObjectOptions, at as OwnKeys, c as DeepKeys, g as FlattenDotValue, hr as ArrayOfPrimitivesToStringOptions, it as Numeric, jn as ConvertOptions, mr as ArrayOfObjectsToStringOptions, ni as Tuple, o as ConvertedObject, ot as PartialOrRequired, p as ExpandAll, qn as NumberType, s as CountryDetails, si as Unit, st as Primitive, u as DotNotationKey, ut as VoidFn, v as FlattenLeafValue, w as MergeAll, y as GenericObject } from "./object-D70hzkoY.mjs";
18
- import { A as MaskOptions, d as AnagramOptions, h as CharDiffResult, w as DiffResult } from "./string-DXiOVFK6.mjs";
19
- import { n as convertStringCase, t as capitalizeString } from "./case-Cpq94CEY.mjs";
20
- import { n as trimString, r as truncateString, t as generateRandomID } from "./basics-DI2qHvp4.mjs";
21
- import { a as Flattened, c as OrderOption, l as SortByOption, n as FindOptions, s as OptionsConfig, t as FieldValue, u as SortNature } from "./array-DcOUzJQy.mjs";
17
+ import { $ as Maybe, $n as RomanCapital, An as BnDigitResult, B as BasicPrimitive, D as NumericDotKey, E as NestedPrimitiveKey, F as SanitizedData, Gn as LooseRomanNumeral, H as ClassDetails, Ln as FrankFurterCurrency, Mn as ConvertedDecimal, Nn as CurrencyCode, O as Objects, P as SanitizeOptions, Pn as DecimalOptions, Qn as RangedNumbers, R as Any, U as Constructor, W as DelayedFn, Wn as LocaleCode, Wr as ProtoMethodOptions, Xn as RandomNumberOptions, Y as FlattenPartial, Yn as PercentageOptions, Zn as RangeOptions, a as ConvertObjectOptions, at as OwnKeys, c as DeepKeys, g as FlattenDotValue, hr as ArrayOfPrimitivesToStringOptions, it as Numeric, jn as ConvertOptions, mr as ArrayOfObjectsToStringOptions, ni as Tuple, o as ConvertedObject, ot as PartialOrRequired, p as ExpandAll, qn as NumberType, s as CountryDetails, si as Unit, st as Primitive, u as DotNotationKey, ut as VoidFn, v as FlattenLeafValue, w as MergeAll, y as GenericObject } from "./object-ChFVh95z.mjs";
18
+ import { A as MaskOptions, d as AnagramOptions, h as CharDiffResult, w as DiffResult } from "./string-CkwTVFeL.mjs";
19
+ import { n as convertStringCase, t as capitalizeString } from "./case-KdrBKjjK.mjs";
20
+ import { n as trimString, r as truncateString, t as generateRandomID } from "./basics-V5M2oltn.mjs";
21
+ import { a as Flattened, c as OrderOption, l as SortByOption, n as FindOptions, s as OptionsConfig, t as FieldValue, u as SortNature } from "./array-B6jWzJ4F.mjs";
22
22
 
23
23
  //#region src/string/anagram.d.ts
24
24
  /**
package/dist/index.mjs CHANGED
@@ -22,8 +22,8 @@ import { T as isObject, b as isFunction, d as isNumericString, j as isValidArray
22
22
  import { a as normalizeNumber, i as getRandomFloat, n as formatCurrency, o as roundToNearest, r as getOrdinal, t as clampNumber } from "./utilities-B9axOvOX.mjs";
23
23
  import { n as trimString, r as truncateString, t as generateRandomID } from "./basics-1_M7UvCn.mjs";
24
24
  import { c as extractURLs, d as normalizeString, f as replaceAllInString, g as isEven, h as areInvalidNumbers, l as formatUnitWithPlural, m as slugifyString, p as reverseString, s as extractEmails, u as maskString, y as isOdd } from "./guards-DeO4ukiK.mjs";
25
- import { a as flattenObjectKeyValue, c as parseJsonToObject, i as flattenObjectDotNotation, l as parseObjectValues, n as extractUpdatedAndNewFields, o as mergeAndFlattenObjects, r as extractUpdatedFields, s as mergeObjects, t as extractNewFields, u as sanitizeData } from "./objectify-CfXtS_E0.mjs";
26
- import { _ as naturalSort, a as deepParsePrimitives, b as _resolveNestedKey, c as getInstanceGetterNames, d as getStaticMethodNames, f as isDeepEqual, g as throttleAction, h as stripJsonEdgeGarbage, i as debounceAction, l as getInstanceMethodNames, m as stableStringify, n as countInstanceMethods, o as definePrototypeMethod, p as parseJSON, r as countStaticMethods, s as getClassDetails, t as convertArrayToString, u as getStaticGetterNames, v as sortAnArray, y as _getNumericProp } from "./utils-CN3ocK98.mjs";
25
+ import { a as flattenObjectKeyValue, c as parseJsonToObject, i as flattenObjectDotNotation, l as parseObjectValues, n as extractUpdatedAndNewFields, o as mergeAndFlattenObjects, r as extractUpdatedFields, s as mergeObjects, t as extractNewFields, u as sanitizeData } from "./objectify-DEnFpPt1.mjs";
26
+ import { _ as naturalSort, a as deepParsePrimitives, b as _resolveNestedKey, c as getInstanceGetterNames, d as getStaticMethodNames, f as isDeepEqual, g as throttleAction, h as stripJsonEdgeGarbage, i as debounceAction, l as getInstanceMethodNames, m as stableStringify, n as countInstanceMethods, o as definePrototypeMethod, p as parseJSON, r as countStaticMethods, s as getClassDetails, t as convertArrayToString, u as getStaticGetterNames, v as sortAnArray, y as _getNumericProp } from "./utils-DXovsTKs.mjs";
27
27
 
28
28
  //#region src/string/anagram.ts
29
29
  /** `WeakMap` to cache user provided dictionary array */
@@ -7587,12 +7587,16 @@ interface GreetingConfigs {
7587
7587
  defaultMessage?: string;
7588
7588
  }
7589
7589
  /** Time zone details object */
7590
- type TimeZoneDetails = {
7591
- /** IANA time zone identifier */tzIdentifier: $TimeZoneIdentifier; /** Long localized form (e.g., `'Pacific Standard Time'`, `'Nordamerikanische Westküsten-Normalzeit'`) */
7592
- tzNameLong: Maybe<LooseLiteral<TimeZoneName>>; /** Long generic non-location format (e.g.: `'Pacific Time'`, `'Nordamerikanische Westküstenzeit'`) */
7593
- tzNameLongGeneric: Maybe<LooseLiteral<TimeZoneName>>; /** Long localized GMT format, prefixed with `"GMT"` (e.g., `"GMT-08:00"`) */
7590
+ interface TimeZoneDetails {
7591
+ /** IANA time zone identifier */
7592
+ tzIdentifier: $TimeZoneIdentifier;
7593
+ /** Long localized form (e.g., `'Pacific Standard Time'`, `'Nordamerikanische Westküsten-Normalzeit'`) */
7594
+ tzNameLong: Maybe<LooseLiteral<TimeZoneName>>;
7595
+ /** Long generic non-location format (e.g.: `'Pacific Time'`, `'Nordamerikanische Westküstenzeit'`) */
7596
+ tzNameLongGeneric: Maybe<LooseLiteral<TimeZoneName>>;
7597
+ /** Long localized GMT format, prefixed with `"GMT"` (e.g., `"GMT-08:00"`) */
7594
7598
  tzNameLongOffset: Maybe<LooseLiteral<$GMTOffset>>;
7595
- };
7599
+ }
7596
7600
  /** Options for `formatDate` utility */
7597
7601
  interface DateFormatOptions extends FormatOptions {
7598
7602
  /** - Date to format, must be parsable by {@link Date} constructor. Can be string, number or `Date`. Defaults to current time. */
@@ -7587,12 +7587,16 @@ interface GreetingConfigs {
7587
7587
  defaultMessage?: string;
7588
7588
  }
7589
7589
  /** Time zone details object */
7590
- type TimeZoneDetails = {
7591
- /** IANA time zone identifier */tzIdentifier: $TimeZoneIdentifier; /** Long localized form (e.g., `'Pacific Standard Time'`, `'Nordamerikanische Westküsten-Normalzeit'`) */
7592
- tzNameLong: Maybe<LooseLiteral<TimeZoneName>>; /** Long generic non-location format (e.g.: `'Pacific Time'`, `'Nordamerikanische Westküstenzeit'`) */
7593
- tzNameLongGeneric: Maybe<LooseLiteral<TimeZoneName>>; /** Long localized GMT format, prefixed with `"GMT"` (e.g., `"GMT-08:00"`) */
7590
+ interface TimeZoneDetails {
7591
+ /** IANA time zone identifier */
7592
+ tzIdentifier: $TimeZoneIdentifier;
7593
+ /** Long localized form (e.g., `'Pacific Standard Time'`, `'Nordamerikanische Westküsten-Normalzeit'`) */
7594
+ tzNameLong: Maybe<LooseLiteral<TimeZoneName>>;
7595
+ /** Long generic non-location format (e.g.: `'Pacific Time'`, `'Nordamerikanische Westküstenzeit'`) */
7596
+ tzNameLongGeneric: Maybe<LooseLiteral<TimeZoneName>>;
7597
+ /** Long localized GMT format, prefixed with `"GMT"` (e.g., `"GMT-08:00"`) */
7594
7598
  tzNameLongOffset: Maybe<LooseLiteral<$GMTOffset>>;
7595
- };
7599
+ }
7596
7600
  /** Options for `formatDate` utility */
7597
7601
  interface DateFormatOptions extends FormatOptions {
7598
7602
  /** - Date to format, must be parsable by {@link Date} constructor. Can be string, number or `Date`. Defaults to current time. */
@@ -16,9 +16,9 @@
16
16
 
17
17
  import { d as isString } from "./primitives-Djsevc69.mjs";
18
18
  import { E as isObjectWithKeys, T as isObject, g as isArrayOfType, j as isValidArray, v as isEmptyObject, w as isNotEmptyObject } from "./specials-Cye93-uo.mjs";
19
- import { t as isDateLike } from "./guards-Cp6KAkVI.mjs";
19
+ import { t as isDateLike } from "./guards-C0smSAKC.mjs";
20
20
  import { n as trimString } from "./basics-1_M7UvCn.mjs";
21
- import { f as isDeepEqual } from "./utils-CN3ocK98.mjs";
21
+ import { f as isDeepEqual } from "./utils-DXovsTKs.mjs";
22
22
 
23
23
  //#region src/form/guards.ts
24
24
  /**
@@ -16,9 +16,9 @@
16
16
 
17
17
  const require_primitives = require('./primitives-CBGICrDR.cjs');
18
18
  const require_specials = require('./specials-BM6cx43o.cjs');
19
- const require_guards = require('./guards-DP5k4_Mm.cjs');
19
+ const require_guards = require('./guards-ClGDJrQp.cjs');
20
20
  const require_basics = require('./basics-K8BDSYD6.cjs');
21
- const require_utils = require('./utils-CFyEFj2Y.cjs');
21
+ const require_utils = require('./utils-BxguWSoa.cjs');
22
22
 
23
23
  //#region src/form/guards.ts
24
24
  /**
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Ir as PageListOptions, Lr as PaginatorMeta, Rr as PaginatorOptions, wr as FromMetaOptions } from "./object-D70hzkoY.cjs";
17
+ import { Ir as PageListOptions, Lr as PaginatorMeta, Rr as PaginatorOptions, wr as FromMetaOptions } from "./object-ChFVh95z.cjs";
18
18
 
19
19
  //#region src/utils/Paginator.d.ts
20
20
  /** @class Generates pagination logic, offsets, metadata and other pagination logic(s) for APIs and UIs. */
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { Ir as PageListOptions, Lr as PaginatorMeta, Rr as PaginatorOptions, wr as FromMetaOptions } from "./object-D70hzkoY.mjs";
17
+ import { Ir as PageListOptions, Lr as PaginatorMeta, Rr as PaginatorOptions, wr as FromMetaOptions } from "./object-ChFVh95z.mjs";
18
18
 
19
19
  //#region src/utils/Paginator.d.ts
20
20
  /** @class Generates pagination logic, offsets, metadata and other pagination logic(s) for APIs and UIs. */
@@ -16,9 +16,9 @@
16
16
 
17
17
  import { a as isNonEmptyString, c as isNumber, d as isString } from "./primitives-Djsevc69.mjs";
18
18
  import { i as SORTED_TIME_FORMATS, n as MONTHS, r as MS_MAP, t as DAYS } from "./constants-rNhoy4DH.mjs";
19
- import { _ as isDate, d as isNumericString } from "./specials-Cye93-uo.mjs";
19
+ import { d as isNumericString } from "./specials-Cye93-uo.mjs";
20
20
  import { r as getOrdinal } from "./utilities-B9axOvOX.mjs";
21
- import { i as isTimeWithUnit } from "./guards-Cp6KAkVI.mjs";
21
+ import { i as isTimeWithUnit } from "./guards-C0smSAKC.mjs";
22
22
 
23
23
  //#region src/date/helpers.ts
24
24
  /** Core formatting logic shared by `formatDate` and `Chronos`, `BanglaCalendar` classes */
@@ -116,12 +116,12 @@ function _padZero(value, length = 2) {
116
116
  * Convert a string, number, or `Date` object to a `Date` object.
117
117
  * - If the input is already a `Date`, it is returned as is.
118
118
  * - If it's a string, it is parsed into a `Date`.
119
- * - If it's a number or undefined, it is treated as a timestamp and converted to a `Date`.
119
+ * - If it's a number, it is treated as a timestamp and converted to a `Date`.
120
120
  * @param value The date input to convert, which can be a `Date` object, a date string, a timestamp number, or undefined (which defaults to the current date and time).
121
121
  * @returns A `Date` object representing the input date.
122
122
  */
123
123
  function _dateArgsToDate(value) {
124
- return isDate(value) ? value : new Date(isString(value) ? value.replace(/['"]/g, "") : value ?? Date.now());
124
+ return value instanceof Date ? value : new Date(isString(value) ? value.replace(/['"]/g, "") : value ?? Date.now());
125
125
  }
126
126
 
127
127
  //#endregion
@@ -18,7 +18,7 @@ const require_primitives = require('./primitives-CBGICrDR.cjs');
18
18
  const require_constants = require('./constants-C4RW7Lei.cjs');
19
19
  const require_specials = require('./specials-BM6cx43o.cjs');
20
20
  const require_utilities = require('./utilities-CzyXCRHM.cjs');
21
- const require_guards = require('./guards-DP5k4_Mm.cjs');
21
+ const require_guards = require('./guards-ClGDJrQp.cjs');
22
22
 
23
23
  //#region src/date/helpers.ts
24
24
  /** Core formatting logic shared by `formatDate` and `Chronos`, `BanglaCalendar` classes */
@@ -116,12 +116,12 @@ function _padZero(value, length = 2) {
116
116
  * Convert a string, number, or `Date` object to a `Date` object.
117
117
  * - If the input is already a `Date`, it is returned as is.
118
118
  * - If it's a string, it is parsed into a `Date`.
119
- * - If it's a number or undefined, it is treated as a timestamp and converted to a `Date`.
119
+ * - If it's a number, it is treated as a timestamp and converted to a `Date`.
120
120
  * @param value The date input to convert, which can be a `Date` object, a date string, a timestamp number, or undefined (which defaults to the current date and time).
121
121
  * @returns A `Date` object representing the input date.
122
122
  */
123
123
  function _dateArgsToDate(value) {
124
- return require_specials.isDate(value) ? value : new Date(require_primitives.isString(value) ? value.replace(/['"]/g, "") : value ?? Date.now());
124
+ return value instanceof Date ? value : new Date(require_primitives.isString(value) ? value.replace(/['"]/g, "") : value ?? Date.now());
125
125
  }
126
126
 
127
127
  //#endregion
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { it as Numeric } from "./object-D70hzkoY.cjs";
17
+ import { it as Numeric } from "./object-ChFVh95z.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 { it as Numeric } from "./object-D70hzkoY.mjs";
17
+ import { it as Numeric } from "./object-ChFVh95z.mjs";
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 { n as PluralizeOptions } from "./pluralizer-B2oIrpwo.cjs";
17
+ import { n as PluralizeOptions } from "./pluralizer-CdG-VJ6t.cjs";
18
18
 
19
19
  //#region src/pluralizer/Pluralizer.d.ts
20
20
  /**
@@ -14,7 +14,7 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { n as PluralizeOptions } from "./pluralizer-BVMdlDZq.mjs";
17
+ import { n as PluralizeOptions } from "./pluralizer-D2Lh8CdU.mjs";
18
18
 
19
19
  //#region src/pluralizer/Pluralizer.d.ts
20
20
  /**
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { t as LOWERCASE } from "./constants-C7wERz5m.mjs";
18
- import { Ar as LooseLiteral, Dr as Join, t as $Countries, ti as Split } from "./object-D70hzkoY.mjs";
18
+ import { Ar as LooseLiteral, Dr as Join, t as $Countries, ti as Split } from "./object-ChFVh95z.mjs";
19
19
 
20
20
  //#region src/types/string.d.ts
21
21
  declare global {
@@ -245,14 +245,18 @@ interface DiffResult {
245
245
  };
246
246
  }
247
247
  /** A single character annotated with a `highlighted` flag indicating whether it differs from the other string in a diff operation. */
248
- type HighlightedText = {
248
+ interface HighlightedText {
249
+ /** Character text. */
249
250
  text: string;
251
+ /** Whether the character is different from the other string. */
250
252
  highlighted: boolean;
251
- };
253
+ }
252
254
  /** Result of a character-level diff, mapping each character in both strings to a `highlighted` flag. */
253
- type CharDiffResult = {
254
- /** An array of characters from the original string, each annotated with a `highlighted` flag indicating whether it differs from the modified string. */original: HighlightedText[]; /** An array of characters from the modified string, each annotated with a `highlighted` flag indicating whether it differs from the original string. */
255
+ interface CharDiffResult {
256
+ /** An array of characters from the original string, each annotated with a `highlighted` flag indicating whether it differs from the modified string. */
257
+ original: HighlightedText[];
258
+ /** An array of characters from the modified string, each annotated with a `highlighted` flag indicating whether it differs from the original string. */
255
259
  modified: HighlightedText[];
256
- };
260
+ }
257
261
  //#endregion
258
262
  export { MaskOptions as A, TitleCase as B, DiffLineType as C, Includes as D, HighlightedText as E, RandomIdOptions as F, Trim as H, SentenceCase as I, SnakeCase as L, PascalSnakeCase as M, PathCase as N, IsAlphabet as O, QueryString as P, SpecialCharacter as R, DiffLine as S, DotCase as T, TrainCase as V, Country as _, $NormalizeString as a, CountryName as b, $TrimRight as c, AnagramOptions as d, CamelCase as f, ConstantCase as g, CharDiffResult as h, $LowercaseWords as i, PascalCase as j, KebabCase as k, $UppercaseWords as l, CaseFormat as m, $EnsureString as n, $TitleCaseWords as o, CapitalizeOptions as p, $LowerCaseWord as r, $TrimLeft as s, $CapitalizeWords as t, Alphabet as u, CountryCode as v, DiffResult as w, CountryShortISO as x, CountryISO as y, StringCaseOptions as z };
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  import { t as LOWERCASE } from "./constants-C7wERz5m.cjs";
18
- import { Ar as LooseLiteral, Dr as Join, t as $Countries, ti as Split } from "./object-D70hzkoY.cjs";
18
+ import { Ar as LooseLiteral, Dr as Join, t as $Countries, ti as Split } from "./object-ChFVh95z.cjs";
19
19
 
20
20
  //#region src/types/string.d.ts
21
21
  declare global {
@@ -245,14 +245,18 @@ interface DiffResult {
245
245
  };
246
246
  }
247
247
  /** A single character annotated with a `highlighted` flag indicating whether it differs from the other string in a diff operation. */
248
- type HighlightedText = {
248
+ interface HighlightedText {
249
+ /** Character text. */
249
250
  text: string;
251
+ /** Whether the character is different from the other string. */
250
252
  highlighted: boolean;
251
- };
253
+ }
252
254
  /** Result of a character-level diff, mapping each character in both strings to a `highlighted` flag. */
253
- type CharDiffResult = {
254
- /** An array of characters from the original string, each annotated with a `highlighted` flag indicating whether it differs from the modified string. */original: HighlightedText[]; /** An array of characters from the modified string, each annotated with a `highlighted` flag indicating whether it differs from the original string. */
255
+ interface CharDiffResult {
256
+ /** An array of characters from the original string, each annotated with a `highlighted` flag indicating whether it differs from the modified string. */
257
+ original: HighlightedText[];
258
+ /** An array of characters from the modified string, each annotated with a `highlighted` flag indicating whether it differs from the original string. */
255
259
  modified: HighlightedText[];
256
- };
260
+ }
257
261
  //#endregion
258
262
  export { MaskOptions as A, TitleCase as B, DiffLineType as C, Includes as D, HighlightedText as E, RandomIdOptions as F, Trim as H, SentenceCase as I, SnakeCase as L, PascalSnakeCase as M, PathCase as N, IsAlphabet as O, QueryString as P, SpecialCharacter as R, DiffLine as S, DotCase as T, TrainCase as V, Country as _, $NormalizeString as a, CountryName as b, $TrimRight as c, AnagramOptions as d, CamelCase as f, ConstantCase as g, CharDiffResult as h, $LowercaseWords as i, PascalCase as j, KebabCase as k, $UppercaseWords as l, CaseFormat as m, $EnsureString as n, $TitleCaseWords as o, CapitalizeOptions as p, $LowerCaseWord as r, $TrimLeft as s, $CapitalizeWords as t, Alphabet as u, CountryCode as v, DiffResult as w, CountryShortISO as x, CountryISO as y, StringCaseOptions as z };
package/dist/stylog.d.cts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { _ as Hex } from "./Color-G-pOkVp7.cjs";
18
- import { a as AnsiSequence, n as Stylog, o as BGColor, t as LogStyler, u as TextStyle } from "./Stylog-D4g1SdeP.cjs";
17
+ import { _ as Hex } from "./Color-Dsut0Bex.cjs";
18
+ import { a as AnsiSequence, n as Stylog, o as BGColor, t as LogStyler, u as TextStyle } from "./Stylog-TyLCTRtT.cjs";
19
19
 
20
20
  //#region src/stylog/utils.d.ts
21
21
  /**
package/dist/stylog.d.mts CHANGED
@@ -14,8 +14,8 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { _ as Hex } from "./Color-C_KH9aj6.mjs";
18
- import { a as AnsiSequence, n as Stylog, o as BGColor, t as LogStyler, u as TextStyle } from "./Stylog-D7Y2WHkI.mjs";
17
+ import { _ as Hex } from "./Color-DCfoQk_-.mjs";
18
+ import { a as AnsiSequence, n as Stylog, o as BGColor, t as LogStyler, u as TextStyle } from "./Stylog-DXZtHAbp.mjs";
19
19
 
20
20
  //#region src/stylog/utils.d.ts
21
21
  /**
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { a as Flattened, c as OrderOption, d as SortOptions, i as FirstFieldValue, l as SortByOption, n as FindOptions, o as Option, r as FirstFieldKey, s as OptionsConfig, t as FieldValue, u as SortNature } from "../array-CUFCqgSq.cjs";
17
+ import { a as Flattened, c as OrderOption, d as SortOptions, i as FirstFieldValue, l as SortByOption, n as FindOptions, o as Option, r as FirstFieldKey, s as OptionsConfig, t as FieldValue, u as SortNature } from "../array-CqDu610k.cjs";
18
18
  export { FieldValue, FindOptions, FirstFieldKey, FirstFieldValue, Flattened, Option, OptionsConfig, OrderOption, SortByOption, SortNature, SortOptions };
@@ -14,5 +14,5 @@
14
14
  * limitations under the License.
15
15
  */
16
16
 
17
- import { a as Flattened, c as OrderOption, d as SortOptions, i as FirstFieldValue, l as SortByOption, n as FindOptions, o as Option, r as FirstFieldKey, s as OptionsConfig, t as FieldValue, u as SortNature } from "../array-DcOUzJQy.mjs";
17
+ import { a as Flattened, c as OrderOption, d as SortOptions, i as FirstFieldValue, l as SortByOption, n as FindOptions, o as Option, r as FirstFieldKey, s as OptionsConfig, t as FieldValue, u as SortNature } from "../array-B6jWzJ4F.mjs";
18
18
  export { FieldValue, FindOptions, FirstFieldKey, FirstFieldValue, Flattened, Option, OptionsConfig, OrderOption, SortByOption, SortNature, SortOptions };