@dereekb/util 10.0.5 → 10.0.6

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 (502) hide show
  1. package/fetch/CHANGELOG.md +4 -0
  2. package/fetch/package.json +3 -3
  3. package/index.cjs.d.ts +1 -0
  4. package/index.cjs.default.js +1 -0
  5. package/index.cjs.js +14375 -0
  6. package/index.cjs.mjs +2 -0
  7. package/index.esm.js +15743 -0
  8. package/package.json +17 -18
  9. package/src/lib/array/array.boolean.d.ts +2 -2
  10. package/src/lib/array/array.d.ts +1 -1
  11. package/src/lib/array/array.factory.d.ts +2 -2
  12. package/src/lib/array/array.filter.d.ts +2 -2
  13. package/src/lib/array/array.find.d.ts +1 -1
  14. package/src/lib/array/array.index.d.ts +2 -2
  15. package/src/lib/array/array.indexed.d.ts +3 -3
  16. package/src/lib/array/array.limit.d.ts +1 -1
  17. package/src/lib/array/array.make.d.ts +2 -2
  18. package/src/lib/array/array.map.d.ts +2 -2
  19. package/src/lib/array/array.number.d.ts +1 -1
  20. package/src/lib/array/array.random.d.ts +1 -1
  21. package/src/lib/array/array.string.d.ts +3 -3
  22. package/src/lib/array/array.unique.d.ts +2 -2
  23. package/src/lib/array/array.value.d.ts +1 -1
  24. package/src/lib/assertion/assert.error.d.ts +2 -2
  25. package/src/lib/assertion/assertion.d.ts +1 -1
  26. package/src/lib/assertion/assertion.generic.d.ts +2 -2
  27. package/src/lib/assertion/assertion.number.d.ts +1 -1
  28. package/src/lib/auth/auth.role.claims.d.ts +3 -3
  29. package/src/lib/auth/auth.role.d.ts +1 -1
  30. package/src/lib/boolean.d.ts +1 -1
  31. package/src/lib/contact/domain.d.ts +1 -1
  32. package/src/lib/contact/phone.d.ts +1 -1
  33. package/src/lib/contact/random.d.ts +6 -6
  34. package/src/lib/date/date.d.ts +8 -1
  35. package/src/lib/date/date.time.d.ts +1 -1
  36. package/src/lib/date/hour.d.ts +2 -2
  37. package/src/lib/date/week.d.ts +2 -2
  38. package/src/lib/error/error.d.ts +1 -1
  39. package/src/lib/error/error.server.d.ts +2 -2
  40. package/src/lib/filter/filter.d.ts +1 -1
  41. package/src/lib/function/function.forward.d.ts +2 -2
  42. package/src/lib/getter/getter.cache.d.ts +1 -1
  43. package/src/lib/getter/getter.d.ts +5 -5
  44. package/src/lib/getter/getter.map.d.ts +2 -2
  45. package/src/lib/getter/getter.util.d.ts +1 -1
  46. package/src/lib/getter/type.d.ts +1 -1
  47. package/src/lib/grouping.d.ts +5 -5
  48. package/src/lib/iterable/iterable.d.ts +3 -3
  49. package/src/lib/key.d.ts +3 -18
  50. package/src/lib/lifecycle.d.ts +1 -1
  51. package/src/lib/map/map.d.ts +2 -2
  52. package/src/lib/map/map.intersection.d.ts +1 -1
  53. package/src/lib/map/map.key.d.ts +3 -3
  54. package/src/lib/misc/host.d.ts +1 -1
  55. package/src/lib/model/id.batch.d.ts +4 -4
  56. package/src/lib/model/model.conversion.d.ts +5 -5
  57. package/src/lib/model/model.conversion.field.d.ts +1 -1
  58. package/src/lib/model/model.copy.d.ts +1 -1
  59. package/src/lib/model/model.d.ts +3 -3
  60. package/src/lib/model/model.modify.d.ts +4 -4
  61. package/src/lib/number/bitwise.dencoder.d.ts +1 -1
  62. package/src/lib/number/bound.d.ts +1 -1
  63. package/src/lib/number/dollar.d.ts +1 -1
  64. package/src/lib/number/factory.d.ts +1 -1
  65. package/src/lib/number/number.d.ts +3 -3
  66. package/src/lib/number/random.d.ts +2 -2
  67. package/src/lib/number/round.d.ts +3 -3
  68. package/src/lib/number/sort.d.ts +2 -2
  69. package/src/lib/number/transform.d.ts +3 -3
  70. package/src/lib/object/index.d.ts +1 -0
  71. package/src/lib/object/object.array.d.ts +1 -1
  72. package/src/lib/object/object.array.delta.d.ts +3 -3
  73. package/src/lib/object/object.d.ts +3 -3
  74. package/src/lib/object/object.empty.d.ts +1 -1
  75. package/src/lib/object/object.equal.d.ts +2 -2
  76. package/src/lib/object/object.filter.pojo.d.ts +3 -3
  77. package/src/lib/object/object.filter.tuple.d.ts +2 -2
  78. package/src/lib/object/object.key.d.ts +17 -0
  79. package/src/lib/object/object.map.d.ts +1 -1
  80. package/src/lib/page/page.calculator.d.ts +1 -1
  81. package/src/lib/page/page.d.ts +1 -1
  82. package/src/lib/page/page.filter.d.ts +3 -3
  83. package/src/lib/path/path.d.ts +4 -4
  84. package/src/lib/promise/callback.d.ts +1 -1
  85. package/src/lib/promise/map.d.ts +1 -1
  86. package/src/lib/promise/promise.d.ts +3 -3
  87. package/src/lib/promise/promise.loop.d.ts +2 -2
  88. package/src/lib/promise/use.d.ts +2 -2
  89. package/src/lib/relation/relation.d.ts +1 -1
  90. package/src/lib/service/handler.config.d.ts +4 -4
  91. package/src/lib/service/handler.d.ts +3 -3
  92. package/src/lib/service/typed.service.d.ts +1 -1
  93. package/src/lib/set/set.allowed.d.ts +2 -2
  94. package/src/lib/set/set.d.ts +6 -6
  95. package/src/lib/set/set.decision.d.ts +1 -1
  96. package/src/lib/set/set.delta.d.ts +1 -1
  97. package/src/lib/set/set.hashset.d.ts +2 -2
  98. package/src/lib/set/set.maybe.d.ts +2 -2
  99. package/src/lib/set/set.selection.d.ts +2 -2
  100. package/src/lib/sort.d.ts +2 -2
  101. package/src/lib/storage/storage.d.ts +1 -1
  102. package/src/lib/storage/storage.error.d.ts +1 -1
  103. package/src/lib/storage/storage.memory.d.ts +2 -2
  104. package/src/lib/storage/storage.object.d.ts +2 -2
  105. package/src/lib/string/char.d.ts +2 -2
  106. package/src/lib/string/dencoder.d.ts +2 -1
  107. package/src/lib/string/html.d.ts +2 -2
  108. package/src/lib/string/replace.d.ts +3 -3
  109. package/src/lib/string/search.d.ts +2 -2
  110. package/src/lib/string/sort.d.ts +2 -2
  111. package/src/lib/string/string.d.ts +2 -2
  112. package/src/lib/string/transform.d.ts +1 -1
  113. package/src/lib/string/url.d.ts +6 -6
  114. package/src/lib/tree/tree.array.d.ts +3 -3
  115. package/src/lib/tree/tree.expand.d.ts +2 -2
  116. package/src/lib/tree/tree.flatten.d.ts +1 -1
  117. package/src/lib/type.d.ts +2 -2
  118. package/src/lib/value/address.d.ts +1 -1
  119. package/src/lib/value/bound.d.ts +5 -5
  120. package/src/lib/value/build.d.ts +1 -1
  121. package/src/lib/value/comparator.d.ts +2 -2
  122. package/src/lib/value/cron.d.ts +1 -1
  123. package/src/lib/value/decision.d.ts +3 -3
  124. package/src/lib/value/equal.d.ts +2 -2
  125. package/src/lib/value/indexed.d.ts +6 -6
  126. package/src/lib/value/map.d.ts +3 -3
  127. package/src/lib/value/maybe.d.ts +1 -1
  128. package/src/lib/value/maybe.type.d.ts +1 -1
  129. package/src/lib/value/modifier.d.ts +2 -2
  130. package/src/lib/value/point.d.ts +3 -3
  131. package/src/lib/value/use.d.ts +4 -4
  132. package/src/lib/value/vector.d.ts +1 -1
  133. package/test/index.cjs.d.ts +1 -0
  134. package/test/index.cjs.default.js +1 -0
  135. package/test/index.cjs.js +555 -0
  136. package/test/index.cjs.mjs +2 -0
  137. package/test/index.esm.js +2796 -0
  138. package/test/package.json +11 -2
  139. package/CHANGELOG.md +0 -1797
  140. package/src/index.js +0 -5
  141. package/src/index.js.map +0 -1
  142. package/src/lib/array/array.boolean.js +0 -69
  143. package/src/lib/array/array.boolean.js.map +0 -1
  144. package/src/lib/array/array.factory.js +0 -25
  145. package/src/lib/array/array.factory.js.map +0 -1
  146. package/src/lib/array/array.filter.js +0 -107
  147. package/src/lib/array/array.filter.js.map +0 -1
  148. package/src/lib/array/array.find.js +0 -24
  149. package/src/lib/array/array.find.js.map +0 -1
  150. package/src/lib/array/array.index.js +0 -71
  151. package/src/lib/array/array.index.js.map +0 -1
  152. package/src/lib/array/array.indexed.js +0 -142
  153. package/src/lib/array/array.indexed.js.map +0 -1
  154. package/src/lib/array/array.js +0 -237
  155. package/src/lib/array/array.js.map +0 -1
  156. package/src/lib/array/array.limit.js +0 -19
  157. package/src/lib/array/array.limit.js.map +0 -1
  158. package/src/lib/array/array.make.js +0 -19
  159. package/src/lib/array/array.make.js.map +0 -1
  160. package/src/lib/array/array.map.js +0 -38
  161. package/src/lib/array/array.map.js.map +0 -1
  162. package/src/lib/array/array.number.js +0 -82
  163. package/src/lib/array/array.number.js.map +0 -1
  164. package/src/lib/array/array.random.js +0 -48
  165. package/src/lib/array/array.random.js.map +0 -1
  166. package/src/lib/array/array.set.js +0 -34
  167. package/src/lib/array/array.set.js.map +0 -1
  168. package/src/lib/array/array.string.js +0 -74
  169. package/src/lib/array/array.string.js.map +0 -1
  170. package/src/lib/array/array.unique.js +0 -75
  171. package/src/lib/array/array.unique.js.map +0 -1
  172. package/src/lib/array/array.value.js +0 -55
  173. package/src/lib/array/array.value.js.map +0 -1
  174. package/src/lib/array/index.js +0 -20
  175. package/src/lib/array/index.js.map +0 -1
  176. package/src/lib/assertion/assert.error.js +0 -43
  177. package/src/lib/assertion/assert.error.js.map +0 -1
  178. package/src/lib/assertion/assert.js +0 -3
  179. package/src/lib/assertion/assert.js.map +0 -1
  180. package/src/lib/assertion/assertion.generic.js +0 -10
  181. package/src/lib/assertion/assertion.generic.js.map +0 -1
  182. package/src/lib/assertion/assertion.js +0 -40
  183. package/src/lib/assertion/assertion.js.map +0 -1
  184. package/src/lib/assertion/assertion.number.js +0 -20
  185. package/src/lib/assertion/assertion.number.js.map +0 -1
  186. package/src/lib/assertion/index.js +0 -9
  187. package/src/lib/assertion/index.js.map +0 -1
  188. package/src/lib/auth/auth.role.claims.js +0 -111
  189. package/src/lib/auth/auth.role.claims.js.map +0 -1
  190. package/src/lib/auth/auth.role.js +0 -25
  191. package/src/lib/auth/auth.role.js.map +0 -1
  192. package/src/lib/auth/index.js +0 -6
  193. package/src/lib/auth/index.js.map +0 -1
  194. package/src/lib/boolean.js +0 -57
  195. package/src/lib/boolean.js.map +0 -1
  196. package/src/lib/contact/domain.js +0 -45
  197. package/src/lib/contact/domain.js.map +0 -1
  198. package/src/lib/contact/email.js +0 -32
  199. package/src/lib/contact/email.js.map +0 -1
  200. package/src/lib/contact/index.js +0 -8
  201. package/src/lib/contact/index.js.map +0 -1
  202. package/src/lib/contact/phone.js +0 -71
  203. package/src/lib/contact/phone.js.map +0 -1
  204. package/src/lib/contact/random.js +0 -50
  205. package/src/lib/contact/random.js.map +0 -1
  206. package/src/lib/date/date.js +0 -132
  207. package/src/lib/date/date.js.map +0 -1
  208. package/src/lib/date/date.time.js +0 -39
  209. package/src/lib/date/date.time.js.map +0 -1
  210. package/src/lib/date/hour.js +0 -44
  211. package/src/lib/date/hour.js.map +0 -1
  212. package/src/lib/date/index.js +0 -8
  213. package/src/lib/date/index.js.map +0 -1
  214. package/src/lib/date/week.js +0 -175
  215. package/src/lib/date/week.js.map +0 -1
  216. package/src/lib/error/error.js +0 -68
  217. package/src/lib/error/error.js.map +0 -1
  218. package/src/lib/error/error.server.js +0 -42
  219. package/src/lib/error/error.server.js.map +0 -1
  220. package/src/lib/error/index.js +0 -6
  221. package/src/lib/error/index.js.map +0 -1
  222. package/src/lib/file/index.js +0 -5
  223. package/src/lib/file/index.js.map +0 -1
  224. package/src/lib/file/xml.js +0 -3
  225. package/src/lib/file/xml.js.map +0 -1
  226. package/src/lib/filter/filter.js +0 -37
  227. package/src/lib/filter/filter.js.map +0 -1
  228. package/src/lib/filter/index.js +0 -5
  229. package/src/lib/filter/index.js.map +0 -1
  230. package/src/lib/function/function.boolean.js +0 -23
  231. package/src/lib/function/function.boolean.js.map +0 -1
  232. package/src/lib/function/function.forward.js +0 -24
  233. package/src/lib/function/function.forward.js.map +0 -1
  234. package/src/lib/function/function.js +0 -14
  235. package/src/lib/function/function.js.map +0 -1
  236. package/src/lib/function/index.js +0 -7
  237. package/src/lib/function/index.js.map +0 -1
  238. package/src/lib/getter/getter.cache.js +0 -23
  239. package/src/lib/getter/getter.cache.js.map +0 -1
  240. package/src/lib/getter/getter.js +0 -99
  241. package/src/lib/getter/getter.js.map +0 -1
  242. package/src/lib/getter/getter.map.js +0 -24
  243. package/src/lib/getter/getter.map.js.map +0 -1
  244. package/src/lib/getter/getter.util.js +0 -16
  245. package/src/lib/getter/getter.util.js.map +0 -1
  246. package/src/lib/getter/index.js +0 -9
  247. package/src/lib/getter/index.js.map +0 -1
  248. package/src/lib/getter/type.js +0 -3
  249. package/src/lib/getter/type.js.map +0 -1
  250. package/src/lib/grouping.js +0 -198
  251. package/src/lib/grouping.js.map +0 -1
  252. package/src/lib/hash.js +0 -21
  253. package/src/lib/hash.js.map +0 -1
  254. package/src/lib/index.js +0 -39
  255. package/src/lib/index.js.map +0 -1
  256. package/src/lib/iterable/index.js +0 -6
  257. package/src/lib/iterable/index.js.map +0 -1
  258. package/src/lib/iterable/iterable.js +0 -177
  259. package/src/lib/iterable/iterable.js.map +0 -1
  260. package/src/lib/iterable/iterable.map.js +0 -18
  261. package/src/lib/iterable/iterable.map.js.map +0 -1
  262. package/src/lib/iterate.js +0 -16
  263. package/src/lib/iterate.js.map +0 -1
  264. package/src/lib/key.js +0 -107
  265. package/src/lib/key.js.map +0 -1
  266. package/src/lib/lifecycle.js +0 -34
  267. package/src/lib/lifecycle.js.map +0 -1
  268. package/src/lib/map/index.js +0 -7
  269. package/src/lib/map/index.js.map +0 -1
  270. package/src/lib/map/map.intersection.js +0 -24
  271. package/src/lib/map/map.intersection.js.map +0 -1
  272. package/src/lib/map/map.js +0 -68
  273. package/src/lib/map/map.js.map +0 -1
  274. package/src/lib/map/map.key.js +0 -110
  275. package/src/lib/map/map.key.js.map +0 -1
  276. package/src/lib/misc/host.js +0 -13
  277. package/src/lib/misc/host.js.map +0 -1
  278. package/src/lib/misc/index.js +0 -5
  279. package/src/lib/misc/index.js.map +0 -1
  280. package/src/lib/model/id.batch.js +0 -58
  281. package/src/lib/model/id.batch.js.map +0 -1
  282. package/src/lib/model/index.js +0 -10
  283. package/src/lib/model/index.js.map +0 -1
  284. package/src/lib/model/model.conversion.field.js +0 -23
  285. package/src/lib/model/model.conversion.field.js.map +0 -1
  286. package/src/lib/model/model.conversion.js +0 -112
  287. package/src/lib/model/model.conversion.js.map +0 -1
  288. package/src/lib/model/model.copy.js +0 -20
  289. package/src/lib/model/model.copy.js.map +0 -1
  290. package/src/lib/model/model.js +0 -150
  291. package/src/lib/model/model.js.map +0 -1
  292. package/src/lib/model/model.modify.js +0 -51
  293. package/src/lib/model/model.modify.js.map +0 -1
  294. package/src/lib/nodejs/index.js +0 -5
  295. package/src/lib/nodejs/index.js.map +0 -1
  296. package/src/lib/nodejs/stream.js +0 -34
  297. package/src/lib/nodejs/stream.js.map +0 -1
  298. package/src/lib/number/bitwise.dencoder.js +0 -84
  299. package/src/lib/number/bitwise.dencoder.js.map +0 -1
  300. package/src/lib/number/bound.js +0 -60
  301. package/src/lib/number/bound.js.map +0 -1
  302. package/src/lib/number/dollar.js +0 -36
  303. package/src/lib/number/dollar.js.map +0 -1
  304. package/src/lib/number/factory.js +0 -22
  305. package/src/lib/number/factory.js.map +0 -1
  306. package/src/lib/number/index.js +0 -13
  307. package/src/lib/number/index.js.map +0 -1
  308. package/src/lib/number/number.js +0 -118
  309. package/src/lib/number/number.js.map +0 -1
  310. package/src/lib/number/pay.js +0 -3
  311. package/src/lib/number/pay.js.map +0 -1
  312. package/src/lib/number/random.js +0 -35
  313. package/src/lib/number/random.js.map +0 -1
  314. package/src/lib/number/round.js +0 -140
  315. package/src/lib/number/round.js.map +0 -1
  316. package/src/lib/number/sort.js +0 -16
  317. package/src/lib/number/sort.js.map +0 -1
  318. package/src/lib/number/transform.js +0 -21
  319. package/src/lib/number/transform.js.map +0 -1
  320. package/src/lib/object/index.js +0 -12
  321. package/src/lib/object/index.js.map +0 -1
  322. package/src/lib/object/object.array.delta.js +0 -87
  323. package/src/lib/object/object.array.delta.js.map +0 -1
  324. package/src/lib/object/object.array.js +0 -35
  325. package/src/lib/object/object.array.js.map +0 -1
  326. package/src/lib/object/object.empty.js +0 -27
  327. package/src/lib/object/object.empty.js.map +0 -1
  328. package/src/lib/object/object.equal.js +0 -47
  329. package/src/lib/object/object.equal.js.map +0 -1
  330. package/src/lib/object/object.filter.pojo.js +0 -260
  331. package/src/lib/object/object.filter.pojo.js.map +0 -1
  332. package/src/lib/object/object.filter.tuple.js +0 -124
  333. package/src/lib/object/object.filter.tuple.js.map +0 -1
  334. package/src/lib/object/object.js +0 -43
  335. package/src/lib/object/object.js.map +0 -1
  336. package/src/lib/object/object.map.js +0 -62
  337. package/src/lib/object/object.map.js.map +0 -1
  338. package/src/lib/page/index.js +0 -7
  339. package/src/lib/page/index.js.map +0 -1
  340. package/src/lib/page/page.calculator.js +0 -37
  341. package/src/lib/page/page.calculator.js.map +0 -1
  342. package/src/lib/page/page.filter.js +0 -50
  343. package/src/lib/page/page.filter.js.map +0 -1
  344. package/src/lib/page/page.js +0 -30
  345. package/src/lib/page/page.js.map +0 -1
  346. package/src/lib/path/index.js +0 -5
  347. package/src/lib/path/index.js.map +0 -1
  348. package/src/lib/path/path.js +0 -272
  349. package/src/lib/path/path.js.map +0 -1
  350. package/src/lib/promise/callback.js +0 -21
  351. package/src/lib/promise/callback.js.map +0 -1
  352. package/src/lib/promise/index.js +0 -14
  353. package/src/lib/promise/index.js.map +0 -1
  354. package/src/lib/promise/is.js +0 -20
  355. package/src/lib/promise/is.js.map +0 -1
  356. package/src/lib/promise/map.js +0 -14
  357. package/src/lib/promise/map.js.map +0 -1
  358. package/src/lib/promise/poll.js +0 -16
  359. package/src/lib/promise/poll.js.map +0 -1
  360. package/src/lib/promise/promise.js +0 -197
  361. package/src/lib/promise/promise.js.map +0 -1
  362. package/src/lib/promise/promise.loop.js +0 -59
  363. package/src/lib/promise/promise.loop.js.map +0 -1
  364. package/src/lib/promise/promise.ref.js +0 -19
  365. package/src/lib/promise/promise.ref.js.map +0 -1
  366. package/src/lib/promise/promise.type.js +0 -14
  367. package/src/lib/promise/promise.type.js.map +0 -1
  368. package/src/lib/promise/use.js +0 -16
  369. package/src/lib/promise/use.js.map +0 -1
  370. package/src/lib/promise/wait.js +0 -11
  371. package/src/lib/promise/wait.js.map +0 -1
  372. package/src/lib/relation/index.js +0 -5
  373. package/src/lib/relation/index.js.map +0 -1
  374. package/src/lib/relation/relation.js +0 -209
  375. package/src/lib/relation/relation.js.map +0 -1
  376. package/src/lib/service/handler.config.js +0 -61
  377. package/src/lib/service/handler.config.js.map +0 -1
  378. package/src/lib/service/handler.js +0 -55
  379. package/src/lib/service/handler.js.map +0 -1
  380. package/src/lib/service/index.js +0 -7
  381. package/src/lib/service/index.js.map +0 -1
  382. package/src/lib/service/typed.service.js +0 -41
  383. package/src/lib/service/typed.service.js.map +0 -1
  384. package/src/lib/set/index.js +0 -12
  385. package/src/lib/set/index.js.map +0 -1
  386. package/src/lib/set/set.allowed.js +0 -29
  387. package/src/lib/set/set.allowed.js.map +0 -1
  388. package/src/lib/set/set.decision.js +0 -15
  389. package/src/lib/set/set.decision.js.map +0 -1
  390. package/src/lib/set/set.delta.js +0 -91
  391. package/src/lib/set/set.delta.js.map +0 -1
  392. package/src/lib/set/set.hashset.js +0 -90
  393. package/src/lib/set/set.hashset.js.map +0 -1
  394. package/src/lib/set/set.js +0 -387
  395. package/src/lib/set/set.js.map +0 -1
  396. package/src/lib/set/set.maybe.js +0 -22
  397. package/src/lib/set/set.maybe.js.map +0 -1
  398. package/src/lib/set/set.mode.js +0 -3
  399. package/src/lib/set/set.mode.js.map +0 -1
  400. package/src/lib/set/set.selection.js +0 -21
  401. package/src/lib/set/set.selection.js.map +0 -1
  402. package/src/lib/sort.js +0 -92
  403. package/src/lib/sort.js.map +0 -1
  404. package/src/lib/storage/index.js +0 -8
  405. package/src/lib/storage/index.js.map +0 -1
  406. package/src/lib/storage/storage.error.js +0 -24
  407. package/src/lib/storage/storage.error.js.map +0 -1
  408. package/src/lib/storage/storage.js +0 -3
  409. package/src/lib/storage/storage.js.map +0 -1
  410. package/src/lib/storage/storage.memory.js +0 -48
  411. package/src/lib/storage/storage.memory.js.map +0 -1
  412. package/src/lib/storage/storage.object.js +0 -42
  413. package/src/lib/storage/storage.object.js.map +0 -1
  414. package/src/lib/string/char.js +0 -124
  415. package/src/lib/string/char.js.map +0 -1
  416. package/src/lib/string/dencoder.js +0 -106
  417. package/src/lib/string/dencoder.js.map +0 -1
  418. package/src/lib/string/html.js +0 -44
  419. package/src/lib/string/html.js.map +0 -1
  420. package/src/lib/string/index.js +0 -14
  421. package/src/lib/string/index.js.map +0 -1
  422. package/src/lib/string/password.js +0 -3
  423. package/src/lib/string/password.js.map +0 -1
  424. package/src/lib/string/replace.js +0 -181
  425. package/src/lib/string/replace.js.map +0 -1
  426. package/src/lib/string/search.js +0 -39
  427. package/src/lib/string/search.js.map +0 -1
  428. package/src/lib/string/sort.js +0 -16
  429. package/src/lib/string/sort.js.map +0 -1
  430. package/src/lib/string/string.js +0 -113
  431. package/src/lib/string/string.js.map +0 -1
  432. package/src/lib/string/transform.js +0 -79
  433. package/src/lib/string/transform.js.map +0 -1
  434. package/src/lib/string/url.js +0 -279
  435. package/src/lib/string/url.js.map +0 -1
  436. package/src/lib/tree/index.js +0 -8
  437. package/src/lib/tree/index.js.map +0 -1
  438. package/src/lib/tree/tree.array.js +0 -21
  439. package/src/lib/tree/tree.array.js.map +0 -1
  440. package/src/lib/tree/tree.expand.js +0 -35
  441. package/src/lib/tree/tree.expand.js.map +0 -1
  442. package/src/lib/tree/tree.flatten.js +0 -47
  443. package/src/lib/tree/tree.flatten.js.map +0 -1
  444. package/src/lib/tree/tree.js +0 -5
  445. package/src/lib/tree/tree.js.map +0 -1
  446. package/src/lib/type.js +0 -48
  447. package/src/lib/type.js.map +0 -1
  448. package/src/lib/value/address.js +0 -65
  449. package/src/lib/value/address.js.map +0 -1
  450. package/src/lib/value/bound.js +0 -280
  451. package/src/lib/value/bound.js.map +0 -1
  452. package/src/lib/value/build.js +0 -16
  453. package/src/lib/value/build.js.map +0 -1
  454. package/src/lib/value/comparator.js +0 -60
  455. package/src/lib/value/comparator.js.map +0 -1
  456. package/src/lib/value/cron.js +0 -29
  457. package/src/lib/value/cron.js.map +0 -1
  458. package/src/lib/value/decision.js +0 -34
  459. package/src/lib/value/decision.js.map +0 -1
  460. package/src/lib/value/equal.js +0 -56
  461. package/src/lib/value/equal.js.map +0 -1
  462. package/src/lib/value/index.js +0 -24
  463. package/src/lib/value/index.js.map +0 -1
  464. package/src/lib/value/indexed.js +0 -420
  465. package/src/lib/value/indexed.js.map +0 -1
  466. package/src/lib/value/label.js +0 -3
  467. package/src/lib/value/label.js.map +0 -1
  468. package/src/lib/value/map.js +0 -107
  469. package/src/lib/value/map.js.map +0 -1
  470. package/src/lib/value/maybe.js +0 -140
  471. package/src/lib/value/maybe.js.map +0 -1
  472. package/src/lib/value/maybe.type.js +0 -3
  473. package/src/lib/value/maybe.type.js.map +0 -1
  474. package/src/lib/value/modifier.js +0 -109
  475. package/src/lib/value/modifier.js.map +0 -1
  476. package/src/lib/value/pixel.js +0 -3
  477. package/src/lib/value/pixel.js.map +0 -1
  478. package/src/lib/value/point.js +0 -336
  479. package/src/lib/value/point.js.map +0 -1
  480. package/src/lib/value/sync.js +0 -18
  481. package/src/lib/value/sync.js.map +0 -1
  482. package/src/lib/value/url.js +0 -22
  483. package/src/lib/value/url.js.map +0 -1
  484. package/src/lib/value/use.js +0 -78
  485. package/src/lib/value/use.js.map +0 -1
  486. package/src/lib/value/vector.js +0 -70
  487. package/src/lib/value/vector.js.map +0 -1
  488. package/src/lib/value/zoom.js +0 -3
  489. package/src/lib/value/zoom.js.map +0 -1
  490. package/test/CHANGELOG.md +0 -1314
  491. package/test/src/index.js +0 -5
  492. package/test/src/index.js.map +0 -1
  493. package/test/src/lib/index.js +0 -8
  494. package/test/src/lib/index.js.map +0 -1
  495. package/test/src/lib/jest.fail.js +0 -191
  496. package/test/src/lib/jest.fail.js.map +0 -1
  497. package/test/src/lib/jest.function.js +0 -22
  498. package/test/src/lib/jest.function.js.map +0 -1
  499. package/test/src/lib/jest.js +0 -112
  500. package/test/src/lib/jest.js.map +0 -1
  501. package/test/src/lib/jest.wrap.js +0 -69
  502. package/test/src/lib/jest.wrap.js.map +0 -1
