rubico 2.6.5 → 2.6.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 (340) hide show
  1. package/dist/Transducer.es.js +2 -2
  2. package/dist/Transducer.es.min.js +2 -2
  3. package/dist/Transducer.js +2 -2
  4. package/dist/Transducer.min.js +2 -2
  5. package/dist/Transducer.mjs +2 -2
  6. package/dist/__.es.js +2 -2
  7. package/dist/__.es.min.js +2 -2
  8. package/dist/__.js +2 -2
  9. package/dist/__.min.js +2 -2
  10. package/dist/__.mjs +2 -2
  11. package/dist/all.es.js +2 -22
  12. package/dist/all.es.min.js +2 -2
  13. package/dist/all.js +2 -22
  14. package/dist/all.min.js +2 -2
  15. package/dist/all.mjs +2 -22
  16. package/dist/always.es.js +2 -2
  17. package/dist/always.es.min.js +2 -2
  18. package/dist/always.js +2 -2
  19. package/dist/always.min.js +2 -2
  20. package/dist/always.mjs +2 -2
  21. package/dist/and.es.js +2 -2
  22. package/dist/and.es.min.js +2 -2
  23. package/dist/and.js +2 -2
  24. package/dist/and.min.js +2 -2
  25. package/dist/and.mjs +2 -2
  26. package/dist/assign.es.js +2 -2
  27. package/dist/assign.es.min.js +2 -2
  28. package/dist/assign.js +2 -2
  29. package/dist/assign.min.js +2 -2
  30. package/dist/assign.mjs +2 -2
  31. package/dist/compose.es.js +2 -2
  32. package/dist/compose.es.min.js +2 -2
  33. package/dist/compose.js +2 -2
  34. package/dist/compose.min.js +2 -2
  35. package/dist/compose.mjs +2 -2
  36. package/dist/curry.es.js +2 -2
  37. package/dist/curry.es.min.js +2 -2
  38. package/dist/curry.js +2 -2
  39. package/dist/curry.min.js +2 -2
  40. package/dist/curry.mjs +2 -2
  41. package/dist/eq.es.js +2 -2
  42. package/dist/eq.es.min.js +2 -2
  43. package/dist/eq.js +2 -2
  44. package/dist/eq.min.js +2 -2
  45. package/dist/eq.mjs +2 -2
  46. package/dist/every.es.js +2 -2
  47. package/dist/every.es.min.js +2 -2
  48. package/dist/every.js +2 -2
  49. package/dist/every.min.js +2 -2
  50. package/dist/every.mjs +2 -2
  51. package/dist/filter.es.js +5 -3
  52. package/dist/filter.es.min.js +3 -3
  53. package/dist/filter.js +5 -3
  54. package/dist/filter.min.js +3 -3
  55. package/dist/filter.mjs +5 -3
  56. package/dist/flatMap.es.js +2 -2
  57. package/dist/flatMap.es.min.js +2 -2
  58. package/dist/flatMap.js +2 -2
  59. package/dist/flatMap.min.js +2 -2
  60. package/dist/flatMap.mjs +2 -2
  61. package/dist/forEach.es.js +2 -2
  62. package/dist/forEach.es.min.js +2 -2
  63. package/dist/forEach.js +2 -2
  64. package/dist/forEach.min.js +2 -2
  65. package/dist/forEach.mjs +2 -2
  66. package/dist/get.es.js +2 -2
  67. package/dist/get.es.min.js +2 -2
  68. package/dist/get.js +2 -2
  69. package/dist/get.min.js +2 -2
  70. package/dist/get.mjs +2 -2
  71. package/dist/gt.es.js +2 -2
  72. package/dist/gt.es.min.js +2 -2
  73. package/dist/gt.js +2 -2
  74. package/dist/gt.min.js +2 -2
  75. package/dist/gt.mjs +2 -2
  76. package/dist/gte.es.js +2 -2
  77. package/dist/gte.es.min.js +2 -2
  78. package/dist/gte.js +2 -2
  79. package/dist/gte.min.js +2 -2
  80. package/dist/gte.mjs +2 -2
  81. package/dist/lt.es.js +2 -2
  82. package/dist/lt.es.min.js +2 -2
  83. package/dist/lt.js +2 -2
  84. package/dist/lt.min.js +2 -2
  85. package/dist/lt.mjs +2 -2
  86. package/dist/lte.es.js +2 -2
  87. package/dist/lte.es.min.js +2 -2
  88. package/dist/lte.js +2 -2
  89. package/dist/lte.min.js +2 -2
  90. package/dist/lte.mjs +2 -2
  91. package/dist/map.es.js +31 -31
  92. package/dist/map.es.min.js +3 -3
  93. package/dist/map.js +31 -31
  94. package/dist/map.min.js +3 -3
  95. package/dist/map.mjs +31 -31
  96. package/dist/not.es.js +2 -2
  97. package/dist/not.es.min.js +2 -2
  98. package/dist/not.js +2 -2
  99. package/dist/not.min.js +2 -2
  100. package/dist/not.mjs +2 -2
  101. package/dist/omit.es.js +2 -2
  102. package/dist/omit.es.min.js +2 -2
  103. package/dist/omit.js +2 -2
  104. package/dist/omit.min.js +2 -2
  105. package/dist/omit.mjs +2 -2
  106. package/dist/or.es.js +2 -2
  107. package/dist/or.es.min.js +2 -2
  108. package/dist/or.js +2 -2
  109. package/dist/or.min.js +2 -2
  110. package/dist/or.mjs +2 -2
  111. package/dist/pick.es.js +2 -2
  112. package/dist/pick.es.min.js +2 -2
  113. package/dist/pick.js +2 -2
  114. package/dist/pick.min.js +2 -2
  115. package/dist/pick.mjs +2 -2
  116. package/dist/pipe.es.js +2 -2
  117. package/dist/pipe.es.min.js +2 -2
  118. package/dist/pipe.js +2 -2
  119. package/dist/pipe.min.js +2 -2
  120. package/dist/pipe.mjs +2 -2
  121. package/dist/reduce.es.js +2 -2
  122. package/dist/reduce.es.min.js +2 -2
  123. package/dist/reduce.js +2 -2
  124. package/dist/reduce.min.js +2 -2
  125. package/dist/reduce.mjs +2 -2
  126. package/dist/rubico.es.js +34 -52
  127. package/dist/rubico.es.min.js +3 -3
  128. package/dist/rubico.global.js +34 -52
  129. package/dist/rubico.global.min.js +3 -3
  130. package/dist/rubico.js +34 -52
  131. package/dist/rubico.min.js +3 -3
  132. package/dist/rubico.mjs +34 -52
  133. package/dist/set.es.js +2 -2
  134. package/dist/set.es.min.js +2 -2
  135. package/dist/set.js +2 -2
  136. package/dist/set.min.js +2 -2
  137. package/dist/set.mjs +2 -2
  138. package/dist/some.es.js +2 -2
  139. package/dist/some.es.min.js +2 -2
  140. package/dist/some.js +2 -2
  141. package/dist/some.min.js +2 -2
  142. package/dist/some.mjs +2 -2
  143. package/dist/switchCase.es.js +2 -2
  144. package/dist/switchCase.es.min.js +2 -2
  145. package/dist/switchCase.js +2 -2
  146. package/dist/switchCase.min.js +2 -2
  147. package/dist/switchCase.mjs +2 -2
  148. package/dist/tap.es.js +2 -2
  149. package/dist/tap.es.min.js +2 -2
  150. package/dist/tap.js +2 -2
  151. package/dist/tap.min.js +2 -2
  152. package/dist/tap.mjs +2 -2
  153. package/dist/thunkify.es.js +2 -2
  154. package/dist/thunkify.es.min.js +2 -2
  155. package/dist/thunkify.js +2 -2
  156. package/dist/thunkify.min.js +2 -2
  157. package/dist/thunkify.mjs +2 -2
  158. package/dist/transform.es.js +2 -2
  159. package/dist/transform.es.min.js +2 -2
  160. package/dist/transform.js +2 -2
  161. package/dist/transform.min.js +2 -2
  162. package/dist/transform.mjs +2 -2
  163. package/dist/tryCatch.es.js +2 -2
  164. package/dist/tryCatch.es.min.js +2 -2
  165. package/dist/tryCatch.js +2 -2
  166. package/dist/tryCatch.min.js +2 -2
  167. package/dist/tryCatch.mjs +2 -2
  168. package/dist/x/append.es.js +2 -2
  169. package/dist/x/append.es.min.js +2 -2
  170. package/dist/x/append.js +2 -2
  171. package/dist/x/append.min.js +2 -2
  172. package/dist/x/append.mjs +2 -2
  173. package/dist/x/callProp.es.js +2 -2
  174. package/dist/x/callProp.es.min.js +2 -2
  175. package/dist/x/callProp.js +2 -2
  176. package/dist/x/callProp.min.js +2 -2
  177. package/dist/x/callProp.mjs +2 -2
  178. package/dist/x/defaultsDeep.es.js +2 -2
  179. package/dist/x/defaultsDeep.es.min.js +2 -2
  180. package/dist/x/defaultsDeep.js +2 -2
  181. package/dist/x/defaultsDeep.min.js +2 -2
  182. package/dist/x/defaultsDeep.mjs +2 -2
  183. package/dist/x/differenceWith.es.js +2 -2
  184. package/dist/x/differenceWith.es.min.js +2 -2
  185. package/dist/x/differenceWith.js +2 -2
  186. package/dist/x/differenceWith.min.js +2 -2
  187. package/dist/x/differenceWith.mjs +2 -2
  188. package/dist/x/filterOut.es.js +5 -3
  189. package/dist/x/filterOut.es.min.js +3 -3
  190. package/dist/x/filterOut.js +5 -3
  191. package/dist/x/filterOut.min.js +3 -3
  192. package/dist/x/filterOut.mjs +5 -3
  193. package/dist/x/find.es.js +2 -2
  194. package/dist/x/find.es.min.js +2 -2
  195. package/dist/x/find.js +2 -2
  196. package/dist/x/find.min.js +2 -2
  197. package/dist/x/find.mjs +2 -2
  198. package/dist/x/findIndex.es.js +2 -2
  199. package/dist/x/findIndex.es.min.js +2 -2
  200. package/dist/x/findIndex.js +2 -2
  201. package/dist/x/findIndex.min.js +2 -2
  202. package/dist/x/findIndex.mjs +2 -2
  203. package/dist/x/first.es.js +2 -2
  204. package/dist/x/first.es.min.js +2 -2
  205. package/dist/x/first.js +2 -2
  206. package/dist/x/first.min.js +2 -2
  207. package/dist/x/first.mjs +2 -2
  208. package/dist/x/flatten.es.js +2 -2
  209. package/dist/x/flatten.es.min.js +2 -2
  210. package/dist/x/flatten.js +2 -2
  211. package/dist/x/flatten.min.js +2 -2
  212. package/dist/x/flatten.mjs +2 -2
  213. package/dist/x/groupBy.es.js +2 -2
  214. package/dist/x/groupBy.es.min.js +2 -2
  215. package/dist/x/groupBy.js +2 -2
  216. package/dist/x/groupBy.min.js +2 -2
  217. package/dist/x/groupBy.mjs +2 -2
  218. package/dist/x/has.es.js +2 -2
  219. package/dist/x/has.es.min.js +2 -2
  220. package/dist/x/has.js +2 -2
  221. package/dist/x/has.min.js +2 -2
  222. package/dist/x/has.mjs +2 -2
  223. package/dist/x/identity.es.js +2 -2
  224. package/dist/x/identity.es.min.js +2 -2
  225. package/dist/x/identity.js +2 -2
  226. package/dist/x/identity.min.js +2 -2
  227. package/dist/x/identity.mjs +2 -2
  228. package/dist/x/includes.es.js +2 -2
  229. package/dist/x/includes.es.min.js +2 -2
  230. package/dist/x/includes.js +2 -2
  231. package/dist/x/includes.min.js +2 -2
  232. package/dist/x/includes.mjs +2 -2
  233. package/dist/x/isDeepEqual.es.js +2 -2
  234. package/dist/x/isDeepEqual.es.min.js +2 -2
  235. package/dist/x/isDeepEqual.js +2 -2
  236. package/dist/x/isDeepEqual.min.js +2 -2
  237. package/dist/x/isDeepEqual.mjs +2 -2
  238. package/dist/x/isEmpty.es.js +2 -2
  239. package/dist/x/isEmpty.es.min.js +2 -2
  240. package/dist/x/isEmpty.js +2 -2
  241. package/dist/x/isEmpty.min.js +2 -2
  242. package/dist/x/isEmpty.mjs +2 -2
  243. package/dist/x/isEqual.es.js +2 -2
  244. package/dist/x/isEqual.es.min.js +2 -2
  245. package/dist/x/isEqual.js +2 -2
  246. package/dist/x/isEqual.min.js +2 -2
  247. package/dist/x/isEqual.mjs +2 -2
  248. package/dist/x/isFunction.es.js +2 -2
  249. package/dist/x/isFunction.es.min.js +2 -2
  250. package/dist/x/isFunction.js +2 -2
  251. package/dist/x/isFunction.min.js +2 -2
  252. package/dist/x/isFunction.mjs +2 -2
  253. package/dist/x/isIn.es.js +2 -2
  254. package/dist/x/isIn.es.min.js +2 -2
  255. package/dist/x/isIn.js +2 -2
  256. package/dist/x/isIn.min.js +2 -2
  257. package/dist/x/isIn.mjs +2 -2
  258. package/dist/x/isObject.es.js +2 -2
  259. package/dist/x/isObject.es.min.js +2 -2
  260. package/dist/x/isObject.js +2 -2
  261. package/dist/x/isObject.min.js +2 -2
  262. package/dist/x/isObject.mjs +2 -2
  263. package/dist/x/isString.es.js +2 -2
  264. package/dist/x/isString.es.min.js +2 -2
  265. package/dist/x/isString.js +2 -2
  266. package/dist/x/isString.min.js +2 -2
  267. package/dist/x/isString.mjs +2 -2
  268. package/dist/x/keys.es.js +2 -2
  269. package/dist/x/keys.es.min.js +2 -2
  270. package/dist/x/keys.js +2 -2
  271. package/dist/x/keys.min.js +2 -2
  272. package/dist/x/keys.mjs +2 -2
  273. package/dist/x/last.es.js +2 -2
  274. package/dist/x/last.es.min.js +2 -2
  275. package/dist/x/last.js +2 -2
  276. package/dist/x/last.min.js +2 -2
  277. package/dist/x/last.mjs +2 -2
  278. package/dist/x/maxBy.es.js +2 -2
  279. package/dist/x/maxBy.es.min.js +2 -2
  280. package/dist/x/maxBy.js +2 -2
  281. package/dist/x/maxBy.min.js +2 -2
  282. package/dist/x/maxBy.mjs +2 -2
  283. package/dist/x/noop.es.js +2 -2
  284. package/dist/x/noop.es.min.js +2 -2
  285. package/dist/x/noop.js +2 -2
  286. package/dist/x/noop.min.js +2 -2
  287. package/dist/x/noop.mjs +2 -2
  288. package/dist/x/pluck.es.js +31 -31
  289. package/dist/x/pluck.es.min.js +3 -3
  290. package/dist/x/pluck.js +31 -31
  291. package/dist/x/pluck.min.js +3 -3
  292. package/dist/x/pluck.mjs +31 -31
  293. package/dist/x/prepend.es.js +2 -2
  294. package/dist/x/prepend.es.min.js +2 -2
  295. package/dist/x/prepend.js +2 -2
  296. package/dist/x/prepend.min.js +2 -2
  297. package/dist/x/prepend.mjs +2 -2
  298. package/dist/x/size.es.js +2 -2
  299. package/dist/x/size.es.min.js +2 -2
  300. package/dist/x/size.js +2 -2
  301. package/dist/x/size.min.js +2 -2
  302. package/dist/x/size.mjs +2 -2
  303. package/dist/x/trace.es.js +2 -2
  304. package/dist/x/trace.es.min.js +2 -2
  305. package/dist/x/trace.js +2 -2
  306. package/dist/x/trace.min.js +2 -2
  307. package/dist/x/trace.mjs +2 -2
  308. package/dist/x/unionWith.es.js +2 -2
  309. package/dist/x/unionWith.es.min.js +2 -2
  310. package/dist/x/unionWith.js +2 -2
  311. package/dist/x/unionWith.min.js +2 -2
  312. package/dist/x/unionWith.mjs +2 -2
  313. package/dist/x/uniq.es.js +2 -2
  314. package/dist/x/uniq.es.min.js +2 -2
  315. package/dist/x/uniq.js +2 -2
  316. package/dist/x/uniq.min.js +2 -2
  317. package/dist/x/uniq.mjs +2 -2
  318. package/dist/x/unless.es.js +2 -2
  319. package/dist/x/unless.es.min.js +2 -2
  320. package/dist/x/unless.js +2 -2
  321. package/dist/x/unless.min.js +2 -2
  322. package/dist/x/unless.mjs +2 -2
  323. package/dist/x/values.es.js +2 -2
  324. package/dist/x/values.es.min.js +2 -2
  325. package/dist/x/values.js +2 -2
  326. package/dist/x/values.min.js +2 -2
  327. package/dist/x/values.mjs +2 -2
  328. package/dist/x/when.es.js +2 -2
  329. package/dist/x/when.es.min.js +2 -2
  330. package/dist/x/when.js +2 -2
  331. package/dist/x/when.min.js +2 -2
  332. package/dist/x/when.mjs +2 -2
  333. package/es.js +34 -52
  334. package/filter.js +41 -45
  335. package/flatMap.js +24 -27
  336. package/index.js +34 -52
  337. package/map.js +67 -89
  338. package/package.json +1 -3
  339. package/reduce.js +44 -82
  340. package/transform.js +24 -32
