prisma-laravel-migrate 3.1.21 → 3.1.22

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
@@ -1691,7 +1691,7 @@ function deriveMethodName(modelName, kind) {
1691
1691
  // src/generator/lib/relationship/index.ts
1692
1692
  var pivotOtherEndpointFor = (thisModelName, candidate) => {
1693
1693
  if (candidate.documentation?.includes("@entity")) {
1694
- const entities = listFrom(candidate.documentation ?? "", "@entity");
1694
+ const entities = listFrom(candidate.documentation ?? "", "entity");
1695
1695
  if (entities.length > 0) return void 0;
1696
1696
  if (entities.includes(thisModelName)) return void 0;
1697
1697
  }
@@ -532,7 +532,7 @@ function deriveMethodName(modelName, kind) {
532
532
  // src/generator/lib/relationship/index.ts
533
533
  var pivotOtherEndpointFor = (thisModelName, candidate) => {
534
534
  if (candidate.documentation?.includes("@entity")) {
535
- const entities = listFrom(candidate.documentation ?? "", "@entity");
535
+ const entities = listFrom(candidate.documentation ?? "", "entity");
536
536
  if (entities.length > 0) return void 0;
537
537
  if (entities.includes(thisModelName)) return void 0;
538
538
  }
@@ -480,7 +480,7 @@ function deriveMethodName(modelName, kind) {
480
480
  // src/generator/lib/relationship/index.ts
481
481
  var pivotOtherEndpointFor = (thisModelName, candidate) => {
482
482
  if (candidate.documentation?.includes("@entity")) {
483
- const entities = listFrom(candidate.documentation ?? "", "@entity");
483
+ const entities = listFrom(candidate.documentation ?? "", "entity");
484
484
  if (entities.length > 0) return void 0;
485
485
  if (entities.includes(thisModelName)) return void 0;
486
486
  }
package/dist/index.js CHANGED
@@ -1751,7 +1751,7 @@ function deriveMethodName(modelName, kind) {
1751
1751
  // src/generator/lib/relationship/index.ts
1752
1752
  var pivotOtherEndpointFor = (thisModelName, candidate) => {
1753
1753
  if (candidate.documentation?.includes("@entity")) {
1754
- const entities = listFrom(candidate.documentation ?? "", "@entity");
1754
+ const entities = listFrom(candidate.documentation ?? "", "entity");
1755
1755
  if (entities.length > 0) return void 0;
1756
1756
  if (entities.includes(thisModelName)) return void 0;
1757
1757
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-laravel-migrate",
3
- "version": "3.1.21",
3
+ "version": "3.1.22",
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",