rubico 2.2.1 → 2.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (351) hide show
  1. package/README.md +1 -3
  2. package/dist/Transducer.es.js +1 -1
  3. package/dist/Transducer.es.min.js +1 -1
  4. package/dist/Transducer.js +1 -1
  5. package/dist/Transducer.min.js +1 -1
  6. package/dist/Transducer.mjs +1 -1
  7. package/dist/__.es.js +1 -1
  8. package/dist/__.es.min.js +1 -1
  9. package/dist/__.js +1 -1
  10. package/dist/__.min.js +1 -1
  11. package/dist/__.mjs +1 -1
  12. package/dist/all.es.js +1 -1
  13. package/dist/all.es.min.js +1 -1
  14. package/dist/all.js +1 -1
  15. package/dist/all.min.js +1 -1
  16. package/dist/all.mjs +1 -1
  17. package/dist/always.es.js +1 -1
  18. package/dist/always.es.min.js +1 -1
  19. package/dist/always.js +1 -1
  20. package/dist/always.min.js +1 -1
  21. package/dist/always.mjs +1 -1
  22. package/dist/and.es.js +1 -1
  23. package/dist/and.es.min.js +1 -1
  24. package/dist/and.js +1 -1
  25. package/dist/and.min.js +1 -1
  26. package/dist/and.mjs +1 -1
  27. package/dist/assign.es.js +1 -1
  28. package/dist/assign.es.min.js +1 -1
  29. package/dist/assign.js +1 -1
  30. package/dist/assign.min.js +1 -1
  31. package/dist/assign.mjs +1 -1
  32. package/dist/compose.es.js +1 -1
  33. package/dist/compose.es.min.js +1 -1
  34. package/dist/compose.js +1 -1
  35. package/dist/compose.min.js +1 -1
  36. package/dist/compose.mjs +1 -1
  37. package/dist/curry.es.js +1 -1
  38. package/dist/curry.es.min.js +1 -1
  39. package/dist/curry.js +1 -1
  40. package/dist/curry.min.js +1 -1
  41. package/dist/curry.mjs +1 -1
  42. package/dist/eq.es.js +1 -1
  43. package/dist/eq.es.min.js +1 -1
  44. package/dist/eq.js +1 -1
  45. package/dist/eq.min.js +1 -1
  46. package/dist/eq.mjs +1 -1
  47. package/dist/every.es.js +1 -1
  48. package/dist/every.es.min.js +1 -1
  49. package/dist/every.js +1 -1
  50. package/dist/every.min.js +1 -1
  51. package/dist/every.mjs +1 -1
  52. package/dist/filter.es.js +1 -1
  53. package/dist/filter.es.min.js +1 -1
  54. package/dist/filter.js +1 -1
  55. package/dist/filter.min.js +1 -1
  56. package/dist/filter.mjs +1 -1
  57. package/dist/flatMap.es.js +1 -1
  58. package/dist/flatMap.es.min.js +1 -1
  59. package/dist/flatMap.js +1 -1
  60. package/dist/flatMap.min.js +1 -1
  61. package/dist/flatMap.mjs +1 -1
  62. package/dist/forEach.es.js +1 -1
  63. package/dist/forEach.es.min.js +1 -1
  64. package/dist/forEach.js +1 -1
  65. package/dist/forEach.min.js +1 -1
  66. package/dist/forEach.mjs +1 -1
  67. package/dist/get.es.js +1 -1
  68. package/dist/get.es.min.js +1 -1
  69. package/dist/get.js +1 -1
  70. package/dist/get.min.js +1 -1
  71. package/dist/get.mjs +1 -1
  72. package/dist/gt.es.js +1 -1
  73. package/dist/gt.es.min.js +1 -1
  74. package/dist/gt.js +1 -1
  75. package/dist/gt.min.js +1 -1
  76. package/dist/gt.mjs +1 -1
  77. package/dist/gte.es.js +1 -1
  78. package/dist/gte.es.min.js +1 -1
  79. package/dist/gte.js +1 -1
  80. package/dist/gte.min.js +1 -1
  81. package/dist/gte.mjs +1 -1
  82. package/dist/lt.es.js +1 -1
  83. package/dist/lt.es.min.js +1 -1
  84. package/dist/lt.js +1 -1
  85. package/dist/lt.min.js +1 -1
  86. package/dist/lt.mjs +1 -1
  87. package/dist/lte.es.js +1 -1
  88. package/dist/lte.es.min.js +1 -1
  89. package/dist/lte.js +1 -1
  90. package/dist/lte.min.js +1 -1
  91. package/dist/lte.mjs +1 -1
  92. package/dist/map.es.js +1 -1
  93. package/dist/map.es.min.js +1 -1
  94. package/dist/map.js +1 -1
  95. package/dist/map.min.js +1 -1
  96. package/dist/map.mjs +1 -1
  97. package/dist/not.es.js +1 -1
  98. package/dist/not.es.min.js +1 -1
  99. package/dist/not.js +1 -1
  100. package/dist/not.min.js +1 -1
  101. package/dist/not.mjs +1 -1
  102. package/dist/omit.es.js +1 -1
  103. package/dist/omit.es.min.js +1 -1
  104. package/dist/omit.js +1 -1
  105. package/dist/omit.min.js +1 -1
  106. package/dist/omit.mjs +1 -1
  107. package/dist/or.es.js +1 -1
  108. package/dist/or.es.min.js +1 -1
  109. package/dist/or.js +1 -1
  110. package/dist/or.min.js +1 -1
  111. package/dist/or.mjs +1 -1
  112. package/dist/pick.es.js +1 -1
  113. package/dist/pick.es.min.js +1 -1
  114. package/dist/pick.js +1 -1
  115. package/dist/pick.min.js +1 -1
  116. package/dist/pick.mjs +1 -1
  117. package/dist/pipe.es.js +1 -1
  118. package/dist/pipe.es.min.js +1 -1
  119. package/dist/pipe.js +1 -1
  120. package/dist/pipe.min.js +1 -1
  121. package/dist/pipe.mjs +1 -1
  122. package/dist/reduce.es.js +1 -1
  123. package/dist/reduce.es.min.js +1 -1
  124. package/dist/reduce.js +1 -1
  125. package/dist/reduce.min.js +1 -1
  126. package/dist/reduce.mjs +1 -1
  127. package/dist/rubico.es.js +1 -1
  128. package/dist/rubico.es.min.js +1 -1
  129. package/dist/rubico.global.js +1 -1
  130. package/dist/rubico.global.min.js +1 -1
  131. package/dist/rubico.js +1 -1
  132. package/dist/rubico.min.js +1 -1
  133. package/dist/rubico.mjs +1 -1
  134. package/dist/set.es.js +1 -1
  135. package/dist/set.es.min.js +1 -1
  136. package/dist/set.js +1 -1
  137. package/dist/set.min.js +1 -1
  138. package/dist/set.mjs +1 -1
  139. package/dist/some.es.js +1 -1
  140. package/dist/some.es.min.js +1 -1
  141. package/dist/some.js +1 -1
  142. package/dist/some.min.js +1 -1
  143. package/dist/some.mjs +1 -1
  144. package/dist/switchCase.es.js +1 -1
  145. package/dist/switchCase.es.min.js +1 -1
  146. package/dist/switchCase.js +1 -1
  147. package/dist/switchCase.min.js +1 -1
  148. package/dist/switchCase.mjs +1 -1
  149. package/dist/tap.es.js +1 -1
  150. package/dist/tap.es.min.js +1 -1
  151. package/dist/tap.js +1 -1
  152. package/dist/tap.min.js +1 -1
  153. package/dist/tap.mjs +1 -1
  154. package/dist/thunkify.es.js +1 -1
  155. package/dist/thunkify.es.min.js +1 -1
  156. package/dist/thunkify.js +1 -1
  157. package/dist/thunkify.min.js +1 -1
  158. package/dist/thunkify.mjs +1 -1
  159. package/dist/transform.es.js +1 -1
  160. package/dist/transform.es.min.js +1 -1
  161. package/dist/transform.js +1 -1
  162. package/dist/transform.min.js +1 -1
  163. package/dist/transform.mjs +1 -1
  164. package/dist/tryCatch.es.js +1 -1
  165. package/dist/tryCatch.es.min.js +1 -1
  166. package/dist/tryCatch.js +1 -1
  167. package/dist/tryCatch.min.js +1 -1
  168. package/dist/tryCatch.mjs +1 -1
  169. package/dist/x/append.es.js +1 -1
  170. package/dist/x/append.es.min.js +1 -1
  171. package/dist/x/append.js +1 -1
  172. package/dist/x/append.min.js +1 -1
  173. package/dist/x/append.mjs +1 -1
  174. package/dist/x/callProp.es.js +1 -1
  175. package/dist/x/callProp.es.min.js +1 -1
  176. package/dist/x/callProp.js +1 -1
  177. package/dist/x/callProp.min.js +1 -1
  178. package/dist/x/callProp.mjs +1 -1
  179. package/dist/x/defaultsDeep.es.js +1 -1
  180. package/dist/x/defaultsDeep.es.min.js +1 -1
  181. package/dist/x/defaultsDeep.js +1 -1
  182. package/dist/x/defaultsDeep.min.js +1 -1
  183. package/dist/x/defaultsDeep.mjs +1 -1
  184. package/dist/x/differenceWith.es.js +1 -1
  185. package/dist/x/differenceWith.es.min.js +1 -1
  186. package/dist/x/differenceWith.js +1 -1
  187. package/dist/x/differenceWith.min.js +1 -1
  188. package/dist/x/differenceWith.mjs +1 -1
  189. package/dist/x/filterOut.es.js +1 -1
  190. package/dist/x/filterOut.es.min.js +1 -1
  191. package/dist/x/filterOut.js +1 -1
  192. package/dist/x/filterOut.min.js +1 -1
  193. package/dist/x/filterOut.mjs +1 -1
  194. package/dist/x/find.es.js +1 -1
  195. package/dist/x/find.es.min.js +1 -1
  196. package/dist/x/find.js +1 -1
  197. package/dist/x/find.min.js +1 -1
  198. package/dist/x/find.mjs +1 -1
  199. package/dist/x/findIndex.es.js +1 -1
  200. package/dist/x/findIndex.es.min.js +1 -1
  201. package/dist/x/findIndex.js +1 -1
  202. package/dist/x/findIndex.min.js +1 -1
  203. package/dist/x/findIndex.mjs +1 -1
  204. package/dist/x/first.es.js +1 -1
  205. package/dist/x/first.es.min.js +1 -1
  206. package/dist/x/first.js +1 -1
  207. package/dist/x/first.min.js +1 -1
  208. package/dist/x/first.mjs +1 -1
  209. package/dist/x/flatten.es.js +1 -1
  210. package/dist/x/flatten.es.min.js +1 -1
  211. package/dist/x/flatten.js +1 -1
  212. package/dist/x/flatten.min.js +1 -1
  213. package/dist/x/flatten.mjs +1 -1
  214. package/dist/x/groupBy.es.js +1 -1
  215. package/dist/x/groupBy.es.min.js +1 -1
  216. package/dist/x/groupBy.js +1 -1
  217. package/dist/x/groupBy.min.js +1 -1
  218. package/dist/x/groupBy.mjs +1 -1
  219. package/dist/x/has.es.js +1 -1
  220. package/dist/x/has.es.min.js +1 -1
  221. package/dist/x/has.js +1 -1
  222. package/dist/x/has.min.js +1 -1
  223. package/dist/x/has.mjs +1 -1
  224. package/dist/x/identity.es.js +1 -1
  225. package/dist/x/identity.es.min.js +1 -1
  226. package/dist/x/identity.js +1 -1
  227. package/dist/x/identity.min.js +1 -1
  228. package/dist/x/identity.mjs +1 -1
  229. package/dist/x/includes.es.js +1 -1
  230. package/dist/x/includes.es.min.js +1 -1
  231. package/dist/x/includes.js +1 -1
  232. package/dist/x/includes.min.js +1 -1
  233. package/dist/x/includes.mjs +1 -1
  234. package/dist/x/isDeepEqual.es.js +1 -1
  235. package/dist/x/isDeepEqual.es.min.js +1 -1
  236. package/dist/x/isDeepEqual.js +1 -1
  237. package/dist/x/isDeepEqual.min.js +1 -1
  238. package/dist/x/isDeepEqual.mjs +1 -1
  239. package/dist/x/isEmpty.es.js +1 -1
  240. package/dist/x/isEmpty.es.min.js +1 -1
  241. package/dist/x/isEmpty.js +1 -1
  242. package/dist/x/isEmpty.min.js +1 -1
  243. package/dist/x/isEmpty.mjs +1 -1
  244. package/dist/x/isEqual.es.js +1 -1
  245. package/dist/x/isEqual.es.min.js +1 -1
  246. package/dist/x/isEqual.js +1 -1
  247. package/dist/x/isEqual.min.js +1 -1
  248. package/dist/x/isEqual.mjs +1 -1
  249. package/dist/x/isFunction.es.js +1 -1
  250. package/dist/x/isFunction.es.min.js +1 -1
  251. package/dist/x/isFunction.js +1 -1
  252. package/dist/x/isFunction.min.js +1 -1
  253. package/dist/x/isFunction.mjs +1 -1
  254. package/dist/x/isIn.es.js +1 -1
  255. package/dist/x/isIn.es.min.js +1 -1
  256. package/dist/x/isIn.js +1 -1
  257. package/dist/x/isIn.min.js +1 -1
  258. package/dist/x/isIn.mjs +1 -1
  259. package/dist/x/isObject.es.js +1 -1
  260. package/dist/x/isObject.es.min.js +1 -1
  261. package/dist/x/isObject.js +1 -1
  262. package/dist/x/isObject.min.js +1 -1
  263. package/dist/x/isObject.mjs +1 -1
  264. package/dist/x/isString.es.js +1 -1
  265. package/dist/x/isString.es.min.js +1 -1
  266. package/dist/x/isString.js +1 -1
  267. package/dist/x/isString.min.js +1 -1
  268. package/dist/x/isString.mjs +1 -1
  269. package/dist/x/keys.es.js +1 -1
  270. package/dist/x/keys.es.min.js +1 -1
  271. package/dist/x/keys.js +1 -1
  272. package/dist/x/keys.min.js +1 -1
  273. package/dist/x/keys.mjs +1 -1
  274. package/dist/x/last.es.js +1 -1
  275. package/dist/x/last.es.min.js +1 -1
  276. package/dist/x/last.js +1 -1
  277. package/dist/x/last.min.js +1 -1
  278. package/dist/x/last.mjs +1 -1
  279. package/dist/x/maxBy.es.js +1 -1
  280. package/dist/x/maxBy.es.min.js +1 -1
  281. package/dist/x/maxBy.js +1 -1
  282. package/dist/x/maxBy.min.js +1 -1
  283. package/dist/x/maxBy.mjs +1 -1
  284. package/dist/x/noop.es.js +1 -1
  285. package/dist/x/noop.es.min.js +1 -1
  286. package/dist/x/noop.js +1 -1
  287. package/dist/x/noop.min.js +1 -1
  288. package/dist/x/noop.mjs +1 -1
  289. package/dist/x/pluck.es.js +1 -1
  290. package/dist/x/pluck.es.min.js +1 -1
  291. package/dist/x/pluck.js +1 -1
  292. package/dist/x/pluck.min.js +1 -1
  293. package/dist/x/pluck.mjs +1 -1
  294. package/dist/x/prepend.es.js +1 -1
  295. package/dist/x/prepend.es.min.js +1 -1
  296. package/dist/x/prepend.js +1 -1
  297. package/dist/x/prepend.min.js +1 -1
  298. package/dist/x/prepend.mjs +1 -1
  299. package/dist/x/size.es.js +1 -1
  300. package/dist/x/size.es.min.js +1 -1
  301. package/dist/x/size.js +1 -1
  302. package/dist/x/size.min.js +1 -1
  303. package/dist/x/size.mjs +1 -1
  304. package/dist/x/trace.es.js +1 -1
  305. package/dist/x/trace.es.min.js +1 -1
  306. package/dist/x/trace.js +1 -1
  307. package/dist/x/trace.min.js +1 -1
  308. package/dist/x/trace.mjs +1 -1
  309. package/dist/x/unionWith.es.js +1 -1
  310. package/dist/x/unionWith.es.min.js +1 -1
  311. package/dist/x/unionWith.js +1 -1
  312. package/dist/x/unionWith.min.js +1 -1
  313. package/dist/x/unionWith.mjs +1 -1
  314. package/dist/x/uniq.es.js +1 -1
  315. package/dist/x/uniq.es.min.js +1 -1
  316. package/dist/x/uniq.js +1 -1
  317. package/dist/x/uniq.min.js +1 -1
  318. package/dist/x/uniq.mjs +1 -1
  319. package/dist/x/unless.es.js +1 -1
  320. package/dist/x/unless.es.min.js +1 -1
  321. package/dist/x/unless.js +1 -1
  322. package/dist/x/unless.min.js +1 -1
  323. package/dist/x/unless.mjs +1 -1
  324. package/dist/x/values.es.js +1 -1
  325. package/dist/x/values.es.min.js +1 -1
  326. package/dist/x/values.js +1 -1
  327. package/dist/x/values.min.js +1 -1
  328. package/dist/x/values.mjs +1 -1
  329. package/dist/x/when.es.js +1 -1
  330. package/dist/x/when.es.min.js +1 -1
  331. package/dist/x/when.js +1 -1
  332. package/dist/x/when.min.js +1 -1
  333. package/dist/x/when.mjs +1 -1
  334. package/eq.js +9 -0
  335. package/es.js +1 -1
  336. package/every.js +12 -3
  337. package/filter.js +3 -7
  338. package/flatMap.js +8 -7
  339. package/get.js +16 -0
  340. package/gt.js +9 -0
  341. package/gte.js +9 -0
  342. package/index.js +1 -1
  343. package/lt.js +9 -0
  344. package/lte.js +9 -0
  345. package/map.js +7 -14
  346. package/package.json +1 -1
  347. package/reduce.js +1 -0
  348. package/set.js +13 -4
  349. package/some.js +15 -4
  350. package/switchCase.js +21 -2
  351. package/transform.js +8 -8
