Skip to content

Commit

Permalink
Fixed set to use merge and not assign, updated dependencies -> Releas…
Browse files Browse the repository at this point in the history
…e v1.0.2
  • Loading branch information
EladBezalel committed Jul 29, 2015
1 parent aa1d6de commit 9ccadf7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ SettingsFile.prototype.set = function (content) {

return self._readFile()
.then(function (fileContent) {
fileContent.global = _.assign(fileContent.global || {}, content);
fileContent.global = _.merge(fileContent.global || {}, content);

return self._writeFile(fileContent);
});
Expand All @@ -173,7 +173,7 @@ SettingsFile.prototype.set = function (content) {
SettingsFile.prototype.setSync = function (content) {
var fileContent = this._readFileSync();

fileContent.global = _.assign(fileContent.global || {}, content);
fileContent.global = _.merge(fileContent.global || {}, content);
this._writeFileSync(fileContent);
};

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nachos-settings-file",
"version": "1.0.1",
"version": "1.0.2",
"description": "Settings file is a tool to handle nachos settings files",
"main": "lib/index.js",
"scripts": {
Expand Down Expand Up @@ -36,7 +36,7 @@
"gulp-bump": "^0.3.1",
"gulp-coveralls": "^0.1.4",
"gulp-istanbul": "^0.10.0",
"gulp-jscs": "^1.6.0",
"gulp-jscs": "^2.0.0",
"gulp-jshint": "^1.11.2",
"gulp-mocha": "^2.1.3",
"jshint-stylish": "^2.0.1",
Expand Down

0 comments on commit 9ccadf7

Please sign in to comment.