umt 2.12.1 → 2.12.2

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 (129) hide show
  1. package/module/Validate/isNode.js +2 -3
  2. package/module/Validate/isNode.js.map +1 -1
  3. package/module/es5/Advance/rangeAdvance.js +1 -1
  4. package/module/es5/Array/chunk.d.ts +1 -1
  5. package/module/es5/Array/dualPivotQuickSort.d.ts +1 -1
  6. package/module/es5/Array/first.d.ts +1 -1
  7. package/module/es5/Array/generateNumberArray.js +4 -4
  8. package/module/es5/Array/insertionSort.d.ts +1 -1
  9. package/module/es5/Array/mergeSort.d.ts +1 -1
  10. package/module/es5/Array/quickSort.d.ts +1 -1
  11. package/module/es5/Array/sortingHelpers/applyInsertionSortIfNeeded.d.ts +1 -1
  12. package/module/es5/Array/sortingHelpers/insertionSortRange.d.ts +1 -1
  13. package/module/es5/Array/sum.js +1 -1
  14. package/module/es5/Array/timSort.d.ts +1 -1
  15. package/module/es5/Array/zip.d.ts +1 -1
  16. package/module/es5/Array/zipLongest.d.ts +1 -1
  17. package/module/es5/Color/cmykToRgba.js +6 -6
  18. package/module/es5/Color/hexaToRgba.js +2 -2
  19. package/module/es5/Color/hslaToRgba.js +7 -7
  20. package/module/es5/Color/rgbaToCmyk.js +3 -3
  21. package/module/es5/Color/rgbaToHsla.js +5 -5
  22. package/module/es5/Consts/httpStatus/httpClientErrorStatus.d.ts +1 -1
  23. package/module/es5/Consts/httpStatus/httpInformationalStatus.d.ts +1 -1
  24. package/module/es5/Consts/httpStatus/httpRedirectionStatus.d.ts +1 -1
  25. package/module/es5/Consts/httpStatus/httpServerErrorStatus.d.ts +1 -1
  26. package/module/es5/Consts/httpStatus/httpSuccessStatus.d.ts +1 -1
  27. package/module/es5/Consts/httpStatus/index.d.ts +6 -6
  28. package/module/es5/Consts/httpStatus/index.js +5 -5
  29. package/module/es5/DataStructure/priorityQueue.js +1 -1
  30. package/module/es5/Date/birthday.d.ts +3 -3
  31. package/module/es5/Date/birthday.js +2 -2
  32. package/module/es5/Date/dateRange.js +1 -1
  33. package/module/es5/Date/dayOfWeek.d.ts +3 -3
  34. package/module/es5/Date/dayOfWeek.js +2 -2
  35. package/module/es5/Date/format.js +2 -2
  36. package/module/es5/Date/getDay.d.ts +1 -1
  37. package/module/es5/Date/getTimezoneOffsetString.js +1 -1
  38. package/module/es5/Date/new.d.ts +12 -12
  39. package/module/es5/Date/now.d.ts +1 -1
  40. package/module/es5/Date/now.js +1 -1
  41. package/module/es5/Math/calculator/convertCurrency.js +2 -2
  42. package/module/es5/Math/calculator/core.js +5 -5
  43. package/module/es5/Math/calculator/literalExpression.js +2 -2
  44. package/module/es5/Math/flexibleNumberConversion.js +1 -1
  45. package/module/es5/Math/gcd.js +1 -1
  46. package/module/es5/Math/mathSeparator.js +1 -1
  47. package/module/es5/Math/median.js +1 -1
  48. package/module/es5/Math/mode.js +1 -1
  49. package/module/es5/Math/percentile.js +1 -1
  50. package/module/es5/Math/standardDeviation.js +2 -2
  51. package/module/es5/Object/merge.d.ts +1 -1
  52. package/module/es5/Object/mergeDeep.d.ts +1 -1
  53. package/module/es5/Object/pickDeep.d.ts +2 -2
  54. package/module/es5/Simple/Array/quickSortSimple.d.ts +1 -1
  55. package/module/es5/Simple/Array/quickSortSimple.js +2 -2
  56. package/module/es5/Simple/Date/birthdaySimple.d.ts +3 -3
  57. package/module/es5/Simple/Date/birthdaySimple.js +1 -1
  58. package/module/es5/Simple/Date/dayOfWeekSimple.d.ts +8 -8
  59. package/module/es5/Simple/Date/dayOfWeekSimple.js +1 -1
  60. package/module/es5/Simple/Date/nowSimple.d.ts +2 -2
  61. package/module/es5/Simple/Date/nowSimple.js +2 -2
  62. package/module/es5/Simple/Math/deviationValueSimple.js +3 -3
  63. package/module/es5/String/formatString/applyFormatter.d.ts +1 -1
  64. package/module/es5/String/formatString/defaultFormatters.d.ts +1 -1
  65. package/module/es5/String/formatString/detectMode.d.ts +3 -3
  66. package/module/es5/String/formatString/index.d.ts +3 -3
  67. package/module/es5/String/fromBase64.js +1 -1
  68. package/module/es5/String/fuzzySearch.js +1 -1
  69. package/module/es5/Time/convertTime.d.ts +2 -2
  70. package/module/es5/Time/convertTime.js +2 -2
  71. package/module/es5/Time/normalizeTimeUnit.d.ts +2 -2
  72. package/module/es5/Tool/pipe.d.ts +1 -1
  73. package/module/es5/Tool/pipe.js +1 -1
  74. package/module/es5/UA/extractBrowserFromUserAgent.d.ts +1 -1
  75. package/module/es5/UA/extractDeviceFromUserAgent.d.ts +1 -1
  76. package/module/es5/UA/extractOsFromUserAgent.d.ts +1 -1
  77. package/module/es5/UA/parseUserAgent.d.ts +1 -1
  78. package/module/es5/Unit/unitConverterInitialization.js +2 -2
  79. package/module/es5/Validate/array/core.d.ts +1 -1
  80. package/module/es5/Validate/array/core.js +2 -2
  81. package/module/es5/Validate/boolean/core.d.ts +1 -1
  82. package/module/es5/Validate/boolean/core.js +1 -1
  83. package/module/es5/Validate/core/index.d.ts +1 -1
  84. package/module/es5/Validate/isNode.js +2 -5
  85. package/module/es5/Validate/number/core.d.ts +2 -2
  86. package/module/es5/Validate/number/core.js +1 -1
  87. package/module/es5/Validate/number/double.d.ts +1 -1
  88. package/module/es5/Validate/number/double.js +1 -1
  89. package/module/es5/Validate/number/even.d.ts +1 -1
  90. package/module/es5/Validate/number/even.js +1 -1
  91. package/module/es5/Validate/number/maxValue.d.ts +1 -1
  92. package/module/es5/Validate/number/minValue.d.ts +1 -1
  93. package/module/es5/Validate/number/odd.d.ts +1 -1
  94. package/module/es5/Validate/number/odd.js +1 -1
  95. package/module/es5/Validate/number/prime.d.ts +1 -1
  96. package/module/es5/Validate/number/prime.js +1 -1
  97. package/module/es5/Validate/object/core.d.ts +2 -2
  98. package/module/es5/Validate/object/core.js +1 -1
  99. package/module/es5/Validate/object/optional.d.ts +1 -1
  100. package/module/es5/Validate/string/core.d.ts +2 -2
  101. package/module/es5/Validate/string/core.js +1 -1
  102. package/module/es5/Validate/string/length.d.ts +1 -1
  103. package/module/es5/Validate/string/maxLength.d.ts +1 -1
  104. package/module/es5/Validate/string/minLength.d.ts +1 -1
  105. package/module/es5/Validate/string/numberString.d.ts +1 -1
  106. package/module/es5/Validate/string/numberString.js +1 -1
  107. package/module/es5/Validate/string/regexMatch.d.ts +1 -1
  108. package/module/es5/Validate/string/uuid.d.ts +1 -1
  109. package/module/es5/Validate/string/validateEmail.d.ts +2 -2
  110. package/module/es5/Validate/string/validateEmail.js +1 -1
  111. package/module/es5/tsconfig.tsbuildinfo +1 -1
  112. package/module/es5/types/array/chunk.d.ts +1 -1
  113. package/module/es5/types/array/compareFunction.d.ts +1 -1
  114. package/module/es5/types/clock/hoursAm.d.ts +1 -1
  115. package/module/es5/types/clock/hoursAmInt.d.ts +1 -1
  116. package/module/es5/types/clock/millisecondsType.d.ts +3 -3
  117. package/module/es5/types/clock/millisecondsTypeInt.d.ts +3 -3
  118. package/module/es5/types/clock/minutesType.d.ts +6 -6
  119. package/module/es5/types/clock/minutesTypeInt.d.ts +6 -6
  120. package/module/es5/types/joke/threeStepsForwardTwoStepsBack.d.ts +3 -3
  121. package/module/es5/types/logic/bGreaterThanA.d.ts +1 -1
  122. package/module/es5/types/logic/slice.d.ts +1 -1
  123. package/module/es5/types/math/add.d.ts +1 -1
  124. package/module/es5/types/math/divide.d.ts +1 -1
  125. package/module/es5/types/math/modulo.d.ts +1 -1
  126. package/module/es5/types/math/subtract.d.ts +1 -1
  127. package/module/es5/types/object/pickDeep.d.ts +1 -1
  128. package/module/es5/types/object/shallowObjectValue.d.ts +1 -1
  129. package/package.json +4 -4
