Socket
Socket
Sign inDemoInstall

rambda

Package Overview
Dependencies
Maintainers
1
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rambda - npm Package Compare versions

Comparing version 0.7.5 to 0.7.6

20

__tests__/add.js
const R = require("../rambda")
describe("add", () => {
it("without curring", () => {
expect(
R.add(2, 3)
).toEqual(5)
})
test("add without curring", () => {
expect(
R.add(2, 3)
).toEqual(5)
})
it("with curring", () => {
expect(
R.add(7)(10)
).toEqual(17)
})
test("add with curring", () => {
expect(
R.add(7)(10)
).toEqual(17)
})
const R = require("../rambda")
describe("path", () => {
it("works with string instead of array", () => {
expect(
R.path(
"foo.bar.baz"
)({ foo : { bar : { baz : "yes" } } })
).toEqual("yes")
})
it("", () => {
expect(
R.path(
[ "foo", "bar", "baz" ]
)({ foo : { bar : { baz : "yes" } } })
).toEqual("yes")
test("works with undefined", () => {
expect(
R.path("foo.bar.baz",undefined)
).toEqual(undefined)
})
expect(
R.path(
[ "foo", "bar", "baz" ]
)(null)
).toEqual(undefined)
test("works with string instead of array", () => {
expect(
R.path(
"foo.bar.baz"
)({
foo: {
bar: {
baz: "yes"
}
}
})
).toEqual("yes")
})
expect(
R.path(
[ "foo", "bar", "baz" ]
)({ foo : { bar : "baz" } })
).toEqual(undefined)
})
test("", () => {
expect(
R.path(
["foo", "bar", "baz"]
)({
foo: {
bar: {
baz: "yes"
}
}
})
).toEqual("yes")
expect(
R.path(
["foo", "bar", "baz"]
)(null)
).toEqual(undefined)
expect(
R.path(
["foo", "bar", "baz"]
)({
foo: {
bar: "baz"
}
})
).toEqual(undefined)
})

@@ -33,3 +33,3 @@ [![Build Status](https://img.shields.io/travis/selfrefactor/rambda.svg)](https://travis-ci.org/selfrefactor/rambda)

```
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.7.4/webVersion.js
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.7.5/webVersion.js
```

@@ -680,2 +680,3 @@

- 0.7.5 Fix incorrect implementation of `R.omit`
- 0.7.4 [issue #13](https://github.com/selfrefactor/rambda/issues/13) - Fix `R.curry`, which used to return incorrectly `function` when called with more arguments

@@ -682,0 +683,0 @@ - 0.7.3 Close [issue #9](https://github.com/selfrefactor/rambda/issues/9) - Compile to `es2015`; also [PR #10](https://github.com/selfrefactor/rambda/pull/10) - add `R.addIndex` to the API

@@ -1,2 +0,2 @@

const R = require("../")
const R = require("../rambda")
const Ramda = require("ramda")

@@ -3,0 +3,0 @@ const _ = require("lodash")

@@ -1,1 +0,1 @@

module.exports=function(d){var e={};function __webpack_require__(g){if(e[g]){return e[g].exports;}var h=e[g]={i:g,l:!1,exports:{}};d[g].call(h.exports,h,h.exports,__webpack_require__);h.l=!0;return h.exports;}__webpack_require__.m=d;__webpack_require__.c=e;__webpack_require__.i=function(j){return j;};__webpack_require__.d=function(k,l,m){if(!__webpack_require__.o(k,l)){Object.defineProperty(k,l,{configurable:!1,enumerable:!0,get:m});}};__webpack_require__.n=function(n){var q=n&&n.__esModule?function getDefault(){return n['default'];}:function getModuleExports(){return n;};__webpack_require__.d(q,'a',q);return q;};__webpack_require__.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=55);}([function(t,u,v){"use strict";function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}var w=a.toString();if(w.startsWith("async")){return"Async";}else if(w==="[object Promise]"){return"Promise";}else if(w.includes("function")||w.includes("=>")){return"Function";}return"Object";}t.exports=type;},function(x,y,z){"use strict";function baseSlice(A,B,C){var D=-1,E=A.length;C=C>E?E:C;if(C<0){C+=E;}E=B>C?0:C-B>>>0;B>>>=0;var F=Array(E);while(++D<E){F[D]=A[D+B];}return F;}x.exports=baseSlice;},function(G,H,I){"use strict";var J=I(4);function contains(K,L){if(L===void 0){return function(M){return contains(K,M);};}var N=-1,O=!1;while(++N<L.length&&!O){if(J(L[N],K)){O=!0;}}return O;}G.exports=contains;},function(P,Q,R){"use strict";function drop(S,a){if(a===void 0){return function(T){return drop(S,T);};}return a.slice(S);}P.exports=drop;},function(U,V,W){"use strict";var X=W(0);function equals(a,b){if(b===void 0){return function(Y){return equals(a,Y);};}else if(a===b){return a!==0||1/a===1/b;}var Z=X(a);if(Z!==X(b)){return!1;}if(Z==="Array"){var a1=Array.from(a),b1=Array.from(b);return a1.sort().toString()===b1.sort().toString();}if(Z==="Object"){var c1=Object.keys(a);if(c1.length===Object.keys(b).length){if(c1.length===0){return!0;}var d1=!0;c1.map(function(e1){if(d1){var f1=X(a[e1]),g1=X(b[e1]);if(f1===g1){if(f1==="Object"){if(Object.keys(a[e1]).length===Object.keys(b[e1]).length){if(Object.keys(a[e1]).length!==0){if(!equals(a[e1],b[e1])){d1=!1;}}}else{d1=!1;}}else if(!equals(a[e1],b[e1])){d1=!1;}}else{d1=!1;}}});return d1;}}return!1;}U.exports=equals;},function(h1,i1,j1){"use strict";function map(fn,l1){if(l1===void 0){return function(m1){return map(fn,m1);};}var n1=-1,o1=l1.length,p1=Array(o1);while(++n1<o1){p1[n1]=fn(l1[n1]);}return p1;}h1.exports=map;},function(q1,r1,s1){"use strict";function merge(t1,u1){if(u1===void 0){return function(v1){return merge(t1,v1);};}return Object.assign({},t1,u1);}q1.exports=merge;},function(w1,x1,y1){"use strict";function add(a,b){if(b===void 0){return function(c){return add(a,c);};}return a+b;}w1.exports=add;},function(z1,A1,B1){"use strict";function addIndex(C1){return function(fn){for(var E1=0,newFn=function newFn(){for(var F1=arguments.length,G1=Array(F1),H1=0;H1<F1;H1++){G1[H1]=arguments[H1];}return fn.apply(null,[].concat(G1,[E1++]));},I1=arguments.length,J1=Array(I1>1?I1-1:0),K1=1;K1<I1;K1++){J1[K1-1]=arguments[K1];}return C1.apply(null,[newFn].concat(J1));};}z1.exports=addIndex;},function(L1,M1,N1){"use strict";function adjust(fn,P1,Q1){if(P1===void 0){return function(R1,S1){return adjust(fn,R1,S1);};}else if(Q1===void 0){return function(T1){return adjust(fn,P1,T1);};}var U1=Q1.concat();return U1.map(function(V1,W1){if(W1===P1){return fn(Q1[P1]);}return V1;});}L1.exports=adjust;},function(X1,Y1,Z1){"use strict";function any(fn,b2){if(b2===void 0){return function(c2){return any(fn,c2);};}var d2=0;while(d2<b2.length){if(fn(b2[d2])){return!0;}d2++;}return!1;}X1.exports=any;},function(e2,f2,g2){"use strict";function append(h2,i2){if(i2===void 0){return function(j2){return append(h2,j2);};}var k2=i2.concat();k2.push(h2);return k2;}e2.exports=append;},function(l2,m2,n2){"use strict";var compose=function compose(){for(var o2=arguments.length,p2=Array(o2),q2=0;q2<o2;q2++){p2[q2]=arguments[q2];}return function(r2){var s2=p2.slice();while(s2.length>0){r2=s2.pop()(r2);}return r2;};};l2.exports=compose;},function(t2,u2,v2){"use strict";function _toConsumableArray(w2){if(Array.isArray(w2)){for(var i=0,x2=Array(w2.length);i<w2.length;i++){x2[i]=w2[i];}return x2;}else{return Array.from(w2);}}function curry(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return function(){for(var y2=arguments.length,p=Array(y2),z2=0;z2<y2;z2++){p[z2]=arguments[z2];}return function(o){return o.length>=f.length?f.apply(void 0,_toConsumableArray(o)):curry(f,o);}([].concat(_toConsumableArray(a),p));};}t2.exports=curry;},function(A2,B2,C2){"use strict";var D2=C2(0);function defaultTo(E2,F2){if(arguments.length===1){return function(G2){return defaultTo(E2,G2);};}return F2===void 0||!(D2(F2)===D2(E2))?E2:F2;}A2.exports=defaultTo;},function(H2,I2,J2){"use strict";function dropLast(K2,a){if(a===void 0){return function(L2){return dropLast(K2,L2);};}return a.slice(0,-K2);}H2.exports=dropLast;},function(M2,N2,O2){"use strict";function filter(fn,Q2){if(Q2===void 0){return function(R2){return filter(fn,R2);};}var S2=-1,T2=0,U2=Q2.length,V2=[];while(++S2<U2){var W2=Q2[S2];if(fn(W2)){V2[T2++]=W2;}}return V2;}M2.exports=filter;},function(X2,Y2,Z2){"use strict";function find(fn,b3){if(b3===void 0){return function(c3){return find(fn,c3);};}return b3.find(fn);}X2.exports=find;},function(d3,e3,f3){"use strict";function findIndex(fn,h3){if(h3===void 0){return function(i3){return findIndex(fn,i3);};}var j3=h3.length,k3=-1;while(++k3<j3){if(fn(h3[k3])){return k3;}}return-1;}d3.exports=findIndex;},function(l3,m3,n3){"use strict";function flatten(o3,p3){p3=p3===void 0?[]:p3;for(var i=0;i<o3.length;i++){if(Array.isArray(o3[i])){flatten(o3[i],p3);}else{p3.push(o3[i]);}}return p3;}l3.exports=flatten;},function(q3,r3,s3){"use strict";function has(t3,u3){if(u3===void 0){return function(v3){return has(t3,v3);};}return u3[t3]!==void 0;}q3.exports=has;},function(w3,x3,y3){"use strict";function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}w3.exports=head;},function(z3,A3,B3){"use strict";function indexOf(C3,D3){if(D3===void 0){return function(E3){return indexOf(C3,E3);};}var F3=-1,G3=D3.length;while(++F3<G3){if(D3[F3]===C3){return F3;}}return-1;}z3.exports=indexOf;},function(H3,I3,J3){"use strict";var K3=J3(1);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?K3(a,0,-1):[];}H3.exports=init;},function(L3,M3,N3){"use strict";function join(O3,P3){if(P3===void 0){return function(Q3){return join(O3,Q3);};}return P3.join(O3);}L3.exports=join;},function(R3,S3,T3){"use strict";function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}R3.exports=last;},function(U3,V3,W3){"use strict";function length(X3){return X3.length;}U3.exports=length;},function(Y3,Z3,a4){"use strict";function match(b4,c4){if(c4===void 0){return function(d4){return match(b4,d4);};}var e4=c4.match(b4);return e4===null?[]:e4;}Y3.exports=match;},function(f4,g4,h4){"use strict";function omit(i4,j4){if(j4===void 0){return function(k4){return omit(i4,k4);};}var l4={};for(var m4 in j4){if(!i4.includes(m4)){l4[m4]=j4[m4];}}return l4;}f4.exports=omit;},function(n4,o4,p4){"use strict";var q4=p4(0),r4=p4(6);function curry(fn){var t4=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(u4){if(q4(fn)==="Async"){return new Promise(function(v4,w4){fn(r4(u4,t4)).then(v4).catch(w4);});}return fn(r4(u4,t4));};}n4.exports=curry;},function(x4,y4,z4){"use strict";function path(A4,B4){if(B4===void 0){return function(C4){return path(A4,C4);};}var D4=B4,E4=0;if(typeof A4==="string"){A4=A4.split(".");}while(E4<A4.length){if(D4===null){return void 0;}D4=D4[A4[E4]];E4++;}return D4;}x4.exports=path;},function(F4,G4,H4){"use strict";function pick(I4,J4){if(J4===void 0){return function(K4){return pick(I4,K4);};}var L4={},M4=0;while(M4<I4.length){if(I4[M4]in J4){L4[I4[M4]]=J4[I4[M4]];}M4++;}return L4;}F4.exports=pick;},function(N4,O4,P4){"use strict";var Q4=P4(5);function pluck(R4,S4){if(S4===void 0){return function(T4){return pluck(R4,T4);};}var U4=[];Q4(function(V4){if(!(V4[R4]===void 0)){U4.push(V4[R4]);}},S4);return U4;}N4.exports=pluck;},function(W4,X4,Y4){"use strict";function prepend(Z4,a5){if(a5===void 0){return function(b5){return prepend(Z4,b5);};}var c5=a5.concat();c5.unshift(Z4);return c5;}W4.exports=prepend;},function(d5,e5,f5){"use strict";function prop(g5,h5){if(h5===void 0){return function(i5){return prop(g5,i5);};}return h5[g5];}d5.exports=prop;},function(j5,k5,l5){"use strict";function propEq(m5,n5,o5){if(n5===void 0){return function(p5,q5){return propEq(m5,p5,q5);};}else if(o5===void 0){return function(r5){return propEq(m5,n5,r5);};}return o5[m5]===n5;}j5.exports=propEq;},function(s5,t5,u5){"use strict";function range(v5,w5){for(var x5=[],i=v5;i<w5;i++){x5.push(i);}return x5;}s5.exports=range;},function(y5,z5,A5){"use strict";function reduce(fn,C5,D5){if(C5===void 0){return function(E5,F5){return reduce(fn,E5,F5);};}else if(D5===void 0){return function(G5){return reduce(fn,C5,G5);};}return D5.reduce(fn,C5);}y5.exports=reduce;},function(H5,I5,J5){"use strict";function repeat(a,K5){if(K5===void 0){return function(L5){return repeat(a,L5);};}var M5=Array(K5);return M5.fill(a);}H5.exports=repeat;},function(N5,O5,P5){"use strict";function replace(Q5,R5,S5){if(R5===void 0){return function(T5,U5){return replace(Q5,T5,U5);};}else if(S5===void 0){return function(V5){return replace(Q5,R5,V5);};}return S5.replace(Q5,R5);}N5.exports=replace;},function(W5,X5,Y5){"use strict";function sort(fn,a6){if(a6===void 0){return function(b6){return sort(fn,b6);};}var c6=a6.concat();return c6.sort(fn);}W5.exports=sort;},function(d6,e6,f6){"use strict";function sortBy(fn,h6){if(h6===void 0){return function(i6){return sortBy(fn,i6);};}var j6=h6.concat();return j6.sort(function(a,b){var k6=fn(a),l6=fn(b);return k6<l6?-1:k6>l6?1:0;});}d6.exports=sortBy;},function(m6,n6,o6){"use strict";function split(p6,q6){if(q6===void 0){return function(r6){return split(p6,r6);};}return q6.split(p6);}m6.exports=split;},function(s6,t6,u6){"use strict";function splitEvery(v6,a){if(a===void 0){return function(w6){return splitEvery(v6,w6);};}v6=v6>1?v6:1;var x6=[],y6=0;while(y6<a.length){x6.push(a.slice(y6,y6+=v6));}return x6;}s6.exports=splitEvery;},function(z6,A6,B6){"use strict";function subtract(a,b){if(b===void 0){return function(C6){return subtract(a,C6);};}return a-b;}z6.exports=subtract;},function(D6,E6,F6){"use strict";var G6=F6(3);function tail(H6){return G6(1,H6);}D6.exports=tail;},function(I6,J6,K6){"use strict";var L6=K6(1);function take(M6,a){if(a===void 0){return function(N6){return take(M6,N6);};}else if(typeof a==="string"){return a.slice(0,M6);}return L6(a,0,M6);}I6.exports=take;},function(O6,P6,Q6){"use strict";var R6=Q6(1);function takeLast(S6,a){if(a===void 0){return function(T6){return takeLast(S6,T6);};}var U6=a.length;S6=S6>U6?U6:S6;if(typeof a==="string"){return a.slice(U6-S6);}S6=U6-S6;return R6(a,S6,U6);}O6.exports=takeLast;},function(V6,W6,X6){"use strict";function test(Y6,Z6){if(Z6===void 0){return function(a7){return test(Y6,a7);};}return Z6.search(Y6)===-1?!1:!0;}V6.exports=test;},function(b7,c7,d7){"use strict";function toLower(e7){return e7.toLowerCase();}b7.exports=toLower;},function(f7,g7,h7){"use strict";function toUpper(i7){return i7.toUpperCase();}f7.exports=toUpper;},function(j7,k7,l7){"use strict";function trim(m7){return m7.trim();}j7.exports=trim;},function(n7,o7,p7){"use strict";var q7=p7(2);function uniq(r7){var s7=-1,t7=[];while(++s7<r7.length){var u7=r7[s7];if(!q7(u7,t7)){t7.push(u7);}}return t7;}n7.exports=uniq;},function(v7,w7,x7){"use strict";function update(y7,z7,A7){if(z7===void 0){return function(B7,C7){return update(y7,B7,C7);};}else if(A7===void 0){return function(D7){return update(y7,z7,D7);};}var E7=A7.concat();return E7.fill(z7,y7,y7+1);}v7.exports=update;},function(F7,G7,H7){"use strict";function values(I7){var J7=[];for(key in I7){J7.push(I7[key]);}return J7;}F7.exports=values;},function(K7,L7,M7){"use strict";L7.add=M7(7);L7.addIndex=M7(8);L7.any=M7(10);L7.adjust=M7(9);L7.append=M7(11);L7.compose=M7(12);L7.contains=M7(2);L7.curry=M7(13);L7.defaultTo=M7(14);L7.drop=M7(3);L7.dropLast=M7(15);L7.equals=M7(4);L7.filter=M7(16);L7.find=M7(17);L7.findIndex=M7(18);L7.flatten=M7(19);L7.has=M7(20);L7.head=M7(21);L7.indexOf=M7(22);L7.init=M7(23);L7.join=M7(24);L7.last=M7(25);L7.length=M7(26);L7.map=M7(5);L7.match=M7(27);L7.merge=M7(6);L7.omit=M7(28);L7.path=M7(30);L7.partialCurry=M7(29);L7.pick=M7(31);L7.pluck=M7(32);L7.prepend=M7(33);L7.prop=M7(34);L7.propEq=M7(35);L7.range=M7(36);L7.repeat=M7(38);L7.replace=M7(39);L7.sort=M7(40);L7.sortBy=M7(41);L7.split=M7(42);L7.splitEvery=M7(43);L7.subtract=M7(44);L7.tail=M7(45);L7.take=M7(46);L7.takeLast=M7(47);L7.test=M7(48);L7.toLower=M7(49);L7.toUpper=M7(50);L7.trim=M7(51);L7.type=M7(0);L7.uniq=M7(52);L7.update=M7(53);L7.values=M7(54);L7.reduce=M7(37);}]);
module.exports=function(d){var e={};function __webpack_require__(g){if(e[g]){return e[g].exports;}var h=e[g]={i:g,l:!1,exports:{}};d[g].call(h.exports,h,h.exports,__webpack_require__);h.l=!0;return h.exports;}__webpack_require__.m=d;__webpack_require__.c=e;__webpack_require__.i=function(j){return j;};__webpack_require__.d=function(k,l,m){if(!__webpack_require__.o(k,l)){Object.defineProperty(k,l,{configurable:!1,enumerable:!0,get:m});}};__webpack_require__.n=function(n){var q=n&&n.__esModule?function getDefault(){return n['default'];}:function getModuleExports(){return n;};__webpack_require__.d(q,'a',q);return q;};__webpack_require__.o=function(r,s){return Object.prototype.hasOwnProperty.call(r,s);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=55);}([function(t,u,v){"use strict";function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}var w=a.toString();if(w.startsWith("async")){return"Async";}else if(w==="[object Promise]"){return"Promise";}else if(w.includes("function")||w.includes("=>")){return"Function";}return"Object";}t.exports=type;},function(x,y,z){"use strict";function _toConsumableArray(A){if(Array.isArray(A)){for(var i=0,B=Array(A.length);i<A.length;i++){B[i]=A[i];}return B;}else{return Array.from(A);}}function curry(f){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return function(){for(var C=arguments.length,p=Array(C),D=0;D<C;D++){p[D]=arguments[D];}return function(o){return o.length>=f.length?f.apply(void 0,_toConsumableArray(o)):curry(f,o);}([].concat(_toConsumableArray(a),p));};}x.exports=curry;},function(E,F,G){"use strict";function baseSlice(H,I,J){var K=-1,L=H.length;J=J>L?L:J;if(J<0){J+=L;}L=I>J?0:J-I>>>0;I>>>=0;var M=Array(L);while(++K<L){M[K]=H[K+I];}return M;}E.exports=baseSlice;},function(N,O,P){"use strict";var Q=P(5);function contains(R,S){if(S===void 0){return function(T){return contains(R,T);};}var U=-1,V=!1;while(++U<S.length&&!V){if(Q(S[U],R)){V=!0;}}return V;}N.exports=contains;},function(W,X,Y){"use strict";function drop(Z,a){if(a===void 0){return function(a1){return drop(Z,a1);};}return a.slice(Z);}W.exports=drop;},function(b1,c1,d1){"use strict";var e1=d1(0);function equals(a,b){if(b===void 0){return function(f1){return equals(a,f1);};}else if(a===b){return a!==0||1/a===1/b;}var g1=e1(a);if(g1!==e1(b)){return!1;}if(g1==="Array"){var h1=Array.from(a),i1=Array.from(b);return h1.sort().toString()===i1.sort().toString();}if(g1==="Object"){var j1=Object.keys(a);if(j1.length===Object.keys(b).length){if(j1.length===0){return!0;}var k1=!0;j1.map(function(l1){if(k1){var m1=e1(a[l1]),n1=e1(b[l1]);if(m1===n1){if(m1==="Object"){if(Object.keys(a[l1]).length===Object.keys(b[l1]).length){if(Object.keys(a[l1]).length!==0){if(!equals(a[l1],b[l1])){k1=!1;}}}else{k1=!1;}}else if(!equals(a[l1],b[l1])){k1=!1;}}else{k1=!1;}}});return k1;}}return!1;}b1.exports=equals;},function(o1,p1,q1){"use strict";function map(fn,s1){if(s1===void 0){return function(t1){return map(fn,t1);};}var u1=-1,v1=s1.length,w1=Array(v1);while(++u1<v1){w1[u1]=fn(s1[u1]);}return w1;}o1.exports=map;},function(x1,y1,z1){"use strict";function merge(A1,B1){if(B1===void 0){return function(C1){return merge(A1,C1);};}return Object.assign({},A1,B1);}x1.exports=merge;},function(D1,E1,F1){"use strict";function add(a,b){if(b===void 0){return function(c){return add(a,c);};}return a+b;}D1.exports=add;},function(G1,H1,I1){"use strict";function addIndex(J1){return function(fn){for(var L1=0,newFn=function newFn(){for(var M1=arguments.length,N1=Array(M1),O1=0;O1<M1;O1++){N1[O1]=arguments[O1];}return fn.apply(null,[].concat(N1,[L1++]));},P1=arguments.length,Q1=Array(P1>1?P1-1:0),R1=1;R1<P1;R1++){Q1[R1-1]=arguments[R1];}return J1.apply(null,[newFn].concat(Q1));};}G1.exports=addIndex;},function(S1,T1,U1){"use strict";var V1=U1(1);function adjust(fn,X1,Y1){if(X1===void 0){return function(Z1,a2){return adjust(fn,Z1,a2);};}else if(Y1===void 0){return function(b2){return adjust(fn,X1,b2);};}var c2=Y1.concat();return c2.map(function(d2,e2){if(e2===X1){return fn(Y1[X1]);}return d2;});}S1.exports=adjust;},function(f2,g2,h2){"use strict";function any(fn,j2){if(j2===void 0){return function(k2){return any(fn,k2);};}var l2=0;while(l2<j2.length){if(fn(j2[l2])){return!0;}l2++;}return!1;}f2.exports=any;},function(m2,n2,o2){"use strict";function append(p2,q2){if(q2===void 0){return function(r2){return append(p2,r2);};}var s2=q2.concat();s2.push(p2);return s2;}m2.exports=append;},function(t2,u2,v2){"use strict";var compose=function compose(){for(var w2=arguments.length,x2=Array(w2),y2=0;y2<w2;y2++){x2[y2]=arguments[y2];}return function(z2){var A2=x2.slice();while(A2.length>0){z2=A2.pop()(z2);}return z2;};};t2.exports=compose;},function(B2,C2,D2){"use strict";var E2=D2(0);function defaultTo(F2,G2){if(arguments.length===1){return function(H2){return defaultTo(F2,H2);};}return G2===void 0||!(E2(G2)===E2(F2))?F2:G2;}B2.exports=defaultTo;},function(I2,J2,K2){"use strict";function dropLast(L2,a){if(a===void 0){return function(M2){return dropLast(L2,M2);};}return a.slice(0,-L2);}I2.exports=dropLast;},function(N2,O2,P2){"use strict";function filter(fn,R2){if(R2===void 0){return function(S2){return filter(fn,S2);};}var T2=-1,U2=0,V2=R2.length,W2=[];while(++T2<V2){var X2=R2[T2];if(fn(X2)){W2[U2++]=X2;}}return W2;}N2.exports=filter;},function(Y2,Z2,a3){"use strict";function find(fn,c3){if(c3===void 0){return function(d3){return find(fn,d3);};}return c3.find(fn);}Y2.exports=find;},function(e3,f3,g3){"use strict";function findIndex(fn,i3){if(i3===void 0){return function(j3){return findIndex(fn,j3);};}var k3=i3.length,l3=-1;while(++l3<k3){if(fn(i3[l3])){return l3;}}return-1;}e3.exports=findIndex;},function(m3,n3,o3){"use strict";function flatten(p3,q3){q3=q3===void 0?[]:q3;for(var i=0;i<p3.length;i++){if(Array.isArray(p3[i])){flatten(p3[i],q3);}else{q3.push(p3[i]);}}return q3;}m3.exports=flatten;},function(r3,s3,t3){"use strict";function has(u3,v3){if(v3===void 0){return function(w3){return has(u3,w3);};}return v3[u3]!==void 0;}r3.exports=has;},function(x3,y3,z3){"use strict";function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}x3.exports=head;},function(A3,B3,C3){"use strict";function indexOf(D3,E3){if(E3===void 0){return function(F3){return indexOf(D3,F3);};}var G3=-1,H3=E3.length;while(++G3<H3){if(E3[G3]===D3){return G3;}}return-1;}A3.exports=indexOf;},function(I3,J3,K3){"use strict";var L3=K3(2);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?L3(a,0,-1):[];}I3.exports=init;},function(M3,N3,O3){"use strict";function join(P3,Q3){if(Q3===void 0){return function(R3){return join(P3,R3);};}return Q3.join(P3);}M3.exports=join;},function(S3,T3,U3){"use strict";function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}S3.exports=last;},function(V3,W3,X3){"use strict";function length(Y3){return Y3.length;}V3.exports=length;},function(Z3,a4,b4){"use strict";function match(c4,d4){if(d4===void 0){return function(e4){return match(c4,e4);};}var f4=d4.match(c4);return f4===null?[]:f4;}Z3.exports=match;},function(g4,h4,i4){"use strict";function omit(j4,k4){if(k4===void 0){return function(l4){return omit(j4,l4);};}var m4={};for(var n4 in k4){if(!j4.includes(n4)){m4[n4]=k4[n4];}}return m4;}g4.exports=omit;},function(o4,p4,q4){"use strict";var r4=q4(0),s4=q4(7);function curry(fn){var u4=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return function(v4){if(r4(fn)==="Async"){return new Promise(function(w4,x4){fn(s4(v4,u4)).then(w4).catch(x4);});}return fn(s4(v4,u4));};}o4.exports=curry;},function(y4,z4,A4){"use strict";var B4=A4(0),C4=A4(1);function path(D4,E4){if(!(B4(E4)==="Object")){return void 0;}var F4=E4,G4=0;if(typeof D4==="string"){D4=D4.split(".");}while(G4<D4.length){if(F4===null){return void 0;}F4=F4[D4[G4]];G4++;}return F4;}y4.exports=C4(path);},function(H4,I4,J4){"use strict";function pick(K4,L4){if(L4===void 0){return function(M4){return pick(K4,M4);};}var N4={},O4=0;while(O4<K4.length){if(K4[O4]in L4){N4[K4[O4]]=L4[K4[O4]];}O4++;}return N4;}H4.exports=pick;},function(P4,Q4,R4){"use strict";var S4=R4(6);function pluck(T4,U4){if(U4===void 0){return function(V4){return pluck(T4,V4);};}var W4=[];S4(function(X4){if(!(X4[T4]===void 0)){W4.push(X4[T4]);}},U4);return W4;}P4.exports=pluck;},function(Y4,Z4,a5){"use strict";function prepend(b5,c5){if(c5===void 0){return function(d5){return prepend(b5,d5);};}var e5=c5.concat();e5.unshift(b5);return e5;}Y4.exports=prepend;},function(f5,g5,h5){"use strict";function prop(i5,j5){if(j5===void 0){return function(k5){return prop(i5,k5);};}return j5[i5];}f5.exports=prop;},function(l5,m5,n5){"use strict";function propEq(o5,p5,q5){if(p5===void 0){return function(r5,s5){return propEq(o5,r5,s5);};}else if(q5===void 0){return function(t5){return propEq(o5,p5,t5);};}return q5[o5]===p5;}l5.exports=propEq;},function(u5,v5,w5){"use strict";function range(x5,y5){for(var z5=[],i=x5;i<y5;i++){z5.push(i);}return z5;}u5.exports=range;},function(A5,B5,C5){"use strict";function reduce(fn,E5,F5){if(E5===void 0){return function(G5,H5){return reduce(fn,G5,H5);};}else if(F5===void 0){return function(I5){return reduce(fn,E5,I5);};}return F5.reduce(fn,E5);}A5.exports=reduce;},function(J5,K5,L5){"use strict";function repeat(a,M5){if(M5===void 0){return function(N5){return repeat(a,N5);};}var O5=Array(M5);return O5.fill(a);}J5.exports=repeat;},function(P5,Q5,R5){"use strict";function replace(S5,T5,U5){if(T5===void 0){return function(V5,W5){return replace(S5,V5,W5);};}else if(U5===void 0){return function(X5){return replace(S5,T5,X5);};}return U5.replace(S5,T5);}P5.exports=replace;},function(Y5,Z5,a6){"use strict";function sort(fn,c6){if(c6===void 0){return function(d6){return sort(fn,d6);};}var e6=c6.concat();return e6.sort(fn);}Y5.exports=sort;},function(f6,g6,h6){"use strict";function sortBy(fn,j6){if(j6===void 0){return function(k6){return sortBy(fn,k6);};}var l6=j6.concat();return l6.sort(function(a,b){var m6=fn(a),n6=fn(b);return m6<n6?-1:m6>n6?1:0;});}f6.exports=sortBy;},function(o6,p6,q6){"use strict";function split(r6,s6){if(s6===void 0){return function(t6){return split(r6,t6);};}return s6.split(r6);}o6.exports=split;},function(u6,v6,w6){"use strict";function splitEvery(x6,a){if(a===void 0){return function(y6){return splitEvery(x6,y6);};}x6=x6>1?x6:1;var z6=[],A6=0;while(A6<a.length){z6.push(a.slice(A6,A6+=x6));}return z6;}u6.exports=splitEvery;},function(B6,C6,D6){"use strict";function subtract(a,b){if(b===void 0){return function(E6){return subtract(a,E6);};}return a-b;}B6.exports=subtract;},function(F6,G6,H6){"use strict";var I6=H6(4);function tail(J6){return I6(1,J6);}F6.exports=tail;},function(K6,L6,M6){"use strict";var N6=M6(2);function take(O6,a){if(a===void 0){return function(P6){return take(O6,P6);};}else if(typeof a==="string"){return a.slice(0,O6);}return N6(a,0,O6);}K6.exports=take;},function(Q6,R6,S6){"use strict";var T6=S6(2);function takeLast(U6,a){if(a===void 0){return function(V6){return takeLast(U6,V6);};}var W6=a.length;U6=U6>W6?W6:U6;if(typeof a==="string"){return a.slice(W6-U6);}U6=W6-U6;return T6(a,U6,W6);}Q6.exports=takeLast;},function(X6,Y6,Z6){"use strict";function test(a7,b7){if(b7===void 0){return function(c7){return test(a7,c7);};}return b7.search(a7)===-1?!1:!0;}X6.exports=test;},function(d7,e7,f7){"use strict";function toLower(g7){return g7.toLowerCase();}d7.exports=toLower;},function(h7,i7,j7){"use strict";function toUpper(k7){return k7.toUpperCase();}h7.exports=toUpper;},function(l7,m7,n7){"use strict";function trim(o7){return o7.trim();}l7.exports=trim;},function(p7,q7,r7){"use strict";var s7=r7(3);function uniq(t7){var u7=-1,v7=[];while(++u7<t7.length){var w7=t7[u7];if(!s7(w7,v7)){v7.push(w7);}}return v7;}p7.exports=uniq;},function(x7,y7,z7){"use strict";function update(A7,B7,C7){if(B7===void 0){return function(D7,E7){return update(A7,D7,E7);};}else if(C7===void 0){return function(F7){return update(A7,B7,F7);};}var G7=C7.concat();return G7.fill(B7,A7,A7+1);}x7.exports=update;},function(H7,I7,J7){"use strict";function values(K7){var L7=[];for(var M7 in K7){L7.push(K7[M7]);}return L7;}H7.exports=values;},function(N7,O7,P7){"use strict";O7.add=P7(8);O7.addIndex=P7(9);O7.any=P7(11);O7.adjust=P7(10);O7.append=P7(12);O7.compose=P7(13);O7.contains=P7(3);O7.curry=P7(1);O7.defaultTo=P7(14);O7.drop=P7(4);O7.dropLast=P7(15);O7.equals=P7(5);O7.filter=P7(16);O7.find=P7(17);O7.findIndex=P7(18);O7.flatten=P7(19);O7.has=P7(20);O7.head=P7(21);O7.indexOf=P7(22);O7.init=P7(23);O7.join=P7(24);O7.last=P7(25);O7.length=P7(26);O7.map=P7(6);O7.match=P7(27);O7.merge=P7(7);O7.omit=P7(28);O7.path=P7(30);O7.partialCurry=P7(29);O7.pick=P7(31);O7.pluck=P7(32);O7.prepend=P7(33);O7.prop=P7(34);O7.propEq=P7(35);O7.range=P7(36);O7.repeat=P7(38);O7.replace=P7(39);O7.sort=P7(40);O7.sortBy=P7(41);O7.split=P7(42);O7.splitEvery=P7(43);O7.subtract=P7(44);O7.tail=P7(45);O7.take=P7(46);O7.takeLast=P7(47);O7.test=P7(48);O7.toLower=P7(49);O7.toUpper=P7(50);O7.trim=P7(51);O7.type=P7(0);O7.uniq=P7(52);O7.update=P7(53);O7.values=P7(54);O7.reduce=P7(37);}]);