package/dist/x/prepend.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
package/dist/x/size.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
  const objectKeysLength=e=>{let t=0;for(const n in e)t+=1;return t},size=e=>"string"==typeof e?e.length:null==e?0:"number"==typeof e.length?e.length:"number"==typeof e.size?e.size:e.constructor==Object?objectKeysLength(e):1;export default size;
package/dist/x/size.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
package/dist/x/size.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
  const isPromise=r=>null!=r&&"function"==typeof r.then,funcConcat=(r,n)=>function(...e){const t=r(...e);return isPromise(t)?t.then(n):n(t)},always=r=>function(){return r},thunkifyArgs=(r,n)=>function(){return r(...n)},thunkConditional=(r,n,e)=>r?n():e(),__=Symbol.for("placeholder"),curry2ResolveArg0=(r,n)=>function(e){return r(e,n)},curry2ResolveArg1=(r,n)=>function(e){return r(n,e)},curry2=function(r,n,e){return n==__?curry2ResolveArg0(r,e):curry2ResolveArg1(r,n)},curry3ResolveArg0=(r,n,e)=>function(t){return r(t,n,e)},curry3ResolveArg1=(r,n,e)=>function(t){return r(n,t,e)},curry3ResolveArg2=(r,n,e)=>function(t){return r(n,e,t)},curry3=function(r,n,e,t){return n==__?curry3ResolveArg0(r,e,t):e==__?curry3ResolveArg1(r,n,t):curry3ResolveArg2(r,n,e)},curryArgs2ResolveArgs0=(r,n,e)=>function(...e){return r(e,n)},curryArgs2ResolveArgs1=(r,n,e)=>function(...e){return r(n,e)},curryArgs2=function(r,n,e){return n==__?curryArgs2ResolveArgs0(r,e):curryArgs2ResolveArgs1(r,n)},curryArgs3ResolveArgs0=(r,n,e)=>function(...t){return r(t,n,e)},curryArgs3ResolveArgs1=(r,n,e)=>function(...t){return r(n,t,e)},curryArgs3ResolveArgs2=(r,n,e)=>function(...t){return r(n,e,t)},curryArgs3=function(r,n,e,t){return n==__?curryArgs3ResolveArgs0(r,e,t):e==__?curryArgs3ResolveArgs1(r,n,t):curryArgs3ResolveArgs2(r,n,e)},isArray=Array.isArray,areAnyValuesPromises=function(r){if(isArray(r)){const n=r.length;let e=-1;for(;++e<n;){const n=r[e];if(isPromise(n))return!0}return!1}for(const n in r){const e=r[n];if(isPromise(e))return!0}return!1},promiseAll=Promise.all.bind(Promise),_tap=function(r,n){const e=r[0],t=n(...r);return isPromise(t)?t.then(always(e)):e},tap=function(...r){const n=r.pop();return 0==r.length?curryArgs2(_tap,__,n):areAnyValuesPromises(r)?promiseAll(r).then(curry2(_tap,__,n)):_tap(r,n)},_tapIf=function(r,n,e){const t=r(...e);if(isPromise(t))return t.then(curry3(thunkConditional,__,thunkifyArgs(tap(n),e),always(e[0])));if(t){const r=n(...e);if(isPromise(r))return r.then(always(e[0]))}return e[0]};tap.if=function(...r){if(2==r.length)return curryArgs3(_tapIf,r[0],r[1],__);const n=r.length,e=r[n-1],t=r[n-2],o=r.slice(0,-2);return areAnyValuesPromises(o)?promiseAll(o).then(curry3(_tapIf,t,e,__)):_tapIf(t,e,r)};const consoleLog=console.log,trace=function(...r){const n=r[0];return"function"==typeof n?tap(funcConcat(n,consoleLog)):tap(consoleLog)(...r)};export default trace;
