umt 2.15.0 → 2.17.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 (280) hide show
  1. package/README.md +42 -0
  2. package/module/Array/chunk.js.map +1 -1
  3. package/module/Array/uniqBy.js.map +1 -1
  4. package/module/Async/debounceAsync.d.ts +18 -0
  5. package/module/Async/debounceAsync.js +59 -0
  6. package/module/Async/debounceAsync.js.map +1 -0
  7. package/module/Async/index.d.ts +5 -0
  8. package/module/Async/index.js +5 -0
  9. package/module/Async/index.js.map +1 -1
  10. package/module/Async/pSettled.d.ts +19 -0
  11. package/module/Async/pSettled.js +54 -0
  12. package/module/Async/pSettled.js.map +1 -0
  13. package/module/Async/retry.d.ts +22 -0
  14. package/module/Async/retry.js +49 -0
  15. package/module/Async/retry.js.map +1 -0
  16. package/module/Async/throttleAsync.d.ts +18 -0
  17. package/module/Async/throttleAsync.js +41 -0
  18. package/module/Async/throttleAsync.js.map +1 -0
  19. package/module/Async/waitFor.d.ts +18 -0
  20. package/module/Async/waitFor.js +32 -0
  21. package/module/Async/waitFor.js.map +1 -0
  22. package/module/Date/addDuration.d.ts +15 -0
  23. package/module/Date/addDuration.js +40 -0
  24. package/module/Date/addDuration.js.map +1 -0
  25. package/module/Date/diff.d.ts +14 -0
  26. package/module/Date/diff.js +45 -0
  27. package/module/Date/diff.js.map +1 -0
  28. package/module/Date/durationUnit.d.ts +12 -0
  29. package/module/Date/durationUnit.js +2 -0
  30. package/module/Date/durationUnit.js.map +1 -0
  31. package/module/Date/endOf.d.ts +13 -0
  32. package/module/Date/endOf.js +58 -0
  33. package/module/Date/endOf.js.map +1 -0
  34. package/module/Date/formatRelative.d.ts +13 -0
  35. package/module/Date/formatRelative.js +35 -0
  36. package/module/Date/formatRelative.js.map +1 -0
  37. package/module/Date/index.d.ts +10 -0
  38. package/module/Date/index.js +10 -0
  39. package/module/Date/index.js.map +1 -1
  40. package/module/Date/isBusinessDay.d.ts +10 -0
  41. package/module/Date/isBusinessDay.js +18 -0
  42. package/module/Date/isBusinessDay.js.map +1 -0
  43. package/module/Date/isSameDay.d.ts +10 -0
  44. package/module/Date/isSameDay.js +13 -0
  45. package/module/Date/isSameDay.js.map +1 -0
  46. package/module/Date/isWeekend.d.ts +9 -0
  47. package/module/Date/isWeekend.js +13 -0
  48. package/module/Date/isWeekend.js.map +1 -0
  49. package/module/Date/msByUnit.d.ts +2 -0
  50. package/module/Date/msByUnit.js +10 -0
  51. package/module/Date/msByUnit.js.map +1 -0
  52. package/module/Date/startOf.d.ts +13 -0
  53. package/module/Date/startOf.js +58 -0
  54. package/module/Date/startOf.js.map +1 -0
  55. package/module/Date/subDuration.d.ts +13 -0
  56. package/module/Date/subDuration.js +14 -0
  57. package/module/Date/subDuration.js.map +1 -0
  58. package/module/Error/index.d.ts +0 -1
  59. package/module/Error/index.js +0 -1
  60. package/module/Error/index.js.map +1 -1
  61. package/module/Object/deepClone.js.map +1 -1
  62. package/module/Object/flattenObject.d.ts +11 -0
  63. package/module/Object/flattenObject.js +29 -0
  64. package/module/Object/flattenObject.js.map +1 -0
  65. package/module/Object/get.d.ts +1 -0
  66. package/module/Object/get.js +26 -0
  67. package/module/Object/get.js.map +1 -0
  68. package/module/Object/has.d.ts +0 -19
  69. package/module/Object/has.js +4 -3
  70. package/module/Object/has.js.map +1 -1
  71. package/module/Object/index.d.ts +8 -0
  72. package/module/Object/index.js +8 -0
  73. package/module/Object/index.js.map +1 -1
  74. package/module/Object/invert.d.ts +12 -0
  75. package/module/Object/invert.js +20 -0
  76. package/module/Object/invert.js.map +1 -0
  77. package/module/Object/mergeDeep.js.map +1 -1
  78. package/module/Object/omitBy.d.ts +11 -0
  79. package/module/Object/omitBy.js +21 -0
  80. package/module/Object/omitBy.js.map +1 -0
  81. package/module/Object/pathSegments.d.ts +1 -0
  82. package/module/Object/pathSegments.js +2 -0
  83. package/module/Object/pathSegments.js.map +1 -0
  84. package/module/Object/pick.d.ts +10 -0
  85. package/module/Object/pick.js +10 -0
  86. package/module/Object/pick.js.map +1 -1
  87. package/module/Object/pickBy.d.ts +11 -0
  88. package/module/Object/pickBy.js +21 -0
  89. package/module/Object/pickBy.js.map +1 -0
  90. package/module/Object/set.d.ts +19 -0
  91. package/module/Object/set.js +38 -0
  92. package/module/Object/set.js.map +1 -0
  93. package/module/Object/unflattenObject.d.ts +15 -0
  94. package/module/Object/unflattenObject.js +23 -0
  95. package/module/Object/unflattenObject.js.map +1 -0
  96. package/module/Random/index.d.ts +7 -0
  97. package/module/Random/index.js +8 -0
  98. package/module/Random/index.js.map +1 -0
  99. package/module/Random/randomBoolean.d.ts +9 -0
  100. package/module/Random/randomBoolean.js +10 -0
  101. package/module/Random/randomBoolean.js.map +1 -0
  102. package/module/Random/randomChoice.d.ts +9 -0
  103. package/module/Random/randomChoice.js +13 -0
  104. package/module/Random/randomChoice.js.map +1 -0
  105. package/module/Random/randomFloat.d.ts +9 -0
  106. package/module/Random/randomFloat.js +10 -0
  107. package/module/Random/randomFloat.js.map +1 -0
  108. package/module/Random/randomInt.d.ts +9 -0
  109. package/module/Random/randomInt.js +14 -0
  110. package/module/Random/randomInt.js.map +1 -0
  111. package/module/Random/randomUuid.d.ts +9 -0
  112. package/module/Random/randomUuid.js +31 -0
  113. package/module/Random/randomUuid.js.map +1 -0
  114. package/module/Random/seededRandom.d.ts +11 -0
  115. package/module/Random/seededRandom.js +31 -0
  116. package/module/Random/seededRandom.js.map +1 -0
  117. package/module/Random/weightedChoice.d.ts +15 -0
  118. package/module/Random/weightedChoice.js +34 -0
  119. package/module/Random/weightedChoice.js.map +1 -0
  120. package/module/String/capitalize.d.ts +12 -0
  121. package/module/String/capitalize.js +18 -0
  122. package/module/String/capitalize.js.map +1 -0
  123. package/module/String/capitalizeWord.d.ts +1 -0
  124. package/module/String/capitalizeWord.js +2 -0
  125. package/module/String/capitalizeWord.js.map +1 -0
  126. package/module/String/dedent.d.ts +19 -0
  127. package/module/String/dedent.js +56 -0
  128. package/module/String/dedent.js.map +1 -0
  129. package/module/String/index.d.ts +10 -0
  130. package/module/String/index.js +10 -0
  131. package/module/String/index.js.map +1 -1
  132. package/module/String/mask.d.ts +20 -0
  133. package/module/String/mask.js +24 -0
  134. package/module/String/mask.js.map +1 -0
  135. package/module/String/pascalCase.d.ts +9 -0
  136. package/module/String/pascalCase.js +14 -0
  137. package/module/String/pascalCase.js.map +1 -0
  138. package/module/String/snakeCase.d.ts +9 -0
  139. package/module/String/snakeCase.js +13 -0
  140. package/module/String/snakeCase.js.map +1 -0
  141. package/module/String/titleCase.d.ts +9 -0
  142. package/module/String/titleCase.js +14 -0
  143. package/module/String/titleCase.js.map +1 -0
  144. package/module/String/uncapitalize.d.ts +10 -0
  145. package/module/String/uncapitalize.js +16 -0
  146. package/module/String/uncapitalize.js.map +1 -0
  147. package/module/String/wordCount.d.ts +10 -0
  148. package/module/String/wordCount.js +12 -0
  149. package/module/String/wordCount.js.map +1 -0
  150. package/module/String/words.d.ts +12 -0
  151. package/module/String/words.js +21 -0
  152. package/module/String/words.js.map +1 -0
  153. package/module/Tool/createPipeline.d.ts +1 -1
  154. package/module/Tool/createPipeline.js +8 -6
  155. package/module/Tool/createPipeline.js.map +1 -1
  156. package/module/Tool/pipe.js.map +1 -1
  157. package/module/URL/buildUrl.d.ts +10 -0
  158. package/module/URL/buildUrl.js +10 -4
  159. package/module/URL/buildUrl.js.map +1 -1
  160. package/module/URL/parseQueryString.d.ts +6 -0
  161. package/module/URL/parseQueryString.js +6 -4
  162. package/module/URL/parseQueryString.js.map +1 -1
  163. package/module/Validate/isNumber.js.map +1 -1
  164. package/module/Validate/object/core.js +0 -1
  165. package/module/Validate/object/core.js.map +1 -1
  166. package/module/es5/Async/debounceAsync.d.ts +18 -0
  167. package/module/es5/Async/debounceAsync.js +103 -0
  168. package/module/es5/Async/index.d.ts +5 -0
  169. package/module/es5/Async/index.js +55 -0
  170. package/module/es5/Async/pSettled.d.ts +19 -0
  171. package/module/es5/Async/pSettled.js +68 -0
  172. package/module/es5/Async/retry.d.ts +22 -0
  173. package/module/es5/Async/retry.js +106 -0
  174. package/module/es5/Async/throttleAsync.d.ts +18 -0
  175. package/module/es5/Async/throttleAsync.js +46 -0
  176. package/module/es5/Async/waitFor.d.ts +18 -0
  177. package/module/es5/{Error/retry.js → Async/waitFor.js} +68 -74
  178. package/module/es5/Date/addDuration.d.ts +15 -0
  179. package/module/es5/Date/addDuration.js +45 -0
  180. package/module/es5/Date/diff.d.ts +14 -0
  181. package/module/es5/Date/diff.js +40 -0
  182. package/module/es5/Date/durationUnit.d.ts +12 -0
  183. package/module/es5/Date/durationUnit.js +5 -0
  184. package/module/es5/Date/endOf.d.ts +13 -0
  185. package/module/es5/Date/endOf.js +72 -0
  186. package/module/es5/Date/formatRelative.d.ts +13 -0
  187. package/module/es5/Date/formatRelative.js +61 -0
  188. package/module/es5/Date/index.d.ts +10 -0
  189. package/module/es5/Date/index.js +110 -0
  190. package/module/es5/Date/isBusinessDay.d.ts +10 -0
  191. package/module/es5/Date/isBusinessDay.js +26 -0
  192. package/module/es5/Date/isSameDay.d.ts +10 -0
  193. package/module/es5/Date/isSameDay.js +18 -0
  194. package/module/es5/Date/isWeekend.d.ts +9 -0
  195. package/module/es5/Date/isWeekend.js +18 -0
  196. package/module/es5/Date/msByUnit.d.ts +2 -0
  197. package/module/es5/Date/msByUnit.js +15 -0
  198. package/module/es5/Date/startOf.d.ts +13 -0
  199. package/module/es5/Date/startOf.js +72 -0
  200. package/module/es5/Date/subDuration.d.ts +13 -0
  201. package/module/es5/Date/subDuration.js +21 -0
  202. package/module/es5/Error/index.d.ts +0 -1
  203. package/module/es5/Error/index.js +0 -11
  204. package/module/es5/Object/flattenObject.d.ts +11 -0
  205. package/module/es5/Object/flattenObject.js +35 -0
  206. package/module/es5/Object/get.d.ts +1 -0
  207. package/module/es5/Object/get.js +42 -0
  208. package/module/es5/Object/has.d.ts +0 -19
  209. package/module/es5/Object/has.js +5 -11
  210. package/module/es5/Object/index.d.ts +8 -0
  211. package/module/es5/Object/index.js +88 -0
  212. package/module/es5/Object/invert.d.ts +12 -0
  213. package/module/es5/Object/invert.js +26 -0
  214. package/module/es5/Object/omitBy.d.ts +11 -0
  215. package/module/es5/Object/omitBy.js +27 -0
  216. package/module/es5/Object/pathSegments.d.ts +1 -0
  217. package/module/es5/Object/pathSegments.js +9 -0
  218. package/module/es5/Object/pick.d.ts +10 -0
  219. package/module/es5/Object/pick.js +10 -0
  220. package/module/es5/Object/pickBy.d.ts +11 -0
  221. package/module/es5/Object/pickBy.js +27 -0
  222. package/module/es5/Object/set.d.ts +19 -0
  223. package/module/es5/Object/set.js +44 -0
  224. package/module/es5/Object/unflattenObject.d.ts +15 -0
  225. package/module/es5/Object/unflattenObject.js +30 -0
  226. package/module/es5/Random/index.d.ts +7 -0
  227. package/module/es5/Random/index.js +82 -0
  228. package/module/es5/Random/randomBoolean.d.ts +9 -0
  229. package/module/es5/Random/randomBoolean.js +18 -0
  230. package/module/es5/Random/randomChoice.d.ts +9 -0
  231. package/module/es5/Random/randomChoice.js +18 -0
  232. package/module/es5/Random/randomFloat.d.ts +9 -0
  233. package/module/es5/Random/randomFloat.js +17 -0
  234. package/module/es5/Random/randomInt.d.ts +9 -0
  235. package/module/es5/Random/randomInt.js +19 -0
  236. package/module/es5/Random/randomUuid.d.ts +9 -0
  237. package/module/es5/Random/randomUuid.js +38 -0
  238. package/module/es5/Random/seededRandom.d.ts +11 -0
  239. package/module/es5/Random/seededRandom.js +46 -0
  240. package/module/es5/Random/weightedChoice.d.ts +15 -0
  241. package/module/es5/Random/weightedChoice.js +50 -0
  242. package/module/es5/String/capitalize.d.ts +12 -0
  243. package/module/es5/String/capitalize.js +35 -0
  244. package/module/es5/String/capitalizeWord.d.ts +1 -0
  245. package/module/es5/String/capitalizeWord.js +9 -0
  246. package/module/es5/String/dedent.d.ts +19 -0
  247. package/module/es5/String/dedent.js +82 -0
  248. package/module/es5/String/index.d.ts +10 -0
  249. package/module/es5/String/index.js +110 -0
  250. package/module/es5/String/mask.d.ts +20 -0
  251. package/module/es5/String/mask.js +39 -0
  252. package/module/es5/String/pascalCase.d.ts +9 -0
  253. package/module/es5/String/pascalCase.js +21 -0
  254. package/module/es5/String/snakeCase.d.ts +9 -0
  255. package/module/es5/String/snakeCase.js +20 -0
  256. package/module/es5/String/titleCase.d.ts +9 -0
  257. package/module/es5/String/titleCase.js +21 -0
  258. package/module/es5/String/uncapitalize.d.ts +10 -0
  259. package/module/es5/String/uncapitalize.js +33 -0
  260. package/module/es5/String/wordCount.d.ts +10 -0
  261. package/module/es5/String/wordCount.js +19 -0
  262. package/module/es5/String/words.d.ts +12 -0
  263. package/module/es5/String/words.js +25 -0
  264. package/module/es5/Tool/createPipeline.d.ts +1 -1
  265. package/module/es5/Tool/createPipeline.js +7 -10
  266. package/module/es5/URL/buildUrl.d.ts +10 -0
  267. package/module/es5/URL/buildUrl.js +10 -4
  268. package/module/es5/URL/parseQueryString.d.ts +6 -0
  269. package/module/es5/URL/parseQueryString.js +6 -4
  270. package/module/es5/Validate/object/core.js +0 -1
  271. package/module/es5/index.d.ts +1 -0
  272. package/module/es5/index.js +20 -9
  273. package/module/index.d.ts +1 -0
  274. package/module/index.js +1 -0
  275. package/module/index.js.map +1 -1
  276. package/package.json +34 -29
  277. package/module/Error/retry.d.ts +0 -37
  278. package/module/Error/retry.js +0 -47
  279. package/module/Error/retry.js.map +0 -1
  280. package/module/es5/Error/retry.d.ts +0 -37