@@ -1,4 +1,4 @@
1
- import type { Length } from "$/logic/length";
1
+ import type { Length } from "../logic/length";
2
2
  type Chunk<T, N extends number, C extends unknown[] = [], R extends unknown[] = []> = T extends [infer F, ...infer L] ? Length<C> extends N ? Chunk<L, N, [F], [...R, C]> : Chunk<L, N, [...C, F], R> : Length<C> extends 0 ? Length<R> extends 0 ? T[] : R : [...R, C];
3
3
  export type ChunkArrayType<T, N extends number> = Chunk<T, N>;
4
4
  export {};
@@ -1,2 +1,2 @@
1
- import type { compareFunctionDefault } from "@/Array/compareFunctionDefault";
1
+ import type { compareFunctionDefault } from "../../Array/compareFunctionDefault";
2
2
  export type CompareFunction<T> = typeof compareFunctionDefault<T>;
@@ -1,2 +1,2 @@
1
- import type { Int } from "$/int/int";
1
+ import type { Int } from "../int/int";
2
2
  export type HoursAm = `0${Int}` | `${10 | 11 | 12}`;
@@ -1,2 +1,2 @@
1
- import type { Int } from "$/int/int";
1
+ import type { Int } from "../int/int";
2
2
  export type HoursAmInt = Int | 10 | 11 | 12;
