@dereekb/util 10.0.5 → 10.0.7

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 (492) hide show
  1. package/fetch/CHANGELOG.md +8 -0
  2. package/fetch/package.json +6 -3
  3. package/fetch/src/lib/fetch.d.ts +2 -2
  4. package/fetch/src/lib/fetch.js.map +1 -1
  5. package/fetch/src/lib/json.d.ts +3 -3
  6. package/fetch/src/lib/json.js.map +1 -1
  7. package/fetch/src/lib/provider.d.ts +1 -1
  8. package/fetch/src/lib/provider.js +2 -3
  9. package/fetch/src/lib/provider.js.map +1 -1
  10. package/fetch/src/lib/url.d.ts +1 -1
  11. package/fetch/src/lib/url.js.map +1 -1
  12. package/index.cjs.d.ts +1 -0
  13. package/index.cjs.js +14375 -0
  14. package/index.esm.js +15743 -0
  15. package/package.json +13 -8
  16. package/src/lib/array/array.boolean.d.ts +2 -2
  17. package/src/lib/array/array.d.ts +1 -1
  18. package/src/lib/array/array.factory.d.ts +2 -2
  19. package/src/lib/array/array.filter.d.ts +2 -2
  20. package/src/lib/array/array.find.d.ts +1 -1
  21. package/src/lib/array/array.index.d.ts +2 -2
  22. package/src/lib/array/array.indexed.d.ts +3 -3
  23. package/src/lib/array/array.limit.d.ts +1 -1
  24. package/src/lib/array/array.make.d.ts +2 -2
  25. package/src/lib/array/array.map.d.ts +2 -2
  26. package/src/lib/array/array.number.d.ts +1 -1
  27. package/src/lib/array/array.random.d.ts +1 -1
  28. package/src/lib/array/array.string.d.ts +3 -3
  29. package/src/lib/array/array.unique.d.ts +2 -2
  30. package/src/lib/array/array.value.d.ts +1 -1
  31. package/src/lib/assertion/assert.error.d.ts +2 -2
  32. package/src/lib/assertion/assertion.d.ts +1 -1
  33. package/src/lib/assertion/assertion.generic.d.ts +2 -2
  34. package/src/lib/assertion/assertion.number.d.ts +1 -1
  35. package/src/lib/auth/auth.role.claims.d.ts +3 -3
  36. package/src/lib/auth/auth.role.d.ts +1 -1
  37. package/src/lib/boolean.d.ts +1 -1
  38. package/src/lib/contact/domain.d.ts +1 -1
  39. package/src/lib/contact/phone.d.ts +1 -1
  40. package/src/lib/contact/random.d.ts +6 -6
  41. package/src/lib/date/date.d.ts +8 -1
  42. package/src/lib/date/date.time.d.ts +1 -1
  43. package/src/lib/date/hour.d.ts +2 -2
  44. package/src/lib/date/week.d.ts +2 -2
  45. package/src/lib/error/error.d.ts +1 -1
  46. package/src/lib/error/error.server.d.ts +2 -2
  47. package/src/lib/filter/filter.d.ts +1 -1
  48. package/src/lib/function/function.forward.d.ts +2 -2
  49. package/src/lib/getter/getter.cache.d.ts +1 -1
  50. package/src/lib/getter/getter.d.ts +5 -5
  51. package/src/lib/getter/getter.map.d.ts +2 -2
  52. package/src/lib/getter/getter.util.d.ts +1 -1
  53. package/src/lib/getter/type.d.ts +1 -1
  54. package/src/lib/grouping.d.ts +5 -5
  55. package/src/lib/iterable/iterable.d.ts +3 -3
  56. package/src/lib/key.d.ts +3 -18
  57. package/src/lib/lifecycle.d.ts +1 -1
  58. package/src/lib/map/map.d.ts +2 -2
  59. package/src/lib/map/map.intersection.d.ts +1 -1
  60. package/src/lib/map/map.key.d.ts +3 -3
  61. package/src/lib/misc/host.d.ts +1 -1
  62. package/src/lib/model/id.batch.d.ts +4 -4
  63. package/src/lib/model/model.conversion.d.ts +5 -5
  64. package/src/lib/model/model.conversion.field.d.ts +1 -1
  65. package/src/lib/model/model.copy.d.ts +1 -1
  66. package/src/lib/model/model.d.ts +3 -3
  67. package/src/lib/model/model.modify.d.ts +4 -4
  68. package/src/lib/number/bitwise.dencoder.d.ts +1 -1
  69. package/src/lib/number/bound.d.ts +1 -1
  70. package/src/lib/number/dollar.d.ts +1 -1
  71. package/src/lib/number/factory.d.ts +1 -1
  72. package/src/lib/number/number.d.ts +3 -3
  73. package/src/lib/number/random.d.ts +2 -2
  74. package/src/lib/number/round.d.ts +3 -3
  75. package/src/lib/number/sort.d.ts +2 -2
  76. package/src/lib/number/transform.d.ts +3 -3
  77. package/src/lib/object/index.d.ts +1 -0
  78. package/src/lib/object/object.array.d.ts +1 -1
  79. package/src/lib/object/object.array.delta.d.ts +3 -3
  80. package/src/lib/object/object.d.ts +3 -3
  81. package/src/lib/object/object.empty.d.ts +1 -1
  82. package/src/lib/object/object.equal.d.ts +2 -2
  83. package/src/lib/object/object.filter.pojo.d.ts +3 -3
  84. package/src/lib/object/object.filter.tuple.d.ts +2 -2
  85. package/src/lib/object/object.key.d.ts +17 -0
  86. package/src/lib/object/object.map.d.ts +1 -1
  87. package/src/lib/page/page.calculator.d.ts +1 -1
  88. package/src/lib/page/page.d.ts +1 -1
  89. package/src/lib/page/page.filter.d.ts +3 -3
  90. package/src/lib/path/path.d.ts +4 -4
  91. package/src/lib/promise/callback.d.ts +1 -1
  92. package/src/lib/promise/map.d.ts +1 -1
  93. package/src/lib/promise/promise.d.ts +3 -3
  94. package/src/lib/promise/promise.loop.d.ts +2 -2
  95. package/src/lib/promise/use.d.ts +2 -2
  96. package/src/lib/relation/relation.d.ts +1 -1
  97. package/src/lib/service/handler.config.d.ts +4 -4
  98. package/src/lib/service/handler.d.ts +3 -3
  99. package/src/lib/service/typed.service.d.ts +1 -1
  100. package/src/lib/set/set.allowed.d.ts +2 -2
  101. package/src/lib/set/set.d.ts +6 -6
  102. package/src/lib/set/set.decision.d.ts +1 -1
  103. package/src/lib/set/set.delta.d.ts +1 -1
  104. package/src/lib/set/set.hashset.d.ts +2 -2
  105. package/src/lib/set/set.maybe.d.ts +2 -2
  106. package/src/lib/set/set.selection.d.ts +2 -2
  107. package/src/lib/sort.d.ts +2 -2
  108. package/src/lib/storage/storage.d.ts +1 -1
  109. package/src/lib/storage/storage.error.d.ts +1 -1
  110. package/src/lib/storage/storage.memory.d.ts +2 -2
  111. package/src/lib/storage/storage.object.d.ts +2 -2
  112. package/src/lib/string/char.d.ts +2 -2
  113. package/src/lib/string/dencoder.d.ts +2 -1
  114. package/src/lib/string/html.d.ts +2 -2
  115. package/src/lib/string/replace.d.ts +3 -3
  116. package/src/lib/string/search.d.ts +2 -2
  117. package/src/lib/string/sort.d.ts +2 -2
  118. package/src/lib/string/string.d.ts +2 -2
  119. package/src/lib/string/transform.d.ts +1 -1
  120. package/src/lib/string/url.d.ts +6 -6
  121. package/src/lib/tree/tree.array.d.ts +3 -3
  122. package/src/lib/tree/tree.expand.d.ts +2 -2
  123. package/src/lib/tree/tree.flatten.d.ts +1 -1
  124. package/src/lib/type.d.ts +2 -2
  125. package/src/lib/value/address.d.ts +1 -1
  126. package/src/lib/value/bound.d.ts +5 -5
  127. package/src/lib/value/build.d.ts +1 -1
  128. package/src/lib/value/comparator.d.ts +2 -2
  129. package/src/lib/value/cron.d.ts +1 -1
  130. package/src/lib/value/decision.d.ts +3 -3
  131. package/src/lib/value/equal.d.ts +2 -2
  132. package/src/lib/value/indexed.d.ts +6 -6
  133. package/src/lib/value/map.d.ts +3 -3
  134. package/src/lib/value/maybe.d.ts +1 -1
  135. package/src/lib/value/maybe.type.d.ts +1 -1
  136. package/src/lib/value/modifier.d.ts +2 -2
  137. package/src/lib/value/point.d.ts +3 -3
  138. package/src/lib/value/use.d.ts +4 -4
  139. package/src/lib/value/vector.d.ts +1 -1
  140. package/test/CHANGELOG.md +8 -0
  141. package/test/package.json +4 -1
  142. package/CHANGELOG.md +0 -1797
  143. package/src/index.js +0 -5
  144. package/src/index.js.map +0 -1
  145. package/src/lib/array/array.boolean.js +0 -69
  146. package/src/lib/array/array.boolean.js.map +0 -1
  147. package/src/lib/array/array.factory.js +0 -25
  148. package/src/lib/array/array.factory.js.map +0 -1
  149. package/src/lib/array/array.filter.js +0 -107
  150. package/src/lib/array/array.filter.js.map +0 -1
  151. package/src/lib/array/array.find.js +0 -24
  152. package/src/lib/array/array.find.js.map +0 -1
  153. package/src/lib/array/array.index.js +0 -71
  154. package/src/lib/array/array.index.js.map +0 -1
  155. package/src/lib/array/array.indexed.js +0 -142
  156. package/src/lib/array/array.indexed.js.map +0 -1
  157. package/src/lib/array/array.js +0 -237
  158. package/src/lib/array/array.js.map +0 -1
  159. package/src/lib/array/array.limit.js +0 -19
  160. package/src/lib/array/array.limit.js.map +0 -1
  161. package/src/lib/array/array.make.js +0 -19
  162. package/src/lib/array/array.make.js.map +0 -1
  163. package/src/lib/array/array.map.js +0 -38
  164. package/src/lib/array/array.map.js.map +0 -1
  165. package/src/lib/array/array.number.js +0 -82
  166. package/src/lib/array/array.number.js.map +0 -1
  167. package/src/lib/array/array.random.js +0 -48
  168. package/src/lib/array/array.random.js.map +0 -1
  169. package/src/lib/array/array.set.js +0 -34
  170. package/src/lib/array/array.set.js.map +0 -1
  171. package/src/lib/array/array.string.js +0 -74
  172. package/src/lib/array/array.string.js.map +0 -1
  173. package/src/lib/array/array.unique.js +0 -75
  174. package/src/lib/array/array.unique.js.map +0 -1
  175. package/src/lib/array/array.value.js +0 -55
  176. package/src/lib/array/array.value.js.map +0 -1
  177. package/src/lib/array/index.js +0 -20
  178. package/src/lib/array/index.js.map +0 -1
  179. package/src/lib/assertion/assert.error.js +0 -43
  180. package/src/lib/assertion/assert.error.js.map +0 -1
  181. package/src/lib/assertion/assert.js +0 -3
  182. package/src/lib/assertion/assert.js.map +0 -1
  183. package/src/lib/assertion/assertion.generic.js +0 -10
  184. package/src/lib/assertion/assertion.generic.js.map +0 -1
  185. package/src/lib/assertion/assertion.js +0 -40
  186. package/src/lib/assertion/assertion.js.map +0 -1
  187. package/src/lib/assertion/assertion.number.js +0 -20
  188. package/src/lib/assertion/assertion.number.js.map +0 -1
  189. package/src/lib/assertion/index.js +0 -9
  190. package/src/lib/assertion/index.js.map +0 -1
  191. package/src/lib/auth/auth.role.claims.js +0 -111
  192. package/src/lib/auth/auth.role.claims.js.map +0 -1
  193. package/src/lib/auth/auth.role.js +0 -25
  194. package/src/lib/auth/auth.role.js.map +0 -1
  195. package/src/lib/auth/index.js +0 -6
  196. package/src/lib/auth/index.js.map +0 -1
  197. package/src/lib/boolean.js +0 -57
  198. package/src/lib/boolean.js.map +0 -1
  199. package/src/lib/contact/domain.js +0 -45
  200. package/src/lib/contact/domain.js.map +0 -1
  201. package/src/lib/contact/email.js +0 -32
  202. package/src/lib/contact/email.js.map +0 -1
  203. package/src/lib/contact/index.js +0 -8
  204. package/src/lib/contact/index.js.map +0 -1
  205. package/src/lib/contact/phone.js +0 -71
  206. package/src/lib/contact/phone.js.map +0 -1
  207. package/src/lib/contact/random.js +0 -50
  208. package/src/lib/contact/random.js.map +0 -1
  209. package/src/lib/date/date.js +0 -132
  210. package/src/lib/date/date.js.map +0 -1
  211. package/src/lib/date/date.time.js +0 -39
  212. package/src/lib/date/date.time.js.map +0 -1
  213. package/src/lib/date/hour.js +0 -44
  214. package/src/lib/date/hour.js.map +0 -1
  215. package/src/lib/date/index.js +0 -8
  216. package/src/lib/date/index.js.map +0 -1
  217. package/src/lib/date/week.js +0 -175
  218. package/src/lib/date/week.js.map +0 -1
  219. package/src/lib/error/error.js +0 -68
  220. package/src/lib/error/error.js.map +0 -1
  221. package/src/lib/error/error.server.js +0 -42
  222. package/src/lib/error/error.server.js.map +0 -1
  223. package/src/lib/error/index.js +0 -6
  224. package/src/lib/error/index.js.map +0 -1
  225. package/src/lib/file/index.js +0 -5
  226. package/src/lib/file/index.js.map +0 -1
  227. package/src/lib/file/xml.js +0 -3
  228. package/src/lib/file/xml.js.map +0 -1
  229. package/src/lib/filter/filter.js +0 -37
  230. package/src/lib/filter/filter.js.map +0 -1
  231. package/src/lib/filter/index.js +0 -5
  232. package/src/lib/filter/index.js.map +0 -1
  233. package/src/lib/function/function.boolean.js +0 -23
  234. package/src/lib/function/function.boolean.js.map +0 -1
  235. package/src/lib/function/function.forward.js +0 -24
  236. package/src/lib/function/function.forward.js.map +0 -1
  237. package/src/lib/function/function.js +0 -14
  238. package/src/lib/function/function.js.map +0 -1
  239. package/src/lib/function/index.js +0 -7
  240. package/src/lib/function/index.js.map +0 -1
  241. package/src/lib/getter/getter.cache.js +0 -23
  242. package/src/lib/getter/getter.cache.js.map +0 -1
  243. package/src/lib/getter/getter.js +0 -99
  244. package/src/lib/getter/getter.js.map +0 -1
  245. package/src/lib/getter/getter.map.js +0 -24
  246. package/src/lib/getter/getter.map.js.map +0 -1
  247. package/src/lib/getter/getter.util.js +0 -16
  248. package/src/lib/getter/getter.util.js.map +0 -1
  249. package/src/lib/getter/index.js +0 -9
  250. package/src/lib/getter/index.js.map +0 -1
  251. package/src/lib/getter/type.js +0 -3
  252. package/src/lib/getter/type.js.map +0 -1
  253. package/src/lib/grouping.js +0 -198
  254. package/src/lib/grouping.js.map +0 -1
  255. package/src/lib/hash.js +0 -21
  256. package/src/lib/hash.js.map +0 -1
  257. package/src/lib/index.js +0 -39
  258. package/src/lib/index.js.map +0 -1
  259. package/src/lib/iterable/index.js +0 -6
  260. package/src/lib/iterable/index.js.map +0 -1
  261. package/src/lib/iterable/iterable.js +0 -177
  262. package/src/lib/iterable/iterable.js.map +0 -1
  263. package/src/lib/iterable/iterable.map.js +0 -18
  264. package/src/lib/iterable/iterable.map.js.map +0 -1
  265. package/src/lib/iterate.js +0 -16
  266. package/src/lib/iterate.js.map +0 -1
  267. package/src/lib/key.js +0 -107
  268. package/src/lib/key.js.map +0 -1
  269. package/src/lib/lifecycle.js +0 -34
  270. package/src/lib/lifecycle.js.map +0 -1
  271. package/src/lib/map/index.js +0 -7
  272. package/src/lib/map/index.js.map +0 -1
  273. package/src/lib/map/map.intersection.js +0 -24
  274. package/src/lib/map/map.intersection.js.map +0 -1
  275. package/src/lib/map/map.js +0 -68
  276. package/src/lib/map/map.js.map +0 -1
  277. package/src/lib/map/map.key.js +0 -110
  278. package/src/lib/map/map.key.js.map +0 -1
  279. package/src/lib/misc/host.js +0 -13
  280. package/src/lib/misc/host.js.map +0 -1
  281. package/src/lib/misc/index.js +0 -5
  282. package/src/lib/misc/index.js.map +0 -1
  283. package/src/lib/model/id.batch.js +0 -58
  284. package/src/lib/model/id.batch.js.map +0 -1
  285. package/src/lib/model/index.js +0 -10
  286. package/src/lib/model/index.js.map +0 -1
  287. package/src/lib/model/model.conversion.field.js +0 -23
  288. package/src/lib/model/model.conversion.field.js.map +0 -1
  289. package/src/lib/model/model.conversion.js +0 -112
  290. package/src/lib/model/model.conversion.js.map +0 -1
  291. package/src/lib/model/model.copy.js +0 -20
  292. package/src/lib/model/model.copy.js.map +0 -1
  293. package/src/lib/model/model.js +0 -150
  294. package/src/lib/model/model.js.map +0 -1
  295. package/src/lib/model/model.modify.js +0 -51
  296. package/src/lib/model/model.modify.js.map +0 -1
  297. package/src/lib/nodejs/index.js +0 -5
  298. package/src/lib/nodejs/index.js.map +0 -1
  299. package/src/lib/nodejs/stream.js +0 -34
  300. package/src/lib/nodejs/stream.js.map +0 -1
  301. package/src/lib/number/bitwise.dencoder.js +0 -84
  302. package/src/lib/number/bitwise.dencoder.js.map +0 -1
  303. package/src/lib/number/bound.js +0 -60
  304. package/src/lib/number/bound.js.map +0 -1
  305. package/src/lib/number/dollar.js +0 -36
  306. package/src/lib/number/dollar.js.map +0 -1
  307. package/src/lib/number/factory.js +0 -22
  308. package/src/lib/number/factory.js.map +0 -1
  309. package/src/lib/number/index.js +0 -13
  310. package/src/lib/number/index.js.map +0 -1
  311. package/src/lib/number/number.js +0 -118
  312. package/src/lib/number/number.js.map +0 -1
  313. package/src/lib/number/pay.js +0 -3
  314. package/src/lib/number/pay.js.map +0 -1
  315. package/src/lib/number/random.js +0 -35
  316. package/src/lib/number/random.js.map +0 -1
  317. package/src/lib/number/round.js +0 -140
  318. package/src/lib/number/round.js.map +0 -1
  319. package/src/lib/number/sort.js +0 -16
  320. package/src/lib/number/sort.js.map +0 -1
  321. package/src/lib/number/transform.js +0 -21
  322. package/src/lib/number/transform.js.map +0 -1
  323. package/src/lib/object/index.js +0 -12
  324. package/src/lib/object/index.js.map +0 -1
  325. package/src/lib/object/object.array.delta.js +0 -87
  326. package/src/lib/object/object.array.delta.js.map +0 -1
  327. package/src/lib/object/object.array.js +0 -35
  328. package/src/lib/object/object.array.js.map +0 -1
  329. package/src/lib/object/object.empty.js +0 -27
  330. package/src/lib/object/object.empty.js.map +0 -1
  331. package/src/lib/object/object.equal.js +0 -47
  332. package/src/lib/object/object.equal.js.map +0 -1
  333. package/src/lib/object/object.filter.pojo.js +0 -260
  334. package/src/lib/object/object.filter.pojo.js.map +0 -1
  335. package/src/lib/object/object.filter.tuple.js +0 -124
  336. package/src/lib/object/object.filter.tuple.js.map +0 -1
  337. package/src/lib/object/object.js +0 -43
  338. package/src/lib/object/object.js.map +0 -1
  339. package/src/lib/object/object.map.js +0 -62
  340. package/src/lib/object/object.map.js.map +0 -1
  341. package/src/lib/page/index.js +0 -7
  342. package/src/lib/page/index.js.map +0 -1
  343. package/src/lib/page/page.calculator.js +0 -37
  344. package/src/lib/page/page.calculator.js.map +0 -1
  345. package/src/lib/page/page.filter.js +0 -50
  346. package/src/lib/page/page.filter.js.map +0 -1
  347. package/src/lib/page/page.js +0 -30
  348. package/src/lib/page/page.js.map +0 -1
  349. package/src/lib/path/index.js +0 -5
  350. package/src/lib/path/index.js.map +0 -1
  351. package/src/lib/path/path.js +0 -272
  352. package/src/lib/path/path.js.map +0 -1
  353. package/src/lib/promise/callback.js +0 -21
  354. package/src/lib/promise/callback.js.map +0 -1
  355. package/src/lib/promise/index.js +0 -14
  356. package/src/lib/promise/index.js.map +0 -1
  357. package/src/lib/promise/is.js +0 -20
  358. package/src/lib/promise/is.js.map +0 -1
  359. package/src/lib/promise/map.js +0 -14
  360. package/src/lib/promise/map.js.map +0 -1
  361. package/src/lib/promise/poll.js +0 -16
  362. package/src/lib/promise/poll.js.map +0 -1
  363. package/src/lib/promise/promise.js +0 -197
  364. package/src/lib/promise/promise.js.map +0 -1
  365. package/src/lib/promise/promise.loop.js +0 -59
  366. package/src/lib/promise/promise.loop.js.map +0 -1
  367. package/src/lib/promise/promise.ref.js +0 -19
  368. package/src/lib/promise/promise.ref.js.map +0 -1
  369. package/src/lib/promise/promise.type.js +0 -14
  370. package/src/lib/promise/promise.type.js.map +0 -1
  371. package/src/lib/promise/use.js +0 -16
  372. package/src/lib/promise/use.js.map +0 -1
  373. package/src/lib/promise/wait.js +0 -11
  374. package/src/lib/promise/wait.js.map +0 -1
  375. package/src/lib/relation/index.js +0 -5
  376. package/src/lib/relation/index.js.map +0 -1
  377. package/src/lib/relation/relation.js +0 -209
  378. package/src/lib/relation/relation.js.map +0 -1
  379. package/src/lib/service/handler.config.js +0 -61
  380. package/src/lib/service/handler.config.js.map +0 -1
  381. package/src/lib/service/handler.js +0 -55
  382. package/src/lib/service/handler.js.map +0 -1
  383. package/src/lib/service/index.js +0 -7
  384. package/src/lib/service/index.js.map +0 -1
  385. package/src/lib/service/typed.service.js +0 -41
  386. package/src/lib/service/typed.service.js.map +0 -1
  387. package/src/lib/set/index.js +0 -12
  388. package/src/lib/set/index.js.map +0 -1
  389. package/src/lib/set/set.allowed.js +0 -29
  390. package/src/lib/set/set.allowed.js.map +0 -1
  391. package/src/lib/set/set.decision.js +0 -15
  392. package/src/lib/set/set.decision.js.map +0 -1
  393. package/src/lib/set/set.delta.js +0 -91
  394. package/src/lib/set/set.delta.js.map +0 -1
  395. package/src/lib/set/set.hashset.js +0 -90
  396. package/src/lib/set/set.hashset.js.map +0 -1
  397. package/src/lib/set/set.js +0 -387
  398. package/src/lib/set/set.js.map +0 -1
  399. package/src/lib/set/set.maybe.js +0 -22
  400. package/src/lib/set/set.maybe.js.map +0 -1
  401. package/src/lib/set/set.mode.js +0 -3
  402. package/src/lib/set/set.mode.js.map +0 -1
  403. package/src/lib/set/set.selection.js +0 -21
  404. package/src/lib/set/set.selection.js.map +0 -1
  405. package/src/lib/sort.js +0 -92
  406. package/src/lib/sort.js.map +0 -1
  407. package/src/lib/storage/index.js +0 -8
  408. package/src/lib/storage/index.js.map +0 -1
  409. package/src/lib/storage/storage.error.js +0 -24
  410. package/src/lib/storage/storage.error.js.map +0 -1
  411. package/src/lib/storage/storage.js +0 -3
  412. package/src/lib/storage/storage.js.map +0 -1
  413. package/src/lib/storage/storage.memory.js +0 -48
  414. package/src/lib/storage/storage.memory.js.map +0 -1
  415. package/src/lib/storage/storage.object.js +0 -42
  416. package/src/lib/storage/storage.object.js.map +0 -1
  417. package/src/lib/string/char.js +0 -124
  418. package/src/lib/string/char.js.map +0 -1
  419. package/src/lib/string/dencoder.js +0 -106
  420. package/src/lib/string/dencoder.js.map +0 -1
  421. package/src/lib/string/html.js +0 -44
  422. package/src/lib/string/html.js.map +0 -1
  423. package/src/lib/string/index.js +0 -14
  424. package/src/lib/string/index.js.map +0 -1
  425. package/src/lib/string/password.js +0 -3
  426. package/src/lib/string/password.js.map +0 -1
  427. package/src/lib/string/replace.js +0 -181
  428. package/src/lib/string/replace.js.map +0 -1
  429. package/src/lib/string/search.js +0 -39
  430. package/src/lib/string/search.js.map +0 -1
  431. package/src/lib/string/sort.js +0 -16
  432. package/src/lib/string/sort.js.map +0 -1
  433. package/src/lib/string/string.js +0 -113
  434. package/src/lib/string/string.js.map +0 -1
  435. package/src/lib/string/transform.js +0 -79
  436. package/src/lib/string/transform.js.map +0 -1
  437. package/src/lib/string/url.js +0 -279
  438. package/src/lib/string/url.js.map +0 -1
  439. package/src/lib/tree/index.js +0 -8
  440. package/src/lib/tree/index.js.map +0 -1
  441. package/src/lib/tree/tree.array.js +0 -21
  442. package/src/lib/tree/tree.array.js.map +0 -1
  443. package/src/lib/tree/tree.expand.js +0 -35
  444. package/src/lib/tree/tree.expand.js.map +0 -1
  445. package/src/lib/tree/tree.flatten.js +0 -47
  446. package/src/lib/tree/tree.flatten.js.map +0 -1
  447. package/src/lib/tree/tree.js +0 -5
  448. package/src/lib/tree/tree.js.map +0 -1
  449. package/src/lib/type.js +0 -48
  450. package/src/lib/type.js.map +0 -1
  451. package/src/lib/value/address.js +0 -65
  452. package/src/lib/value/address.js.map +0 -1
  453. package/src/lib/value/bound.js +0 -280
  454. package/src/lib/value/bound.js.map +0 -1
  455. package/src/lib/value/build.js +0 -16
  456. package/src/lib/value/build.js.map +0 -1
  457. package/src/lib/value/comparator.js +0 -60
  458. package/src/lib/value/comparator.js.map +0 -1
  459. package/src/lib/value/cron.js +0 -29
  460. package/src/lib/value/cron.js.map +0 -1
  461. package/src/lib/value/decision.js +0 -34
  462. package/src/lib/value/decision.js.map +0 -1
  463. package/src/lib/value/equal.js +0 -56
  464. package/src/lib/value/equal.js.map +0 -1
  465. package/src/lib/value/index.js +0 -24
  466. package/src/lib/value/index.js.map +0 -1
  467. package/src/lib/value/indexed.js +0 -420
  468. package/src/lib/value/indexed.js.map +0 -1
  469. package/src/lib/value/label.js +0 -3
  470. package/src/lib/value/label.js.map +0 -1
  471. package/src/lib/value/map.js +0 -107
  472. package/src/lib/value/map.js.map +0 -1
  473. package/src/lib/value/maybe.js +0 -140
  474. package/src/lib/value/maybe.js.map +0 -1
  475. package/src/lib/value/maybe.type.js +0 -3
  476. package/src/lib/value/maybe.type.js.map +0 -1
  477. package/src/lib/value/modifier.js +0 -109
  478. package/src/lib/value/modifier.js.map +0 -1
  479. package/src/lib/value/pixel.js +0 -3
  480. package/src/lib/value/pixel.js.map +0 -1
  481. package/src/lib/value/point.js +0 -336
  482. package/src/lib/value/point.js.map +0 -1
  483. package/src/lib/value/sync.js +0 -18
  484. package/src/lib/value/sync.js.map +0 -1
  485. package/src/lib/value/url.js +0 -22
  486. package/src/lib/value/url.js.map +0 -1
  487. package/src/lib/value/use.js +0 -78
  488. package/src/lib/value/use.js.map +0 -1
  489. package/src/lib/value/vector.js +0 -70
  490. package/src/lib/value/vector.js.map +0 -1
  491. package/src/lib/value/zoom.js +0 -3
  492. package/src/lib/value/zoom.js.map +0 -1
