gengojs-core-modules
Advanced tools
Comparing version 2.0.2 to 2.0.5
@@ -0,1 +1,8 @@ | ||
2.0.2 / 2015-10-04 | ||
================== | ||
* Release v2.0.2. | ||
* Fix | ||
Fixed error messages. | ||
2.0.1 / 2015-09-29 | ||
@@ -2,0 +9,0 @@ ================== |
@@ -46,3 +46,7 @@ import _ from 'lodash'; | ||
// Set the default options by merging with user's | ||
options[type] = _.defaults(options, defaults); | ||
options = _.merge({}, { | ||
[type]: defaults | ||
}, _.isEmpty(options) ? { | ||
[type]: {} | ||
} : options); | ||
} | ||
@@ -49,0 +53,0 @@ /** |
@@ -11,2 +11,4 @@ 'use strict'; | ||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } | ||
@@ -79,3 +81,3 @@ | ||
// Set the default options by merging with user's | ||
options[type] = _lodash2['default'].defaults(options, defaults); | ||
options = _lodash2['default'].merge({}, _defineProperty({}, type, defaults), _lodash2['default'].isEmpty(options) ? _defineProperty({}, type, {}) : options); | ||
} | ||
@@ -82,0 +84,0 @@ |
{ | ||
"name": "gengojs-core-modules", | ||
"version": "2.0.2", | ||
"version": "2.0.5", | ||
"description": "gengo.js core modules is a set of modules that helps the core to function properly.", | ||
@@ -5,0 +5,0 @@ "main": "./modules/index.js", |
@@ -44,3 +44,5 @@ var _ = require('lodash'); | ||
package: pkg, | ||
defaults: {} | ||
defaults: { | ||
greet:'hello' | ||
} | ||
}; | ||
@@ -56,3 +58,5 @@ }, | ||
package: pkg, | ||
defaults: {} | ||
defaults: { | ||
greet2:'hello' | ||
} | ||
}; | ||
@@ -68,3 +72,5 @@ }, | ||
package: pkg, | ||
defaults: {} | ||
defaults: { | ||
greet3:'hello' | ||
} | ||
}; | ||
@@ -80,3 +86,5 @@ }, | ||
package: pkg, | ||
defaults: {} | ||
defaults: { | ||
greet4:'hello' | ||
} | ||
}; | ||
@@ -92,3 +100,5 @@ }, | ||
package: pkg, | ||
defaults: {} | ||
defaults: { | ||
greet5:'hello' | ||
} | ||
}; | ||
@@ -104,3 +114,5 @@ }, | ||
package: pkg, | ||
defaults: {} | ||
defaults: { | ||
greet6:'hello' | ||
} | ||
}; | ||
@@ -107,0 +119,0 @@ } |
Sorry, the diff of this file is not supported yet
150133
1506