@@ -179,7 +179,7 @@ Object.keys(_index14).forEach(function (key) {
179
179
  }
180
180
  });
181
181
  });
182
- var _index15 = require("./Simple/index");
182
+ var _index15 = require("./Random/index");
183
183
  Object.keys(_index15).forEach(function (key) {
184
184
  if (key === "default" || key === "__esModule") return;
185
185
  if (key in exports && exports[key] === _index15[key]) return;
@@ -190,7 +190,7 @@ Object.keys(_index15).forEach(function (key) {
190
190
  }
191
191
  });
192
192
  });
193
- var _index16 = require("./String/index");
193
+ var _index16 = require("./Simple/index");
194
194
  Object.keys(_index16).forEach(function (key) {
195
195
  if (key === "default" || key === "__esModule") return;
196
196
  if (key in exports && exports[key] === _index16[key]) return;
@@ -201,7 +201,7 @@ Object.keys(_index16).forEach(function (key) {
201
201
  }
202
202
  });
203
203
  });
204
- var _index17 = require("./Time/index");
204
+ var _index17 = require("./String/index");
205
205
  Object.keys(_index17).forEach(function (key) {
206
206
  if (key === "default" || key === "__esModule") return;
207
207
  if (key in exports && exports[key] === _index17[key]) return;
@@ -212,7 +212,7 @@ Object.keys(_index17).forEach(function (key) {
212
212
  }
213
213
  });
214
214
  });
