@inflector/optima 1.0.18 → 1.0.20

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -522,8 +522,12 @@ var OptimaTable = class _OptimaTable {
522
522
  const orderedValues = columnKeys.map((key) => {
523
523
  let v = r[key];
524
524
  if (v == null) {
525
- if (typeof this.Columns[key].config.default === "function") {
526
- v = this.Columns[key].config.default();
525
+ if (this.Columns[key].config.default !== void 0) {
526
+ if (typeof this.Columns[key].config.default === "function") {
527
+ v = this.Columns[key].config.default();
528
+ } else {
529
+ v = this.Columns[key].config.default;
530
+ }
527
531
  } else if (this.Columns[key].config.defaultNow) {
528
532
  v = /* @__PURE__ */ new Date();
529
533
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inflector/optima",
3
- "version": "1.0.18",
3
+ "version": "1.0.20",
4
4
  "type": "module",
5
5
  "author": "Inflector",
6
6
  "main": "./dist/index.js",