package/dist/x/trace.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
package/dist/x/trace.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
  const isArray=Array.isArray,isPromise=r=>null!=r&&"function"==typeof r.then,promiseAll=Promise.all.bind(Promise),__=Symbol.for("placeholder"),curry3ResolveArg0=(r,n,t)=>function(e){return r(e,n,t)},curry3ResolveArg1=(r,n,t)=>function(e){return r(n,e,t)},curry3ResolveArg2=(r,n,t)=>function(e){return r(n,t,e)},curry3=function(r,n,t,e){return n==__?curry3ResolveArg0(r,t,e):t==__?curry3ResolveArg1(r,n,e):curry3ResolveArg2(r,n,t)},thunkify2=(r,n,t)=>function(){return r(n,t)},thunkify4=(r,n,t,e,o)=>function(){return r(n,t,e,o)},funcConcatSync=(r,n)=>function(...t){return n(r(...t))},callPropUnary=(r,n,t)=>r[n](t),thunkConditional=(r,n,t)=>r?n():t(),arrayPush=function(r,n){return r.push(n),r},always=r=>function(){return r},curry2ResolveArg0=(r,n)=>function(t){return r(t,n)},curry2ResolveArg1=(r,n)=>function(t){return r(n,t)},curry2=function(r,n,t){return n==__?curry2ResolveArg0(r,t):curry2ResolveArg1(r,n)},getArg1=(r,n)=>n,identity=r=>r,asyncIteratorForEach=async function(r,n){const t=[];for await(const e of r){const r=n(e);isPromise(r)&&t.push(r)}return 0==t.length?r:promiseAll(t).then(always(r))},symbolIterator=Symbol.iterator,symbolAsyncIterator=Symbol.asyncIterator,arrayFlatten=function(r){const n=r.length,t=[],e=[];let o=-1;for(;++o<n;){const n=r[o];if(isArray(n)){const r=n.length;let t=-1;for(;++t<r;)e.push(n[t])}else if(null==n)e.push(n);else if("function"==typeof n.then)t.push(n.then(curry2(arrayPush,e,__)));else if("function"==typeof n[symbolIterator])for(const r of n)e.push(r);else if("function"==typeof n[symbolAsyncIterator])t.push(asyncIteratorForEach(n[symbolAsyncIterator](),curry2(arrayPush,e,__)));else if("function"==typeof n.chain){const r=n.chain(identity);isPromise(r)?t.push(r.then(curry2(arrayPush,e,__))):e.push(r)}else if("function"==typeof n.flatMap){const r=n.flatMap(identity);isPromise(r)?t.push(r.then(curry2(arrayPush,e,__))):e.push(r)}else if("function"==typeof n.reduce){const r=n.reduce(funcConcatSync(getArg1,curry2(arrayPush,e,__)),null);isPromise(r)&&t.push(r)}else if(n.constructor==Object)for(const r in n)e.push(n[r]);else e.push(n)}return 0==t.length?e:promiseAll(t).then(always(e))},noop=function(){},arrayIncludesWith=function(r,n,t){const e=r.length,o=[];let s=-1;for(;++s<e;){const e=t(n,r[s]);if(isPromise(e))o.push(e);else if(e)return!0}return 0!=o.length&&promiseAll(o).then(curry3(callPropUnary,__,"some",Boolean))},arrayUniqWithAsync=async function(r,n,t,e){const o=r.length;for(;++e<o;){const o=r[e],s=arrayIncludesWith(t,o,n);(isPromise(s)?await s:s)||t.push(o)}return t},arrayUniqWith=function(r,n){const t=r.length,e=[];let o=-1;for(;++o<t;){const t=r[o],s=arrayIncludesWith(e,t,n);if(isPromise(s))return s.then(funcConcatSync(curry3(thunkConditional,__,noop,thunkify2(arrayPush,e,t)),thunkify4(arrayUniqWithAsync,r,n,e,o)));s||e.push(t)}return e},unionWith=r=>function(n){if(isArray(n))return arrayUniqWith(arrayFlatten(n),r);throw new TypeError(`${n} is not an Array`)};export default unionWith;
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
package/dist/x/uniq.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
  const isArray=Array.isArray,uniq=r=>{if(!isArray(r))throw Error("uniq(arr): arr is not an array");return[...new Set(r)]};export default uniq;