215
- var _index18 = require("./Tool/index");
215
+ var _index18 = require("./Time/index");
216
216
  Object.keys(_index18).forEach(function (key) {
217
217
  if (key === "default" || key === "__esModule") return;
218
218
  if (key in exports && exports[key] === _index18[key]) return;
@@ -223,7 +223,7 @@ Object.keys(_index18).forEach(function (key) {
223
223
  }
224
224
  });
225
225
  });
226
- var _index19 = require("./types/index");
226
+ var _index19 = require("./Tool/index");
227
227
  Object.keys(_index19).forEach(function (key) {
228
228
  if (key === "default" || key === "__esModule") return;
229
229
  if (key in exports && exports[key] === _index19[key]) return;
@@ -234,7 +234,7 @@ Object.keys(_index19).forEach(function (key) {
234
234
  }
235
235
  });
236
236
  });
237
- var _index20 = require("./UA/index");
237
+ var _index20 = require("./types/index");
238
238
  Object.keys(_index20).forEach(function (key) {
239
239
  if (key === "default" || key === "__esModule") return;
240
240
  if (key in exports && exports[key] === _index20[key]) return;
@@ -245,7 +245,7 @@ Object.keys(_index20).forEach(function (key) {
245
245
  }
246
246
  });
247
247
  });