package/package.json CHANGED
@@ -1,34 +1,33 @@
1
1
  {
2
2
  "name": "@dereekb/util",
3
- "version": "10.0.5",
4
- "type": "commonjs",
3
+ "version": "10.0.6",
4
+ "type": "module",
5
5
  "exports": {
6
6
  ".": {
7
- "types": "./src/index.d.ts",
8
- "main": "./src/index.js",
9
- "require": "./src/index.js",
10
- "default": "./src/index.js"
7
+ "module": "./index.esm.js",
8
+ "import": "./index.cjs.mjs",
9
+ "default": "./index.cjs.js"
11
10
  },
12
11
  "./test": {
13
- "types": "./test/src/index.d.ts",
14
- "main": "./test/src/index.js",
15
- "require": "./test/src/index.js",
16
- "default": "./test/src/index.js"
12
+ "types": "./test/index.cjs.d.ts",
13
+ "import": "./test/index.esm.js",
14
+ "default": "./test/index.cjs.js"
17
15
  },
18
16
  "./fetch": {
19
- "types": "./fetch/src/index.d.ts",
20
- "main": "./fetch/src/index.js",
21
- "require": "./fetch/src/index.js",
22
- "default": "./fetch/src/index.js"
23
- }
17
+ "types": "./fetch/index.cjs.d.ts",
18
+ "import": "./fetch/index.esm.js",
19
+ "default": "./fetch/index.cjs.js"
20
+ },
21
+ "./package.json": "./package.json"
24
22
  },