package/dist/x/uniq.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
package/dist/x/uniq.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
  const isPromise=r=>null!=r&&"function"==typeof r.then,always=r=>function(){return r},__=Symbol.for("placeholder"),thunkify1=(r,n)=>function(){return r(n)},curry3ResolveArg0=(r,n,u)=>function(e){return r(e,n,u)},curry3ResolveArg1=(r,n,u)=>function(e){return r(n,e,u)},curry3ResolveArg2=(r,n,u)=>function(e){return r(n,u,e)},curry3=function(r,n,u,e){return n==__?curry3ResolveArg0(r,u,e):u==__?curry3ResolveArg1(r,n,e):curry3ResolveArg2(r,n,u)},thunkConditional=(r,n,u)=>r?n():u(),unless=(r,n)=>function(u){const e=r(u);return isPromise(e)?e.then(curry3(thunkConditional,__,always(u),thunkify1(n,u))):e?u:n(u)};export default unless;
package/dist/x/unless.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
package/dist/x/unless.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
  const objectValues=Object.values,values=e=>null==e?[]:"function"==typeof e.values?[...e.values()]:objectValues(e);export default values;
package/dist/x/values.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
package/dist/x/values.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
package/dist/x/when.es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
  const isPromise=r=>null!=r&&"function"==typeof r.then,always=r=>function(){return r},__=Symbol.for("placeholder"),thunkify1=(r,n)=>function(){return r(n)},curry3ResolveArg0=(r,n,e)=>function(u){return r(u,n,e)},curry3ResolveArg1=(r,n,e)=>function(u){return r(n,u,e)},curry3ResolveArg2=(r,n,e)=>function(u){return r(n,e,u)},curry3=function(r,n,e,u){return n==__?curry3ResolveArg0(r,e,u):e==__?curry3ResolveArg1(r,n,u):curry3ResolveArg2(r,n,e)},thunkConditional=(r,n,e)=>r?n():e(),when=(r,n)=>function(e){const u=r(e);return isPromise(u)?u.then(curry3(thunkConditional,__,thunkify1(n,e),always(e))):u?n(e):e};export default when;