248
- var _index21 = require("./Unit/index");
248
+ var _index21 = require("./UA/index");
249
249
  Object.keys(_index21).forEach(function (key) {
250
250
  if (key === "default" || key === "__esModule") return;
251
251
  if (key in exports && exports[key] === _index21[key]) return;
@@ -256,7 +256,7 @@ Object.keys(_index21).forEach(function (key) {
256
256
  }
257
257
  });
258
258
  });
259
- var _index22 = require("./URL/index");
259
+ var _index22 = require("./Unit/index");
260
260
  Object.keys(_index22).forEach(function (key) {
261
261
  if (key === "default" || key === "__esModule") return;
262
262
  if (key in exports && exports[key] === _index22[key]) return;
@@ -267,7 +267,7 @@ Object.keys(_index22).forEach(function (key) {
267
267
  }
268
268
  });
269
269
  });
270
- var _index23 = require("./Validate/index");
270
+ var _index23 = require("./URL/index");
271
271
  Object.keys(_index23).forEach(function (key) {
272
272
  if (key === "default" || key === "__esModule") return;
273
273
  if (key in exports && exports[key] === _index23[key]) return;
@@ -277,4 +277,15 @@ Object.keys(_index23).forEach(function (key) {
277
277
  return _index23[key];
278
278
  }
279
279
  });
280
+ });
281
+ var _index24 = require("./Validate/index");
282
+ Object.keys(_index24).forEach(function (key) {
283
+ if (key === "default" || key === "__esModule") return;
284
+ if (key in exports && exports[key] === _index24[key]) return;
285
+ Object.defineProperty(exports, key, {
286
+ enumerable: true,
287
+ get: function get() {
288
+ return _index24[key];
289
+ }
290
+ });
280
291
  });
