@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.cjs
CHANGED
|
@@ -2510,6 +2510,9 @@ function generateFactory(schema, schemas, options, stubContent) {
|
|
|
2510
2510
|
if (schema.kind === "enum") {
|
|
2511
2511
|
return null;
|
|
2512
2512
|
}
|
|
2513
|
+
if (schema.options?.hidden) {
|
|
2514
|
+
return null;
|
|
2515
|
+
}
|
|
2513
2516
|
const modelName = toPascalCase(schema.name);
|
|
2514
2517
|
const factoryName = `${modelName}Factory`;
|
|
2515
2518
|
const attributes = [];
|