Comparing version 0.9.5 to 0.9.6
@@ -957,2 +957,8 @@ 'use strict'; | ||
function reverse(arr) { | ||
var clone = arr.concat(); | ||
return clone.reverse(); | ||
} | ||
function sort(fn, arr) { | ||
@@ -1122,3 +1128,2 @@ var arrClone = arr.concat(); | ||
var padStart = helper('padStart'); | ||
var reverse = simpleHelper('reverse'); | ||
var startsWith = helper('startsWith'); | ||
@@ -1151,3 +1156,2 @@ var subtract = mathHelper$1('-'); | ||
exports.padStart = padStart; | ||
exports.reverse = reverse; | ||
exports.startsWith = startsWith; | ||
@@ -1209,2 +1213,3 @@ exports.subtract = subtract; | ||
exports.replace = replace$1; | ||
exports.reverse = reverse; | ||
exports.sort = sort$1; | ||
@@ -1211,0 +1216,0 @@ exports.sortBy = sortBy$1; |
@@ -953,2 +953,8 @@ function helper(method, x, y) { | ||
function reverse(arr) { | ||
var clone = arr.concat(); | ||
return clone.reverse(); | ||
} | ||
function sort(fn, arr) { | ||
@@ -1118,3 +1124,2 @@ var arrClone = arr.concat(); | ||
var padStart = helper('padStart'); | ||
var reverse = simpleHelper('reverse'); | ||
var startsWith = helper('startsWith'); | ||
@@ -1130,3 +1135,3 @@ var subtract = mathHelper$1('-'); | ||
export { add, always, complement, concat, divide, endsWith, F, identity, includes, join, lastIndexOf, length, modulo, multiply, not, padEnd, padStart, reverse, startsWith, subtract, T, toLower, toString, toUpper, trim, addIndex, adjust$1 as adjust, all$1 as all, allPass, anyPass, any$1 as any, append$1 as append, both$1 as both, compose, contains$1 as contains, curry$1 as curry, dec, defaultTo, drop$1 as drop, dropLast$1 as dropLast, either$1 as either, inc, equals, filter$1 as filter, find$1 as find, findIndex$1 as findIndex, flatten, flip, forEach$1 as forEach, has$1 as has, head, ifElse$1 as ifElse, isNil, indexOf$1 as indexOf, init, last, map$1 as map, match$1 as match, merge$1 as merge, omit, partialCurry, path, pathOr$1 as pathOr, pick, pipe, pluck$1 as pluck, prepend$1 as prepend, prop$1 as prop, propEq$1 as propEq, range, reduce$1 as reduce, reject$1 as reject, repeat$1 as repeat, replace$1 as replace, sort$1 as sort, sortBy$1 as sortBy, split$1 as split, splitEvery$1 as splitEvery, tap$1 as tap, tail, take$1 as take, takeLast$1 as takeLast, test$1 as test, times$1 as times, type, typedPathOr$1 as typedPathOr, typedDefaultTo, uniq, update$1 as update, values, without }; | ||
export { add, always, complement, concat, divide, endsWith, F, identity, includes, join, lastIndexOf, length, modulo, multiply, not, padEnd, padStart, startsWith, subtract, T, toLower, toString, toUpper, trim, addIndex, adjust$1 as adjust, all$1 as all, allPass, anyPass, any$1 as any, append$1 as append, both$1 as both, compose, contains$1 as contains, curry$1 as curry, dec, defaultTo, drop$1 as drop, dropLast$1 as dropLast, either$1 as either, inc, equals, filter$1 as filter, find$1 as find, findIndex$1 as findIndex, flatten, flip, forEach$1 as forEach, has$1 as has, head, ifElse$1 as ifElse, isNil, indexOf$1 as indexOf, init, last, map$1 as map, match$1 as match, merge$1 as merge, omit, partialCurry, path, pathOr$1 as pathOr, pick, pipe, pluck$1 as pluck, prepend$1 as prepend, prop$1 as prop, propEq$1 as propEq, range, reduce$1 as reduce, reject$1 as reject, repeat$1 as repeat, replace$1 as replace, reverse, sort$1 as sort, sortBy$1 as sortBy, split$1 as split, splitEvery$1 as splitEvery, tap$1 as tap, tail, take$1 as take, takeLast$1 as takeLast, test$1 as test, times$1 as times, type, typedPathOr$1 as typedPathOr, typedDefaultTo, uniq, update$1 as update, values, without }; | ||
//# sourceMappingURL=rambda.esm.js.map |
@@ -959,2 +959,8 @@ (function (global, factory) { | ||
function reverse(arr) { | ||
var clone = arr.concat(); | ||
return clone.reverse(); | ||
} | ||
function sort(fn, arr) { | ||
@@ -1124,3 +1130,2 @@ var arrClone = arr.concat(); | ||
var padStart = helper('padStart'); | ||
var reverse = simpleHelper('reverse'); | ||
var startsWith = helper('startsWith'); | ||
@@ -1153,3 +1158,2 @@ var subtract = mathHelper$1('-'); | ||
exports.padStart = padStart; | ||
exports.reverse = reverse; | ||
exports.startsWith = startsWith; | ||
@@ -1211,2 +1215,3 @@ exports.subtract = subtract; | ||
exports.replace = replace$1; | ||
exports.reverse = reverse; | ||
exports.sort = sort$1; | ||
@@ -1213,0 +1218,0 @@ exports.sortBy = sortBy$1; |
@@ -52,4 +52,2 @@ [![Build Status](https://img.shields.io/travis/selfrefactor/rambda.svg)](https://travis-ci.org/selfrefactor/rambda) | ||
- Rambda's **reverse** modifies the array, instead of returning reversed copy of it. | ||
- Rambda's **startsWith/endsWith** work only with strings, instead with array and strings. | ||
@@ -794,4 +792,2 @@ | ||
!!! It modifies the array instead of returning new copy, as original `Ramda` method does. | ||
``` | ||
@@ -1119,2 +1115,4 @@ const arr = [1, 2] | ||
- 0.9.6 Close issue [#44](https://github.com/selfrefactor/rambda/issues/44) - `R.reverse` mutates the array | ||
- 0.9.5 Close issue [#45](https://github.com/selfrefactor/rambda/issues/45) - invalid Typescript typings | ||
- 0.9.4 Add `R.reject` and `R.without` ([PR#41](https://github.com/selfrefactor/rambda/pull/41) [PR#42](https://github.com/selfrefactor/rambda/pull/42)) | Remove 'browser' field in `package.json` due to Webpack bug [4674](https://github.com/webpack/webpack/issues/4674) | ||
@@ -1130,3 +1128,3 @@ - 0.9.3 Add `R.forEach` and `R.times` | ||
- 0.8.5 Add `R.all`, `R.allPass`, `R.both`, `R.either` and `R.complement` | ||
- 0.8.4 Learning to run `npm test` before `npm publish` the hard way | ||
- 0.8.4 Learning to run `yarn test` before `yarn publish` the hard way | ||
- 0.8.3 Add `R.always`, `R.T` and `R.F` | ||
@@ -1459,3 +1457,3 @@ - 0.8.2 Add `concat`, `padStart`, `padEnd`, `lastIndexOf`, `toString`, `reverse`, `endsWith` and `startsWith` methods | ||
> Run `npm test` to validate your tests | ||
> Run `yarn test` to validate your tests | ||
@@ -1468,5 +1466,5 @@ > Edit `./README.md` to add documentation | ||
`npm run lint modules/endsWith.js` | ||
`yarn run lint modules/endsWith.js` | ||
`npm run lint __tests__/endsWith.js` | ||
`yarn run lint __tests__/endsWith.js` | ||
@@ -1483,7 +1481,7 @@ > Submit PR | ||
`npm run benchmark all` | ||
`yarn run benchmark all` | ||
- To run single or number of benchmarks | ||
`npm run benchmark add compose filter` | ||
`yarn run benchmark add compose filter` | ||
@@ -1490,0 +1488,0 @@ > Libraries using Rambda |
{ | ||
"name": "rambda", | ||
"version": "0.9.5", | ||
"version": "0.9.6", | ||
"description": "Lightweight alternative to Ramda", | ||
@@ -13,3 +13,3 @@ "main": "dist/rambda.cjs.js", | ||
"lint": "node files/lint", | ||
"dev": "jest __tests__/object/pick --watch", | ||
"dev": "jest __tests__/array/reverse --watch", | ||
"all-build": "rollup -c files/rollup.config.js", | ||
@@ -16,0 +16,0 @@ "browser-minify": "run minify f dist/rambda.umd.js o webVersion.js", |
@@ -73,3 +73,3 @@ import helper from './modules/internal/helper' | ||
export { default as replace } from './modules/replace' | ||
export const reverse = simpleHelper('reverse') | ||
export { default as reverse } from './modules/reverse' | ||
export { default as sort } from './modules/sort' | ||
@@ -76,0 +76,0 @@ export { default as sortBy } from './modules/sortBy' |
@@ -52,4 +52,2 @@ [![Build Status](https://img.shields.io/travis/selfrefactor/rambda.svg)](https://travis-ci.org/selfrefactor/rambda) | ||
- Rambda's **reverse** modifies the array, instead of returning reversed copy of it. | ||
- Rambda's **startsWith/endsWith** work only with strings, instead with array and strings. | ||
@@ -794,4 +792,2 @@ | ||
!!! It modifies the array instead of returning new copy, as original `Ramda` method does. | ||
``` | ||
@@ -1119,2 +1115,4 @@ const arr = [1, 2] | ||
- 0.9.6 Close issue [#44](https://github.com/selfrefactor/rambda/issues/44) - `R.reverse` mutates the array | ||
- 0.9.5 Close issue [#45](https://github.com/selfrefactor/rambda/issues/45) - invalid Typescript typings | ||
- 0.9.4 Add `R.reject` and `R.without` ([PR#41](https://github.com/selfrefactor/rambda/pull/41) [PR#42](https://github.com/selfrefactor/rambda/pull/42)) | Remove 'browser' field in `package.json` due to Webpack bug [4674](https://github.com/webpack/webpack/issues/4674) | ||
@@ -1121,0 +1119,0 @@ - 0.9.3 Add `R.forEach` and `R.times` |
@@ -1,1 +0,1 @@ | ||
(function(c,d){typeof exports==='object'&&typeof module!=='undefined'?d(exports):typeof define==='function'&&define.amd?define(['exports'],d):d(c.R={});})(this,function(e){'use strict';function helper(g,x,y){if(x===void 0){return function(h,j){return helper(g,h,j);};}else if(y===void 0){return function(k){return helper(g,x,k);};}if(y[g]!==void 0){return y[g](x);}}function curry(l){return function(x,y){if(y===void 0){return function(m){return l(x,m);};}return l(x,y);};}function curryThree(q){return function(x,y,z){if(y===void 0){var helper=function helper(r,s){return q(x,r,s);};return curry(helper);}else if(z===void 0){return function(t){return q(x,y,t);};}return q(x,y,z);};}function mathHelper(u,x,y){switch(u){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}var v=curryThree(mathHelper);function oppositeHelper(w,x,y){if(x===void 0){return function(A,B){return oppositeHelper(w,A,B);};}else if(y===void 0){return function(C){return oppositeHelper(w,x,C);};}if(x[w]!==void 0){return x[w](y);}}function propHelper(D,x){if(x===void 0){return function(E){return propHelper(D,E);};}return x[D];}function simpleHelper(G,x){if(x===void 0){return function(H){return simpleHelper(G,H);};}if(x[G]!==void 0){return x[G]();}}function addIndex(I){return function(J){for(var K=0,newFn=function newFn(){for(var L=arguments.length,M=Array(L),N=0;N<L;N++){M[N]=arguments[N];}return J.apply(null,[].concat(M,[K++]));},O=arguments.length,P=Array(O>1?O-1:0),Q=1;Q<O;Q++){P[Q-1]=arguments[Q];}return I.apply(null,[newFn].concat(P));};}function adjust(R,S,U){var V=U.concat();return V.map(function(W,X){if(X===S){return R(U[S]);}return W;});}var Y=curryThree(adjust);function filterObject(Z,a1){var b1={};for(var c1 in a1){if(Z(a1[c1])){b1[c1]=a1[c1];}}return b1;}function filter(fn,e1){if(e1.length===void 0){return filterObject(fn,e1);}var f1=-1,g1=0,h1=e1.length,i1=[];while(++f1<h1){var j1=e1[f1];if(fn(j1)){i1[g1++]=j1;}}return i1;}var k1=curry(filter);function all(l1,m1){return k1(l1,m1).length===m1.length;}var n1=curry(all);function any(fn,p1){var q1=0;while(q1<p1.length){if(fn(p1[q1])){return!0;}q1++;}return!1;}var r1=curry(any);function allPass(s1,x){if(arguments.length===1){return function(t1){return allPass(s1,t1);};}return!r1(function(u1){return!u1(x);},s1);}function anyPass(v1,x){if(arguments.length===1){return function(w1){return anyPass(v1,w1);};}return r1(function(x1){return x1(x);})(v1);}function append(y1,z1){if(typeof z1==='string'){return''+z1+y1;}var A1=z1.concat();A1.push(y1);return A1;}var B1=curry(append);function both(x,y){return function(C1){return x(C1)&&y(C1);};}var D1=curry(both);function compose(){for(var E1=arguments.length,F1=Array(E1),G1=0;G1<E1;G1++){F1[G1]=arguments[G1];}return function(H1){var I1=F1.slice();while(I1.length>0){H1=I1.pop()(H1);}return H1;};}var J1=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(K1){return typeof K1;}:function(L1){return L1&&typeof Symbol==="function"&&L1.constructor===Symbol&&L1!==Symbol.prototype?"symbol":typeof L1;},M1=function(){function AwaitValue(N1){this.value=N1;}function AsyncGenerator(O1){var P1,Q1;function send(R1,S1){return new Promise(function(T1,U1){var V1={key:R1,arg:S1,resolve:T1,reject:U1,next:null};if(Q1){Q1=Q1.next=V1;}else{P1=Q1=V1;resume(R1,S1);}});}function resume(W1,X1){try{var Y1=O1[W1](X1),Z1=Y1.value;if(Z1 instanceof AwaitValue){Promise.resolve(Z1.value).then(function(a2){resume("next",a2);},function(b2){resume("throw",b2);});}else{settle(Y1.done?"return":"normal",Y1.value);}}catch(err){settle("throw",err);}}function settle(c2,d2){switch(c2){case"return":P1.resolve({value:d2,done:!0});break;case"throw":P1.reject(d2);break;default:P1.resolve({value:d2,done:!1});break;}P1=P1.next;if(P1){resume(P1.key,P1.arg);}else{Q1=null;}}this._invoke=send;if(typeof O1.return!=="function"){this.return=void 0;}}if(typeof Symbol==="function"&&Symbol.asyncIterator){AsyncGenerator.prototype[Symbol.asyncIterator]=function(){return this;};}AsyncGenerator.prototype.next=function(e2){return this._invoke("next",e2);};AsyncGenerator.prototype.throw=function(f2){return this._invoke("throw",f2);};AsyncGenerator.prototype.return=function(g2){return this._invoke("return",g2);};return{wrap:function(fn){return function(){return new AsyncGenerator(fn.apply(this,arguments));};},await:function(i2){return new AwaitValue(i2);}};}(),toConsumableArray=function(j2){if(Array.isArray(j2)){for(var i=0,k2=Array(j2.length);i<j2.length;i++)k2[i]=j2[i];return k2;}else{return Array.from(j2);}};function type(a){var l2=typeof a==='undefined'?'undefined':J1(a);if(a===null){return'Null';}else if(a===void 0){return'Undefined';}else if(l2==='boolean'){return'Boolean';}else if(l2==='number'){return'Number';}else if(l2==='string'){return'String';}else if(Array.isArray(a)){return'Array';}else if(a instanceof RegExp){return'RegExp';}var m2=a.toString();if(m2.startsWith('async')){return'Async';}else if(m2==='[object Promise]'){return'Promise';}else if(m2.includes('function')||m2.includes('=>')){return'Function';}return'Object';}function equals(a,b){if(arguments.length===1){return function(n2){return equals(a,n2);};}if(a===b){return!0;}var o2=type(a);if(o2!==type(b)){return!1;}if(o2==='Array'){var p2=Array.from(a),q2=Array.from(b);return p2.sort().toString()===q2.sort().toString();}if(o2==='Object'){var r2=Object.keys(a);if(r2.length===Object.keys(b).length){if(r2.length===0){return!0;}var s2=!0;r2.map(function(t2){if(s2){var u2=type(a[t2]),v2=type(b[t2]);if(u2===v2){if(u2==='Object'){if(Object.keys(a[t2]).length===Object.keys(b[t2]).length){if(Object.keys(a[t2]).length!==0){if(!equals(a[t2],b[t2])){s2=!1;}}}else{s2=!1;}}else if(!equals(a[t2],b[t2])){s2=!1;}}else{s2=!1;}}});return s2;}}return!1;}function contains(w2,x2){var y2=-1,z2=!1;while(++y2<x2.length&&!z2){if(equals(x2[y2],w2)){z2=!0;}}return z2;}var A2=curry(contains);function curry$1(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return function(){for(var B2=arguments.length,p=Array(B2),C2=0;C2<B2;C2++){p[C2]=arguments[C2];}return function(o){return o.length>=f.length?f.apply(void 0,toConsumableArray(o)):curry$1(f,o);}([].concat(toConsumableArray(a),p));};}var dec=function(x){return x-1;};function defaultTo(D2,E2){if(arguments.length===1){return function(F2){return defaultTo(D2,F2);};}return E2===void 0||E2===null||Number.isNaN(E2)===!0?D2:E2;}function drop(G2,a){return a.slice(G2);}var H2=curry(drop);function dropLast(I2,a){return a.slice(0,-I2);}var J2=curry(dropLast);function either(x,y){return function(K2){return x(K2)||y(K2);};}var L2=curry(either),inc=function(x){return x+1;};function find(fn,N2){return N2.find(fn);}var O2=curry(find);function findIndex(fn,Q2){var R2=Q2.length,S2=-1;while(++S2<R2){if(fn(Q2[S2])){return S2;}}return-1;}var T2=curry(findIndex);function flatten(U2,V2){V2=V2===void 0?[]:V2;for(var i=0;i<U2.length;i++){if(Array.isArray(U2[i])){flatten(U2[i],V2);}else{V2.push(U2[i]);}}return V2;}function flipExport(fn){return function(){for(var X2=arguments.length,Y2=Array(X2),Z2=0;Z2<X2;Z2++){Y2[Z2]=arguments[Z2];}if(Y2.length===1){return function(a3){return fn(a3,Y2[0]);};}else if(Y2.length===2){return fn(Y2[1],Y2[0]);}return void 0;};}function flip(fn){return flipExport(fn);}function tap(fn,d3){fn(d3);return d3;}var e3=curry(tap);function mapObject(fn,g3){var h3={};for(var i3 in g3){h3[i3]=fn(g3[i3]);}return h3;}function map(fn,k3){if(k3.length===void 0){return mapObject(fn,k3);}var l3=-1,m3=k3.length,n3=Array(m3);while(++l3<m3){n3[l3]=fn(k3[l3]);}return n3;}var o3=curry(map);function forEach(fn,q3){return o3(e3(fn),q3);}var r3=curry(forEach);function has(s3,t3){return t3[s3]!==void 0;}var u3=curry(has);function head(a){if(typeof a==='string'){return a[0]||'';}return a[0];}function ifElse(v3,w3,x3){return function(y3){if(v3(y3)===!0){return w3(y3);}return x3(y3);};}var z3=curryThree(ifElse);function isNil(x){return x===void 0||x===null;}function indexOf(x,A3){var B3=-1,C3=A3.length;while(++B3<C3){if(A3[B3]===x){return B3;}}return-1;}var D3=curry(indexOf);function baseSlice(E3,F3,G3){var H3=-1,I3=E3.length;G3=G3>I3?I3:G3;if(G3<0){G3+=I3;}I3=F3>G3?0:G3-F3>>>0;F3>>>=0;var J3=Array(I3);while(++H3<I3){J3[H3]=E3[H3+F3];}return J3;}function init(a){if(typeof a==='string'){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function last(a){if(typeof a==='string'){return a[a.length-1]||'';}return a[a.length-1];}function match(K3,L3){var M3=L3.match(K3);return M3===null?[]:M3;}var N3=curry(match);function merge(O3,P3){return Object.assign({},O3,P3);}var Q3=curry(merge);function omit(R3,S3){if(arguments.length===1){return function(T3){return omit(R3,T3);};}if(S3===null||S3===void 0){return void 0;}if(typeof R3==='string'){R3=R3.split(',');}var U3={};for(var V3 in S3){if(!R3.includes(V3)){U3[V3]=S3[V3];}}return U3;}function partialCurry(fn){var X3=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(Y3){if(type(fn)==='Async'||type(fn)==='Promise'){return new Promise(function(Z3,a4){fn(Q3(Y3,X3)).then(Z3).catch(a4);});}return fn(Q3(Y3,X3));};}function path(b4,c4){if(arguments.length===1){return function(d4){return path(b4,d4);};}if(c4===null||c4===void 0){return void 0;}var e4=c4,f4=0;if(typeof b4==='string'){b4=b4.split('.');}while(f4<b4.length){if(e4===null||e4===void 0){return void 0;}e4=e4[b4[f4]];f4++;}return e4;}function pathOr(g4,h4,i4){return defaultTo(g4,path(h4,i4));}var j4=curry$1(pathOr);function pick(k4,l4){if(arguments.length===1){return function(m4){return pick(k4,m4);};}if(l4===null||l4===void 0){return void 0;}if(typeof k4==='string'){k4=k4.split(',');}var n4={},o4=0;while(o4<k4.length){if(k4[o4]in l4){n4[k4[o4]]=l4[k4[o4]];}o4++;}return n4;}function pipe(){for(var p4=arguments.length,q4=Array(p4),r4=0;r4<p4;r4++){q4[r4]=arguments[r4];}return compose.apply(void 0,toConsumableArray(q4.reverse()));}function pluck(s4,t4){var u4=[];o3(function(v4){if(!(v4[s4]===void 0)){u4.push(v4[s4]);}},t4);return u4;}var w4=curry(pluck);function prepend(x4,y4){if(typeof y4==='string'){return''+x4+y4;}var z4=y4.concat();z4.unshift(x4);return z4;}var A4=curry(prepend);function prop(B4,C4){return C4[B4];}var D4=curry(prop);function propEq(E4,F4,G4){return G4[E4]===F4;}var H4=curryThree(propEq);function range(I4,J4){for(var K4=[],i=I4;i<J4;i++){K4.push(i);}return K4;}function reduce(fn,M4,N4){return N4.reduce(fn,M4);}var O4=curryThree(reduce);function reject(P4,Q4){return k1(function(x){return!P4(x);},Q4);}var R4=curry(reject);function repeat(a,S4){var T4=Array(S4);return T4.fill(a);}var U4=curry(repeat);function replace(V4,W4,X4){return X4.replace(V4,W4);}var Y4=curryThree(replace);function sort(fn,a5){var b5=a5.concat();return b5.sort(fn);}var c5=curry(sort);function sortBy(fn,e5){var f5=e5.concat();return f5.sort(function(a,b){var g5=fn(a),h5=fn(b);return g5<h5?-1:g5>h5?1:0;});}var i5=curry(sortBy);function split(j5,k5){return k5.split(j5);}var l5=curry(split);function splitEvery(m5,a){m5=m5>1?m5:1;var n5=[],o5=0;while(o5<a.length){n5.push(a.slice(o5,o5+=m5));}return n5;}var p5=curry(splitEvery);function tail(q5){return H2(1,q5);}function take(r5,a){if(typeof a==='string'){return a.slice(0,r5);}return baseSlice(a,0,r5);}var s5=curry(take);function takeLast(t5,a){var u5=a.length;t5=t5>u5?u5:t5;if(typeof a==='string'){return a.slice(u5-t5);}t5=u5-t5;return baseSlice(a,t5,u5);}var v5=curry(takeLast);function test(w5,x5){return x5.search(w5)!==-1;}var y5=curry(test);function times(fn,n){return o3(fn,range(0,n));}var A5=curry(times);function typedDefaultTo(B5,C5){if(arguments.length===1){return function(D5){return typedDefaultTo(B5,D5);};}return type(C5)!==type(B5)?B5:C5;}function typedPathOr(E5,F5,G5){return typedDefaultTo(E5,path(F5,G5));}var H5=curry$1(typedPathOr);function uniq(I5){var J5=-1,K5=[];while(++J5<I5.length){var L5=I5[J5];if(!A2(L5,K5)){K5.push(L5);}}return K5;}function update(M5,N5,O5){var P5=O5.concat();return P5.fill(N5,M5,M5+1);}var Q5=curryThree(update);function values(R5){var S5=[];for(var T5 in R5){S5.push(R5[T5]);}return S5;}function without(U5,V5){return O4(function(W5,X5){return!A2(X5,U5)?W5.concat(X5):W5;},[],V5);}var Y5=v('+'),always=function always(x){return function(){return x;};},complement=function complement(fn){return function(a6){return!fn(a6);};},b6=oppositeHelper('concat'),c6=v('/'),d6=helper('endsWith'),F=function F(){return!1;},identity=function identity(x){return x;},e6=helper('includes'),f6=helper('join'),g6=helper('lastIndexOf'),h6=propHelper('length'),i6=v('%'),j6=v('*'),not=function not(x){return!x;},k6=helper('padEnd'),l6=helper('padStart'),m6=simpleHelper('reverse'),n6=helper('startsWith'),o6=v('-'),T=function T(){return!0;},p6=simpleHelper('toLowerCase'),q6=simpleHelper('toString'),r6=simpleHelper('toUpperCase'),s6=simpleHelper('trim');e.add=Y5;e.always=always;e.complement=complement;e.concat=b6;e.divide=c6;e.endsWith=d6;e.F=F;e.identity=identity;e.includes=e6;e.join=f6;e.lastIndexOf=g6;e.length=h6;e.modulo=i6;e.multiply=j6;e.not=not;e.padEnd=k6;e.padStart=l6;e.reverse=m6;e.startsWith=n6;e.subtract=o6;e.T=T;e.toLower=p6;e.toString=q6;e.toUpper=r6;e.trim=s6;e.addIndex=addIndex;e.adjust=Y;e.all=n1;e.allPass=allPass;e.anyPass=anyPass;e.any=r1;e.append=B1;e.both=D1;e.compose=compose;e.contains=A2;e.curry=curry$1;e.dec=dec;e.defaultTo=defaultTo;e.drop=H2;e.dropLast=J2;e.either=L2;e.inc=inc;e.equals=equals;e.filter=k1;e.find=O2;e.findIndex=T2;e.flatten=flatten;e.flip=flip;e.forEach=r3;e.has=u3;e.head=head;e.ifElse=z3;e.isNil=isNil;e.indexOf=D3;e.init=init;e.last=last;e.map=o3;e.match=N3;e.merge=Q3;e.omit=omit;e.partialCurry=partialCurry;e.path=path;e.pathOr=j4;e.pick=pick;e.pipe=pipe;e.pluck=w4;e.prepend=A4;e.prop=D4;e.propEq=H4;e.range=range;e.reduce=O4;e.reject=R4;e.repeat=U4;e.replace=Y4;e.sort=c5;e.sortBy=i5;e.split=l5;e.splitEvery=p5;e.tap=e3;e.tail=tail;e.take=s5;e.takeLast=v5;e.test=y5;e.times=A5;e.type=type;e.typedPathOr=H5;e.typedDefaultTo=typedDefaultTo;e.uniq=uniq;e.update=Q5;e.values=values;e.without=without;Object.defineProperty(e,'__esModule',{value:!0});}); | ||
(function(c,d){typeof exports==='object'&&typeof module!=='undefined'?d(exports):typeof define==='function'&&define.amd?define(['exports'],d):d(c.R={});})(this,function(e){'use strict';function helper(g,x,y){if(x===void 0){return function(h,j){return helper(g,h,j);};}else if(y===void 0){return function(k){return helper(g,x,k);};}if(y[g]!==void 0){return y[g](x);}}function curry(l){return function(x,y){if(y===void 0){return function(m){return l(x,m);};}return l(x,y);};}function curryThree(q){return function(x,y,z){if(y===void 0){var helper=function helper(r,s){return q(x,r,s);};return curry(helper);}else if(z===void 0){return function(t){return q(x,y,t);};}return q(x,y,z);};}function mathHelper(u,x,y){switch(u){case'+':return x+y;case'-':return x-y;case'/':return x/y;case'*':return x*y;case'%':return x%y;}}var v=curryThree(mathHelper);function oppositeHelper(w,x,y){if(x===void 0){return function(A,B){return oppositeHelper(w,A,B);};}else if(y===void 0){return function(C){return oppositeHelper(w,x,C);};}if(x[w]!==void 0){return x[w](y);}}function propHelper(D,x){if(x===void 0){return function(E){return propHelper(D,E);};}return x[D];}function simpleHelper(G,x){if(x===void 0){return function(H){return simpleHelper(G,H);};}if(x[G]!==void 0){return x[G]();}}function addIndex(I){return function(J){for(var K=0,newFn=function newFn(){for(var L=arguments.length,M=Array(L),N=0;N<L;N++){M[N]=arguments[N];}return J.apply(null,[].concat(M,[K++]));},O=arguments.length,P=Array(O>1?O-1:0),Q=1;Q<O;Q++){P[Q-1]=arguments[Q];}return I.apply(null,[newFn].concat(P));};}function adjust(R,S,U){var V=U.concat();return V.map(function(W,X){if(X===S){return R(U[S]);}return W;});}var Y=curryThree(adjust);function filterObject(Z,a1){var b1={};for(var c1 in a1){if(Z(a1[c1])){b1[c1]=a1[c1];}}return b1;}function filter(fn,e1){if(e1.length===void 0){return filterObject(fn,e1);}var f1=-1,g1=0,h1=e1.length,i1=[];while(++f1<h1){var j1=e1[f1];if(fn(j1)){i1[g1++]=j1;}}return i1;}var k1=curry(filter);function all(l1,m1){return k1(l1,m1).length===m1.length;}var n1=curry(all);function any(fn,p1){var q1=0;while(q1<p1.length){if(fn(p1[q1])){return!0;}q1++;}return!1;}var r1=curry(any);function allPass(s1,x){if(arguments.length===1){return function(t1){return allPass(s1,t1);};}return!r1(function(u1){return!u1(x);},s1);}function anyPass(v1,x){if(arguments.length===1){return function(w1){return anyPass(v1,w1);};}return r1(function(x1){return x1(x);})(v1);}function append(y1,z1){if(typeof z1==='string'){return''+z1+y1;}var A1=z1.concat();A1.push(y1);return A1;}var B1=curry(append);function both(x,y){return function(C1){return x(C1)&&y(C1);};}var D1=curry(both);function compose(){for(var E1=arguments.length,F1=Array(E1),G1=0;G1<E1;G1++){F1[G1]=arguments[G1];}return function(H1){var I1=F1.slice();while(I1.length>0){H1=I1.pop()(H1);}return H1;};}var J1=typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"?function(K1){return typeof K1;}:function(L1){return L1&&typeof Symbol==="function"&&L1.constructor===Symbol&&L1!==Symbol.prototype?"symbol":typeof L1;},M1=function(){function AwaitValue(N1){this.value=N1;}function AsyncGenerator(O1){var P1,Q1;function send(R1,S1){return new Promise(function(T1,U1){var V1={key:R1,arg:S1,resolve:T1,reject:U1,next:null};if(Q1){Q1=Q1.next=V1;}else{P1=Q1=V1;resume(R1,S1);}});}function resume(W1,X1){try{var Y1=O1[W1](X1),Z1=Y1.value;if(Z1 instanceof AwaitValue){Promise.resolve(Z1.value).then(function(a2){resume("next",a2);},function(b2){resume("throw",b2);});}else{settle(Y1.done?"return":"normal",Y1.value);}}catch(err){settle("throw",err);}}function settle(c2,d2){switch(c2){case"return":P1.resolve({value:d2,done:!0});break;case"throw":P1.reject(d2);break;default:P1.resolve({value:d2,done:!1});break;}P1=P1.next;if(P1){resume(P1.key,P1.arg);}else{Q1=null;}}this._invoke=send;if(typeof O1.return!=="function"){this.return=void 0;}}if(typeof Symbol==="function"&&Symbol.asyncIterator){AsyncGenerator.prototype[Symbol.asyncIterator]=function(){return this;};}AsyncGenerator.prototype.next=function(e2){return this._invoke("next",e2);};AsyncGenerator.prototype.throw=function(f2){return this._invoke("throw",f2);};AsyncGenerator.prototype.return=function(g2){return this._invoke("return",g2);};return{wrap:function(fn){return function(){return new AsyncGenerator(fn.apply(this,arguments));};},await:function(i2){return new AwaitValue(i2);}};}(),toConsumableArray=function(j2){if(Array.isArray(j2)){for(var i=0,k2=Array(j2.length);i<j2.length;i++)k2[i]=j2[i];return k2;}else{return Array.from(j2);}};function type(a){var l2=typeof a==='undefined'?'undefined':J1(a);if(a===null){return'Null';}else if(a===void 0){return'Undefined';}else if(l2==='boolean'){return'Boolean';}else if(l2==='number'){return'Number';}else if(l2==='string'){return'String';}else if(Array.isArray(a)){return'Array';}else if(a instanceof RegExp){return'RegExp';}var m2=a.toString();if(m2.startsWith('async')){return'Async';}else if(m2==='[object Promise]'){return'Promise';}else if(m2.includes('function')||m2.includes('=>')){return'Function';}return'Object';}function equals(a,b){if(arguments.length===1){return function(n2){return equals(a,n2);};}if(a===b){return!0;}var o2=type(a);if(o2!==type(b)){return!1;}if(o2==='Array'){var p2=Array.from(a),q2=Array.from(b);return p2.sort().toString()===q2.sort().toString();}if(o2==='Object'){var r2=Object.keys(a);if(r2.length===Object.keys(b).length){if(r2.length===0){return!0;}var s2=!0;r2.map(function(t2){if(s2){var u2=type(a[t2]),v2=type(b[t2]);if(u2===v2){if(u2==='Object'){if(Object.keys(a[t2]).length===Object.keys(b[t2]).length){if(Object.keys(a[t2]).length!==0){if(!equals(a[t2],b[t2])){s2=!1;}}}else{s2=!1;}}else if(!equals(a[t2],b[t2])){s2=!1;}}else{s2=!1;}}});return s2;}}return!1;}function contains(w2,x2){var y2=-1,z2=!1;while(++y2<x2.length&&!z2){if(equals(x2[y2],w2)){z2=!0;}}return z2;}var A2=curry(contains);function curry$1(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return function(){for(var B2=arguments.length,p=Array(B2),C2=0;C2<B2;C2++){p[C2]=arguments[C2];}return function(o){return o.length>=f.length?f.apply(void 0,toConsumableArray(o)):curry$1(f,o);}([].concat(toConsumableArray(a),p));};}var dec=function(x){return x-1;};function defaultTo(D2,E2){if(arguments.length===1){return function(F2){return defaultTo(D2,F2);};}return E2===void 0||E2===null||Number.isNaN(E2)===!0?D2:E2;}function drop(G2,a){return a.slice(G2);}var H2=curry(drop);function dropLast(I2,a){return a.slice(0,-I2);}var J2=curry(dropLast);function either(x,y){return function(K2){return x(K2)||y(K2);};}var L2=curry(either),inc=function(x){return x+1;};function find(fn,N2){return N2.find(fn);}var O2=curry(find);function findIndex(fn,Q2){var R2=Q2.length,S2=-1;while(++S2<R2){if(fn(Q2[S2])){return S2;}}return-1;}var T2=curry(findIndex);function flatten(U2,V2){V2=V2===void 0?[]:V2;for(var i=0;i<U2.length;i++){if(Array.isArray(U2[i])){flatten(U2[i],V2);}else{V2.push(U2[i]);}}return V2;}function flipExport(fn){return function(){for(var X2=arguments.length,Y2=Array(X2),Z2=0;Z2<X2;Z2++){Y2[Z2]=arguments[Z2];}if(Y2.length===1){return function(a3){return fn(a3,Y2[0]);};}else if(Y2.length===2){return fn(Y2[1],Y2[0]);}return void 0;};}function flip(fn){return flipExport(fn);}function tap(fn,d3){fn(d3);return d3;}var e3=curry(tap);function mapObject(fn,g3){var h3={};for(var i3 in g3){h3[i3]=fn(g3[i3]);}return h3;}function map(fn,k3){if(k3.length===void 0){return mapObject(fn,k3);}var l3=-1,m3=k3.length,n3=Array(m3);while(++l3<m3){n3[l3]=fn(k3[l3]);}return n3;}var o3=curry(map);function forEach(fn,q3){return o3(e3(fn),q3);}var r3=curry(forEach);function has(s3,t3){return t3[s3]!==void 0;}var u3=curry(has);function head(a){if(typeof a==='string'){return a[0]||'';}return a[0];}function ifElse(v3,w3,x3){return function(y3){if(v3(y3)===!0){return w3(y3);}return x3(y3);};}var z3=curryThree(ifElse);function isNil(x){return x===void 0||x===null;}function indexOf(x,A3){var B3=-1,C3=A3.length;while(++B3<C3){if(A3[B3]===x){return B3;}}return-1;}var D3=curry(indexOf);function baseSlice(E3,F3,G3){var H3=-1,I3=E3.length;G3=G3>I3?I3:G3;if(G3<0){G3+=I3;}I3=F3>G3?0:G3-F3>>>0;F3>>>=0;var J3=Array(I3);while(++H3<I3){J3[H3]=E3[H3+F3];}return J3;}function init(a){if(typeof a==='string'){return a.slice(0,-1);}return a.length?baseSlice(a,0,-1):[];}function last(a){if(typeof a==='string'){return a[a.length-1]||'';}return a[a.length-1];}function match(K3,L3){var M3=L3.match(K3);return M3===null?[]:M3;}var N3=curry(match);function merge(O3,P3){return Object.assign({},O3,P3);}var Q3=curry(merge);function omit(R3,S3){if(arguments.length===1){return function(T3){return omit(R3,T3);};}if(S3===null||S3===void 0){return void 0;}if(typeof R3==='string'){R3=R3.split(',');}var U3={};for(var V3 in S3){if(!R3.includes(V3)){U3[V3]=S3[V3];}}return U3;}function partialCurry(fn){var X3=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(Y3){if(type(fn)==='Async'||type(fn)==='Promise'){return new Promise(function(Z3,a4){fn(Q3(Y3,X3)).then(Z3).catch(a4);});}return fn(Q3(Y3,X3));};}function path(b4,c4){if(arguments.length===1){return function(d4){return path(b4,d4);};}if(c4===null||c4===void 0){return void 0;}var e4=c4,f4=0;if(typeof b4==='string'){b4=b4.split('.');}while(f4<b4.length){if(e4===null||e4===void 0){return void 0;}e4=e4[b4[f4]];f4++;}return e4;}function pathOr(g4,h4,i4){return defaultTo(g4,path(h4,i4));}var j4=curry$1(pathOr);function pick(k4,l4){if(arguments.length===1){return function(m4){return pick(k4,m4);};}if(l4===null||l4===void 0){return void 0;}if(typeof k4==='string'){k4=k4.split(',');}var n4={},o4=0;while(o4<k4.length){if(k4[o4]in l4){n4[k4[o4]]=l4[k4[o4]];}o4++;}return n4;}function pipe(){for(var p4=arguments.length,q4=Array(p4),r4=0;r4<p4;r4++){q4[r4]=arguments[r4];}return compose.apply(void 0,toConsumableArray(q4.reverse()));}function pluck(s4,t4){var u4=[];o3(function(v4){if(!(v4[s4]===void 0)){u4.push(v4[s4]);}},t4);return u4;}var w4=curry(pluck);function prepend(x4,y4){if(typeof y4==='string'){return''+x4+y4;}var z4=y4.concat();z4.unshift(x4);return z4;}var A4=curry(prepend);function prop(B4,C4){return C4[B4];}var D4=curry(prop);function propEq(E4,F4,G4){return G4[E4]===F4;}var H4=curryThree(propEq);function range(I4,J4){for(var K4=[],i=I4;i<J4;i++){K4.push(i);}return K4;}function reduce(fn,M4,N4){return N4.reduce(fn,M4);}var O4=curryThree(reduce);function reject(P4,Q4){return k1(function(x){return!P4(x);},Q4);}var R4=curry(reject);function repeat(a,S4){var T4=Array(S4);return T4.fill(a);}var U4=curry(repeat);function replace(V4,W4,X4){return X4.replace(V4,W4);}var Y4=curryThree(replace);function reverse(Z4){var a5=Z4.concat();return a5.reverse();}function sort(fn,c5){var d5=c5.concat();return d5.sort(fn);}var e5=curry(sort);function sortBy(fn,g5){var h5=g5.concat();return h5.sort(function(a,b){var i5=fn(a),j5=fn(b);return i5<j5?-1:i5>j5?1:0;});}var k5=curry(sortBy);function split(l5,m5){return m5.split(l5);}var n5=curry(split);function splitEvery(o5,a){o5=o5>1?o5:1;var p5=[],q5=0;while(q5<a.length){p5.push(a.slice(q5,q5+=o5));}return p5;}var r5=curry(splitEvery);function tail(s5){return H2(1,s5);}function take(t5,a){if(typeof a==='string'){return a.slice(0,t5);}return baseSlice(a,0,t5);}var u5=curry(take);function takeLast(v5,a){var w5=a.length;v5=v5>w5?w5:v5;if(typeof a==='string'){return a.slice(w5-v5);}v5=w5-v5;return baseSlice(a,v5,w5);}var x5=curry(takeLast);function test(y5,z5){return z5.search(y5)!==-1;}var A5=curry(test);function times(fn,n){return o3(fn,range(0,n));}var C5=curry(times);function typedDefaultTo(D5,E5){if(arguments.length===1){return function(F5){return typedDefaultTo(D5,F5);};}return type(E5)!==type(D5)?D5:E5;}function typedPathOr(G5,H5,I5){return typedDefaultTo(G5,path(H5,I5));}var J5=curry$1(typedPathOr);function uniq(K5){var L5=-1,M5=[];while(++L5<K5.length){var N5=K5[L5];if(!A2(N5,M5)){M5.push(N5);}}return M5;}function update(O5,P5,Q5){var R5=Q5.concat();return R5.fill(P5,O5,O5+1);}var S5=curryThree(update);function values(T5){var U5=[];for(var V5 in T5){U5.push(T5[V5]);}return U5;}function without(W5,X5){return O4(function(Y5,Z5){return!A2(Z5,W5)?Y5.concat(Z5):Y5;},[],X5);}var a6=v('+'),always=function always(x){return function(){return x;};},complement=function complement(fn){return function(c6){return!fn(c6);};},d6=oppositeHelper('concat'),e6=v('/'),f6=helper('endsWith'),F=function F(){return!1;},identity=function identity(x){return x;},g6=helper('includes'),h6=helper('join'),i6=helper('lastIndexOf'),j6=propHelper('length'),k6=v('%'),l6=v('*'),not=function not(x){return!x;},m6=helper('padEnd'),n6=helper('padStart'),o6=helper('startsWith'),p6=v('-'),T=function T(){return!0;},q6=simpleHelper('toLowerCase'),r6=simpleHelper('toString'),s6=simpleHelper('toUpperCase'),t6=simpleHelper('trim');e.add=a6;e.always=always;e.complement=complement;e.concat=d6;e.divide=e6;e.endsWith=f6;e.F=F;e.identity=identity;e.includes=g6;e.join=h6;e.lastIndexOf=i6;e.length=j6;e.modulo=k6;e.multiply=l6;e.not=not;e.padEnd=m6;e.padStart=n6;e.startsWith=o6;e.subtract=p6;e.T=T;e.toLower=q6;e.toString=r6;e.toUpper=s6;e.trim=t6;e.addIndex=addIndex;e.adjust=Y;e.all=n1;e.allPass=allPass;e.anyPass=anyPass;e.any=r1;e.append=B1;e.both=D1;e.compose=compose;e.contains=A2;e.curry=curry$1;e.dec=dec;e.defaultTo=defaultTo;e.drop=H2;e.dropLast=J2;e.either=L2;e.inc=inc;e.equals=equals;e.filter=k1;e.find=O2;e.findIndex=T2;e.flatten=flatten;e.flip=flip;e.forEach=r3;e.has=u3;e.head=head;e.ifElse=z3;e.isNil=isNil;e.indexOf=D3;e.init=init;e.last=last;e.map=o3;e.match=N3;e.merge=Q3;e.omit=omit;e.partialCurry=partialCurry;e.path=path;e.pathOr=j4;e.pick=pick;e.pipe=pipe;e.pluck=w4;e.prepend=A4;e.prop=D4;e.propEq=H4;e.range=range;e.reduce=O4;e.reject=R4;e.repeat=U4;e.replace=Y4;e.reverse=reverse;e.sort=e5;e.sortBy=k5;e.split=n5;e.splitEvery=r5;e.tap=e3;e.tail=tail;e.take=u5;e.takeLast=x5;e.test=A5;e.times=C5;e.type=type;e.typedPathOr=J5;e.typedDefaultTo=typedDefaultTo;e.uniq=uniq;e.update=S5;e.values=values;e.without=without;Object.defineProperty(e,'__esModule',{value:!0});}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1680608
223
7243
1498