Comparing version 1.2.1 to 1.3.0
@@ -6,3 +6,3 @@ 'use strict'; | ||
}); | ||
exports.updateAll = exports.has = exports.always = exports.cons = exports.inc = exports.toggle = exports.matching = exports.compose = exports.lens = exports.view = exports.get = exports.set = exports.over = exports.mod = undefined; | ||
exports.updateAll = exports.unless = exports.all = exports.matching = exports.compose = exports.lens = exports.view = exports.get = exports.set = exports.over = exports.mod = undefined; | ||
@@ -47,32 +47,11 @@ var _setters = require('./lens-consumers/setters.js'); | ||
Object.defineProperty(exports, 'toggle', { | ||
enumerable: true, | ||
get: function get() { | ||
return _utils.toggle; | ||
} | ||
Object.keys(_utils).forEach(function (key) { | ||
if (key === "default" || key === "__esModule") return; | ||
Object.defineProperty(exports, key, { | ||
enumerable: true, | ||
get: function get() { | ||
return _utils[key]; | ||
} | ||
}); | ||
}); | ||
Object.defineProperty(exports, 'inc', { | ||
enumerable: true, | ||
get: function get() { | ||
return _utils.inc; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'cons', { | ||
enumerable: true, | ||
get: function get() { | ||
return _utils.cons; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'always', { | ||
enumerable: true, | ||
get: function get() { | ||
return _utils.always; | ||
} | ||
}); | ||
Object.defineProperty(exports, 'has', { | ||
enumerable: true, | ||
get: function get() { | ||
return _utils.has; | ||
} | ||
}); | ||
@@ -91,2 +70,10 @@ var _lens2 = require('./lens-crafters/lens.js'); | ||
var _all2 = require('./traversals/all'); | ||
var _all3 = _interopRequireDefault(_all2); | ||
var _unless2 = require('./traversals/unless'); | ||
var _unless3 = _interopRequireDefault(_unless2); | ||
var _updateAll2 = require('./utils/updateAll.js'); | ||
@@ -101,2 +88,4 @@ | ||
exports.matching = _matching3.default; | ||
exports.all = _all3.default; | ||
exports.unless = _unless3.default; | ||
exports.updateAll = _updateAll3.default; |
@@ -11,2 +11,6 @@ 'use strict'; | ||
var identity = exports.identity = function identity(a) { | ||
return a; | ||
}; | ||
var toggle = exports.toggle = function toggle(bool) { | ||
@@ -16,2 +20,8 @@ return !bool; | ||
var not = exports.not = function not(f) { | ||
return function () { | ||
return !f.apply(undefined, arguments); | ||
}; | ||
}; | ||
var inc = exports.inc = function inc(num) { | ||
@@ -33,2 +43,14 @@ return num + 1; | ||
var pipe = exports.pipe = function pipe() { | ||
for (var _len = arguments.length, fs = Array(_len), _key = 0; _key < _len; _key++) { | ||
fs[_key] = arguments[_key]; | ||
} | ||
return function (args) { | ||
return fs.reduce(function (acc, f) { | ||
return f(acc); | ||
}, args); | ||
}; | ||
}; | ||
var every = function every(arr) { | ||
@@ -35,0 +57,0 @@ var _iteratorNormalCompletion = true; |
{ | ||
"name": "shades", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Lens-like functionality with a lodash-style interface.", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
71334
19
780