create-prisma-php-app 2.3.33 → 2.3.34

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.
@@ -30,7 +30,6 @@ export async function checkComponentImports(
30
30
  string,
31
31
  | Array<{ className: string; filePath: string; importer?: string }>
32
32
  | { className: string; filePath: string; importer?: string }
33
- | string
34
33
  >
35
34
  ) {
36
35
  const code = await fs.readFile(filePath, "utf-8");
@@ -52,12 +51,7 @@ export async function checkComponentImports(
52
51
  }> = [];
53
52
  if (Array.isArray(rawMapping)) {
54
53
  mappings = rawMapping;
55
- } else if (
56
- rawMapping &&
57
- typeof rawMapping === "object" &&
58
- "className" in rawMapping &&
59
- "filePath" in rawMapping
60
- ) {
54
+ } else if (rawMapping) {
61
55
  mappings = [rawMapping];
62
56
  }
63
57
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "2.3.33",
3
+ "version": "2.3.34",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",