package/module/index.d.ts CHANGED
@@ -14,6 +14,7 @@ export * from "./Math/index";
14
14
  export * from "./Number/index";
15
15
  export * from "./Object/index";
16
16
  export * from "./Predicate/index";
17
+ export * from "./Random/index";
17
18
  export * from "./Simple/index";
18
19
  export * from "./String/index";
19
20
  export * from "./Time/index";
package/module/index.js CHANGED
@@ -14,6 +14,7 @@ export * from "./Math/index";
14
14
  export * from "./Number/index";
15
15
  export * from "./Object/index";
16
16
  export * from "./Predicate/index";
17
+ export * from "./Random/index";
17
18
  export * from "./Simple/index";
18
19
  export * from "./String/index";
19
20
  export * from "./Time/index";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -9,36 +9,36 @@
9
9
  "@babel/core": "7.29.0",
10
10
  "@babel/preset-env": "7.29.2",
11
11
  "@babel/preset-typescript": "7.28.5",
12
- "@biomejs/biome": "2.4.11",
13
- "@codecov/bundle-analyzer": "1.9.1",
12
+ "@biomejs/biome": "2.4.13",
13
+ "@codecov/bundle-analyzer": "2.0.1",
14
14
  "@eslint/js": "10.0.1",
15
- "@swc/core": "1.15.24",
15
+ "@swc/core": "1.15.32",
16
16
  "@swc/jest": "0.2.39",
