rubico 2.8.0 → 2.8.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.
- package/LICENSE +5 -17
- package/README.md +1 -1
- package/_internal/curryArity.js +21 -1
- package/_internal/funcApply2.js +18 -0
- package/curry.js +38 -11
- package/dist/Transducer.es.js +5 -4
- package/dist/Transducer.es.min.js +5 -4
- package/dist/Transducer.js +5 -4
- package/dist/Transducer.min.js +5 -4
- package/dist/Transducer.mjs +5 -4
- package/dist/__.es.js +5 -4
- package/dist/__.es.min.js +5 -4
- package/dist/__.js +5 -4
- package/dist/__.min.js +5 -4
- package/dist/__.mjs +5 -4
- package/dist/all.es.js +5 -4
- package/dist/all.es.min.js +5 -4
- package/dist/all.js +5 -4
- package/dist/all.min.js +5 -4
- package/dist/all.mjs +5 -4
- package/dist/always.es.js +5 -4
- package/dist/always.es.min.js +5 -4
- package/dist/always.js +5 -4
- package/dist/always.min.js +5 -4
- package/dist/always.mjs +5 -4
- package/dist/and.es.js +5 -4
- package/dist/and.es.min.js +5 -4
- package/dist/and.js +5 -4
- package/dist/and.min.js +5 -4
- package/dist/and.mjs +5 -4
- package/dist/assign.es.js +5 -4
- package/dist/assign.es.min.js +5 -4
- package/dist/assign.js +5 -4
- package/dist/assign.min.js +5 -4
- package/dist/assign.mjs +5 -4
- package/dist/compose.es.js +5 -4
- package/dist/compose.es.min.js +5 -4
- package/dist/compose.js +5 -4
- package/dist/compose.min.js +5 -4
- package/dist/compose.mjs +5 -4
- package/dist/curry.es.js +136 -6
- package/dist/curry.es.min.js +6 -5
- package/dist/curry.js +136 -6
- package/dist/curry.min.js +6 -5
- package/dist/curry.mjs +136 -6
- package/dist/eq.es.js +5 -4
- package/dist/eq.es.min.js +5 -4
- package/dist/eq.js +5 -4
- package/dist/eq.min.js +5 -4
- package/dist/eq.mjs +5 -4
- package/dist/every.es.js +5 -4
- package/dist/every.es.min.js +5 -4
- package/dist/every.js +5 -4
- package/dist/every.min.js +5 -4
- package/dist/every.mjs +5 -4
- package/dist/filter.es.js +5 -4
- package/dist/filter.es.min.js +5 -4
- package/dist/filter.js +5 -4
- package/dist/filter.min.js +5 -4
- package/dist/filter.mjs +5 -4
- package/dist/flatMap.es.js +5 -4
- package/dist/flatMap.es.min.js +5 -4
- package/dist/flatMap.js +5 -4
- package/dist/flatMap.min.js +5 -4
- package/dist/flatMap.mjs +5 -4
- package/dist/forEach.es.js +5 -4
- package/dist/forEach.es.min.js +5 -4
- package/dist/forEach.js +5 -4
- package/dist/forEach.min.js +5 -4
- package/dist/forEach.mjs +5 -4
- package/dist/get.es.js +5 -4
- package/dist/get.es.min.js +5 -4
- package/dist/get.js +5 -4
- package/dist/get.min.js +5 -4
- package/dist/get.mjs +5 -4
- package/dist/gt.es.js +5 -4
- package/dist/gt.es.min.js +5 -4
- package/dist/gt.js +5 -4
- package/dist/gt.min.js +5 -4
- package/dist/gt.mjs +5 -4
- package/dist/gte.es.js +5 -4
- package/dist/gte.es.min.js +5 -4
- package/dist/gte.js +5 -4
- package/dist/gte.min.js +5 -4
- package/dist/gte.mjs +5 -4
- package/dist/lt.es.js +5 -4
- package/dist/lt.es.min.js +5 -4
- package/dist/lt.js +5 -4
- package/dist/lt.min.js +5 -4
- package/dist/lt.mjs +5 -4
- package/dist/lte.es.js +5 -4
- package/dist/lte.es.min.js +5 -4
- package/dist/lte.js +5 -4
- package/dist/lte.min.js +5 -4
- package/dist/lte.mjs +5 -4
- package/dist/map.es.js +45 -5
- package/dist/map.es.min.js +6 -5
- package/dist/map.js +45 -5
- package/dist/map.min.js +6 -5
- package/dist/map.mjs +45 -5
- package/dist/not.es.js +5 -4
- package/dist/not.es.min.js +5 -4
- package/dist/not.js +5 -4
- package/dist/not.min.js +5 -4
- package/dist/not.mjs +5 -4
- package/dist/omit.es.js +5 -4
- package/dist/omit.es.min.js +5 -4
- package/dist/omit.js +5 -4
- package/dist/omit.min.js +5 -4
- package/dist/omit.mjs +5 -4
- package/dist/or.es.js +5 -4
- package/dist/or.es.min.js +5 -4
- package/dist/or.js +5 -4
- package/dist/or.min.js +5 -4
- package/dist/or.mjs +5 -4
- package/dist/pick.es.js +5 -4
- package/dist/pick.es.min.js +5 -4
- package/dist/pick.js +5 -4
- package/dist/pick.min.js +5 -4
- package/dist/pick.mjs +5 -4
- package/dist/pipe.es.js +5 -4
- package/dist/pipe.es.min.js +5 -4
- package/dist/pipe.js +5 -4
- package/dist/pipe.min.js +5 -4
- package/dist/pipe.mjs +5 -4
- package/dist/reduce.es.js +5 -4
- package/dist/reduce.es.min.js +5 -4
- package/dist/reduce.js +5 -4
- package/dist/reduce.min.js +5 -4
- package/dist/reduce.mjs +5 -4
- package/dist/rubico.es.js +51 -9
- package/dist/rubico.es.min.js +6 -5
- package/dist/rubico.global.js +51 -9
- package/dist/rubico.global.min.js +6 -5
- package/dist/rubico.js +51 -9
- package/dist/rubico.min.js +6 -5
- package/dist/rubico.mjs +51 -9
- package/dist/set.es.js +5 -4
- package/dist/set.es.min.js +5 -4
- package/dist/set.js +5 -4
- package/dist/set.min.js +5 -4
- package/dist/set.mjs +5 -4
- package/dist/some.es.js +5 -4
- package/dist/some.es.min.js +5 -4
- package/dist/some.js +5 -4
- package/dist/some.min.js +5 -4
- package/dist/some.mjs +5 -4
- package/dist/switchCase.es.js +5 -4
- package/dist/switchCase.es.min.js +5 -4
- package/dist/switchCase.js +5 -4
- package/dist/switchCase.min.js +5 -4
- package/dist/switchCase.mjs +5 -4
- package/dist/tap.es.js +5 -4
- package/dist/tap.es.min.js +5 -4
- package/dist/tap.js +5 -4
- package/dist/tap.min.js +5 -4
- package/dist/tap.mjs +5 -4
- package/dist/thunkify.es.js +45 -20
- package/dist/thunkify.es.min.js +6 -5
- package/dist/thunkify.js +45 -20
- package/dist/thunkify.min.js +6 -5
- package/dist/thunkify.mjs +45 -20
- package/dist/transform.es.js +5 -4
- package/dist/transform.es.min.js +5 -4
- package/dist/transform.js +5 -4
- package/dist/transform.min.js +5 -4
- package/dist/transform.mjs +5 -4
- package/dist/tryCatch.es.js +5 -4
- package/dist/tryCatch.es.min.js +5 -4
- package/dist/tryCatch.js +5 -4
- package/dist/tryCatch.min.js +5 -4
- package/dist/tryCatch.mjs +5 -4
- package/dist/x/append.es.js +5 -4
- package/dist/x/append.es.min.js +5 -4
- package/dist/x/append.js +5 -4
- package/dist/x/append.min.js +5 -4
- package/dist/x/append.mjs +5 -4
- package/dist/x/callProp.es.js +5 -4
- package/dist/x/callProp.es.min.js +5 -4
- package/dist/x/callProp.js +5 -4
- package/dist/x/callProp.min.js +5 -4
- package/dist/x/callProp.mjs +5 -4
- package/dist/x/defaultsDeep.es.js +5 -4
- package/dist/x/defaultsDeep.es.min.js +5 -4
- package/dist/x/defaultsDeep.js +5 -4
- package/dist/x/defaultsDeep.min.js +5 -4
- package/dist/x/defaultsDeep.mjs +5 -4
- package/dist/x/differenceWith.es.js +5 -4
- package/dist/x/differenceWith.es.min.js +5 -4
- package/dist/x/differenceWith.js +5 -4
- package/dist/x/differenceWith.min.js +5 -4
- package/dist/x/differenceWith.mjs +5 -4
- package/dist/x/filterOut.es.js +5 -4
- package/dist/x/filterOut.es.min.js +5 -4
- package/dist/x/filterOut.js +5 -4
- package/dist/x/filterOut.min.js +5 -4
- package/dist/x/filterOut.mjs +5 -4
- package/dist/x/find.es.js +5 -4
- package/dist/x/find.es.min.js +5 -4
- package/dist/x/find.js +5 -4
- package/dist/x/find.min.js +5 -4
- package/dist/x/find.mjs +5 -4
- package/dist/x/findIndex.es.js +5 -4
- package/dist/x/findIndex.es.min.js +5 -4
- package/dist/x/findIndex.js +5 -4
- package/dist/x/findIndex.min.js +5 -4
- package/dist/x/findIndex.mjs +5 -4
- package/dist/x/first.es.js +5 -4
- package/dist/x/first.es.min.js +5 -4
- package/dist/x/first.js +5 -4
- package/dist/x/first.min.js +5 -4
- package/dist/x/first.mjs +5 -4
- package/dist/x/flatten.es.js +5 -4
- package/dist/x/flatten.es.min.js +5 -4
- package/dist/x/flatten.js +5 -4
- package/dist/x/flatten.min.js +5 -4
- package/dist/x/flatten.mjs +5 -4
- package/dist/x/groupBy.es.js +5 -4
- package/dist/x/groupBy.es.min.js +5 -4
- package/dist/x/groupBy.js +5 -4
- package/dist/x/groupBy.min.js +5 -4
- package/dist/x/groupBy.mjs +5 -4
- package/dist/x/has.es.js +5 -4
- package/dist/x/has.es.min.js +5 -4
- package/dist/x/has.js +5 -4
- package/dist/x/has.min.js +5 -4
- package/dist/x/has.mjs +5 -4
- package/dist/x/identity.es.js +5 -4
- package/dist/x/identity.es.min.js +5 -4
- package/dist/x/identity.js +5 -4
- package/dist/x/identity.min.js +5 -4
- package/dist/x/identity.mjs +5 -4
- package/dist/x/includes.es.js +5 -4
- package/dist/x/includes.es.min.js +5 -4
- package/dist/x/includes.js +5 -4
- package/dist/x/includes.min.js +5 -4
- package/dist/x/includes.mjs +5 -4
- package/dist/x/isDeepEqual.es.js +5 -4
- package/dist/x/isDeepEqual.es.min.js +5 -4
- package/dist/x/isDeepEqual.js +5 -4
- package/dist/x/isDeepEqual.min.js +5 -4
- package/dist/x/isDeepEqual.mjs +5 -4
- package/dist/x/isEmpty.es.js +5 -4
- package/dist/x/isEmpty.es.min.js +5 -4
- package/dist/x/isEmpty.js +5 -4
- package/dist/x/isEmpty.min.js +5 -4
- package/dist/x/isEmpty.mjs +5 -4
- package/dist/x/isEqual.es.js +5 -4
- package/dist/x/isEqual.es.min.js +5 -4
- package/dist/x/isEqual.js +5 -4
- package/dist/x/isEqual.min.js +5 -4
- package/dist/x/isEqual.mjs +5 -4
- package/dist/x/isFunction.es.js +5 -4
- package/dist/x/isFunction.es.min.js +5 -4
- package/dist/x/isFunction.js +5 -4
- package/dist/x/isFunction.min.js +5 -4
- package/dist/x/isFunction.mjs +5 -4
- package/dist/x/isIn.es.js +5 -4
- package/dist/x/isIn.es.min.js +5 -4
- package/dist/x/isIn.js +5 -4
- package/dist/x/isIn.min.js +5 -4
- package/dist/x/isIn.mjs +5 -4
- package/dist/x/isObject.es.js +5 -4
- package/dist/x/isObject.es.min.js +5 -4
- package/dist/x/isObject.js +5 -4
- package/dist/x/isObject.min.js +5 -4
- package/dist/x/isObject.mjs +5 -4
- package/dist/x/isString.es.js +5 -4
- package/dist/x/isString.es.min.js +5 -4
- package/dist/x/isString.js +5 -4
- package/dist/x/isString.min.js +5 -4
- package/dist/x/isString.mjs +5 -4
- package/dist/x/keys.es.js +5 -4
- package/dist/x/keys.es.min.js +5 -4
- package/dist/x/keys.js +5 -4
- package/dist/x/keys.min.js +5 -4
- package/dist/x/keys.mjs +5 -4
- package/dist/x/last.es.js +5 -4
- package/dist/x/last.es.min.js +5 -4
- package/dist/x/last.js +5 -4
- package/dist/x/last.min.js +5 -4
- package/dist/x/last.mjs +5 -4
- package/dist/x/maxBy.es.js +5 -4
- package/dist/x/maxBy.es.min.js +5 -4
- package/dist/x/maxBy.js +5 -4
- package/dist/x/maxBy.min.js +5 -4
- package/dist/x/maxBy.mjs +5 -4
- package/dist/x/noop.es.js +5 -4
- package/dist/x/noop.es.min.js +5 -4
- package/dist/x/noop.js +5 -4
- package/dist/x/noop.min.js +5 -4
- package/dist/x/noop.mjs +5 -4
- package/dist/x/pluck.es.js +45 -5
- package/dist/x/pluck.es.min.js +6 -5
- package/dist/x/pluck.js +45 -5
- package/dist/x/pluck.min.js +6 -5
- package/dist/x/pluck.mjs +45 -5
- package/dist/x/prepend.es.js +5 -4
- package/dist/x/prepend.es.min.js +5 -4
- package/dist/x/prepend.js +5 -4
- package/dist/x/prepend.min.js +5 -4
- package/dist/x/prepend.mjs +5 -4
- package/dist/x/size.es.js +5 -4
- package/dist/x/size.es.min.js +5 -4
- package/dist/x/size.js +5 -4
- package/dist/x/size.min.js +5 -4
- package/dist/x/size.mjs +5 -4
- package/dist/x/trace.es.js +5 -4
- package/dist/x/trace.es.min.js +5 -4
- package/dist/x/trace.js +5 -4
- package/dist/x/trace.min.js +5 -4
- package/dist/x/trace.mjs +5 -4
- package/dist/x/unionWith.es.js +5 -4
- package/dist/x/unionWith.es.min.js +5 -4
- package/dist/x/unionWith.js +5 -4
- package/dist/x/unionWith.min.js +5 -4
- package/dist/x/unionWith.mjs +5 -4
- package/dist/x/uniq.es.js +5 -4
- package/dist/x/uniq.es.min.js +5 -4
- package/dist/x/uniq.js +5 -4
- package/dist/x/uniq.min.js +5 -4
- package/dist/x/uniq.mjs +5 -4
- package/dist/x/unless.es.js +5 -4
- package/dist/x/unless.es.min.js +5 -4
- package/dist/x/unless.js +5 -4
- package/dist/x/unless.min.js +5 -4
- package/dist/x/unless.mjs +5 -4
- package/dist/x/values.es.js +5 -4
- package/dist/x/values.es.min.js +5 -4
- package/dist/x/values.js +5 -4
- package/dist/x/values.min.js +5 -4
- package/dist/x/values.mjs +5 -4
- package/dist/x/when.es.js +5 -4
- package/dist/x/when.es.min.js +5 -4
- package/dist/x/when.js +5 -4
- package/dist/x/when.min.js +5 -4
- package/dist/x/when.mjs +5 -4
- package/es.js +51 -9
- package/index.js +51 -9
- package/package.json +1 -1
- package/thunkify.js +66 -6
package/dist/x/size.es.min.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
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,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
(function (root, size) {
|
package/dist/x/size.min.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
!function(e,t){"object"==typeof module?module.exports=t:"function"==typeof define?define(()=>t):e.size=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";return e=>"string"==typeof e?e.length:null==e?0:"number"==typeof e.length?e.length:"number"==typeof e.size?e.size:e.constructor==Object?(e=>{let t=0;for(const n in e)t+=1;return t})(e):1}());
|
package/dist/x/size.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const objectKeysLength = object => {
|
package/dist/x/trace.es.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const isPromise = value => value != null && typeof value.then == 'function'
|
package/dist/x/trace.es.min.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
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,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
(function (root, trace) {
|
package/dist/x/trace.min.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
!function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define(()=>t):n.trace=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=n=>null!=n&&"function"==typeof n.then,t=n=>function(){return n},r=(n,t,r)=>n?t():r(),e=Symbol.for("placeholder"),o=function(n,t,r,o){return t==e?((n,t,r)=>function(e){return n(e,t,r)})(n,r,o):r==e?((n,t,r)=>function(e){return n(t,e,r)})(n,t,o):((n,t,r)=>function(e){return n(t,r,e)})(n,t,r)},u=Array.isArray,c=function(t){if(u(t)){const r=t.length;let e=-1;for(;++e<r;){const r=t[e];if(n(r))return!0}return!1}for(const r in t){const e=t[r];if(n(e))return!0}return!1},i=Promise.all.bind(Promise),f=function(r,e){const o=r[0],u=e(...r);return n(u)?u.then(t(o)):o},s=function(...n){const t=n.pop();return 0==n.length?(r=f,u=t,(o=e)==e?((n,t)=>function(...r){return n(r,t)})(r,u):((n,t)=>function(...r){return n(t,r)})(r,o)):c(n)?i(n).then(function(n,t,r){return t==e?((n,t)=>function(r){return n(r,t)})(n,r):((n,t)=>function(r){return n(t,r)})(n,t)}(f,e,t)):f(n,t);var r,o,u},l=function(u,c,i){const f=u(...i);if(n(f))return f.then(o(r,e,((n,t)=>function(){return n(...t)})(s(c),i),t(i[0])));if(f){const r=c(...i);if(n(r))return r.then(t(i[0]))}return i[0]};s.if=function(...n){if(2==n.length)return t=l,r=n[0],u=n[1],f=e,r==e?((n,t,r)=>function(...e){return n(e,t,r)})(t,u,f):u==e?((n,t,r)=>function(...e){return n(t,e,r)})(t,r,f):((n,t,r)=>function(...e){return n(t,r,e)})(t,r,u);var t,r,u,f;const s=n.length,h=n[s-1],a=n[s-2],p=n.slice(0,-2);return c(p)?i(p).then(o(l,a,h,e)):l(a,h,n)};const h=console.log;return function(...t){const r=t[0];return"function"==typeof r?s((e=r,o=h,function(...t){const r=e(...t);return n(r)?r.then(o):o(r)})):s(h)(...t);var e,o}}());
|
package/dist/x/trace.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const isPromise = value => value != null && typeof value.then == 'function'
|
package/dist/x/unionWith.es.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const isArray = Array.isArray
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
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;
|
package/dist/x/unionWith.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
(function (root, unionWith) {
|
package/dist/x/unionWith.min.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
!function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define(()=>t):n.unionWith=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=Array.isArray,t=n=>null!=n&&"function"==typeof n.then,e=Promise.all.bind(Promise),o=Symbol.for("placeholder"),u=function(n,t,e,u){return t==o?((n,t,e)=>function(o){return n(o,t,e)})(n,e,u):e==o?((n,t,e)=>function(o){return n(t,o,e)})(n,t,u):((n,t,e)=>function(o){return n(t,e,o)})(n,t,e)},r=(n,t,e)=>function(){return n(t,e)},f=(n,t,e,o,u)=>function(){return n(t,e,o,u)},c=(n,t)=>function(...e){return t(n(...e))},i=(n,t,e)=>n[t](e),s=(n,t,e)=>n?t():e(),l=function(n,t){return n.push(t),n},h=n=>function(){return n},p=function(n,t,e){return t==o?((n,t)=>function(e){return n(e,t)})(n,e):((n,t)=>function(e){return n(t,e)})(n,t)},a=(n,t)=>t,y=n=>n,g=async function(n,o){const u=[];for await(const e of n){const n=o(e);t(n)&&u.push(n)}return 0==u.length?n:e(u).then(h(n))},b=Symbol.iterator,d=Symbol.asyncIterator,m=function(){},w=function(n,r,f){const c=n.length,s=[];let l=-1;for(;++l<c;){const e=f(r,n[l]);if(t(e))s.push(e);else if(e)return!0}return 0!=s.length&&e(s).then(u(i,o,"some",Boolean))},j=async function(n,e,o,u){const r=n.length;for(;++u<r;){const r=n[u],f=w(o,r,e);(t(f)?await f:f)||o.push(r)}return o};return i=>function(A){if(n(A))return function(n,e){const i=n.length,h=[];let p=-1;for(;++p<i;){const i=n[p],a=w(h,i,e);if(t(a))return a.then(c(u(s,o,m,r(l,h,i)),f(j,n,e,h,p)));a||h.push(i)}return h}(function(u){const r=u.length,f=[],i=[];let s=-1;for(;++s<r;){const e=u[s];if(n(e)){const n=e.length;let t=-1;for(;++t<n;)i.push(e[t])}else if(null==e)i.push(e);else if("function"==typeof e.then)f.push(e.then(p(l,i,o)));else if("function"==typeof e[b])for(const n of e)i.push(n);else if("function"==typeof e[d])f.push(g(e[d](),p(l,i,o)));else if("function"==typeof e.chain){const n=e.chain(y);t(n)?f.push(n.then(p(l,i,o))):i.push(n)}else if("function"==typeof e.flatMap){const n=e.flatMap(y);t(n)?f.push(n.then(p(l,i,o))):i.push(n)}else if("function"==typeof e.reduce){const n=e.reduce(c(a,p(l,i,o)),null);t(n)&&f.push(n)}else if(e.constructor==Object)for(const n in e)i.push(e[n]);else i.push(e)}return 0==f.length?i:e(f).then(h(i))}(A),i);throw new TypeError(`${A} is not an Array`)}}());
|
package/dist/x/unionWith.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const isArray = Array.isArray
|
package/dist/x/uniq.es.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const isArray = Array.isArray
|
package/dist/x/uniq.es.min.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
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,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
(function (root, uniq) {
|
package/dist/x/uniq.min.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
!function(r,t){"object"==typeof module?module.exports=t:"function"==typeof define?define(()=>t):r.uniq=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const r=Array.isArray;return t=>{if(!r(t))throw Error("uniq(arr): arr is not an array");return[...new Set(t)]}}());
|
package/dist/x/uniq.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const isArray = Array.isArray
|
package/dist/x/unless.es.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const isPromise = value => value != null && typeof value.then == 'function'
|
package/dist/x/unless.es.min.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
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,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
(function (root, unless) {
|
package/dist/x/unless.min.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
!function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define(()=>t):n.unless=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=Symbol.for("placeholder"),t=(n,t,e)=>n?t():e();return(e,o)=>function(u){const r=e(u);return(n=>null!=n&&"function"==typeof n.then)(r)?r.then((f=t,c=n,i=(n=>function(){return n})(u),l=((n,t)=>function(){return n(t)})(o,u),c==n?((n,t,e)=>function(o){return n(o,t,e)})(f,i,l):i==n?((n,t,e)=>function(o){return n(t,o,e)})(f,c,l):((n,t,e)=>function(o){return n(t,e,o)})(f,c,i))):r?u:o(u);var f,c,i,l}}());
|
package/dist/x/unless.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const isPromise = value => value != null && typeof value.then == 'function'
|
package/dist/x/values.es.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const objectValues = Object.values
|
package/dist/x/values.es.min.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
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,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
(function (root, values) {
|
package/dist/x/values.min.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
!function(e,t){"object"==typeof module?module.exports=t:"function"==typeof define?define(()=>t):e.values=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const e=Object.values;return t=>null==t?[]:"function"==typeof t.values?[...t.values()]:e(t)}());
|
package/dist/x/values.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const objectValues = Object.values
|
package/dist/x/when.es.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const isPromise = value => value != null && typeof value.then == 'function'
|
package/dist/x/when.es.min.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
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,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
(function (root, when) {
|
package/dist/x/when.min.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
!function(n,t){"object"==typeof module?module.exports=t:"function"==typeof define?define(()=>t):n.when=t}("object"==typeof globalThis?globalThis:this,function(){"use strict";const n=Symbol.for("placeholder"),t=(n,t,e)=>n?t():e();return(e,o)=>function(u){const r=e(u);return(n=>null!=n&&"function"==typeof n.then)(r)?r.then((f=t,c=n,i=((n,t)=>function(){return n(t)})(o,u),l=(n=>function(){return n})(u),c==n?((n,t,e)=>function(o){return n(o,t,e)})(f,i,l):i==n?((n,t,e)=>function(o){return n(t,o,e)})(f,c,l):((n,t,e)=>function(o){return n(t,e,o)})(f,c,i))):r?o(u):u;var f,c,i,l}}());
|
package/dist/x/when.mjs
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* https://
|
|
4
|
-
*
|
|
5
|
-
*
|
|
2
|
+
* Rubico v2.8.2
|
|
3
|
+
* https://rubico.land/
|
|
4
|
+
*
|
|
5
|
+
* © Richard Yufei Tong, King of Software
|
|
6
|
+
* Rubico may be freely distributed under the CFOSS license.
|
|
6
7
|
*/
|
|
7
8
|
|
|
8
9
|
const isPromise = value => value != null && typeof value.then == 'function'
|