package/dist/x/trace.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/uniq.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/uniq.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/uniq.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/unless.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/unless.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/values.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/values.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/when.es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/when.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/dist/x/when.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/eq.js CHANGED
@@ -39,6 +39,15 @@ const equals = require('./_internal/equals')
39
39
  * }
40
40
  * ```
41
41
  *
42
+ * `eq` supports a tacit API for composability.
43
+ *
44
+ * ```javascript [playground]
45
+ * pipe({ name: 'George' }, [
46
+ * eq('George', get('name')),
47
+ * console.log, // true
48
+ * ])
49
+ * ```
50
+ *
42
51
  * @execution concurrent
43
52
  */
44
53
 
package/es.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/every.js CHANGED
@@ -55,11 +55,11 @@ const _every = function (collection, predicate) {
55
55
  * const isOdd = number => number % 2 == 1
56
56
  *
57
57
  * console.log(
58
- * every(isOdd)([1, 2, 3, 4, 5]),
58
+ * every([1, 2, 3, 4, 5], isOdd),
59
59
  * ) // false
60
60
  *
61
61
  * console.log(
62
- * every(isOdd)([1, 3, 5]),
62
+ * every([1, 3, 5], isOdd),
63
63
  * ) // true
64
64
  * ```
65
65
  *
@@ -70,7 +70,16 @@ const _every = function (collection, predicate) {
70
70
  * yield 1; yield 2; yield 3; yield 4; yield 5
71
71
  * }