@@ -1,4 +1,4 @@
1
- import type { DoubleDigitInt } from "$/int/doubleDigitInt";
2
- import type { Int } from "$/int/int";
3
- import type { TripleDigitInt } from "$/int/tripleDigitInt";
1
+ import type { DoubleDigitInt } from "../int/doubleDigitInt";
2
+ import type { Int } from "../int/int";
3
+ import type { TripleDigitInt } from "../int/tripleDigitInt";
4
4
  export type MillisecondsType = `00${Int}` | `0${DoubleDigitInt}` | `${TripleDigitInt}`;
@@ -1,4 +1,4 @@
1
- import type { DoubleDigitInt } from "$/int/doubleDigitInt";
2
- import type { Int } from "$/int/int";
3
- import type { TripleDigitInt } from "$/int/tripleDigitInt";
1
+ import type { DoubleDigitInt } from "../int/doubleDigitInt";
2
+ import type { Int } from "../int/int";
3
+ import type { TripleDigitInt } from "../int/tripleDigitInt";
4
4
  export type MillisecondsTypeInt = Int | DoubleDigitInt | TripleDigitInt;
@@ -1,7 +1,7 @@
1
- import type { Int } from "$/int/int";
2
- import type { UpToFifty } from "$/int/upToFifty";
3
- import type { UpToForty } from "$/int/upToForty";
4
- import type { UpToSixty } from "$/int/upToSixty";
5
- import type { UpToThirty } from "$/int/upToThirty";
6
- import type { UpToTwenty } from "$/int/upToTwenty";
1
+ import type { Int } from "../int/int";
2
+ import type { UpToFifty } from "../int/upToFifty";
3
+ import type { UpToForty } from "../int/upToForty";
4
+ import type { UpToSixty } from "../int/upToSixty";
5
+ import type { UpToThirty } from "../int/upToThirty";
6
+ import type { UpToTwenty } from "../int/upToTwenty";
7
7
  export type MinutesType = `0${Int}` | `${UpToTwenty | UpToThirty | UpToForty | UpToFifty | UpToSixty}`;