package/package.json CHANGED
@@ -1,13 +1,18 @@
1
1
  {
2
2
  "name": "@dereekb/util",
3
- "version": "10.0.5",
4
- "type": "commonjs",
3
+ "version": "10.0.7",
5
4
  "exports": {
6
5
  ".": {
7
6
  "types": "./src/index.d.ts",
8
- "main": "./src/index.js",
9
- "require": "./src/index.js",
10
- "default": "./src/index.js"
7
+ "node": {
8
+ "require": "./index.cjs.js",
9
+ "import": "./index.mjs"
10
+ },
11
+ "browser": {
12
+ "require": "./index.cjs.js",
13
+ "import": "./index.esm.js"
14
+ },
15
+ "default": "./index.cjs.js"
11
16
  },
12
17
  "./test": {
13
18
  "types": "./test/src/index.d.ts",
@@ -22,13 +27,13 @@
22
27
  "default": "./fetch/src/index.js"
23
28
  }
24
29
  },
25
- "main": "./src/index.js",
26
- "types": "./src/index.d.ts",
27
30
  "peerDependencies": {
28
31
  "make-error": "^1.3.0",
29
32
  "ts-essentials": "^9.1.2",
30
33
  "lodash": "4.17.21",
31
34
  "extra-set": "^3.0.0"
32
35
  },
33
- "dependencies": {}
36
+ "dependencies": {},
37
+ "module": "./index.esm.js",
38
+ "main": "./index.cjs.js"
34
39
  }
@@ -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
  */
@@ -1,6 +1,6 @@
1
- import { MapFunction } from '../value/map';
2
- import { Maybe } from '../value/maybe.type';
3
- import { AsNumberInput } from './number';
1
+ import { type MapFunction } from '../value/map';
2
+ import { type Maybe } from '../value/maybe.type';
3
+ import { type AsNumberInput } from './number';
4
4
  export type NumberRounding = 'none' | 'floor' | 'ceil' | 'round';
5
5
  export type RoundingFunction = MapFunction<number, number>;
6
6
  export declare function roundingFunction(type: NumberRounding): RoundingFunction;