17
- "@types/bun": "1.3.12",
17
+ "@types/bun": "1.3.13",
18
18
  "@types/jest": "30.0.0",
19
19
  "@types/lodash": "4.17.24",
20
20
  "@types/node": "25.6.0",
21
- "@typescript-eslint/eslint-plugin": "8.58.2",
22
- "@typescript-eslint/parser": "8.58.2",
23
- "bun-types": "1.3.12",
21
+ "@typescript-eslint/eslint-plugin": "8.59.1",
22
+ "@typescript-eslint/parser": "8.59.1",
23
+ "bun-types": "1.3.13",
24
24
  "dependency-cruiser": "17.3.10",
25
- "es-toolkit": "1.45.1",
26
- "eslint": "10.2.0",
27
- "eslint-plugin-baseline-js": "0.6.1",
25
+ "es-toolkit": "1.46.0",
26
+ "eslint": "10.2.1",
27
+ "eslint-plugin-baseline-js": "0.6.2",
28
28
  "eslint-plugin-import": "2.32.0",
29
29
  "eslint-plugin-unicorn": "64.0.0",
30
30
  "fast-sort": "3.4.1",
31
31
  "gh-pages": "6.3.0",
32
32
  "jest": "30.3.0",
33
- "jest-junit": "16.0.0",
33
+ "jest-junit": "17.0.0",
34
34
  "lodash": "4.18.1",
35
35
  "mitata": "1.0.34",
36
36
  "ts-jest": "29.4.9",
37
37
  "ts-node": "10.9.2",
38
38
  "tsc-alias": "1.8.16",
39
39
  "typedoc": "0.28.19",
40
- "typescript": "6.0.2",
41
- "typescript-eslint": "8.58.2"
40
+ "typescript": "6.0.3",
41
+ "typescript-eslint": "8.59.1"
42
42
  },
