@thi.ng/compose
Advanced tools
Comparing version 1.4.18 to 1.4.19
@@ -6,2 +6,10 @@ # Change Log | ||
## [1.4.19](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.18...@thi.ng/compose@1.4.19) (2020-11-24) | ||
**Note:** Version bump only for package @thi.ng/compose | ||
## [1.4.18](https://github.com/thi-ng/umbrella/compare/@thi.ng/compose@1.4.17...@thi.ng/compose@1.4.18) (2020-09-22) | ||
@@ -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="undefined"!=typeof globalThis?globalThis: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,i,u,c,a,l,o,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(i(...e)));case 4:return(...e)=>n(s(i(u(...e))));case 5:return(...e)=>n(s(i(u(c(...e)))));case 6:return(...e)=>n(s(i(u(c(a(...e))))));case 7:return(...e)=>n(s(i(u(c(a(l(...e)))))));case 8:return(...e)=>n(s(i(u(c(a(l(o(...e))))))));case 9:return(...e)=>n(s(i(u(c(a(l(o(f(...e)))))))));case 10:default:const h=(...e)=>n(s(i(u(c(a(l(o(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 i{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}}e.Delay=i,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 i(e),e.delayed=(e,t)=>new Promise(r=>setTimeout(()=>r(e),t)),e.identity=e=>e,e.ifDef=(e,t)=>null!=t?e(t):void 0,e.juxt=function(...e){const[t,r,n,s,i,u,c,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),i(e)];case 6:return e=>[t(e),r(e),n(e),s(e),i(e),u(e)];case 7:return e=>[t(e),r(e),n(e),s(e),i(e),u(e),c(e)];case 8:return e=>[t(e),r(e),n(e),s(e),i(e),u(e),c(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=function(e,...r){let[n,s,i,u,c,a,l,o]=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,i,...t);case 4:return(...t)=>e(n,s,i,u,...t);case 5:return(...t)=>e(n,s,i,u,c,...t);case 6:return(...t)=>e(n,s,i,u,c,a,...t);case 7:return(...t)=>e(n,s,i,u,c,a,l,...t);case 8:return(...t)=>e(n,s,i,u,c,a,l,o,...t);default:t.illegalArgs()}},e.promisify=e=>new Promise((t,r)=>e((e,n)=>null!=e?r(e):t(n))),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="undefined"!=typeof globalThis?globalThis: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,i,u,c,a,l,o,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(i(...e)));case 4:return(...e)=>n(s(i(u(...e))));case 5:return(...e)=>n(s(i(u(c(...e)))));case 6:return(...e)=>n(s(i(u(c(a(...e))))));case 7:return(...e)=>n(s(i(u(c(a(l(...e)))))));case 8:return(...e)=>n(s(i(u(c(a(l(o(...e))))))));case 9:return(...e)=>n(s(i(u(c(a(l(o(f(...e)))))))));case 10:default:const h=(...e)=>n(s(i(u(c(a(l(o(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 i{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}}e.Delay=i,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 i(e),e.delayed=(e,t)=>new Promise((r=>setTimeout((()=>r(e)),t))),e.identity=e=>e,e.ifDef=(e,t)=>null!=t?e(t):void 0,e.juxt=function(...e){const[t,r,n,s,i,u,c,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),i(e)];case 6:return e=>[t(e),r(e),n(e),s(e),i(e),u(e)];case 7:return e=>[t(e),r(e),n(e),s(e),i(e),u(e),c(e)];case 8:return e=>[t(e),r(e),n(e),s(e),i(e),u(e),c(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=function(e,...r){let[n,s,i,u,c,a,l,o]=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,i,...t);case 4:return(...t)=>e(n,s,i,u,...t);case 5:return(...t)=>e(n,s,i,u,c,...t);case 6:return(...t)=>e(n,s,i,u,c,a,...t);case 7:return(...t)=>e(n,s,i,u,c,a,l,...t);case 8:return(...t)=>e(n,s,i,u,c,a,l,o,...t);default:t.illegalArgs()}},e.promisify=e=>new Promise(((t,r)=>e(((e,n)=>null!=e?r(e):t(n))))),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.4.18", | ||
"version": "1.4.19", | ||
"description": "Optimized functional composition helpers", | ||
@@ -42,14 +42,14 @@ "module": "./index.js", | ||
"@istanbuljs/nyc-config-typescript": "^1.0.1", | ||
"@microsoft/api-extractor": "^7.9.11", | ||
"@microsoft/api-extractor": "^7.12.0", | ||
"@types/mocha": "^8.0.3", | ||
"@types/node": "^14.6.1", | ||
"mocha": "^8.1.2", | ||
"mocha": "^8.2.1", | ||
"nyc": "^15.1.0", | ||
"ts-node": "^9.0.0", | ||
"typedoc": "^0.18.0", | ||
"typescript": "^4.0.2" | ||
"typedoc": "^0.19.2", | ||
"typescript": "^4.1.2" | ||
}, | ||
"dependencies": { | ||
"@thi.ng/api": "^6.13.1", | ||
"@thi.ng/errors": "^1.2.22" | ||
"@thi.ng/api": "^6.13.2", | ||
"@thi.ng/errors": "^1.2.23" | ||
}, | ||
@@ -71,3 +71,3 @@ "files": [ | ||
"sideEffects": false, | ||
"gitHead": "130dff672b56f789205177c2243169d33d479948" | ||
"gitHead": "3a89bdfa4c58983d5e005b3e9fb056b0351198fe" | ||
} |
@@ -44,3 +44,3 @@ <!-- This file is generated - DO NOT EDIT! --> | ||
Package sizes (gzipped, pre-treeshake): ESM: 812 bytes / CJS: 915 bytes / UMD: 949 bytes | ||
Package sizes (gzipped, pre-treeshake): ESM: 815 bytes / CJS: 916 bytes / UMD: 955 bytes | ||
@@ -47,0 +47,0 @@ ## Dependencies |
Sorry, the diff of this file is not supported yet
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
60820
Updated@thi.ng/api@^6.13.2
Updated@thi.ng/errors@^1.2.23