@@ -5,6 +5,6 @@ function add(a, b){

}
return a + b
}
module.exports = add

@@ -0,6 +1,8 @@

const curry = require("./curry")
function adjust(fn, index, arr){
if (index === undefined) {
return (indexHolder, arrHolder) => adjust(fn, indexHolder, arrHolder)
} else if (arr === undefined) {
return holder => adjust(fn, index, holder)
if (index === undefined) {
return (indexHolder, arrHolder) => adjust(fn, indexHolder, arrHolder)
} else if (arr === undefined) {
return holder => adjust(fn, index, holder)
}

@@ -7,0 +9,0 @@ const clone = arr.concat()

@@ -0,6 +1,9 @@

const type = require("./type")
const curry = require("./curry")
function path(pathArr, obj) {
if (obj === undefined) {
return holder => path(pathArr, holder)
if(!(type(obj) === "Object")){
return undefined
}
let holder = obj

@@ -22,2 +25,2 @@ let counter = 0

module.exports = path
module.exports = curry(path)
function values(obj){
const willReturn = []
for (key in obj) {
for (const key in obj) {
willReturn.push(obj[ key ])

@@ -5,0 +5,0 @@ }

{
"name": "rambda",
"version": "0.7.5",
"version": "0.7.6",
"description": "Lightweight alternative to Ramda",

@@ -9,7 +9,7 @@ "main": "index.js",

"test": "jest",
"dev": "jest __tests__/omit.js",
"dev": "jest __tests__/path.js",
"node-build": "webpack --config files/webpack.config.node.js",
"browser-build": "webpack --config files/webpack.config.js",
"browser-minify": "sr m minify f webVersion.js o _",
"node-minify": "sr m minify f index.js o _",
"browser-minify": "run m minify f webVersion.js o _",
"node-minify": "run m minify f index.js o _",
"cover": "jest --coverage"

@@ -40,2 +40,3 @@ },

"jest": "^20.0.4",
"lint-fn": "^0.2.4",
"lodash": "^4.17.4",

@@ -42,0 +43,0 @@ "npm-run-all": "^4.0.2",

@@ -33,3 +33,3 @@ [![Build Status](https://img.shields.io/travis/selfrefactor/rambda.svg)](https://travis-ci.org/selfrefactor/rambda)

```
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.7.5/webVersion.js
https://cdnjs.cloudflare.com/ajax/libs/rambda/0.7.6/webVersion.js
```

@@ -680,2 +680,3 @@

- 0.7.6 Fix incorrect implementation of `R.values`
- 0.7.5 Fix incorrect implementation of `R.omit`

@@ -682,0 +683,0 @@ - 0.7.4 [issue #13](https://github.com/selfrefactor/rambda/issues/13) - Fix `R.curry`, which used to return incorrectly `function` when called with more arguments

@@ -1,1 +0,1 @@

(function webpackUniversalModuleDefinition(d,e){if(typeof exports==='object'&&typeof module==='object')module.exports=e();else if(typeof define==='function'&&define.amd)define([],e);else{var a=e();for(var i in a)(typeof exports==='object'?exports:d)[i]=a[i];}})(this,function(){return function(g){var h={};function __webpack_require__(j){if(h[j]){return h[j].exports;}var k=h[j]={i:j,l:!1,exports:{}};g[j].call(k.exports,k,k.exports,__webpack_require__);k.l=!0;return k.exports;}__webpack_require__.m=g;__webpack_require__.c=h;__webpack_require__.i=function(l){return l;};__webpack_require__.d=function(m,n,q){if(!__webpack_require__.o(m,n)){Object.defineProperty(m,n,{configurable:!1,enumerable:!0,get:q});}};__webpack_require__.n=function(r){var s=r&&r.__esModule?function getDefault(){return r['default'];}:function getModuleExports(){return r;};__webpack_require__.d(s,'a',s);return s;};__webpack_require__.o=function(t,u){return Object.prototype.hasOwnProperty.call(t,u);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=8);}([function(v,w){function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}const x=a.toString();if(x.startsWith("async")){return"Async";}else if(x==="[object Promise]"){return"Promise";}else if(x.includes("function")||x.includes("=>")){return"Function";}return"Object";}v.exports=type;},function(y,z){function baseSlice(A,B,C){let D=-1,E=A.length;C=C>E?E:C;if(C<0){C+=E;}E=B>C?0:C-B>>>0;B>>>=0;const F=Array(E);while(++D<E){F[D]=A[D+B];}return F;}y.exports=baseSlice;},function(G,H,I){const J=I(4);function contains(K,L){if(L===void 0){return M=>contains(K,M);}let N=-1,O=!1;while(++N<L.length&&!O){if(J(L[N],K)){O=!0;}}return O;}G.exports=contains;},function(P,Q){function drop(R,a){if(a===void 0){return S=>drop(R,S);}return a.slice(R);}P.exports=drop;},function(T,U,V){const W=V(0);function equals(a,b){if(b===void 0){return X=>equals(a,X);}else if(a===b){return a!==0||1/a===1/b;}const Y=W(a);if(Y!==W(b)){return!1;}if(Y==="Array"){const Z=Array.from(a),a1=Array.from(b);return Z.sort().toString()===a1.sort().toString();}if(Y==="Object"){const b1=Object.keys(a);if(b1.length===Object.keys(b).length){if(b1.length===0){return!0;}let c1=!0;b1.map(d1=>{if(c1){const e1=W(a[d1]),f1=W(b[d1]);if(e1===f1){if(e1==="Object"){if(Object.keys(a[d1]).length===Object.keys(b[d1]).length){if(Object.keys(a[d1]).length!==0){if(!equals(a[d1],b[d1])){c1=!1;}}}else{c1=!1;}}else if(!equals(a[d1],b[d1])){c1=!1;}}else{c1=!1;}}});return c1;}}return!1;}T.exports=equals;},function(g1,h1){function map(fn,j1){if(j1===void 0){return k1=>map(fn,k1);}let l1=-1;const m1=j1.length,n1=Array(m1);while(++l1<m1){n1[l1]=fn(j1[l1]);}return n1;}g1.exports=map;},function(o1,p1){function merge(q1,r1){if(r1===void 0){return s1=>merge(q1,s1);}return Object.assign({},q1,r1);}o1.exports=merge;},function(t1,u1,v1){u1.add=v1(9);u1.addIndex=v1(10);u1.any=v1(12);u1.adjust=v1(11);u1.append=v1(13);u1.compose=v1(14);u1.contains=v1(2);u1.curry=v1(15);u1.defaultTo=v1(16);u1.drop=v1(3);u1.dropLast=v1(17);u1.equals=v1(4);u1.filter=v1(18);u1.find=v1(19);u1.findIndex=v1(20);u1.flatten=v1(21);u1.has=v1(22);u1.head=v1(23);u1.indexOf=v1(24);u1.init=v1(25);u1.join=v1(26);u1.last=v1(27);u1.length=v1(28);u1.map=v1(5);u1.match=v1(29);u1.merge=v1(6);u1.omit=v1(30);u1.path=v1(32);u1.partialCurry=v1(31);u1.pick=v1(33);u1.pluck=v1(34);u1.prepend=v1(35);u1.prop=v1(36);u1.propEq=v1(37);u1.range=v1(38);u1.repeat=v1(40);u1.replace=v1(41);u1.sort=v1(42);u1.sortBy=v1(43);u1.split=v1(44);u1.splitEvery=v1(45);u1.subtract=v1(46);u1.tail=v1(47);u1.take=v1(48);u1.takeLast=v1(49);u1.test=v1(50);u1.toLower=v1(51);u1.toUpper=v1(52);u1.trim=v1(53);u1.type=v1(0);u1.uniq=v1(54);u1.update=v1(55);u1.values=v1(56);u1.reduce=v1(39);},function(w1,x1,y1){const z1=y1(7);w1.exports.R=z1;},function(A1,B1){function add(a,b){if(b===void 0){return c=>add(a,c);}return a+b;}A1.exports=add;},function(C1,D1){function addIndex(E1){return function(fn,...rest){let G1=0;const newFn=(...args)=>fn.apply(null,[...args,G1++]);return E1.apply(null,[newFn,...rest]);};}C1.exports=addIndex;},function(H1,I1){function adjust(fn,K1,L1){if(K1===void 0){return(M1,N1)=>adjust(fn,M1,N1);}else if(L1===void 0){return O1=>adjust(fn,K1,O1);}const P1=L1.concat();return P1.map((Q1,R1)=>{if(R1===K1){return fn(L1[K1]);}return Q1;});}H1.exports=adjust;},function(S1,T1){function any(fn,V1){if(V1===void 0){return W1=>any(fn,W1);}let X1=0;while(X1<V1.length){if(fn(V1[X1])){return!0;}X1++;}return!1;}S1.exports=any;},function(Y1,Z1){function append(a2,b2){if(b2===void 0){return c2=>append(a2,c2);}const d2=b2.concat();d2.push(a2);return d2;}Y1.exports=append;},function(e2,f2){const compose=(...fns)=>g2=>{let h2=fns.slice();while(h2.length>0){g2=h2.pop()(g2);}return g2;};e2.exports=compose;},function(i2,j2){function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}i2.exports=curry;},function(k2,l2,m2){const n2=m2(0);function defaultTo(o2,p2){if(arguments.length===1){return q2=>defaultTo(o2,q2);}return p2===void 0||!(n2(p2)===n2(o2))?o2:p2;}k2.exports=defaultTo;},function(r2,s2){function dropLast(t2,a){if(a===void 0){return u2=>dropLast(t2,u2);}return a.slice(0,-t2);}r2.exports=dropLast;},function(v2,w2){function filter(fn,y2){if(y2===void 0){return z2=>filter(fn,z2);}let A2=-1,B2=0;const C2=y2.length,D2=[];while(++A2<C2){const E2=y2[A2];if(fn(E2)){D2[B2++]=E2;}}return D2;}v2.exports=filter;},function(F2,G2){function find(fn,I2){if(I2===void 0){return J2=>find(fn,J2);}return I2.find(fn);}F2.exports=find;},function(K2,L2){function findIndex(fn,N2){if(N2===void 0){return O2=>findIndex(fn,O2);}const P2=N2.length;let Q2=-1;while(++Q2<P2){if(fn(N2[Q2])){return Q2;}}return-1;}K2.exports=findIndex;},function(R2,S2){function flatten(T2,U2){U2=U2===void 0?[]:U2;for(let i=0;i<T2.length;i++){if(Array.isArray(T2[i])){flatten(T2[i],U2);}else{U2.push(T2[i]);}}return U2;}R2.exports=flatten;},function(V2,W2){function has(X2,Y2){if(Y2===void 0){return Z2=>has(X2,Z2);}return Y2[X2]!==void 0;}V2.exports=has;},function(a3,b3){function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}a3.exports=head;},function(c3,d3){function indexOf(e3,f3){if(f3===void 0){return g3=>indexOf(e3,g3);}let h3=-1;const i3=f3.length;while(++h3<i3){if(f3[h3]===e3){return h3;}}return-1;}c3.exports=indexOf;},function(j3,k3,l3){const m3=l3(1);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?m3(a,0,-1):[];}j3.exports=init;},function(n3,o3){function join(p3,q3){if(q3===void 0){return r3=>join(p3,r3);}return q3.join(p3);}n3.exports=join;},function(s3,t3){function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}s3.exports=last;},function(u3,v3){function length(w3){return w3.length;}u3.exports=length;},function(x3,y3){function match(z3,A3){if(A3===void 0){return B3=>match(z3,B3);}const C3=A3.match(z3);return C3===null?[]:C3;}x3.exports=match;},function(D3,E3){function omit(F3,G3){if(G3===void 0){return H3=>omit(F3,H3);}const I3={};for(const J3 in G3){if(!F3.includes(J3)){I3[J3]=G3[J3];}}return I3;}D3.exports=omit;},function(K3,L3,M3){const N3=M3(0),O3=M3(6);function curry(fn,Q3={}){return R3=>{if(N3(fn)==="Async"){return new Promise((S3,T3)=>{fn(O3(R3,Q3)).then(S3).catch(T3);});}return fn(O3(R3,Q3));};}K3.exports=curry;},function(U3,V3){function path(W3,X3){if(X3===void 0){return Y3=>path(W3,Y3);}let Z3=X3,a4=0;if(typeof W3==="string"){W3=W3.split(".");}while(a4<W3.length){if(Z3===null){return void 0;}Z3=Z3[W3[a4]];a4++;}return Z3;}U3.exports=path;},function(b4,c4){function pick(d4,e4){if(e4===void 0){return f4=>pick(d4,f4);}const g4={};let h4=0;while(h4<d4.length){if(d4[h4]in e4){g4[d4[h4]]=e4[d4[h4]];}h4++;}return g4;}b4.exports=pick;},function(i4,j4,k4){const l4=k4(5);function pluck(m4,n4){if(n4===void 0){return o4=>pluck(m4,o4);}const p4=[];l4(q4=>{if(!(q4[m4]===void 0)){p4.push(q4[m4]);}},n4);return p4;}i4.exports=pluck;},function(r4,s4){function prepend(t4,u4){if(u4===void 0){return v4=>prepend(t4,v4);}const w4=u4.concat();w4.unshift(t4);return w4;}r4.exports=prepend;},function(x4,y4){function prop(z4,A4){if(A4===void 0){return B4=>prop(z4,B4);}return A4[z4];}x4.exports=prop;},function(C4,D4){function propEq(E4,F4,G4){if(F4===void 0){return(H4,I4)=>propEq(E4,H4,I4);}else if(G4===void 0){return J4=>propEq(E4,F4,J4);}return G4[E4]===F4;}C4.exports=propEq;},function(K4,L4){function range(M4,N4){const O4=[];for(let i=M4;i<N4;i++){O4.push(i);}return O4;}K4.exports=range;},function(P4,Q4){function reduce(fn,S4,T4){if(S4===void 0){return(U4,V4)=>reduce(fn,U4,V4);}else if(T4===void 0){return W4=>reduce(fn,S4,W4);}return T4.reduce(fn,S4);}P4.exports=reduce;},function(X4,Y4){function repeat(a,Z4){if(Z4===void 0){return a5=>repeat(a,a5);}const b5=Array(Z4);return b5.fill(a);}X4.exports=repeat;},function(c5,d5){function replace(e5,f5,g5){if(f5===void 0){return(h5,i5)=>replace(e5,h5,i5);}else if(g5===void 0){return j5=>replace(e5,f5,j5);}return g5.replace(e5,f5);}c5.exports=replace;},function(k5,l5){function sort(fn,n5){if(n5===void 0){return o5=>sort(fn,o5);}const p5=n5.concat();return p5.sort(fn);}k5.exports=sort;},function(q5,r5){function sortBy(fn,t5){if(t5===void 0){return u5=>sortBy(fn,u5);}const v5=t5.concat();return v5.sort((a,b)=>{const w5=fn(a),x5=fn(b);return w5<x5?-1:w5>x5?1:0;});}q5.exports=sortBy;},function(y5,z5){function split(A5,B5){if(B5===void 0){return C5=>split(A5,C5);}return B5.split(A5);}y5.exports=split;},function(D5,E5){function splitEvery(F5,a){if(a===void 0){return G5=>splitEvery(F5,G5);}F5=F5>1?F5:1;const H5=[];let I5=0;while(I5<a.length){H5.push(a.slice(I5,I5+=F5));}return H5;}D5.exports=splitEvery;},function(J5,K5){function subtract(a,b){if(b===void 0){return L5=>subtract(a,L5);}return a-b;}J5.exports=subtract;},function(M5,N5,O5){const P5=O5(3);function tail(Q5){return P5(1,Q5);}M5.exports=tail;},function(R5,S5,T5){const U5=T5(1);function take(V5,a){if(a===void 0){return W5=>take(V5,W5);}else if(typeof a==="string"){return a.slice(0,V5);}return U5(a,0,V5);}R5.exports=take;},function(X5,Y5,Z5){const a6=Z5(1);function takeLast(b6,a){if(a===void 0){return c6=>takeLast(b6,c6);}const d6=a.length;b6=b6>d6?d6:b6;if(typeof a==="string"){return a.slice(d6-b6);}b6=d6-b6;return a6(a,b6,d6);}X5.exports=takeLast;},function(e6,f6){function test(g6,h6){if(h6===void 0){return i6=>test(g6,i6);}return h6.search(g6)===-1?!1:!0;}e6.exports=test;},function(j6,k6){function toLower(l6){return l6.toLowerCase();}j6.exports=toLower;},function(m6,n6){function toUpper(o6){return o6.toUpperCase();}m6.exports=toUpper;},function(p6,q6){function trim(r6){return r6.trim();}p6.exports=trim;},function(s6,t6,u6){const v6=u6(2);function uniq(w6){let x6=-1;const y6=[];while(++x6<w6.length){const z6=w6[x6];if(!v6(z6,y6)){y6.push(z6);}}return y6;}s6.exports=uniq;},function(A6,B6){function update(C6,D6,E6){if(D6===void 0){return(F6,G6)=>update(C6,F6,G6);}else if(E6===void 0){return H6=>update(C6,D6,H6);}const I6=E6.concat();return I6.fill(D6,C6,C6+1);}A6.exports=update;},function(J6,K6){function values(L6){const M6=[];for(key in L6){M6.push(L6[key]);}return M6;}J6.exports=values;}]);});
(function webpackUniversalModuleDefinition(d,e){if(typeof exports==='object'&&typeof module==='object')module.exports=e();else if(typeof define==='function'&&define.amd)define([],e);else{var a=e();for(var i in a)(typeof exports==='object'?exports:d)[i]=a[i];}})(this,function(){return function(g){var h={};function __webpack_require__(j){if(h[j]){return h[j].exports;}var k=h[j]={i:j,l:!1,exports:{}};g[j].call(k.exports,k,k.exports,__webpack_require__);k.l=!0;return k.exports;}__webpack_require__.m=g;__webpack_require__.c=h;__webpack_require__.i=function(l){return l;};__webpack_require__.d=function(m,n,q){if(!__webpack_require__.o(m,n)){Object.defineProperty(m,n,{configurable:!1,enumerable:!0,get:q});}};__webpack_require__.n=function(r){var s=r&&r.__esModule?function getDefault(){return r['default'];}:function getModuleExports(){return r;};__webpack_require__.d(s,'a',s);return s;};__webpack_require__.o=function(t,u){return Object.prototype.hasOwnProperty.call(t,u);};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=9);}([function(v,w){function type(a){if(a===null){return"Null";}else if(Array.isArray(a)){return"Array";}else if(typeof a==="boolean"){return"Boolean";}else if(typeof a==="number"){return"Number";}else if(typeof a==="string"){return"String";}else if(a===void 0){return"Undefined";}else if(a instanceof RegExp){return"RegExp";}const x=a.toString();if(x.startsWith("async")){return"Async";}else if(x==="[object Promise]"){return"Promise";}else if(x.includes("function")||x.includes("=>")){return"Function";}return"Object";}v.exports=type;},function(y,z){function baseSlice(A,B,C){let D=-1,E=A.length;C=C>E?E:C;if(C<0){C+=E;}E=B>C?0:C-B>>>0;B>>>=0;const F=Array(E);while(++D<E){F[D]=A[D+B];}return F;}y.exports=baseSlice;},function(G,H){function curry(f,a=[]){return(...p)=>(o=>o.length>=f.length?f(...o):curry(f,o))([...a,...p]);}G.exports=curry;},function(I,J,K){const L=K(5);function contains(M,N){if(N===void 0){return O=>contains(M,O);}let P=-1,Q=!1;while(++P<N.length&&!Q){if(L(N[P],M)){Q=!0;}}return Q;}I.exports=contains;},function(R,S){function drop(T,a){if(a===void 0){return U=>drop(T,U);}return a.slice(T);}R.exports=drop;},function(V,W,X){const Y=X(0);function equals(a,b){if(b===void 0){return Z=>equals(a,Z);}else if(a===b){return a!==0||1/a===1/b;}const a1=Y(a);if(a1!==Y(b)){return!1;}if(a1==="Array"){const b1=Array.from(a),c1=Array.from(b);return b1.sort().toString()===c1.sort().toString();}if(a1==="Object"){const d1=Object.keys(a);if(d1.length===Object.keys(b).length){if(d1.length===0){return!0;}let e1=!0;d1.map(f1=>{if(e1){const g1=Y(a[f1]),h1=Y(b[f1]);if(g1===h1){if(g1==="Object"){if(Object.keys(a[f1]).length===Object.keys(b[f1]).length){if(Object.keys(a[f1]).length!==0){if(!equals(a[f1],b[f1])){e1=!1;}}}else{e1=!1;}}else if(!equals(a[f1],b[f1])){e1=!1;}}else{e1=!1;}}});return e1;}}return!1;}V.exports=equals;},function(i1,j1){function map(fn,l1){if(l1===void 0){return m1=>map(fn,m1);}let n1=-1;const o1=l1.length,p1=Array(o1);while(++n1<o1){p1[n1]=fn(l1[n1]);}return p1;}i1.exports=map;},function(q1,r1){function merge(s1,t1){if(t1===void 0){return u1=>merge(s1,u1);}return Object.assign({},s1,t1);}q1.exports=merge;},function(v1,w1,x1){w1.add=x1(10);w1.addIndex=x1(11);w1.any=x1(13);w1.adjust=x1(12);w1.append=x1(14);w1.compose=x1(15);w1.contains=x1(3);w1.curry=x1(2);w1.defaultTo=x1(16);w1.drop=x1(4);w1.dropLast=x1(17);w1.equals=x1(5);w1.filter=x1(18);w1.find=x1(19);w1.findIndex=x1(20);w1.flatten=x1(21);w1.has=x1(22);w1.head=x1(23);w1.indexOf=x1(24);w1.init=x1(25);w1.join=x1(26);w1.last=x1(27);w1.length=x1(28);w1.map=x1(6);w1.match=x1(29);w1.merge=x1(7);w1.omit=x1(30);w1.path=x1(32);w1.partialCurry=x1(31);w1.pick=x1(33);w1.pluck=x1(34);w1.prepend=x1(35);w1.prop=x1(36);w1.propEq=x1(37);w1.range=x1(38);w1.repeat=x1(40);w1.replace=x1(41);w1.sort=x1(42);w1.sortBy=x1(43);w1.split=x1(44);w1.splitEvery=x1(45);w1.subtract=x1(46);w1.tail=x1(47);w1.take=x1(48);w1.takeLast=x1(49);w1.test=x1(50);w1.toLower=x1(51);w1.toUpper=x1(52);w1.trim=x1(53);w1.type=x1(0);w1.uniq=x1(54);w1.update=x1(55);w1.values=x1(56);w1.reduce=x1(39);},function(y1,z1,A1){const B1=A1(8);y1.exports.R=B1;},function(C1,D1){function add(a,b){if(b===void 0){return c=>add(a,c);}return a+b;}C1.exports=add;},function(E1,F1){function addIndex(G1){return function(fn,...rest){let I1=0;const newFn=(...args)=>fn.apply(null,[...args,I1++]);return G1.apply(null,[newFn,...rest]);};}E1.exports=addIndex;},function(J1,K1,L1){const M1=L1(2);function adjust(fn,O1,P1){if(O1===void 0){return(Q1,R1)=>adjust(fn,Q1,R1);}else if(P1===void 0){return S1=>adjust(fn,O1,S1);}const T1=P1.concat();return T1.map((U1,V1)=>{if(V1===O1){return fn(P1[O1]);}return U1;});}J1.exports=adjust;},function(W1,X1){function any(fn,Z1){if(Z1===void 0){return a2=>any(fn,a2);}let b2=0;while(b2<Z1.length){if(fn(Z1[b2])){return!0;}b2++;}return!1;}W1.exports=any;},function(c2,d2){function append(e2,f2){if(f2===void 0){return g2=>append(e2,g2);}const h2=f2.concat();h2.push(e2);return h2;}c2.exports=append;},function(i2,j2){const compose=(...fns)=>k2=>{let l2=fns.slice();while(l2.length>0){k2=l2.pop()(k2);}return k2;};i2.exports=compose;},function(m2,n2,o2){const p2=o2(0);function defaultTo(q2,r2){if(arguments.length===1){return s2=>defaultTo(q2,s2);}return r2===void 0||!(p2(r2)===p2(q2))?q2:r2;}m2.exports=defaultTo;},function(t2,u2){function dropLast(v2,a){if(a===void 0){return w2=>dropLast(v2,w2);}return a.slice(0,-v2);}t2.exports=dropLast;},function(x2,y2){function filter(fn,A2){if(A2===void 0){return B2=>filter(fn,B2);}let C2=-1,D2=0;const E2=A2.length,F2=[];while(++C2<E2){const G2=A2[C2];if(fn(G2)){F2[D2++]=G2;}}return F2;}x2.exports=filter;},function(H2,I2){function find(fn,K2){if(K2===void 0){return L2=>find(fn,L2);}return K2.find(fn);}H2.exports=find;},function(M2,N2){function findIndex(fn,P2){if(P2===void 0){return Q2=>findIndex(fn,Q2);}const R2=P2.length;let S2=-1;while(++S2<R2){if(fn(P2[S2])){return S2;}}return-1;}M2.exports=findIndex;},function(T2,U2){function flatten(V2,W2){W2=W2===void 0?[]:W2;for(let i=0;i<V2.length;i++){if(Array.isArray(V2[i])){flatten(V2[i],W2);}else{W2.push(V2[i]);}}return W2;}T2.exports=flatten;},function(X2,Y2){function has(Z2,a3){if(a3===void 0){return b3=>has(Z2,b3);}return a3[Z2]!==void 0;}X2.exports=has;},function(c3,d3){function head(a){if(typeof a==="string"){return a[0]||"";}return a[0];}c3.exports=head;},function(e3,f3){function indexOf(g3,h3){if(h3===void 0){return i3=>indexOf(g3,i3);}let j3=-1;const k3=h3.length;while(++j3<k3){if(h3[j3]===g3){return j3;}}return-1;}e3.exports=indexOf;},function(l3,m3,n3){const o3=n3(1);function init(a){if(typeof a==="string"){return a.slice(0,-1);}return a.length?o3(a,0,-1):[];}l3.exports=init;},function(p3,q3){function join(r3,s3){if(s3===void 0){return t3=>join(r3,t3);}return s3.join(r3);}p3.exports=join;},function(u3,v3){function last(a){if(typeof a==="string"){return a[a.length-1]||"";}return a[a.length-1];}u3.exports=last;},function(w3,x3){function length(y3){return y3.length;}w3.exports=length;},function(z3,A3){function match(B3,C3){if(C3===void 0){return D3=>match(B3,D3);}const E3=C3.match(B3);return E3===null?[]:E3;}z3.exports=match;},function(F3,G3){function omit(H3,I3){if(I3===void 0){return J3=>omit(H3,J3);}const K3={};for(const L3 in I3){if(!H3.includes(L3)){K3[L3]=I3[L3];}}return K3;}F3.exports=omit;},function(M3,N3,O3){const P3=O3(0),Q3=O3(7);function curry(fn,S3={}){return T3=>{if(P3(fn)==="Async"){return new Promise((U3,V3)=>{fn(Q3(T3,S3)).then(U3).catch(V3);});}return fn(Q3(T3,S3));};}M3.exports=curry;},function(W3,X3,Y3){const Z3=Y3(0),a4=Y3(2);function path(b4,c4){if(!(Z3(c4)==="Object")){return void 0;}let d4=c4,e4=0;if(typeof b4==="string"){b4=b4.split(".");}while(e4<b4.length){if(d4===null){return void 0;}d4=d4[b4[e4]];e4++;}return d4;}W3.exports=a4(path);},function(f4,g4){function pick(h4,i4){if(i4===void 0){return j4=>pick(h4,j4);}const k4={};let l4=0;while(l4<h4.length){if(h4[l4]in i4){k4[h4[l4]]=i4[h4[l4]];}l4++;}return k4;}f4.exports=pick;},function(m4,n4,o4){const p4=o4(6);function pluck(q4,r4){if(r4===void 0){return s4=>pluck(q4,s4);}const t4=[];p4(u4=>{if(!(u4[q4]===void 0)){t4.push(u4[q4]);}},r4);return t4;}m4.exports=pluck;},function(v4,w4){function prepend(x4,y4){if(y4===void 0){return z4=>prepend(x4,z4);}const A4=y4.concat();A4.unshift(x4);return A4;}v4.exports=prepend;},function(B4,C4){function prop(D4,E4){if(E4===void 0){return F4=>prop(D4,F4);}return E4[D4];}B4.exports=prop;},function(G4,H4){function propEq(I4,J4,K4){if(J4===void 0){return(L4,M4)=>propEq(I4,L4,M4);}else if(K4===void 0){return N4=>propEq(I4,J4,N4);}return K4[I4]===J4;}G4.exports=propEq;},function(O4,P4){function range(Q4,R4){const S4=[];for(let i=Q4;i<R4;i++){S4.push(i);}return S4;}O4.exports=range;},function(T4,U4){function reduce(fn,W4,X4){if(W4===void 0){return(Y4,Z4)=>reduce(fn,Y4,Z4);}else if(X4===void 0){return a5=>reduce(fn,W4,a5);}return X4.reduce(fn,W4);}T4.exports=reduce;},function(b5,c5){function repeat(a,d5){if(d5===void 0){return e5=>repeat(a,e5);}const f5=Array(d5);return f5.fill(a);}b5.exports=repeat;},function(g5,h5){function replace(i5,j5,k5){if(j5===void 0){return(l5,m5)=>replace(i5,l5,m5);}else if(k5===void 0){return n5=>replace(i5,j5,n5);}return k5.replace(i5,j5);}g5.exports=replace;},function(o5,p5){function sort(fn,r5){if(r5===void 0){return s5=>sort(fn,s5);}const t5=r5.concat();return t5.sort(fn);}o5.exports=sort;},function(u5,v5){function sortBy(fn,x5){if(x5===void 0){return y5=>sortBy(fn,y5);}const z5=x5.concat();return z5.sort((a,b)=>{const A5=fn(a),B5=fn(b);return A5<B5?-1:A5>B5?1:0;});}u5.exports=sortBy;},function(C5,D5){function split(E5,F5){if(F5===void 0){return G5=>split(E5,G5);}return F5.split(E5);}C5.exports=split;},function(H5,I5){function splitEvery(J5,a){if(a===void 0){return K5=>splitEvery(J5,K5);}J5=J5>1?J5:1;const L5=[];let M5=0;while(M5<a.length){L5.push(a.slice(M5,M5+=J5));}return L5;}H5.exports=splitEvery;},function(N5,O5){function subtract(a,b){if(b===void 0){return P5=>subtract(a,P5);}return a-b;}N5.exports=subtract;},function(Q5,R5,S5){const T5=S5(4);function tail(U5){return T5(1,U5);}Q5.exports=tail;},function(V5,W5,X5){const Y5=X5(1);function take(Z5,a){if(a===void 0){return a6=>take(Z5,a6);}else if(typeof a==="string"){return a.slice(0,Z5);}return Y5(a,0,Z5);}V5.exports=take;},function(b6,c6,d6){const e6=d6(1);function takeLast(f6,a){if(a===void 0){return g6=>takeLast(f6,g6);}const h6=a.length;f6=f6>h6?h6:f6;if(typeof a==="string"){return a.slice(h6-f6);}f6=h6-f6;return e6(a,f6,h6);}b6.exports=takeLast;},function(i6,j6){function test(k6,l6){if(l6===void 0){return m6=>test(k6,m6);}return l6.search(k6)===-1?!1:!0;}i6.exports=test;},function(n6,o6){function toLower(p6){return p6.toLowerCase();}n6.exports=toLower;},function(q6,r6){function toUpper(s6){return s6.toUpperCase();}q6.exports=toUpper;},function(t6,u6){function trim(v6){return v6.trim();}t6.exports=trim;},function(w6,x6,y6){const z6=y6(3);function uniq(A6){let B6=-1;const C6=[];while(++B6<A6.length){const D6=A6[B6];if(!z6(D6,C6)){C6.push(D6);}}return C6;}w6.exports=uniq;},function(E6,F6){function update(G6,H6,I6){if(H6===void 0){return(J6,K6)=>update(G6,J6,K6);}else if(I6===void 0){return L6=>update(G6,H6,L6);}const M6=I6.concat();return M6.fill(H6,G6,G6+1);}E6.exports=update;},function(N6,O6){function values(P6){const Q6=[];for(const R6 in P6){Q6.push(P6[R6]);}return Q6;}N6.exports=values;}]);});

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc