Skip to content

Commit

Permalink
chore(package) v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
coderaiser committed Sep 19, 2016
1 parent 676c37e commit 285660c
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 7 deletions.
9 changes: 9 additions & 0 deletions ChangeLog
@@ -1,3 +1,12 @@
2016.09.19, v1.1.1

fix:
- (nessy) prevent removing of parent childs

feature:
- (package) scripts: add watch:test


2016.09.16, v1.1.0

feature:
Expand Down
9 changes: 5 additions & 4 deletions dist/nessy.es6.js
Expand Up @@ -10,10 +10,10 @@ module.exports = (selector, value, obj) => {

selector.split('.')
.forEach((name, i, arr) => {
if (i === arr.length - 1)
obj[name] = value;
else
obj[name] = {};
if (i === arr.length - 1)
obj[name] = value;
else if (!obj[name])
obj[name] = {};

obj = obj[name];
});
Expand All @@ -26,5 +26,6 @@ function check(selector) {
throw Error('selector should be string!');
}


},{}]},{},["nessy"])("nessy")
});
2 changes: 1 addition & 1 deletion dist/nessy.js
Expand Up @@ -9,7 +9,7 @@ module.exports = function (selector, value, obj) {
check(selector);

selector.split('.').forEach(function (name, i, arr) {
if (i === arr.length - 1) obj[name] = value;else obj[name] = {};
if (i === arr.length - 1) obj[name] = value;else if (!obj[name]) obj[name] = {};

obj = obj[name];
});
Expand Down
2 changes: 1 addition & 1 deletion dist/nessy.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "nessy",
"version": "1.1.0",
"version": "1.1.1",
"description": "set value in nested object",
"main": "lib/nessy.js",
"scripts": {
Expand Down

0 comments on commit 285660c

Please sign in to comment.