prisma-laravel-migrate 3.1.22 → 3.1.23

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/cli/cli.js CHANGED
@@ -1692,7 +1692,7 @@ function deriveMethodName(modelName, kind) {
1692
1692
  var pivotOtherEndpointFor = (thisModelName, candidate) => {
1693
1693
  if (candidate.documentation?.includes("@entity")) {
1694
1694
  const entities = listFrom(candidate.documentation ?? "", "entity");
1695
- if (entities.length > 0) return void 0;
1695
+ if (entities.length === 0) return void 0;
1696
1696
  if (entities.includes(thisModelName)) return void 0;
1697
1697
  }
1698
1698
  const rels = objRels(candidate).filter(
@@ -533,7 +533,7 @@ function deriveMethodName(modelName, kind) {
533
533
  var pivotOtherEndpointFor = (thisModelName, candidate) => {
534
534
  if (candidate.documentation?.includes("@entity")) {
535
535
  const entities = listFrom(candidate.documentation ?? "", "entity");
536
- if (entities.length > 0) return void 0;
536
+ if (entities.length === 0) return void 0;
537
537
  if (entities.includes(thisModelName)) return void 0;
538
538
  }
539
539
  const rels = objRels(candidate).filter(
@@ -481,7 +481,7 @@ function deriveMethodName(modelName, kind) {
481
481
  var pivotOtherEndpointFor = (thisModelName, candidate) => {
482
482
  if (candidate.documentation?.includes("@entity")) {
483
483
  const entities = listFrom(candidate.documentation ?? "", "entity");
484
- if (entities.length > 0) return void 0;
484
+ if (entities.length === 0) return void 0;
485
485
  if (entities.includes(thisModelName)) return void 0;
486
486
  }
487
487
  const rels = objRels(candidate).filter(
package/dist/index.js CHANGED
@@ -1752,7 +1752,7 @@ function deriveMethodName(modelName, kind) {
1752
1752
  var pivotOtherEndpointFor = (thisModelName, candidate) => {
1753
1753
  if (candidate.documentation?.includes("@entity")) {
1754
1754
  const entities = listFrom(candidate.documentation ?? "", "entity");
1755
- if (entities.length > 0) return void 0;
1755
+ if (entities.length === 0) return void 0;
1756
1756
  if (entities.includes(thisModelName)) return void 0;
1757
1757
  }
1758
1758
  const rels = objRels(candidate).filter(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-laravel-migrate",
3
- "version": "3.1.22",
3
+ "version": "3.1.23",
4
4
  "description": "Generate laravel migrations and/or models using prisma files",
5
5
  "bin": {
6
6
  "prisma-laravel-migrations": "./dist/cli/migrator.index.js",