@famgia/omnify-core 0.0.51 → 0.0.53
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.js
CHANGED
|
@@ -670,7 +670,10 @@ var VALID_PROPERTY_FIELDS = /* @__PURE__ */ new Set([
|
|
|
670
670
|
"hidden",
|
|
671
671
|
"fillable",
|
|
672
672
|
// Per-field settings for compound types
|
|
673
|
-
"fields"
|
|
673
|
+
"fields",
|
|
674
|
+
// Timestamp-specific properties
|
|
675
|
+
"useCurrent",
|
|
676
|
+
"useCurrentOnUpdate"
|
|
674
677
|
]);
|
|
675
678
|
function buildPropertyDefinition(data) {
|
|
676
679
|
const prop = {
|
|
@@ -775,6 +778,12 @@ function buildPropertyDefinition(data) {
|
|
|
775
778
|
if (data.fillable !== void 0 && typeof data.fillable === "boolean") {
|
|
776
779
|
prop.fillable = data.fillable;
|
|
777
780
|
}
|
|
781
|
+
if (data.useCurrent !== void 0 && typeof data.useCurrent === "boolean") {
|
|
782
|
+
prop.useCurrent = data.useCurrent;
|
|
783
|
+
}
|
|
784
|
+
if (data.useCurrentOnUpdate !== void 0 && typeof data.useCurrentOnUpdate === "boolean") {
|
|
785
|
+
prop.useCurrentOnUpdate = data.useCurrentOnUpdate;
|
|
786
|
+
}
|
|
778
787
|
if (data.fields !== void 0 && typeof data.fields === "object" && data.fields !== null) {
|
|
779
788
|
prop.fields = data.fields;
|
|
780
789
|
}
|