@famgia/omnify-laravel 0.0.71 → 0.0.73
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-4KBDUQFK.js → chunk-FEHKJQMT.js} +4 -1
- package/dist/{chunk-4KBDUQFK.js.map → chunk-FEHKJQMT.js.map} +1 -1
- package/dist/index.cjs +3 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/plugin.cjs +3 -0
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.js +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
package/dist/plugin.cjs
CHANGED
|
@@ -2439,6 +2439,9 @@ function generateFactory(schema, schemas, options, stubContent) {
|
|
|
2439
2439
|
if (schema.kind === "enum") {
|
|
2440
2440
|
return null;
|
|
2441
2441
|
}
|
|
2442
|
+
if (schema.options?.hidden) {
|
|
2443
|
+
return null;
|
|
2444
|
+
}
|
|
2442
2445
|
const modelName = toPascalCase(schema.name);
|
|
2443
2446
|
const factoryName = `${modelName}Factory`;
|
|
2444
2447
|
const attributes = [];
|