package/dist/x/when.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
package/dist/x/when.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
package/es.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
- * rubico v2.6.2
2
+ * rubico v2.6.6
3
3
  * https://github.com/a-synchronous/rubico
4
- * (c) 2019-2024 Richard Tong
4
+ * (c) 2019-2025 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
6
6
  */
7
7
 
@@ -423,26 +423,6 @@ const all = function (...args) {
423
423
  return isArray(resolversOrValues)
424
424
  ? functionArrayAll(resolversOrValues, argValues)
425
425
  : functionObjectAll(resolversOrValues, argValues)
426
-
427
- /*
428
- ////////////////////////////////////////////////////////////////
429
- const funcs = args.pop()
430
- if (args.length == 0) {
431
- return isArray(funcs)
432
- ? curryArgs2(functionArrayAll, funcs, __)
433
- : curryArgs2(functionObjectAll, funcs, __)
434
- }
435
-
436
- if (areAnyValuesPromises(args)) {
437
- return isArray(funcs)
438
- ? promiseAll(args).then(curry2(functionArrayAll, funcs, __))
439
- : promiseAll(args).then(curry2(functionObjectAll, funcs, __))
440
- }
441
-
442
- return isArray(funcs)
443
- ? functionArrayAll(funcs, args)
444
- : functionObjectAll(funcs, args)
445
- */
446
426
  }
