@thi.ng/compose
Advanced tools
Comparing version 1.3.4 to 1.3.5
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.3.5](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.3.4...@thi.ng/compose@1.3.5) (2019-11-09) | ||
**Note:** Version bump only for package @thi.ng/compose | ||
## [1.3.4](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.3.3...@thi.ng/compose@1.3.4) (2019-09-21) | ||
@@ -8,0 +16,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@thi.ng/errors")):"function"==typeof define&&define.amd?define(["exports","@thi.ng/errors"],t):t(((e=e||self).thi=e.thi||{},e.thi.ng=e.thi.ng||{},e.thi.ng.compose={}),e.thi.ng.errors)}(this,function(e,t){"use strict";function r(...e){let[n,s,c,u,i,a,o,l,f,d]=e;switch(e.length){case 0:t.illegalArity(0);case 1:return n;case 2:return(...e)=>n(s(...e));case 3:return(...e)=>n(s(c(...e)));case 4:return(...e)=>n(s(c(u(...e))));case 5:return(...e)=>n(s(c(u(i(...e)))));case 6:return(...e)=>n(s(c(u(i(a(...e))))));case 7:return(...e)=>n(s(c(u(i(a(o(...e)))))));case 8:return(...e)=>n(s(c(u(i(a(o(l(...e))))))));case 9:return(...e)=>n(s(c(u(i(a(o(l(f(...e)))))))));case 10:default:const h=(...e)=>n(s(c(u(i(a(o(l(f(d(...e))))))))));return 10===e.length?h:r(h,...e.slice(10))}}function n(...e){return r.apply(null,e.reverse())}const s=n;class c{constructor(e){this.body=e,this.realized=!1}deref(){return this.realized||(this.value=this.body(),this.realized=!0),this.value}isRealized(){return this.realized}}function u(e,...r){let[n,s,c,u,i,a,o,l]=r;switch(r.length){case 1:return(...t)=>e(n,...t);case 2:return(...t)=>e(n,s,...t);case 3:return(...t)=>e(n,s,c,...t);case 4:return(...t)=>e(n,s,c,u,...t);case 5:return(...t)=>e(n,s,c,u,i,...t);case 6:return(...t)=>e(n,s,c,u,i,a,...t);case 7:return(...t)=>e(n,s,c,u,i,a,o,...t);case 8:return(...t)=>e(n,s,c,u,i,a,o,l,...t);default:t.illegalArgs()}}const i=u((e,t)=>e+t,"a");e.Delay=c,e.comp=r,e.compI=s,e.compL=n,e.complement=function(e){return(...t)=>!e(...t)},e.constantly=e=>()=>e,e.delay=e=>new c(e),e.delayed=(e,t)=>new Promise(r=>setTimeout(()=>r(e),t)),e.foo=i,e.identity=e=>e,e.ifDef=(e,t)=>null!=t?e(t):void 0,e.juxt=function(...e){const[t,r,n,s,c,u,i,a]=e;switch(e.length){case 1:return e=>[t(e)];case 2:return e=>[t(e),r(e)];case 3:return e=>[t(e),r(e),n(e)];case 4:return e=>[t(e),r(e),n(e),s(e)];case 5:return e=>[t(e),r(e),n(e),s(e),c(e)];case 6:return e=>[t(e),r(e),n(e),s(e),c(e),u(e)];case 7:return e=>[t(e),r(e),n(e),s(e),c(e),u(e),i(e)];case 8:return e=>[t(e),r(e),n(e),s(e),c(e),u(e),i(e),a(e)];default:return t=>{let r=new Array(e.length);for(let n=e.length;--n>=0;)r[n]=e[n](t);return r}}},e.partial=u,e.threadFirst=(e,...t)=>t.reduce((e,t)=>"function"==typeof t?t(e):t[0](e,...t.slice(1)),e),e.threadLast=(e,...t)=>t.reduce((e,t)=>"function"==typeof t?t(e):t[0](...t.slice(1),e),e),e.trampoline=e=>{for(;"function"==typeof e;)e=e();return e},Object.defineProperty(e,"__esModule",{value:!0})}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@thi.ng/errors")):"function"==typeof define&&define.amd?define(["exports","@thi.ng/errors"],t):t(((e=e||self).thi=e.thi||{},e.thi.ng=e.thi.ng||{},e.thi.ng.compose={}),e.thi.ng.errors)}(this,(function(e,t){"use strict";function r(...e){let[n,s,c,u,i,a,o,l,f,d]=e;switch(e.length){case 0:t.illegalArity(0);case 1:return n;case 2:return(...e)=>n(s(...e));case 3:return(...e)=>n(s(c(...e)));case 4:return(...e)=>n(s(c(u(...e))));case 5:return(...e)=>n(s(c(u(i(...e)))));case 6:return(...e)=>n(s(c(u(i(a(...e))))));case 7:return(...e)=>n(s(c(u(i(a(o(...e)))))));case 8:return(...e)=>n(s(c(u(i(a(o(l(...e))))))));case 9:return(...e)=>n(s(c(u(i(a(o(l(f(...e)))))))));case 10:default:const h=(...e)=>n(s(c(u(i(a(o(l(f(d(...e))))))))));return 10===e.length?h:r(h,...e.slice(10))}}function n(...e){return r.apply(null,e.reverse())}const s=n;class c{constructor(e){this.body=e,this.realized=!1}deref(){return this.realized||(this.value=this.body(),this.realized=!0),this.value}isRealized(){return this.realized}}function u(e,...r){let[n,s,c,u,i,a,o,l]=r;switch(r.length){case 1:return(...t)=>e(n,...t);case 2:return(...t)=>e(n,s,...t);case 3:return(...t)=>e(n,s,c,...t);case 4:return(...t)=>e(n,s,c,u,...t);case 5:return(...t)=>e(n,s,c,u,i,...t);case 6:return(...t)=>e(n,s,c,u,i,a,...t);case 7:return(...t)=>e(n,s,c,u,i,a,o,...t);case 8:return(...t)=>e(n,s,c,u,i,a,o,l,...t);default:t.illegalArgs()}}const i=u((e,t)=>e+t,"a");e.Delay=c,e.comp=r,e.compI=s,e.compL=n,e.complement=function(e){return(...t)=>!e(...t)},e.constantly=e=>()=>e,e.delay=e=>new c(e),e.delayed=(e,t)=>new Promise(r=>setTimeout(()=>r(e),t)),e.foo=i,e.identity=e=>e,e.ifDef=(e,t)=>null!=t?e(t):void 0,e.juxt=function(...e){const[t,r,n,s,c,u,i,a]=e;switch(e.length){case 1:return e=>[t(e)];case 2:return e=>[t(e),r(e)];case 3:return e=>[t(e),r(e),n(e)];case 4:return e=>[t(e),r(e),n(e),s(e)];case 5:return e=>[t(e),r(e),n(e),s(e),c(e)];case 6:return e=>[t(e),r(e),n(e),s(e),c(e),u(e)];case 7:return e=>[t(e),r(e),n(e),s(e),c(e),u(e),i(e)];case 8:return e=>[t(e),r(e),n(e),s(e),c(e),u(e),i(e),a(e)];default:return t=>{let r=new Array(e.length);for(let n=e.length;--n>=0;)r[n]=e[n](t);return r}}},e.partial=u,e.threadFirst=(e,...t)=>t.reduce((e,t)=>"function"==typeof t?t(e):t[0](e,...t.slice(1)),e),e.threadLast=(e,...t)=>t.reduce((e,t)=>"function"==typeof t?t(e):t[0](...t.slice(1),e),e),e.trampoline=e=>{for(;"function"==typeof e;)e=e();return e},Object.defineProperty(e,"__esModule",{value:!0})})); |
{ | ||
"name": "@thi.ng/compose", | ||
"version": "1.3.4", | ||
"version": "1.3.5", | ||
"description": "Arity-optimized functional composition helpers", | ||
@@ -32,8 +32,8 @@ "module": "./index.js", | ||
"nyc": "^14.0.0", | ||
"typedoc": "^0.14.2", | ||
"typescript": "^3.5.3" | ||
"typedoc": "^0.15.0", | ||
"typescript": "^3.6.4" | ||
}, | ||
"dependencies": { | ||
"@thi.ng/api": "^6.4.0", | ||
"@thi.ng/errors": "^1.2.0" | ||
"@thi.ng/api": "^6.5.0", | ||
"@thi.ng/errors": "^1.2.1" | ||
}, | ||
@@ -50,3 +50,3 @@ "keywords": [ | ||
"sideEffects": false, | ||
"gitHead": "5f865588e37a27ceb46484c24fce4d59a0637f90" | ||
"gitHead": "97add769f24aa32a1a5e13c5c941605e1b9eb569" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
57095
Updated@thi.ng/api@^6.5.0
Updated@thi.ng/errors@^1.2.1