Comparing version 0.5.0 to 0.6.0
@@ -43,17 +43,22 @@ (function (global, factory) { | ||
var assoc = _curry2(function assoc (a, b) { | ||
var y = {} | ||
var _curry3 = function _curry3 (fn) { | ||
return function __arity_3__ (a0, a1, a2) { | ||
switch (arguments.length) { | ||
case 0: return __arity_3__ | ||
case 1: return _curry2(function __arity_2__ (_a1, _a2) { return fn(a0, _a1, _a2) }) | ||
case 2: return _curry1(function __arity_1__ (_a2) { return fn(a0, a1, _a2) }) | ||
default: return fn(a0, a1, a2) | ||
} | ||
} | ||
} | ||
var assoc = _curry3(function assoc (p, v, o) { | ||
var b = {} | ||
, prop | ||
for (prop in a) { | ||
if (a.hasOwnProperty(prop)) { | ||
y[prop] = a[prop] | ||
} | ||
for (prop in o) { | ||
b[prop] = o[prop] | ||
} | ||
for (prop in b) { | ||
if (b.hasOwnProperty(prop)) { | ||
y[prop] = b[prop] | ||
} | ||
} | ||
return y | ||
b[p] = v | ||
return b | ||
}) | ||
@@ -116,13 +121,2 @@ | ||
var _curry3 = function _curry3 (fn) { | ||
return function __arity_3__ (a0, a1, a2) { | ||
switch (arguments.length) { | ||
case 0: return __arity_3__ | ||
case 1: return _curry2(function __arity_2__ (_a1, _a2) { return fn(a0, _a1, _a2) }) | ||
case 2: return _curry1(function __arity_1__ (_a2) { return fn(a0, a1, _a2) }) | ||
default: return fn(a0, a1, a2) | ||
} | ||
} | ||
} | ||
var curry = function curry (fn) { | ||
@@ -148,2 +142,6 @@ switch (fn.length) { | ||
var dec = function dec (a) { | ||
return a - 1 | ||
} | ||
var filter = _curry2(function filter (fn, xs) { | ||
@@ -157,3 +155,3 @@ var i = 0 | ||
x = xs[i] | ||
if (fn(x, i)) { | ||
if (fn(x)) { | ||
ys.push(x) | ||
@@ -165,2 +163,15 @@ } | ||
var find = _curry2(function find (pred, xs) { | ||
var i = 0 | ||
, len = xs.length | ||
, x | ||
for (; i < len; i++) { | ||
x = xs[i] | ||
if (pred(x)) { | ||
return x | ||
} | ||
} | ||
}) | ||
var findIndex = _curry2(function findIndex (pred, xs) { | ||
@@ -247,2 +258,10 @@ var i = 0 | ||
var identity = function (a) { | ||
return a | ||
} | ||
var inc = function inc (a) { | ||
return a + 1 | ||
} | ||
var indexOf = _curry2(function indexOf (y, xs) { | ||
@@ -300,2 +319,23 @@ var i = 0 | ||
var merge = _curry2(function merge (a, b) { | ||
var y = {} | ||
, prop | ||
for (prop in a) { | ||
if (a.hasOwnProperty(prop)) { | ||
y[prop] = a[prop] | ||
} | ||
} | ||
for (prop in b) { | ||
if (b.hasOwnProperty(prop)) { | ||
y[prop] = b[prop] | ||
} | ||
} | ||
return y | ||
}) | ||
var not = function not (a) { | ||
return !a | ||
} | ||
var pipe = function pipe () { | ||
@@ -329,3 +369,3 @@ var fns = arguments | ||
for (; i < len; i++) { | ||
y = fn(y, xs[i], i) | ||
y = fn(y, xs[i]) | ||
} | ||
@@ -339,3 +379,3 @@ return y | ||
for (; i >= 0; i--) { | ||
y = fn(y, xs[i], i) | ||
y = fn(y, xs[i]) | ||
} | ||
@@ -353,3 +393,3 @@ return y | ||
x = xs[i] | ||
if (!fn(x, i)) { | ||
if (!fn(x)) { | ||
ys.push(x) | ||
@@ -380,3 +420,3 @@ } | ||
for (; i < len; i++) { | ||
if (fn(xs[i], i)) { | ||
if (fn(xs[i])) { | ||
return xs.slice(0, i) | ||
@@ -449,7 +489,8 @@ } | ||
exports.assoc = assoc; | ||
exports.merge = assoc; | ||
exports.compose = compose; | ||
exports.curry = curry; | ||
exports.curryN = curryN; | ||
exports.dec = dec; | ||
exports.filter = filter; | ||
exports.find = find; | ||
exports.findIndex = findIndex; | ||
@@ -461,2 +502,4 @@ exports.flatMap = flatMap; | ||
exports.head = head; | ||
exports.identity = identity; | ||
exports.inc = inc; | ||
exports.indexOf = indexOf; | ||
@@ -466,2 +509,4 @@ exports.keys = keys; | ||
exports.map = map; | ||
exports.merge = merge; | ||
exports.not = not; | ||
exports.pipe = pipe; | ||
@@ -468,0 +513,0 @@ exports.prop = prop; |
{ | ||
"name": "redash", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "", | ||
@@ -9,2 +9,5 @@ "main": "dist/redash.js", | ||
}, | ||
"files": [ | ||
"dist/redash.js" | ||
], | ||
"scripts": { | ||
@@ -21,3 +24,2 @@ "lint": "eslint src/**/*.js", | ||
"devDependencies": { | ||
"babel": "^6.1.18", | ||
"eslint": "^1.9.0", | ||
@@ -37,5 +39,4 @@ "eslint-config-standard": "^4.4.0", | ||
"rollup": "^0.21.0", | ||
"uglify-js": "^2.6.1", | ||
"yargs": "^3.30.0" | ||
"uglify-js": "^2.6.1" | ||
} | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
15
1
12739
2
442
2
0
1