447
427
 
448
428
  all.series = function allSeries(...args) {
@@ -1173,39 +1153,39 @@ const mapMapEntries = function (source, mapper) {
1173
1153
  : promiseAll(promises).then(always(result))
1174
1154
  }
1175
1155
 
1176
- const _map = function (value, mapper) {
1156
+ const _map = function (value, f) {
1177
1157
  if (isArray(value)) {
1178
- return arrayMap(value, mapper)
1158
+ return arrayMap(value, f)
1179
1159
  }
1180
1160
  if (value == null) {
1181
1161
  return value
1182
1162
  }
1183
1163
 
1184
1164
  if (typeof value.then == 'function') {
1185
- return value.then(mapper)
1165
+ return value.then(f)
1186
1166
  }
1187
1167
  if (typeof value.map == 'function') {
1188
- return value.map(mapper)
1168
+ return value.map(f)
1189
1169
  }
1190
1170
  if (typeof value == 'string' || value.constructor == String) {
1191
- return stringMap(value, mapper)
1171
+ return stringMap(value, f)
1192
1172
  }
1193
1173
  if (value.constructor == Set) {
1194
- return setMap(value, mapper)
1174
+ return setMap(value, f)
1195
1175
  }
1196
1176
  if (value.constructor == Map) {
1197
- return mapMap(value, mapper)
1177
+ return mapMap(value, f)
1198
1178
  }
1199
1179
  if (typeof value[symbolIterator] == 'function') {
1200
- return MappingIterator(value[symbolIterator](), mapper)
1180
+ return MappingIterator(value[symbolIterator](), f)
1201
1181
  }
1202
1182
  if (typeof value[symbolAsyncIterator] == 'function') {
1203
- return MappingAsyncIterator(value[symbolAsyncIterator](), mapper)
1183
+ return MappingAsyncIterator(value[symbolAsyncIterator](), f)
1204
1184
  }
1205
1185
  if (value.constructor == Object) {
1206
- return objectMap(value, mapper)
1186
+ return objectMap(value, f)
1207
1187
  }
1208
- return mapper(value)
1188
+ return f(value)
1209
1189
  }
1210
1190
 
1211
1191
  const map = function (arg0, arg1) {
@@ -1217,16 +1197,16 @@ const map = function (arg0, arg1) {
1217
1197
  : _map(arg0, arg1)
1218
1198
  }
1219
1199
 
1220
- // _mapEntries(value Object|Map, mapper function) -> Object|Map
1221
- const _mapEntries = (value, mapper) => {
1200
+ // _mapEntries(value Object|Map, f function) -> Object|Map
1201
+ const _mapEntries = (value, f) => {
1222
1202
  if (value == null) {
1223
1203
  throw new TypeError('value is not an Object or Map')
1224
1204
  }
1225
1205
  if (value.constructor == Object) {
1226
- return objectMapEntries(value, mapper)
1206
+ return objectMapEntries(value, f)
1227
1207
  }
1228
1208
  if (value.constructor == Map) {
1229
- return mapMapEntries(value, mapper)
1209
+ return mapMapEntries(value, f)
1230
1210
  }
1231
1211
  throw new TypeError('value is not an Object or Map')
1232
1212
  }
@@ -1272,26 +1252,26 @@ map.series = function mapSeries(arg0, arg1) {
1272
1252
  : _mapSeries(arg0, arg1)
1273
1253
  }
1274
1254
 
1275
- const _mapPool = function (collection, concurrency, f) {
1276
- if (isArray(collection)) {
1277
- return arrayMapPool(collection, concurrency, f)
1255
+ const _mapPool = function (f, concurrency, mapper) {
1256
+ if (isArray(f)) {
1257
+ return arrayMapPool(f, concurrency, mapper)
1278
1258
  }
1279
- if (collection == null) {
1280
- throw new TypeError(`invalid collection ${collection}`)
1259
+ if (f == null) {
1260
+ throw new TypeError(`invalid functor ${f}`)
1281
1261
  }
1282
- if (typeof collection == 'string' || collection.constructor == String) {
1283
- return stringMapPool(collection, concurrency, f)
1262
+ if (typeof f == 'string' || f.constructor == String) {
1263
+ return stringMapPool(f, concurrency, mapper)
1284
1264
  }
1285
- if (collection.constructor == Set) {
1286
- return setMapPool(collection, concurrency, f)
1265
+ if (f.constructor == Set) {
1266
+ return setMapPool(f, concurrency, mapper)
1287
1267
  }
1288
- if (collection.constructor == Map) {
1289
- return mapMapPool(collection, concurrency, f)
1268
+ if (f.constructor == Map) {
1269
+ return mapMapPool(f, concurrency, mapper)
1290
1270
  }
1291
- if (collection.constructor == Object) {
1292
- return objectMapPool(collection, concurrency, f)
1271
+ if (f.constructor == Object) {
1272
+ return objectMapPool(f, concurrency, mapper)
1293
1273
  }
1294
- throw new TypeError(`invalid collection ${collection}`)
1274
+ throw new TypeError(`invalid functor ${f}`)
1295
1275
  }
1296
1276
 
1297
1277
  map.pool = function mapPool(arg0, arg1, arg2) {
@@ -1496,7 +1476,9 @@ const filter = function (arg0, arg1) {
1496
1476
  if (typeof arg0 == 'function') {
1497
1477
  return curry2(_filter, __, arg0)
1498
1478
  }
1499
- return _filter(arg0, arg1)
1479
+ return isPromise(arg0)
1480
+ ? arg0.then(curry2(_filter, __, arg1))
1481
+ : _filter(arg0, arg1)
1500
1482
  }
1501
1483
 
1502
1484
  const objectValues = Object.values