25
- "main": "./src/index.js",
26
- "types": "./src/index.d.ts",
23
+ "main": "./index.cjs.js",
24
+ "types": "./index.cjs.js",
27
25
  "peerDependencies": {
28
26
  "make-error": "^1.3.0",
29
27
  "ts-essentials": "^9.1.2",
30
28
  "lodash": "4.17.21",
31
29
  "extra-set": "^3.0.0"
32
30
  },
33
- "dependencies": {}
31
+ "dependencies": {},
32
+ "module": "./index.esm.js"
34
33
  }
@@ -1,5 +1,5 @@
1
- import { ReadModelKeyFunction } from '../model/model';
2
- import { Maybe } from '../value/maybe.type';
1
+ import { type ReadModelKeyFunction } from '../model/model';
2
+ import { type Maybe } from '../value/maybe.type';
3
3
  export type BooleanStringKey = string;
4
4
  /**
5
5
  * Boolean represented by an array to describe the current state and reason why.
@@ -1,4 +1,4 @@
1
- import { Maybe } from '../value/maybe.type';
1
+ import { type Maybe } from '../value/maybe.type';
2
2
  export type EmptyArray = never[];
3
3
  export type ArrayOrValue<T> = T | T[];
4
4
  /**
@@ -1,5 +1,5 @@
1
- import { Factory, FactoryWithIndex, FactoryWithRequiredInput } from '../getter/getter';
2
- import { AsyncMapFunction } from '../value/map';
1
+ import { type Factory, type FactoryWithIndex, type FactoryWithRequiredInput } from '../getter/getter';
2
+ import { type AsyncMapFunction } from '../value/map';
3
3
  /**
4
4
  * Factory that generates multiple values given a number of items to make.
5
5
  */
