@famgia/omnify-laravel 0.0.34 → 0.0.35
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/{chunk-BYMCYVUK.js → chunk-WOIXJZT5.js} +4 -2
- package/dist/chunk-WOIXJZT5.js.map +1 -0
- package/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +3 -1
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +4 -4
- package/dist/chunk-BYMCYVUK.js.map +0 -1
package/dist/index.js
CHANGED
package/dist/plugin.cjs
CHANGED
|
@@ -313,7 +313,9 @@ function expandCompoundType(propName, property, customTypes, options = {}) {
|
|
|
313
313
|
const sqlType = field.sql.sqlType.toUpperCase();
|
|
314
314
|
if (sqlType === "VARCHAR" || sqlType === "CHAR" || sqlType === "STRING") {
|
|
315
315
|
expandedProp.type = "String";
|
|
316
|
-
if (
|
|
316
|
+
if (fieldOverride?.length) {
|
|
317
|
+
expandedProp.length = fieldOverride.length;
|
|
318
|
+
} else if (field.sql.length) {
|
|
317
319
|
expandedProp.length = field.sql.length;
|
|
318
320
|
}
|
|
319
321
|
} else if (sqlType === "TINYINT") {
|