@@ -1,7 +1,7 @@
1
- import type { Int } from "$/int/int";
2
- import type { UpToFifty } from "$/int/upToFifty";
3
- import type { UpToForty } from "$/int/upToForty";
4
- import type { UpToSixty } from "$/int/upToSixty";
5
- import type { UpToThirty } from "$/int/upToThirty";
6
- import type { UpToTwenty } from "$/int/upToTwenty";
1
+ import type { Int } from "../int/int";
2
+ import type { UpToFifty } from "../int/upToFifty";
3
+ import type { UpToForty } from "../int/upToForty";
4
+ import type { UpToSixty } from "../int/upToSixty";
5
+ import type { UpToThirty } from "../int/upToThirty";
6
+ import type { UpToTwenty } from "../int/upToTwenty";
7
7
  export type MinutesTypeInt = Int | UpToTwenty | UpToThirty | UpToForty | UpToFifty | UpToSixty;
@@ -1,4 +1,4 @@
1
- import type { Add } from "$/math/add";
2
- import type { Multiply } from "$/math/multiply";
3
- import type { Subtract } from "$/math/subtract";
1
+ import type { Add } from "../math/add";
2
+ import type { Multiply } from "../math/multiply";
3
+ import type { Subtract } from "../math/subtract";
4
4
  export type ThreeStepsForwardTwoStepsBack<T extends number> = T extends 1 ? 1 : T extends 2 ? 2 : T extends 3 ? 3 : Add<3, Multiply<3, Subtract<T, 3>>>;
@@ -1,4 +1,4 @@
1
1
  import type { Equal } from "./equal";
2
2
  import type { ZeroAorB } from "./zeroAorB";
3
- import type { Subtract } from "$/math/subtract";
3
+ import type { Subtract } from "../math/subtract";
4
4
  export type BGreaterThanA<A extends number, B extends number> = `${A}` extends `-${infer N extends number}` ? `${B}` extends `-${infer M extends number}` ? BGreaterThanA<N, M> : BGreaterThanA<N, B> : `${B}` extends `-${infer M extends number}` ? BGreaterThanA<A, M> : ZeroAorB<A, B> extends true ? Equal<A, B> extends true ? false : A extends 0 ? true : false : BGreaterThanA<Subtract<A, 1>, Subtract<B, 1>>;
@@ -1,2 +1,2 @@
1
- import type { Subtract } from "$/math/subtract";
1
+ import type { Subtract } from "../math/subtract";
2
2
  export type Slice<S extends string, Start extends number, End extends number, A extends string = ""> = S extends `${infer F}${infer R}` ? Start extends 0 ? End extends 0 ? A : Slice<R, 0, Subtract<End, 1>, `${A}${F}`> : Slice<R, Subtract<Start, 1>, Subtract<End, 1>, A> : A;
@@ -1,4 +1,4 @@
1
1
  import type { NumberToArray } from "./numberToArray";
2
2
  import type { Subtract } from "./subtract";
3
- import type { Length } from "$/logic/length";
3
+ import type { Length } from "../logic/length";
4
4
  export type Add<X extends number, Y extends number> = `${X}` extends `-${infer N extends number}` ? `${Y}` extends `-${infer M extends number}` ? `-${Add<N, M>}` extends `${infer R extends number}` ? R : never : Subtract<Y, N> : `${Y}` extends `-${infer M extends number}` ? Subtract<X, M> : Length<[...NumberToArray<X>, ...NumberToArray<Y>]>;
@@ -1,6 +1,6 @@
1
1
  import type { Add } from "./add";
2
2
  import type { Subtract } from "./subtract";
3
- import type { BGreaterThanA } from "$/logic/bGreaterThanA";
3
+ import type { BGreaterThanA } from "../logic/bGreaterThanA";
4
4
  export type Divide<A extends number, B extends number> = A extends 0 ? never : B extends 0 ? never : `${A}` extends `-${infer N extends number}` ? `${B}` extends `-${infer M extends number}` ? DivideHelper<N, M> : `-${DivideHelper<N, B>}` extends `${infer R extends number}` ? R : never : `${B}` extends `-${infer M extends number}` ? `-${DivideHelper<A, M>}` extends `${infer R extends number}` ? R : never : DivideHelper<A, B>;
5
5
  type DivideHelper<X extends number, Y extends number, A extends number = 0> = BGreaterThanA<X, Y> extends true ? A : DivideHelper<Subtract<X, Y>, Y, Add<A, 1>>;
6
6
  export {};
@@ -1,3 +1,3 @@
1
1
  import type { Subtract } from "./subtract";