@@ -1,5 +1,5 @@
1
- import { MapFunction } from '../value/map';
2
- import { DecisionFunction } from '../value/decision';
1
+ import { type MapFunction } from '../value/map';
2
+ import { type DecisionFunction } from '../value/decision';
3
3
  /**
4
4
  * Filters the input values by distance. The original order is retained.
5
5
  *
@@ -1,4 +1,4 @@
1
- import { SetIncludesMode } from '../set/set.mode';
1
+ import { type SetIncludesMode } from '../set/set.mode';
2
2
  /**
3
3
  * A decision function used by the array find function.
4
4
  */
@@ -1,5 +1,5 @@
1
- import { IndexNumber, IndexRef, IndexRangeInput } from '../value/indexed';
2
- import { Maybe } from '../value/maybe.type';
1
+ import { type IndexNumber, type IndexRef, type IndexRangeInput } from '../value/indexed';
2
+ import { type Maybe } from '../value/maybe.type';
3
3
  /**
4
4
  * A set of number corresponding to items in an array.
5
5
  *
@@ -1,6 +1,6 @@
1
- import { IndexNumber, IndexRange, ReadIndexRangeFunction } from '../value/indexed';
2
- import { Maybe } from '../value/maybe.type';
3
- import { ArrayFindDecisionFunction } from './array.find';
1
+ import { type IndexNumber, type IndexRange, type ReadIndexRangeFunction } from '../value/indexed';
2
+ import { type Maybe } from '../value/maybe.type';
3
+ import { type ArrayFindDecisionFunction } from './array.find';
4
4
  /**
5
5
  * Creates an IndexRange for the input array.
6
6
  *
@@ -1,4 +1,4 @@
1
- import { Maybe } from '../value/maybe.type';
1
+ import { type Maybe } from '../value/maybe.type';
2
2
  export interface LimitArrayConfig {
3
3
  /**
4
4
  * Number of items in the list to limit in the result.
@@ -1,5 +1,5 @@
1
- import { FactoryWithInput } from '../getter';
2
- import { RandomNumberFactoryInput, RandomNumberFactory } from '../number/random';
1
+ import { type FactoryWithInput } from '../getter';
2
+ import { type RandomNumberFactoryInput, type RandomNumberFactory } from '../number/random';
3
3
  export interface MakeArray<T> {
4
4
  count: number;
5
5
  /**
@@ -1,5 +1,5 @@
1
- import { PrimativeKey, ReadKeyFunction } from '../key';
2
- import { Maybe } from '../value/maybe.type';
1
+ import { type PrimativeKey, type ReadKeyFunction } from '../key';
2
+ import { type Maybe } from '../value/maybe.type';
3
3
  /**
4
4
  * Maps the values of the input array to a Map. Can additionally specify a value function to map out the input value to another value for the map.
5
5
  */
