@famgia/omnify-core 0.0.51 → 0.0.52
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/dist/index.cjs +10 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -781,7 +781,10 @@ var VALID_PROPERTY_FIELDS = /* @__PURE__ */ new Set([
|
|
|
781
781
|
"hidden",
|
|
782
782
|
"fillable",
|
|
783
783
|
// Per-field settings for compound types
|
|
784
|
-
"fields"
|
|
784
|
+
"fields",
|
|
785
|
+
// Timestamp-specific properties
|
|
786
|
+
"useCurrent",
|
|
787
|
+
"useCurrentOnUpdate"
|
|
785
788
|
]);
|
|
786
789
|
function buildPropertyDefinition(data) {
|
|
787
790
|
const prop = {
|
|
@@ -886,6 +889,12 @@ function buildPropertyDefinition(data) {
|
|
|
886
889
|
if (data.fillable !== void 0 && typeof data.fillable === "boolean") {
|
|
887
890
|
prop.fillable = data.fillable;
|
|
888
891
|
}
|
|
892
|
+
if (data.useCurrent !== void 0 && typeof data.useCurrent === "boolean") {
|
|
893
|
+
prop.useCurrent = data.useCurrent;
|
|
894
|
+
}
|
|
895
|
+
if (data.useCurrentOnUpdate !== void 0 && typeof data.useCurrentOnUpdate === "boolean") {
|
|
896
|
+
prop.useCurrentOnUpdate = data.useCurrentOnUpdate;
|
|
897
|
+
}
|
|
889
898
|
if (data.fields !== void 0 && typeof data.fields === "object" && data.fields !== null) {
|
|
890
899
|
prop.fields = data.fields;
|
|
891
900
|
}
|