43
43
  "exports": {
44
44
  ".": {
@@ -126,6 +126,11 @@
126
126
  "import": "./module/Predicate/index.js",
127
127
  "default": "./module/Predicate/index.js"
128
128
  },
129
+ "./Random": {
130
+ "types": "./module/Random/index.d.ts",
131
+ "import": "./module/Random/index.js",
132
+ "default": "./module/Random/index.js"
133
+ },
129
134
  "./Simple": {
130
135
  "types": "./module/Simple/index.d.ts",
131
136
  "import": "./module/Simple/index.js",
@@ -200,23 +205,23 @@
200
205
  "url": "git+https://github.com/riya-amemiya/UMT.git"
201
206
  },
202
207
  "scripts": {
203
- "build": "tsc && tsc-alias -p tsconfig.json",
204
- "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",
205
- "build:babel": "babel src --extensions '.ts' --out-dir module/es5 && tsc --emitDeclarationOnly --outDir module/es5 && tsc-alias -p tsconfig.json --outDir module/es5",
206
- "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",
207
- "build:full": "bun run build && bun run build:cjs && bun run build:babel && bun run build:cjs:babel",
208
- "build:clean": "rm -rf module && bun run build",
209
- "build:clean:full": "rm -rf module && rm -rf common-module && bun run build:full",
210
- "deploy": "bun run typedoc && gh-pages -d doc",
211
- "eslint": "eslint src",
212
- "format": "biome format . --write",
213
- "lint": "bun run eslint --fix && biome check . --write && tsc",
214
- "lint:ci": "bun run eslint && biome ci . && tsc",
215
- "test": "jest",
216
- "test-debug": "cd test && tsc",
217
- "ts-node": "bun run build && ts-node --project tmp/tsconfig.json tmp/src/index.ts"
208
+ "build": "nix develop --command make build",
209
+ "build:cjs": "nix develop --command make build-cjs",
210
+ "build:babel": "nix develop --command make build-babel",
211
+ "build:cjs:babel": "nix develop --command make build-cjs-babel",
212
+ "build:full": "nix develop --command make build-full",
213
+ "build:clean": "nix develop --command make build-clean",
214
+ "build:clean:full": "nix develop --command make build-clean-full",
215
+ "deploy": "nix develop --command make deploy",
216
+ "eslint": "nix develop --command make eslint",
217
+ "format": "nix develop --command make format",
218
+ "lint": "nix develop --command make lint",
219
+ "lint:ci": "nix develop --command make lint-ci",
220
+ "test": "nix develop --command make test",
221
+ "test-debug": "nix develop --command make test-debug",
222
+ "ts-node": "nix develop --command make ts-node"
218
223
  },
219
224
  "type": "module",
220
225
  "types": "module/index.d.ts",
221
- "version": "2.15.0"
226
+ "version": "2.17.0"
222
227
  }
