Skip to content

Commit

Permalink
Release 2.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
nunofgs committed Mar 9, 2017
1 parent f8afe18 commit 8b104b8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## [v2.0.2](https://github.com/seegno/clean-deep/tree/v2.0.2) (2017-03-09)
[Full Changelog](https://github.com/seegno/clean-deep/compare/v2.0.1...v2.0.2)

**Merged pull requests:**

- Update dist to es5 to keep uglifyjs compatibility [\#20](https://github.com/seegno/clean-deep/pull/20) ([akofman](https://github.com/akofman))

## [v2.0.1](https://github.com/seegno/clean-deep/tree/v2.0.1) (2016-11-02)
[Full Changelog](https://github.com/seegno/clean-deep/compare/v2.0.0...v2.0.1)

Expand Down
27 changes: 13 additions & 14 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,19 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
*/

function cleanDeep(object) {
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

var _ref$emptyArrays = _ref.emptyArrays;
let emptyArrays = _ref$emptyArrays === undefined ? true : _ref$emptyArrays;
var _ref$emptyObjects = _ref.emptyObjects;
let emptyObjects = _ref$emptyObjects === undefined ? true : _ref$emptyObjects;
var _ref$emptyStrings = _ref.emptyStrings;
let emptyStrings = _ref$emptyStrings === undefined ? true : _ref$emptyStrings;
var _ref$nullValues = _ref.nullValues;
let nullValues = _ref$nullValues === undefined ? true : _ref$nullValues;
var _ref$undefinedValues = _ref.undefinedValues;
let undefinedValues = _ref$undefinedValues === undefined ? true : _ref$undefinedValues;

return (0, _lodash6.default)(object, (result, value, key) => {
var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
_ref$emptyArrays = _ref.emptyArrays,
emptyArrays = _ref$emptyArrays === undefined ? true : _ref$emptyArrays,
_ref$emptyObjects = _ref.emptyObjects,
emptyObjects = _ref$emptyObjects === undefined ? true : _ref$emptyObjects,
_ref$emptyStrings = _ref.emptyStrings,
emptyStrings = _ref$emptyStrings === undefined ? true : _ref$emptyStrings,
_ref$nullValues = _ref.nullValues,
nullValues = _ref$nullValues === undefined ? true : _ref$nullValues,
_ref$undefinedValues = _ref.undefinedValues,
undefinedValues = _ref$undefinedValues === undefined ? true : _ref$undefinedValues;

return (0, _lodash6.default)(object, function (result, value, key) {
// Recurse into objects.
if ((0, _lodash4.default)(value)) {
value = cleanDeep(value, { emptyArrays: emptyArrays, emptyObjects: emptyObjects, emptyStrings: emptyStrings, nullValues: nullValues, undefinedValues: undefinedValues });
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "clean-deep",
"version": "2.0.1",
"version": "2.0.2",
"description": "Remove falsy, empty or nullable values from objects",
"keywords": [
"clean",
Expand Down

0 comments on commit 8b104b8

Please sign in to comment.