@@ -1,4 +1,4 @@
1
- import { IndexRange } from '../value/indexed';
1
+ import { type IndexRange } from '../value/indexed';
2
2
  export declare function reduceNumbersWithMax(array: number[], emptyArrayValue?: number): number | undefined;
3
3
  export declare function reduceNumbersWithMaxFn(emptyArrayValue?: number): (array: number[]) => number | undefined;
4
4
  export declare function reduceNumbersWithMin(array: number[], emptyArrayValue?: number): number | undefined;
@@ -1,4 +1,4 @@
1
- import { IndexNumber } from '../value/index';
1
+ import { type IndexNumber } from '../value/index';
2
2
  /**
3
3
  * Returns a random value from the pre-configured values array.
4
4
  */
@@ -1,6 +1,6 @@
1
- import { ReadKeyFunction } from '../key';
2
- import { MapFunction } from '../value/map';
3
- import { TransformStringFunctionConfig } from '../string/transform';
1
+ import { type ReadKeyFunction } from '../key';
2
+ import { type MapFunction } from '../value/map';
3
+ import { type TransformStringFunctionConfig } from '../string/transform';
4
4
  export declare function hasDifferentStringsNoCase(a: string[], b: string[]): boolean;
5
5
  export declare const trimArray: MapFunction<string[], string[]>;
