@onehat/data 1.19.13 → 1.19.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onehat/data",
3
- "version": "1.19.13",
3
+ "version": "1.19.14",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -192,10 +192,14 @@ export default class Property extends EventEmitter {
192
192
  * @return {any} defaultValue
193
193
  */
194
194
  getDefaultValue() {
195
+ let value = null;
195
196
  if (!_.isNil(this.defaultValue)) {
196
- return this.defaultValue;
197
+ value = this.defaultValue;
197
198
  }
198
- return null;
199
+ if (_.isFunction(value)) {
200
+ value = value();
201
+ }
202
+ return value;
199
203
  }
200
204
 
201
205
  /**