72
72
  *
73
- * every(async number => number < 6)(asyncNumbers()).then(console.log) // true
73
+ * every(asyncNumbers(), async number => number < 6).then(console.log) // true
74
+ * ```
75
+ *
76
+ * `every` supports a tacit API for composability.
77
+ *
78
+ * ```javascript [playground]
79
+ * pipe([1, 2, 3], [
80
+ * every(number => number < 5),
81
+ * console.log, // true
82
+ * ])
74
83
  * ```
75
84
  *
76
85
  * @execution concurrent
package/filter.js CHANGED
@@ -90,19 +90,15 @@ const _filter = function (value, predicate) {
90
90
  * @synopsis
91
91
  * ```coffeescript [specscript]
92
92
  * type Filterable = Array|Object|Set|Map|Iterator|AsyncIterator
93
+ *
93
94
  * type Predicate = (
94
95
  * value any,
95
96
  * indexOrKey? number|string,
96
97
  * collection? Filterable,
97
98
  * )=>boolean
98
99
  *
99
- * filter(
100
- * collection Filterable,
101
- * predicate Predicate
102
- * ) -> result Promise|Filterable
103
- *
104
- * filter(predicate Predicate)(collection Filterable)
105
- * -> result Promise|Filterable
100
+ * filter(collection Filterable, predicate Predicate) -> result Promise|Filterable
101
+ * filter(predicate Predicate)(collection Filterable) -> result Promise|Filterable
106
102
  * ```
107
103
  *
108
104
  * @description
package/flatMap.js CHANGED
@@ -67,13 +67,14 @@ const _flatMap = function (value, flatMapper) {
67
67
  * type FlatMappable = Array|String|Set|Iterator|AsyncIterator
68
68
  * type Iterable = Iterable|AsyncIterable|Object<value any>
69
69
  *
70
- * flatMap(
71
- * collection FlatMappable,
72
- * flatMapper (item any)=>Promise|Iterable,
73
- * ) -> result Promise|FlatMappable
74
- *
75
- * flatMap(flatMapper (item any)=>Promise|Iterable)(collection FlatMappable)
76
- * -> result Promise|FlatMappable
70
+ * type FlatMapper = (
71
+ * item any,
72
+ * indexOrKey string,
73
+ * collection FlatMappable
74
+ * )=>Promise|FlatMappable
75
+ *
76
+ * flatMap(collection FlatMappable, flatMapper FlatMapper) -> result Promise|FlatMappable
77
+ * flatMap(flatMapper FlatMapper)(collection FlatMappable) -> result Promise|FlatMappable
77
78
  * ```
