From 4bb2cf3670fd9fa572bb42bd3a4abe8445af83a4 Mon Sep 17 00:00:00 2001 From: dhershman1 Date: Fri, 4 Jan 2019 14:00:51 -0500 Subject: [PATCH] updated dist files --- dist/kyanite.js | 12 +++++------- dist/kyanite.min.js | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/dist/kyanite.js b/dist/kyanite.js index 6e976fa3..2b8c7c2d 100644 --- a/dist/kyanite.js +++ b/dist/kyanite.js @@ -43,14 +43,12 @@ } var _xwrap = function _xwrap(fn) { - var res = {}; - res['@@transducer/result'] = function (acc) { - return acc; + return { + '@@transducer/result': function transducerResult(acc) { + return acc; + }, + '@@transducer/step': fn }; - res['@@transducer/step'] = function (x, acc) { - return fn(x, acc); - }; - return res; }; var reduce = function reduce(fn, acc, list) { diff --git a/dist/kyanite.min.js b/dist/kyanite.min.js index 5e89d199..4920be00 100644 --- a/dist/kyanite.min.js +++ b/dist/kyanite.min.js @@ -1 +1 @@ -!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.kyanite={})}(this,function(n){"use strict";function r(n){return function r(t,e){return arguments.length?1===arguments.length?function(r){return n(t,r)}:n(t,e):r}}var t=r(function(n,r){return r.concat(n)});function e(n){return function t(e,u,c){switch(arguments.length){case 0:return t;case 1:return r(function(r,t){return n(e,r,t)});case 2:return function(r){return n(e,u,r)};default:return n(e,u,c)}}}var u=function(n){var r={"@@transducer/result":function(n){return n},"@@transducer/step":function(r,t){return n(r,t)}};return r},c=e(function(n,r,t){for(var e=u(n),c=0,o=t.length;c=0?n:t.length,u=t.slice(0);return u.splice(e,0,r),u}),k=r(function(n,r){var t=l(d,r);return y(n.filter(function(n){return s(n,t)}))}),x=r(function(n,r){for(var t=r.length,e=Array(t),u=0;u=n(t)?r:t})}),N=r(function(n,r){return r.reduce(function(r,t){return n(r)<=n(t)?r:t})});function B(n){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function z(n,r){return P(n)||function(n,r){var t=[],e=!0,u=!1,c=void 0;try{for(var o,i=n[Symbol.iterator]();!(e=(o=i.next()).done)&&(t.push(o.value),!r||t.length!==r);e=!0);}catch(n){u=!0,c=n}finally{try{e||null==i.return||i.return()}finally{if(u)throw c}}return t}(n,r)||I()}function E(n){return function(n){if(Array.isArray(n)){for(var r=0,t=new Array(n.length);r=0;c--)if((r=e["@@transducer/step"](t[c],r))&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}return e["@@transducer/result"](r)}),T=function(n){return!n},W=r(function(n,r){return T(n(r))}),R=r(function(n,r){return A(W(n),r)}),D=r(function(n,r){return o(d,[r.slice(0,n),r.slice(n+1)])}),F=r(function(n,r){return c(function(r,t){return n(r)?m(!0):t},!1,r)}),L=r(function(n,r){return r.slice().sort(n)}),_=r(function(n,r){return nr?1:0});function G(n){return function t(u,c,o,i){switch(arguments.length){case 0:return t;case 1:return e(function(r,t,e){return n(u,r,t,e)});case 2:return r(function(r,t){return n(u,c,r,t)});case 3:return function(r){return n(u,c,o,r)};default:return n(u,c,o,i)}}}var H=G(function(n,r,t,e){return n(r(t),r(e))}),J=r(function(n,r){return L(H(_,n),r)}),K=r(function(n,r){return E(r).sort(function(r,t){return n.reduce(function(n,e){return 0===n?e(r,t):n},0)})}),Q=r(function(n,r){return r.slice(0,n)}),V=r(function(n,r){var t=r.findIndex(function(r){return!n(r)});return t<0?r:r.slice(0,t)}),X=r(function(n,r){return y(n.concat(r))}),Y=e(function(n,r,t){return o(d,[t.slice(0,n),r,t.slice(n+1)])}),Z=r(function(n,r){return(n.length=0;f--)if(e[f]===r)return u[f]===t;switch(i){case"Map":return r.size===t.size&&vn(r.entries(),t.entries(),e.concat([r]),u.concat([t]));case"Set":return r.size===t.size&&vn(r.values(),t.values(),e.concat([r]),u.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=Object.keys(r);if(a.length!==Object.values(t).length)return!1;for(var l=e.concat([r]),d=u.concat([t]),p=a.length-1;p>=0;p--){var y=a[p];if(!s(y,t)||!n(t[y],r[y],l,d))return!1}return!0},mn=r(function(n,r){return gn(n,r,[],[])}),bn=r(function(n,r){return g(r)||pn(NaN,r)?n:r}),An=r(function(n,r){return n>r?-1:nn}),Bn=r(function(n,r){return r>=n}),zn=jn,En=g,Pn=r(function(n,r){return r=t}),Gn=e(function(n,r,t){if(n>r)throw new Error("Min cannot be greater than max in clamp");return t>n&&tt)return!1;if(e===t)return n===r;n:for(var c=0;c=r?n:r})},n.maxBy=S,n.min=function(n){return n.reduce(function(n,r){return n<=r?n:r})},n.minBy=N,n.partition=C,n.prepend=U,n.reduce=c,n.reduceRight=q,n.reduced=m,n.reject=R,n.remove=D,n.some=F,n.sort=L,n.sortBy=J,n.sortWith=K,n.take=Q,n.takeWhile=V,n.union=X,n.uniq=y,n.uniqBy=p,n.update=Y,n.zip=Z,n.always=$,n.and=nn,n.ap=rn,n.apply=tn,n.ascend=_,n.ascendBy=en,n.both=un,n.branch=cn,n.complement=W,n.compose=on,n.composeP=fn,n.count=function(n){var r={Array:sn,String:sn,Object:an,Map:ln,Set:ln},t=dn(n),e=r[t];if(e)return e(n);throw new TypeError("Unexpected type given to count: ".concat(t))},n.curry=function n(r){for(var t=arguments.length,e=new Array(t>1?t-1:0),u=1;u2?e-2:0),c=2;c0&&void 0!==arguments[0]?arguments[0]:[];return function(){for(var r=arguments.length,t=new Array(r),e=0;e0&&void 0!==arguments[0]?arguments[0]:0,r=n<0?Kn(n):n;return n?E(on(A(function(n){return 0===Vn(n,r)}),Qn(0),r)).concat([r]):[]},n.gcd=Xn,n.inc=function(n){return n+1},n.isEven=Yn,n.isOdd=$n,n.isPrime=rr,n.lcm=tr,n.mean=function(n){return Hn(sn(n),c(Ln,0,n))},n.multiply=er,n.negate=Kn,n.odd=Zn,n.pow=ur,n.prime=nr,n.range=Qn,n.rem=Vn,n.round=cr,n.subtract=or,n.zero=ir,n.amend=fr,n.any=ar,n.draft=sr,n.has=s,n.height=an,n.omit=lr,n.over=dr,n.path=pr,n.pathOr=yr,n.plan=hr,n.prop=vr,n.props=gr,n.sift=mr,n.whole=br,n.capitalize=function(n){return n.charAt(0).toUpperCase()+n.slice(1)},n.fuzzySearch=Ar,n.join=Or,n.match=wr,n.replace=jr,n.split=kr,n.test=xr,n.toLower=function(n){return n.toLowerCase()},n.toUpper=function(n){return n.toUpperCase()},n.trim=function(n){return n.trim()},Object.defineProperty(n,"__esModule",{value:!0})}); +!function(n,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r(n.kyanite={})}(this,function(n){"use strict";function r(n){return function r(t,e){return arguments.length?1===arguments.length?function(r){return n(t,r)}:n(t,e):r}}var t=r(function(n,r){return r.concat(n)});function e(n){return function t(e,u,c){switch(arguments.length){case 0:return t;case 1:return r(function(r,t){return n(e,r,t)});case 2:return function(r){return n(e,u,r)};default:return n(e,u,c)}}}var u=function(n){return{"@@transducer/result":function(n){return n},"@@transducer/step":n}},c=e(function(n,r,t){for(var e=u(n),c=0,o=t.length;c=0?n:t.length,u=t.slice(0);return u.splice(e,0,r),u}),k=r(function(n,r){var t=l(d,r);return y(n.filter(function(n){return s(n,t)}))}),x=r(function(n,r){for(var t=r.length,e=Array(t),u=0;u=n(t)?r:t})}),N=r(function(n,r){return r.reduce(function(r,t){return n(r)<=n(t)?r:t})});function B(n){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function z(n,r){return P(n)||function(n,r){var t=[],e=!0,u=!1,c=void 0;try{for(var o,i=n[Symbol.iterator]();!(e=(o=i.next()).done)&&(t.push(o.value),!r||t.length!==r);e=!0);}catch(n){u=!0,c=n}finally{try{e||null==i.return||i.return()}finally{if(u)throw c}}return t}(n,r)||I()}function E(n){return function(n){if(Array.isArray(n)){for(var r=0,t=new Array(n.length);r=0;c--)if((r=e["@@transducer/step"](t[c],r))&&r["@@transducer/reduced"]){r=r["@@transducer/value"];break}return e["@@transducer/result"](r)}),T=function(n){return!n},W=r(function(n,r){return T(n(r))}),R=r(function(n,r){return A(W(n),r)}),D=r(function(n,r){return o(d,[r.slice(0,n),r.slice(n+1)])}),F=r(function(n,r){return c(function(r,t){return n(r)?m(!0):t},!1,r)}),L=r(function(n,r){return r.slice().sort(n)}),_=r(function(n,r){return nr?1:0});function G(n){return function t(u,c,o,i){switch(arguments.length){case 0:return t;case 1:return e(function(r,t,e){return n(u,r,t,e)});case 2:return r(function(r,t){return n(u,c,r,t)});case 3:return function(r){return n(u,c,o,r)};default:return n(u,c,o,i)}}}var H=G(function(n,r,t,e){return n(r(t),r(e))}),J=r(function(n,r){return L(H(_,n),r)}),K=r(function(n,r){return E(r).sort(function(r,t){return n.reduce(function(n,e){return 0===n?e(r,t):n},0)})}),Q=r(function(n,r){return r.slice(0,n)}),V=r(function(n,r){var t=r.findIndex(function(r){return!n(r)});return t<0?r:r.slice(0,t)}),X=r(function(n,r){return y(n.concat(r))}),Y=e(function(n,r,t){return o(d,[t.slice(0,n),r,t.slice(n+1)])}),Z=r(function(n,r){return(n.length=0;f--)if(e[f]===r)return u[f]===t;switch(i){case"Map":return r.size===t.size&&vn(r.entries(),t.entries(),e.concat([r]),u.concat([t]));case"Set":return r.size===t.size&&vn(r.values(),t.values(),e.concat([r]),u.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=Object.keys(r);if(a.length!==Object.values(t).length)return!1;for(var l=e.concat([r]),d=u.concat([t]),p=a.length-1;p>=0;p--){var y=a[p];if(!s(y,t)||!n(t[y],r[y],l,d))return!1}return!0},mn=r(function(n,r){return gn(n,r,[],[])}),bn=r(function(n,r){return g(r)||pn(NaN,r)?n:r}),An=r(function(n,r){return n>r?-1:nn}),Bn=r(function(n,r){return r>=n}),zn=jn,En=g,Pn=r(function(n,r){return r=t}),Gn=e(function(n,r,t){if(n>r)throw new Error("Min cannot be greater than max in clamp");return t>n&&tt)return!1;if(e===t)return n===r;n:for(var c=0;c=r?n:r})},n.maxBy=S,n.min=function(n){return n.reduce(function(n,r){return n<=r?n:r})},n.minBy=N,n.partition=C,n.prepend=U,n.reduce=c,n.reduceRight=q,n.reduced=m,n.reject=R,n.remove=D,n.some=F,n.sort=L,n.sortBy=J,n.sortWith=K,n.take=Q,n.takeWhile=V,n.union=X,n.uniq=y,n.uniqBy=p,n.update=Y,n.zip=Z,n.always=$,n.and=nn,n.ap=rn,n.apply=tn,n.ascend=_,n.ascendBy=en,n.both=un,n.branch=cn,n.complement=W,n.compose=on,n.composeP=fn,n.count=function(n){var r={Array:sn,String:sn,Object:an,Map:ln,Set:ln},t=dn(n),e=r[t];if(e)return e(n);throw new TypeError("Unexpected type given to count: ".concat(t))},n.curry=function n(r){for(var t=arguments.length,e=new Array(t>1?t-1:0),u=1;u2?e-2:0),c=2;c0&&void 0!==arguments[0]?arguments[0]:[];return function(){for(var r=arguments.length,t=new Array(r),e=0;e0&&void 0!==arguments[0]?arguments[0]:0,r=n<0?Kn(n):n;return n?E(on(A(function(n){return 0===Vn(n,r)}),Qn(0),r)).concat([r]):[]},n.gcd=Xn,n.inc=function(n){return n+1},n.isEven=Yn,n.isOdd=$n,n.isPrime=rr,n.lcm=tr,n.mean=function(n){return Hn(sn(n),c(Ln,0,n))},n.multiply=er,n.negate=Kn,n.odd=Zn,n.pow=ur,n.prime=nr,n.range=Qn,n.rem=Vn,n.round=cr,n.subtract=or,n.zero=ir,n.amend=fr,n.any=ar,n.draft=sr,n.has=s,n.height=an,n.omit=lr,n.over=dr,n.path=pr,n.pathOr=yr,n.plan=hr,n.prop=vr,n.props=gr,n.sift=mr,n.whole=br,n.capitalize=function(n){return n.charAt(0).toUpperCase()+n.slice(1)},n.fuzzySearch=Ar,n.join=Or,n.match=wr,n.replace=jr,n.split=kr,n.test=xr,n.toLower=function(n){return n.toLowerCase()},n.toUpper=function(n){return n.toUpperCase()},n.trim=function(n){return n.trim()},Object.defineProperty(n,"__esModule",{value:!0})});