@onehat/data 1.19.12 → 1.19.13

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.12",
3
+ "version": "1.19.13",
4
4
  "description": "JS data modeling package with adapters for many storage mediums.",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
@@ -279,6 +279,9 @@ export default class Schema extends EventEmitter {
279
279
  }
280
280
  }
281
281
  }
282
+ if (_.isFunction(defaultValue)) {
283
+ defaultValue = defaultValue();
284
+ }
282
285
  found[property.name] = defaultValue;
283
286
  });
284
287
  return found;