78
79
  *
79
80
  * @description
package/get.js CHANGED
@@ -19,6 +19,12 @@ const _get = function (object, path, defaultValue) {
19
19
  * @synopsis
20
20
  * ```coffeescript [specscript]
21
21
  * get(
22
+ * object Promise|Object,
23
+ * path string|number|Array<string|number>,
24
+ * defaultValue? function|any
25
+ * ) -> result Promise|Object
26
+ *
27
+ * get(
22
28
  * path string|number|Array<string|number>,
23
29
  * defaultValue? function|any
24
30
  * )(object Object) -> result Promise|Object
@@ -28,6 +34,16 @@ const _get = function (object, path, defaultValue) {
28
34
  * Accesses a property of an object given a path denoted by a string, number, or an array of string or numbers.
29
35
  *
30
36
  * ```javascript [playground]
37
+ * const obj = { hello: 'world' }
38
+ *
39
+ * console.log(get(obj, 'hello')) // world
40
+ * ```
41
+ *
42
+ * `get` supports a tacit API for composability
43
+ *
44
+ * ```javascript [playground]
45
+ * const obj = { hello: 'world' }
46
+ *
31
47
  * const getHello = get('hello')
32
48
  *
33
49
  * console.log(getHello({ hello: 'world' })) // world
package/gt.js CHANGED
@@ -38,6 +38,15 @@ const greaterThan = require('./_internal/greaterThan')
38
38
  *
39
39
  * console.log(isOfLegalAge(juvenile)) // false
40
40
  * ```
41
+ *
42
+ * `gt` supports a tacit API for composability.
43
+ *
44
+ * ```javascript [playground]
45
+ * pipe({ value: 1 }, [
46
+ * gt(5, get('value')),
47
+ * console.log, // true
48
+ * ])
49
+ * ```
41
50
  */
42
51
  const gt = ComparisonOperator(greaterThan)
43
52
 
package/gte.js CHANGED
@@ -40,6 +40,15 @@ const greaterThanOrEqual = require('./_internal/greaterThanOrEqual')
40
40
  * console.log(isAtLeast100(100)) // true
41
41
  * console.log(isAtLeast100(101)) // true
42
42
  * ```
43
+ *
44
+ * `gte` supports a tacit API for composability.
45
+ *
46
+ * ```javascript [playground]
47
+ * pipe({ value: 1 }, [
48
+ * gte(1, get('value')),
49
+ * console.log, // true
50
+ * ])
51
+ * ```
43
52
  */
44
53
  const gte = ComparisonOperator(greaterThanOrEqual)
45
54
 
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * rubico v2.2.1
2
+ * rubico v2.2.2
3
3
  * https://github.com/a-synchronous/rubico
4
4
  * (c) 2019-2023 Richard Tong
5
5
  * rubico may be freely distributed under the MIT license.
package/lt.js CHANGED
@@ -38,6 +38,15 @@ const lessThan = require('./_internal/lessThan')
38
38
  * console.log(isLessThan3(3)) // false
39
39
  * console.log(isLessThan3(5)) // false
40
40
  * ```
41
+ *
42
+ * `lt` supports a tacit API for composability.
43
+ *
44
+ * ```javascript [playground]
45
+ * pipe({ value: 1 }, [
46
+ * lt(0, get('value')),
47
+ * console.log, // true
48
+ * ])
49
+ * ```
41
50
  */
42
51
  const lt = ComparisonOperator(lessThan)
43
52
 
package/lte.js CHANGED
@@ -38,6 +38,15 @@ const lessThanOrEqual = require('./_internal/lessThanOrEqual')
38
38
  * console.log(isLessThanOrEqualTo3(3), true)
39
39
  * console.log(isLessThanOrEqualTo3(5), false)
40
40
  * ```
41
+ *
42
+ * `lte` supports a tacit API for composability.
43
+ *
44
+ * ```javascript [playground]
45
+ * pipe({ value: 1 }, [
46
+ * lte(1, get('value')),
47
+ * console.log, // true
48
+ * ])
49
+ * ```
41
50
  */
42
51
  const lte = ComparisonOperator(lessThanOrEqual)
43
52
 
package/map.js CHANGED
@@ -100,36 +100,29 @@ const _map = function (value, mapper) {
100
100
  * @synopsis
101
101
  * ```coffeescript [specscript]
102
102
  * arrayMapperFunc (value any, index number, array Array)=>Promise|any
103
+ * objectMapperFunc (value any, key string, object Object)=>Promise|any
104
+ * setMapperFunc (value any, value, set Set)=>Promise|any
105
+ * mapMapperFunc (value any, key any, originalMap Map)=>Promise|any
106
+ * iteratorMapperFunc (value any)=>any
107
+ * asyncIteratorMapperFunc (value any)=>Promise|any
103
108
  *
104
109
  * map(arrayMapperFunc)(value Array) -> result Promise|Array
105
110
  * map(value Array, arrayMapperFunc) -> result Promise|Array
106
111
  *
107
- * objectMapperFunc (value any, key string, object Object)=>Promise|any
108
- *
109
112
  * map(objectMapperFunc)(value Object) -> result Promise|Array
110
113
  * map(value Object, objectMapperFunc) -> result Promise|Array
111
114
  *
112
- * setMapperFunc (value any, value, set Set)=>Promise|any
113
- *
114
115
  * map(setMapperFunc)(value Set) -> result Promise|Set
115
116
  * map(value Set, setMapperFunc) -> result Promise|Set
116
117
  *
117
- * mapMapperFunc (value any, key any, originalMap Map)=>Promise|any
118
- *
119
118
  * map(mapMapperFunc)(value Map) -> result Promise|Map
120
119
  * map(value Map, mapMapperFunc) -> result Promise|Map
121
120
  *
122
- * iteratorMapperFunc (value any)=>any
123
- *
124
121
  * map(iteratorMapperFunc)(value Iterator|Generator) -> result Iterator
125
122
  * map(value Iterator|Generator, iteratorMapperFunc) -> result Iterator
126
123
  *
127
- * asyncIteratorMapperFunc (value any)=>Promise|any
128
- *
129
- * map(asyncIteratorMapperFunc)(value AsyncIterator|AsyncGenerator)
130
- * -> result AsyncIterator
131
- * map(value AsyncIterator|AsyncGenerator, asyncIteratorMapperFunc)
132
- * -> result AsyncIterator
124
+ * map(asyncIteratorMapperFunc)(value AsyncIterator) -> result AsyncIterator
125
+ * map(value AsyncIterator, asyncIteratorMapperFunc) -> result AsyncIterator
133
126
  * ```
134
127
  *
135
128
  * @description
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rubico",
3
- "version": "2.2.1",
3
+ "version": "2.2.2",
4
4
  "description": "[a]synchronous functional programming",
5
5
  "author": "Richard Tong",
6
6
  "license": "MIT",
package/reduce.js CHANGED
@@ -22,6 +22,7 @@ const _reduce = function (collection, reducer, initialValue) {
22
22
  * @synopsis
23
23
  * ```coffeescript [specscript]
24
24
  * type Foldable = Array|Object|Map|Iterator|AsyncIterator
25
+ *
25
26
  * type Reducer = (
26
27
  * accumulator any,
27
28
  * value any,
package/set.js CHANGED
@@ -39,7 +39,7 @@ const _set = function (obj, path, value) {
39
39
  * @synopsis
40
40
  * ```coffeescript [specscript]
41
41
  * set(
42
- * object Object,
42
+ * object Promise|Object,
43
43
  * path string|Array<string|number>,
44
44
  * value function|any,
45
45
  * ) -> result Promise|Object
@@ -60,15 +60,15 @@ const _set = function (obj, path, value) {
60
60
  * * an array of keys or indices - `['a', 0, 'value']`
61
61
  *
62
62
  * ```javascript [playground]
63
- * console.log(set('a', 1)({ b: 2 })) // { a: 1, b: 2 }
63
+ * console.log(set({ b: 2 }, 'a', 1)) // { a: 1, b: 2 }
64
64
  *
65
65
  * const nestedAC2 = { a: { c: 2 } }
66
66
  *
67
- * console.log(set('a.b', 1)(nestedAC2)) // { a : { b: 1, c: 2 }}
67
+ * console.log(set(nestedAC2, 'a.b', 1)) // { a : { b: 1, c: 2 }}
68
68
  *
69
69
  * const nestedA0BC3 = { a: [{ b: { c: 3 } }] }
70
70
  *
71
- * console.log(set('a[0].b.c', 4)(nestedA0BC3)) // { a: [{ b: { c: 4 } }] }
71
+ * console.log(set(nestedA0BC3, 'a[0].b.c', 4)) // { a: [{ b: { c: 4 } }] }
72
72
  * ```
73
73
  *
74
74
  * The property value may be a function, in which case it is treated as a resolver and provided the argument object to resolve the value to set.
@@ -81,6 +81,15 @@ const _set = function (obj, path, value) {
81
81
  * console.log(myNewObj) // { a: 1, b: 3 }
82
82
  * ```
83
83
  *
84
+ * `set` supports a tacit API for composability.
85
+ *
86
+ * ```javascript [playground]
87
+ * pipe({ a: 1 }, [
88
+ * set('b', 2),
89
+ * console.log, // { a: 1, b: 2 }
90
+ * ])
91
+ * ```
92
+ *
84
93
  * @since 1.7.0
85
94
  */
86
95
 
package/some.js CHANGED
@@ -75,10 +75,21 @@ const _some = function (collection, predicate) {
75
75
  * yield 1; yield 2; yield 3; yield 4; yield 5
76
76
  * }
77
77
  *
78
- * some(pipe([
79
- * fetchTodo,
80
- * todo => todo.title.startsWith('fugiat'),
81
- * ]))(todoIDsGenerator()).then(console.log) // true
78
+ * const promise = some(todoIDsGenerator(), async id => {
79
+ * const todo = await fetchTodo(id)
80
+ * return todo.title.startsWith('fugiat')
81
+ * })
82
+ *
83
+ * promise.then(console.log) // true
84
+ * ```
85
+ *
86
+ * `some` supports a tacit API for composability.
87
+ *
88
+ * ```javascript [playground]
89
+ * pipe([1, 2, 3], [
90
+ * some(number => number < 5),
91
+ * console.log, // true
92
+ * ])
82
93
  * ```
83
94
  *
84
95
  * @execution concurrent
package/switchCase.js CHANGED
@@ -15,12 +15,31 @@ const curryArgs3 = require('./_internal/curryArgs3')
15
15
  * switchCase(conditionalValues Array<boolean|any>) -> Promise|any
16
16
  *
17
17
  * switchCase(
18
+ * ...args,
19
+ * conditionalFuncsOrValues Array<function|boolean|any>
20
+ * ) -> Promise|any
21
+ *
22
+ * switchCase(
18
23
  * conditionalFuncsOrValues Array<function|boolean|any>
19
24
  * )(...args) -> Promise|any
20
25
  * ```
21
26
  *
22
27
  * @description
23
- * Functional equivalent to the [Conditional (ternary) operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator). Accepts an array of conditional functions that specifies cases as pairings of `predicate` and `resolver` functions with the exception of the last, default resolver. All functions are provided with the same arguments and executed in series. The result of a `switchCase` execution is either the result of the execution the last default resolver, or the result of the execution of the first resolver where the associated predicate tested truthy.
28
+ * Functional equivalent to the [Conditional (ternary) operator](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Conditional_Operator). Accepts an array of conditional functions that specifies cases as pairings of `predicate` and `resolver` functions with the exception of the last, default resolver. All functions are provided with the same arguments and executed in series. The result of a `switchCase` operation is either the result of the execution the last default resolver, or the result of the execution of the first resolver where the associated predicate tested true.
29
+ *
30
+ * ```javascript [playground]
31
+ * const fruitIsYellow = fruit => fruit.color == 'yellow'
32
+ *
33
+ * console.log(
34
+ * switchCase({ name: 'plantain', color: 'yellow' }, [
35
+ * fruitIsYellow,
36
+ * fruit => fruit.name + ' is possibly a banana',
37
+ * fruit => fruit.name + ' is probably not a banana',
38
+ * ])
39
+ * ) // plantain is possibly a banana
40
+ * ```
41
+ *
42
+ * For composability `switchCase` supports a tacit API.
24
43
  *
25
44
  * ```javascript [playground]
26
45
  * const fruitIsYellow = fruit => fruit.color == 'yellow'
@@ -38,7 +57,7 @@ const curryArgs3 = require('./_internal/curryArgs3')
38
57
  * // apple is probably not a banana
39
58
  * ```
40
59
  *
41
- * Any function can be replaced with a nonfunction (object or primitive) value so that the value is treated as an already resolved value.
60
+ * Any function can be replaced with a nonfunction (object or primitive) value to be used directly in the operation.
42
61
  *
43
62
  * ```javascript [playground]
44
63
  * switchCase([
package/transform.js CHANGED
@@ -26,8 +26,6 @@ const _transform = function (collection, transducer, initialValue) {
26
26
  * type Transformable = Array|String|Set|TypedArray|{ concat: function }|{ write: function }|Object
27
27
  * type Foldable = Iterable|AsyncIterable|Object<value any>
28
28
  *
29
- * initialValue Transformable|((foldable Foldable)=>Promise|Transformable)
30
- *
31
29
  * transform(
32
30
  * foldable Foldable,
33
31
  * transducer Transducer,
@@ -58,9 +56,9 @@ const _transform = function (collection, transducer, initialValue) {
58
56
  *
59
57
  * const isOdd = number => number % 2 == 1
60
58
  *
61
- * const squaredOdds = pipe([
62
- * filter(isOdd),
63
- * map(square),
59
+ * const squaredOdds = compose([
60
+ * Transducer.filter(isOdd),
61
+ * Transducer.map(square),
64
62
  * ])
65
63
  *
66
64
  * // transform arrays into arrays
@@ -96,7 +94,7 @@ const _transform = function (collection, transducer, initialValue) {
96
94
  * },
97
95
  * }
98
96
  *
99
- * transform(map(square), Stdout)([1, 2, 3, 4, 5])
97
+ * transform(Transducer.map(square), Stdout)([1, 2, 3, 4, 5])
100
98
  * // 1
101
99
  * // 4
102
100
  * // 9
@@ -124,8 +122,10 @@ const _transform = function (collection, transducer, initialValue) {
124
122
  * }
125
123
  *
126
124
  * transform(
127
- * map(pipe([square, toString])), process.stdout,
128
- * )(streamRandomInts()) // 9216576529289484980147613249169774446246768649...
125
+ * streamRandomInts(),
126
+ * Transducer.map(pipe([square, toString])),
127
+ * process.stdout,
128
+ * ) // 9216576529289484980147613249169774446246768649...
129
129
  * ```
130
130
  *
131
131
  * @execution series