@@ -1,37 +0,0 @@
1
- export interface RetryOptions {
2
- retries?: number;
3
- delay?: number;
4
- shouldRetry?: (error: unknown) => boolean;
5
- }
6
- /**
7
- * Retries a given async function with configurable retry logic
8
- *
9
- * @template T - The return type of the function
10
- * @param function_ - The async function to retry
11
- * @param options - Configuration options for retry behavior
12
- * @param options.retries - Maximum number of retry attempts (default: 3)
13
- * @param options.delay - Delay between retries in milliseconds (default: 1000)
14
- * @param options.shouldRetry - Function to determine if an error should trigger a retry (default: always retry)
15
- * @returns Promise that resolves with the function result or rejects with the final error
16
- *
17
- * @example
18
- * ```typescript
19
- * // Basic usage with default options
20
- * const result = await retry(async () => {
21
- * const response = await fetch('/api/data');
22
- * if (!response.ok) throw new Error('Failed to fetch');
23
- * return response.json();
24
- * });
25
- *
26
- * // Custom retry configuration
27
- * const result = await retry(
28
- * () => riskyOperation(),
29
- * {
30
- * retries: 5,
31
- * delay: 2000,
32
- * shouldRetry: (error) => error instanceof NetworkError
33
- * }
34
- * );
35
- * ```
36
- */
37
- export declare const retry: <T>(function_: () => Promise<T>, options?: RetryOptions) => Promise<T>;
@@ -1,47 +0,0 @@
1
- /**
2
- * Retries a given async function with configurable retry logic
3
- *
4
- * @template T - The return type of the function
5
- * @param function_ - The async function to retry
6
- * @param options - Configuration options for retry behavior
7
- * @param options.retries - Maximum number of retry attempts (default: 3)
8
- * @param options.delay - Delay between retries in milliseconds (default: 1000)
9
- * @param options.shouldRetry - Function to determine if an error should trigger a retry (default: always retry)
10
- * @returns Promise that resolves with the function result or rejects with the final error
11
- *
12
- * @example
13
- * ```typescript
14
- * // Basic usage with default options
15
- * const result = await retry(async () => {
16
- * const response = await fetch('/api/data');
17
- * if (!response.ok) throw new Error('Failed to fetch');
18
- * return response.json();
19
- * });
20
- *
21
- * // Custom retry configuration
22
- * const result = await retry(
23
- * () => riskyOperation(),
24
- * {
25
- * retries: 5,
26
- * delay: 2000,
27
- * shouldRetry: (error) => error instanceof NetworkError
28
- * }
29
- * );
30
- * ```
31
- */
32
- export const retry = (function_, options = {}) => {
33
- const { retries = 3, delay = 1000, shouldRetry = () => true } = options;
34
- const attempt = async (remainingAttempts) => {
35
- try {
36
- return await function_();
37
- }
38
- catch (error) {
39
- if (remainingAttempts <= 0 || !shouldRetry(error)) {
40
- throw error;
41
- }
42
- return await new Promise((resolve) => setTimeout(() => resolve(attempt(remainingAttempts - 1)), delay));
43
- }
44
- };
45
- return attempt(retries);
46
- };
47
- //# sourceMappingURL=retry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"retry.js","sourceRoot":"","sources":["../../src/Error/retry.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,CACnB,SAA2B,EAC3B,UAAwB,EAAE,EACd,EAAE;IACd,MAAM,EAAE,OAAO,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,WAAW,GAAG,GAAG,EAAE,CAAC,IAAI,EAAE,GAAG,OAAO,CAAC;IACxE,MAAM,OAAO,GAAG,KAAK,EAAE,iBAAyB,EAAc,EAAE;QAC9D,IAAI,CAAC;YACH,OAAO,MAAM,SAAS,EAAE,CAAC;QAC3B,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,iBAAiB,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,EAAE,CAAC;gBAClD,MAAM,KAAK,CAAC;YACd,CAAC;YACD,OAAO,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CACnC,UAAU,CAAC,GAAG,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,iBAAiB,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CACjE,CAAC;QACJ,CAAC;IACH,CAAC,CAAC;IACF,OAAO,OAAO,CAAC,OAAO,CAAC,CAAC;AAC1B,CAAC,CAAC"}
@@ -1,37 +0,0 @@
1
- export interface RetryOptions {
2
- retries?: number;
3
- delay?: number;
4
- shouldRetry?: (error: unknown) => boolean;
5
- }
6
- /**
7
- * Retries a given async function with configurable retry logic
8
- *
9
- * @template T - The return type of the function
10
- * @param function_ - The async function to retry
11
- * @param options - Configuration options for retry behavior
12
- * @param options.retries - Maximum number of retry attempts (default: 3)
13
- * @param options.delay - Delay between retries in milliseconds (default: 1000)
14
- * @param options.shouldRetry - Function to determine if an error should trigger a retry (default: always retry)
15
- * @returns Promise that resolves with the function result or rejects with the final error
16
- *
17
- * @example
18
- * ```typescript
19
- * // Basic usage with default options
20
- * const result = await retry(async () => {
21
- * const response = await fetch('/api/data');
22
- * if (!response.ok) throw new Error('Failed to fetch');
23
- * return response.json();
24
- * });
25
- *
26
- * // Custom retry configuration
27
- * const result = await retry(
28
- * () => riskyOperation(),
29
- * {
30
- * retries: 5,
31
- * delay: 2000,
32
- * shouldRetry: (error) => error instanceof NetworkError
33
- * }
34
- * );
35
- * ```
36
- */
37
- export declare const retry: <T>(function_: () => Promise<T>, options?: RetryOptions) => Promise<T>;