6
6
  export declare const arrayToUppercase: MapFunction<string[], string[]>;
@@ -1,5 +1,5 @@
1
- import { PrimativeKey, ReadKeyFunction } from '../key';
2
- import { Maybe } from '../value/maybe.type';
1
+ import { type PrimativeKey, type ReadKeyFunction } from '../key';
2
+ import { type Maybe } from '../value/maybe.type';
3
3
  export declare function concatArraysUnique<T extends PrimativeKey = PrimativeKey>(...arrays: Maybe<T[]>[]): T[];
4
4
  export declare function flattenArrayUnique<T extends PrimativeKey = PrimativeKey>(array: T[][]): T[];
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { Maybe, MaybeNot } from '../value/maybe.type';
1
+ import { type Maybe, type MaybeNot } from '../value/maybe.type';
2
2
  /**
3
3
  * Filters all maybe values from the input array. If a maybe value is input, returns an empty array.
4
4
  *
@@ -1,6 +1,6 @@
1
- import { ReadableError } from '../error';
1
+ import { type ReadableError } from '../error';
2
2
  import { BaseError } from 'make-error';
3
- import { DescriptorAssertionOptions } from './assert';
3
+ import { type DescriptorAssertionOptions } from './assert';
4
4
  export interface AssertionIssue {
5
5
  /**
6
6
  * Object that encoundered the issue.
@@ -1,4 +1,4 @@
1
- import { MapDescriptorAssertionOptions } from './assert';
1
+ import { type MapDescriptorAssertionOptions } from './assert';
2
2
  /**
3
3
  * Assertion function type.
4
4
  *
@@ -1,3 +1,3 @@
1
- import { MapDescriptorAssertionOptions } from './assert';
2
- import { AccessorValueAssertion } from './assertion';
1
+ import { type MapDescriptorAssertionOptions } from './assert';
2
+ import { type AccessorValueAssertion } from './assertion';
3
3
  export declare function Assert<T>(assertion: AccessorValueAssertion<T>, options?: MapDescriptorAssertionOptions<T>): (target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<T>) => void;
@@ -1,3 +1,3 @@
1
- import { DescriptorAssertionOptions } from './assert';
1
+ import { type DescriptorAssertionOptions } from './assert';
2
2
  export declare function AssertMin(min: number, options?: DescriptorAssertionOptions): (target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<number>) => void;
3
3
  export declare function AssertMax(max: number, options?: DescriptorAssertionOptions): (target: object, propertyKey: string, descriptor: TypedPropertyDescriptor<number>) => void;
@@ -1,6 +1,6 @@
1
- import { AuthRole, AuthRoleSet } from './auth.role';
2
- import { ArrayOrValue } from '../array/array';
3
- import { Maybe } from '../value/maybe.type';
1
+ import { type AuthRole, type AuthRoleSet } from './auth.role';
2
+ import { type ArrayOrValue } from '../array/array';
3
+ import { type Maybe } from '../value/maybe.type';
4
4
  /**
5
5
  * Key in the claims.
6
6
  */
@@ -1,4 +1,4 @@
1
- import { Maybe } from '../value/maybe.type';
1
+ import { type Maybe } from '../value/maybe.type';
2
2
  /**
3
3
  * An application role.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { Factory } from './getter/getter';
1
+ import { type Factory } from './getter/getter';
2
2
  export declare function reduceBooleansWithAnd(array: boolean[], emptyArrayValue?: boolean): boolean;
3
3
  export declare function reduceBooleansWithOr(array: boolean[], emptyArrayValue?: boolean): boolean;
4
4
  export declare function reduceBooleansWithAndFn(emptyArrayValue?: boolean): (array: boolean[]) => boolean;
@@ -1,4 +1,4 @@
1
- import { EmailAddress } from './email';
1
+ import { type EmailAddress } from './email';
2
2
  export type EmailAddressDomain = string;
3
3
  export declare function readDomainsFromEmailAddresses(addresses: EmailAddress[]): EmailAddressDomain[];
4
4
  export declare function readDomainFromEmailAddress(address: EmailAddress): EmailAddressDomain;
@@ -1,4 +1,4 @@
1
- import { Maybe } from '../value/maybe.type';
1
+ import { type Maybe } from '../value/maybe.type';
2
2
  /**
3
3
  * Phone number string input. No format specified.
4
4
  *
@@ -1,9 +1,9 @@
1
- import { E164PhoneNumber } from './phone';
2
- import { ArrayOrValue } from '../array/array';
3
- import { EmailAddressDomain } from './domain';
4
- import { EmailAddress } from './email';
5
- import { Factory } from '../getter';
6
- import { NumberFactory } from '../number/factory';
1
+ import { type E164PhoneNumber } from './phone';
2
+ import { type ArrayOrValue } from '../array/array';
3
+ import { type EmailAddressDomain } from './domain';
4
+ import { type EmailAddress } from './email';
5
+ import { type Factory } from '../getter';
6
+ import { type NumberFactory } from '../number/factory';
7
7
  export interface RandomEmailFactoryConfig {
8
8
  /**
9
9
  * Set of email prefixes to use
@@ -1,4 +1,4 @@
1
- import { Maybe } from '../value/maybe.type';
1
+ import { type Maybe } from '../value/maybe.type';
2
2
  /**
3
3
  * A valid ISO8601 formatted date string.
4
4
  *
@@ -100,6 +100,13 @@ export declare const ISO8601_DAY_STRING_REGEX: RegExp;
100
100
  * Regex for a string that starts as an ISO8601DayString.
101
101
  */
102
102
  export declare const ISO8601_DAY_STRING_START_REGEX: RegExp;
