prisma-laravel-migrate 3.1.8 → 3.1.9

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
@@ -2435,7 +2435,7 @@ var PrismaToTypesGenerator = class {
2435
2435
  pivotProps.push(`${propName}: ${colTs}`);
2436
2436
  }
2437
2437
  const pivotShape = pivotProps.length ? `{ ${pivotProps.join("; ")} }` : "{}";
2438
- const elementType = `${target} & ${pivotShape}`;
2438
+ const elementType = pivotShape ? `(${target} & ${pivotShape})` : target;
2439
2439
  tsType = wrapList(elementType);
2440
2440
  } else {
2441
2441
  tsType = wrapList(target);
@@ -766,7 +766,7 @@ var PrismaToTypesGenerator = class {
766
766
  pivotProps.push(`${propName}: ${colTs}`);
767
767
  }
768
768
  const pivotShape = pivotProps.length ? `{ ${pivotProps.join("; ")} }` : "{}";
769
- const elementType = `${target} & ${pivotShape}`;
769
+ const elementType = pivotShape ? `(${target} & ${pivotShape})` : target;
770
770
  tsType = wrapList(elementType);
771
771
  } else {
772
772
  tsType = wrapList(target);
package/dist/index.js CHANGED
@@ -2430,7 +2430,7 @@ var PrismaToTypesGenerator = class {
2430
2430
  pivotProps.push(`${propName}: ${colTs}`);
2431
2431
  }
2432
2432
  const pivotShape = pivotProps.length ? `{ ${pivotProps.join("; ")} }` : "{}";
2433
- const elementType = `${target} & ${pivotShape}`;
2433
+ const elementType = pivotShape ? `(${target} & ${pivotShape})` : target;
2434
2434
  tsType = wrapList(elementType);
2435
2435
  } else {
2436
2436
  tsType = wrapList(target);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prisma-laravel-migrate",
3
- "version": "3.1.8",
3
+ "version": "3.1.9",
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",