Comparing version 2.0.0-beta.3 to 2.0.0-beta.4
@@ -153,2 +153,5 @@ function _typeof(obj) { | ||
var fxn = into(f); | ||
if (typeof coll === 'undefined' || coll === null) { | ||
return coll; | ||
} | ||
if (typeof coll[native] === 'function') { | ||
@@ -587,2 +590,7 @@ return coll[native].apply(coll, [fxn].concat(fixedArgs)); | ||
}; | ||
var includesi = function includesi(snippet) { | ||
return function (text) { | ||
return text.toLowerCase().includes(snippet.toLowerCase()); | ||
}; | ||
}; | ||
@@ -662,2 +670,6 @@ var foldOf = function foldOf(f) { | ||
var withOf = function withOf(f) { | ||
f.of = f; | ||
return f; | ||
}; | ||
var foldBy = function foldBy(reducer) { | ||
@@ -678,5 +690,5 @@ return function (field) { | ||
}; | ||
var maxBy = foldBy(maxOf); | ||
var minBy = foldBy(minOf); | ||
var findBy = foldBy(findOf); | ||
var findBy = withOf(foldBy(findOf)); | ||
var maxBy = withOf(foldBy(maxOf)); | ||
var minBy = withOf(foldBy(minOf)); | ||
@@ -698,2 +710,2 @@ var maybe = (function (name) { | ||
export { compile as lens, matching, all$1 as all, unless, updateAll, maybe, mod, set$1 as set, get, identity, flip, always, not, and, or, curry, into, filter, map, find, some, reduce, every, cons, first, rest, push, concat, append, prepend, has, greaterThan, lessThan, greaterThanEq, lessThanEq, toggle, returns, add, sub, inc, dec, includes, foldOf, maxOf, minOf, findOf, sumOf, productOf, foldBy, maxBy, minBy, findBy }; | ||
export { compile as lens, matching, all$1 as all, unless, updateAll, maybe, mod, set$1 as set, get, identity, flip, always, not, and, or, curry, into, filter, map, find, some, reduce, every, cons, first, rest, push, concat, append, prepend, has, greaterThan, lessThan, greaterThanEq, lessThanEq, toggle, returns, add, sub, inc, dec, includes, includesi, foldOf, maxOf, minOf, findOf, sumOf, productOf, foldBy, findBy, maxBy, minBy }; |
@@ -157,2 +157,5 @@ 'use strict'; | ||
var fxn = into(f); | ||
if (typeof coll === 'undefined' || coll === null) { | ||
return coll; | ||
} | ||
if (typeof coll[native] === 'function') { | ||
@@ -591,2 +594,7 @@ return coll[native].apply(coll, [fxn].concat(fixedArgs)); | ||
}; | ||
var includesi = function includesi(snippet) { | ||
return function (text) { | ||
return text.toLowerCase().includes(snippet.toLowerCase()); | ||
}; | ||
}; | ||
@@ -666,2 +674,6 @@ var foldOf = function foldOf(f) { | ||
var withOf = function withOf(f) { | ||
f.of = f; | ||
return f; | ||
}; | ||
var foldBy = function foldBy(reducer) { | ||
@@ -682,5 +694,5 @@ return function (field) { | ||
}; | ||
var maxBy = foldBy(maxOf); | ||
var minBy = foldBy(minOf); | ||
var findBy = foldBy(findOf); | ||
var findBy = withOf(foldBy(findOf)); | ||
var maxBy = withOf(foldBy(maxOf)); | ||
var minBy = withOf(foldBy(minOf)); | ||
@@ -744,2 +756,3 @@ var maybe = (function (name) { | ||
exports.includes = includes; | ||
exports.includesi = includesi; | ||
exports.foldOf = foldOf; | ||
@@ -752,4 +765,4 @@ exports.maxOf = maxOf; | ||
exports.foldBy = foldBy; | ||
exports.findBy = findBy; | ||
exports.maxBy = maxBy; | ||
exports.minBy = minBy; | ||
exports.findBy = findBy; |
{ | ||
"name": "shades", | ||
"version": "2.0.0-beta.3", | ||
"version": "2.0.0-beta.4", | ||
"description": "Lens-like functionality with a lodash-style interface.", | ||
@@ -11,4 +11,4 @@ "main": "lib/bundle.js", | ||
"compile:doc": "mkdir -p compiled && BABEL_ENV=build babel scripts/doc.js > compiled/doc.js", | ||
"preversion": "npm test", | ||
"prepublishOnly": "npm run doc-dev && npm test && npm run doc-prod", | ||
"preversion": "npm run doc-dev && npm test", | ||
"prepare": "npm run doc-dev && npm test && npm run doc-prod", | ||
"version": "npm run compile", | ||
@@ -15,0 +15,0 @@ "test": "run-s test:*", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
4787607
2820
0