103
+ /**
104
+ * Parses a ISO8601DayString to a Date.
105
+ *
106
+ * @param inputDateString
107
+ * @returns
108
+ */
109
+ export declare function parseISO8601DayStringToUTCDate(inputDateString: ISO8601DayString): Date;
103
110
  /**
104
111
  * Returns true if the input date is strictly a
105
112
  * @param input
@@ -1,4 +1,4 @@
1
- import { Maybe } from '../value/maybe.type';
1
+ import { type Maybe } from '../value/maybe.type';
2
2
  /**
3
3
  * Represents a string for a time. This may be human-input, and
4
4
  * can be interpreted in various ways depending on the input.
@@ -1,5 +1,5 @@
1
- import { Maybe } from '../value/maybe.type';
2
- import { Hours, Minutes } from './date';
1
+ import { type Maybe } from '../value/maybe.type';
2
+ import { type Hours, type Minutes } from './date';
3
3
  /**
4
4
  * A number that represents hours and rounded to the nearest minute.
5
5
  *
@@ -1,5 +1,5 @@
1
- import { Maybe } from '../value';
2
- import { IsInSetDecisionFunction } from '../set/set.decision';
1
+ import { type Maybe } from '../value';
2
+ import { type IsInSetDecisionFunction } from '../set/set.decision';
3
3
  export type Sunday = 0;
4
4
  export type Monday = 1;
5
5
  export type Tuesday = 2;
@@ -1,4 +1,4 @@
1
- import { Maybe } from '../value/maybe.type';
1
+ import { type Maybe } from '../value/maybe.type';
2
2
  /**
3
3
  * Generic function that is meant to throw an error if the input is known. Returns void otherwise.
4
4
  */
@@ -1,5 +1,5 @@
1
- import { Maybe } from '../value/maybe.type';
2
- import { ReadableError, ReadableDataError, StringErrorCode, CodedError } from './error';
1
+ import { type Maybe } from '../value/maybe.type';
2
+ import { type ReadableError, type ReadableDataError, type StringErrorCode, type CodedError } from './error';
3
3
  /**
4
4
  * The expected error object returned from the server.
5
5
  */
@@ -1,4 +1,4 @@
1
- import { Maybe } from '../value/maybe.type';
1
+ import { type Maybe } from '../value/maybe.type';
2
2
  /**
3
3
  * Contains a reference to a filter object.
4
4
  */
@@ -1,5 +1,5 @@
1
- import { Getter } from '../getter/getter';
2
- import { Maybe } from '../value/maybe.type';
1
+ import { type Getter } from '../getter/getter';
2
+ import { type Maybe } from '../value/maybe.type';
3
3
  export type ForwardFunction<I extends (...args: any[]) => O, O = unknown> = I;
4
4
  /**
5
5
  * Wraps a Getter that returns a function. When the function is invoked, the getter retrieves the function then calls it with the input arguments.
@@ -1,4 +1,4 @@
1
- import { FactoryWithInput, Getter } from './getter';
1
+ import { type FactoryWithInput, type Getter } from './getter';
2
2
  /**
3
3
  * Getter that returns a cached value.
4
4
  */
@@ -1,8 +1,8 @@
1
- import { CopyObjectFunction } from '../object/object';
2
- import { PromiseOrValue } from '../promise/promise.type';
3
- import { ClassType } from '../type';
4
- import { MapFunction } from '../value/map';
5
- import { Maybe } from '../value/maybe.type';
1
+ import { type CopyObjectFunction } from '../object/object';
2
+ import { type PromiseOrValue } from '../promise/promise.type';
3
+ import { type ClassType } from '../type';
4
+ import { type MapFunction } from '../value/map';
5
+ import { type Maybe } from '../value/maybe.type';
6
6
  /**
7
7
  * Function that returns a value.
8
8
  */
@@ -1,5 +1,5 @@
1
- import { MapFunction } from '../value/map';
2
- import { Getter } from './getter';
1
+ import { type MapFunction } from '../value/map';
2
+ import { type Getter } from './getter';
3
3
  export type MapGetterFactory<I, O> = (input: Getter<I>) => Getter<O>;
4
4
  /**
5
5
  * Maps the input getter.
@@ -1,4 +1,4 @@
1
- import { Factory } from './getter';
1
+ import { type Factory } from './getter';
2
2
  /**
3
3
  * Returns a random value.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Getter } from './getter';
1
+ import { type Getter } from './getter';
2
2
  /**
3
3
  * Type of the result of a Getter
4
4
  */