2
- import type { BGreaterThanA } from "$/logic/bGreaterThanA";
2
+ import type { BGreaterThanA } from "../logic/bGreaterThanA";
3
3
  export type Modulo<A extends number, B extends number> = `${A}` extends `-${infer N extends number}` ? `${B}` extends `-${infer M extends number}` ? Modulo<N, M> : Modulo<N, B> : `${B}` extends `-${infer M extends number}` ? Modulo<A, M> : BGreaterThanA<A, B> extends true ? A : Modulo<Subtract<A, B>, B>;
@@ -1,4 +1,4 @@
1
1
  import type { Add } from "./add";
2
2
  import type { NumberToArray } from "./numberToArray";
3
- import type { Length } from "$/logic/length";
3
+ import type { Length } from "../logic/length";
4
4
  export type Subtract<A extends number, B extends number> = `${A}` extends `-${infer N extends number}` ? `${B}` extends `-${infer M extends number}` ? Subtract<M, N> : `-${Add<N, B>}` extends `${infer R extends number}` ? R : never : `${B}` extends `-${infer M extends number}` ? Length<[...NumberToArray<A>, ...NumberToArray<M>]> : NumberToArray<A> extends [...NumberToArray<B>, ...infer R] ? Length<R> : NumberToArray<B> extends [...NumberToArray<A>, ...infer R] ? `-${Length<R>}` extends `${infer M extends number}` ? M : never : never;
@@ -1,5 +1,5 @@
1
1
  import type { PickDeepKey } from "./pickDeepKey";
2
- import type { UnionToIntersection } from "$/logic/unionToIntersection";
2
+ import type { UnionToIntersection } from "../logic/unionToIntersection";
3
3
  type GetValueAtPath<T, P extends string> = P extends `${infer Key}.${infer Rest}` ? Key extends keyof T ? T[Key] extends object ? GetValueAtPath<T[Key], Rest> : never : never : P extends keyof T ? T[P] : never;
4
4
  type ConstructNestedObject<P extends string, V> = P extends `${infer Key}.${infer Rest}` ? {
5
5
  [K in Key]: ConstructNestedObject<Rest, V>;
@@ -1,4 +1,4 @@
1
- import type { UnionToIntersection } from "$/logic/unionToIntersection";
1
+ import type { UnionToIntersection } from "../logic/unionToIntersection";
2
2
  /**
3
3
  * Extract the value type from the first level of an object
4
4
  *
package/package.json CHANGED
@@ -169,9 +169,9 @@
169
169
  },
170
170
  "scripts": {
171
171
  "build": "tsc && tsc-alias -p tsconfig.json",
172
- "build:cjs": "tsc -p tsconfig.cjs.json && bun run cjs.build.mjs && cp LICENSE common-module/LICENSE && cp README.md common-module/README.md && cp .npmignore common-module/.npmignore",
173
- "build:babel": "babel src --extensions '.ts' --out-dir module/es5 && tsc --emitDeclarationOnly --outDir module/es5",
174
- "build:cjs:babel": "babel src --extensions '.ts' --out-dir common-module/module/es5 && tsc --emitDeclarationOnly --outDir common-module/module/es5",
172
+ "build:cjs": "tsc -p tsconfig.cjs.json && tsc-alias -p tsconfig.cjs.json && bun run cjs.build.mjs && cp LICENSE common-module/LICENSE && cp README.md common-module/README.md && cp .npmignore common-module/.npmignore",
173
+ "build:babel": "babel src --extensions '.ts' --out-dir module/es5 && tsc --emitDeclarationOnly --outDir module/es5 && tsc-alias -p tsconfig.json --outDir module/es5",
174
+ "build:cjs:babel": "babel src --extensions '.ts' --out-dir common-module/module/es5 && tsc --emitDeclarationOnly --outDir common-module/module/es5 && tsc-alias -p tsconfig.cjs.json --outDir common-module/module/es5",
175
175
  "build:full": "bun run build && bun run build:cjs && bun run build:babel && bun run build:cjs:babel",
176
176
  "build:clean": "rm -rf module && bun run build",
177
177
  "build:clean:full": "rm -rf module && rm -rf common-module && bun run build:full",
@@ -187,5 +187,5 @@
187
187
  },
188
188
  "type": "module",
189
189
  "types": "module/index.d.ts",
190
- "version": "2.12.1"
190
+ "version": "2.12.2"
191
191
  }