@@ -1,8 +1,8 @@
1
- import { PrimativeKey, ReadKeyFunction } from './key';
2
- import { IndexRef } from './value/indexed';
3
- import { EqualityComparatorFunction } from './value/comparator';
4
- import { DecisionFunction } from './value/decision';
5
- import { Maybe } from './value/maybe.type';
1
+ import { type PrimativeKey, type ReadKeyFunction } from './key';
2
+ import { type IndexRef } from './value/indexed';
3
+ import { type EqualityComparatorFunction } from './value/comparator';
4
+ import { type DecisionFunction } from './value/decision';
5
+ import { type Maybe } from './value/maybe.type';
6
6
  export interface SeparateResult<T> {
7
7
  included: T[];
8
8
  excluded: T[];
@@ -1,6 +1,6 @@
1
- import { PrimativeKey, ReadKeyFunction } from '../key';
2
- import { DecisionFunction } from '../value/decision';
3
- import { Maybe } from '../value/maybe.type';
1
+ import { type PrimativeKey, type ReadKeyFunction } from '../key';
2
+ import { type DecisionFunction } from '../value/decision';
3
+ import { type Maybe } from '../value/maybe.type';
4
4
  /**
5
5
  * An Iterable or a value.
6
6
  *
package/src/lib/key.d.ts CHANGED
@@ -1,7 +1,6 @@
1
- import { ArrayOrValue } from './array/array';
2
- import { EqualityComparatorFunction } from './value/comparator';
3
- import { MapFunction } from './value/map';
4
- import { Maybe } from './value/maybe.type';
1
+ import { type ArrayOrValue } from './array/array';
2
+ import { type MapFunction } from './value/map';
3
+ import { type Maybe } from './value/maybe.type';
5
4
  /**
6
5
  * A key made up of either a string or number value.
7
6
  */
@@ -47,17 +46,3 @@ export declare function readKeysSetFunction<T, K extends PrimativeKey = Primativ
47
46
  * @returns
48
47
  */
49
48
  export declare function readKeysSetFrom<T, K extends PrimativeKey = PrimativeKey>(readKey: ReadKeyFunction<T, K> | ReadMultipleKeysFunction<T, K>, values: T[]): Set<K>;
50
- /**
51
- * Creates a EqualityComparatorFunction that compares the two input values
52
- *
53
- * @param readKey
54
- * @returns
55
- */
56
- export declare function objectKeysEqualityComparatorFunction<T, K extends PrimativeKey = PrimativeKey>(readKey: ReadKeyFunction<T, K> | ReadMultipleKeysFunction<T, K>): EqualityComparatorFunction<Maybe<T[]>>;
57
- /**
58
- * Creates a EqualityComparatorFunction that compares the two input values
59
- *
60
- * @param readKey
61
- * @returns
62
- */
63
- export declare function objectKeyEqualityComparatorFunction<T, K extends PrimativeKey = PrimativeKey>(readKey: ReadKeyFunction<T, K>): EqualityComparatorFunction<Maybe<T>>;
@@ -1,4 +1,4 @@
1
- import { Maybe } from './value/maybe.type';
1
+ import { type Maybe } from './value/maybe.type';
2
2
  /**
3
3
  * Object that must be "initialized".
4
4
  */
@@ -1,5 +1,5 @@
1
- import { ArrayOrValue } from '../array/array';
2
- import { Maybe } from '../value/maybe.type';
1
+ import { type ArrayOrValue } from '../array/array';
2
+ import { type Maybe } from '../value/maybe.type';
3
3
  /**
4
4
  *
5
5
  * @param maps
@@ -1,4 +1,4 @@
1
- import { ArrayOrValue } from '../array/array';
1
+ import { type ArrayOrValue } from '../array/array';
2
2
  /**
3
3
  * Object used as a map of keys that will intersect with input keys.
4
4
  */
@@ -1,6 +1,6 @@
1
- import { PrimativeKey, ReadKeyFunction, ReadMultipleKeysFunction } from '../key';
2
- import { IterableOrValue } from '../iterable';
3
- import { Maybe } from '../value/maybe.type';
1
+ import { type PrimativeKey, type ReadKeyFunction, type ReadMultipleKeysFunction } from '../key';
2
+ import { type IterableOrValue } from '../iterable';
3
+ import { type Maybe } from '../value/maybe.type';
4
4
  /**
5
5
  * Creates a map by reading keys from the input values. Values without a key are ignored.
6
6
  */
@@ -1,4 +1,4 @@
1
- import { Maybe } from '../value/maybe.type';
1
+ import { type Maybe } from '../value/maybe.type';
2
2
  export declare function joinHostAndPort(config: Maybe<{
3
3
  host: string;
4
4
  port: number | string;
@@ -1,7 +1,7 @@
1
- import { ArrayFactory, AsyncArrayFactory } from '../array/array.factory';
2
- import { FilterUniqueFunction } from '../array/array.unique';
3
- import { PrimativeKey } from '../key';
4
- import { AsyncMapFunction, MapFunction } from '../value/map';
1
+ import { type ArrayFactory, type AsyncArrayFactory } from '../array/array.factory';
2
+ import { type FilterUniqueFunction } from '../array/array.unique';
3
+ import { type PrimativeKey } from '../key';
4
+ import { type AsyncMapFunction, type MapFunction } from '../value/map';
5
5
  /**
6
6
  * Used to verify each id valid and available for use.
7
7
  */
@@ -1,8 +1,8 @@
1
- import { GetterOrValue } from '../getter/getter';
2
- import { Maybe, MaybeSo } from '../value/maybe.type';
3
- import { ApplyMapFunctionWithOptions, MapFunction } from '../value/map';
4
- import { MergeReplace, ReplaceType } from '../type';
5
- import { XOR } from 'ts-essentials';
1
+ import { type GetterOrValue } from '../getter/getter';
2
+ import { type Maybe, type MaybeSo } from '../value/maybe.type';
3
+ import { type ApplyMapFunctionWithOptions, type MapFunction } from '../value/map';
4
+ import { type MergeReplace, type ReplaceType } from '../type';
5
+ import { type XOR } from 'ts-essentials';
6
6
  /**
7
7
  * Type used to declare a sister-type to the generic object.
8
8
  */
@@ -1,4 +1,4 @@
1
- import { ModelFieldMapFunctionsConfig } from './model.conversion';
1
+ import { type ModelFieldMapFunctionsConfig } from './model.conversion';
2
2
  /**
3
3
  * Field conversion that copies the same value across.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { Maybe } from '../value/maybe.type';
1
+ import { type Maybe } from '../value/maybe.type';
2
2
  export type CopySelectModelFieldsConfig<T = unknown> = Partial<CopyModelFieldsConfig<T>>;
3
3
  export type CopyModelFieldsConfig<T = unknown> = {
4
4
  [K in keyof T]: Maybe<CopyModelFieldConfig>;
@@ -1,6 +1,6 @@
1
- import { ReadKeyFunction, ReadMultipleKeysFunction } from '../key';
2
- import { Maybe } from '../value/maybe.type';
3
- import { MapFunction } from '../value/map';
1
+ import { type ReadKeyFunction, type ReadMultipleKeysFunction } from '../key';
2
+ import { type Maybe } from '../value/maybe.type';
3
+ import { type MapFunction } from '../value/map';
4
4
  /**
5
5
  * A string model key
6
6
  */
@@ -1,7 +1,7 @@
1
- import { ArrayOrValue } from '../array/array';
2
- import { Maybe, MaybeMap } from '../value/maybe.type';
3
- import { ModifierFunction } from '../value/modifier';
4
- import { ModelMapFunction, ModelMapFunctions } from './model.conversion';
1
+ import { type ArrayOrValue } from '../array/array';
2
+ import { type Maybe, type MaybeMap } from '../value/maybe.type';
3
+ import { type ModifierFunction } from '../value/modifier';
4
+ import { type ModelMapFunction, type ModelMapFunctions } from './model.conversion';
5
5
  export type ModelInputDataModifier<D extends object> = {
6
6
  modifyData: ModifierFunction<D>;
7
7
  };
@@ -1,4 +1,4 @@
1
- import { MapFunction } from '../value';
1
+ import { type MapFunction } from '../value';
2
2
  /**
3
3
  * A bitwise set is limited to 32 values, the numbers 0-31.
4
4
  *
@@ -1,4 +1,4 @@
1
- import { MapFunction } from '../value/map';
1
+ import { type MapFunction } from '../value/map';
2
2
  export interface NumberBound<T extends number = number> {
3
3
  /**
4
4
  * The minimum value.
@@ -1,4 +1,4 @@
1
- import { Maybe } from '../value/maybe.type';
1
+ import { type Maybe } from '../value/maybe.type';
2
2
  /**
3
3
  * Whole dollar amounts, before the ','.
4
4
  */
@@ -1,4 +1,4 @@
1
- import { Factory, GetterOrValue } from '../getter/getter';
1
+ import { type Factory, type GetterOrValue } from '../getter/getter';
2
2
  export type NumberFactory = Factory<number>;
3
3
  /**
4
4
  * incrementingNumberFactory() configuration.
@@ -1,6 +1,6 @@
1
- import { MinAndMaxFunctionResult, SortCompareFunction } from '../sort';
2
- import { MapFunction } from '../value/map';
3
- import { Maybe } from '../value/maybe.type';
1
+ import { type MinAndMaxFunctionResult, type SortCompareFunction } from '../sort';
2
+ import { type MapFunction } from '../value/map';
3
+ import { type Maybe } from '../value/maybe.type';
4
4
  /**
5
5
  * A string represented within a number.
6
6
  */
@@ -1,5 +1,5 @@
1
- import { NumberFactory } from './factory';
2
- import { RoundingInput } from './round';
1
+ import { type NumberFactory } from './factory';
2
+ import { type RoundingInput } from './round';
3
3
  /**
4
4
  * Factory that generates random numbers.
5
5
  */