create-prisma-php-app 1.17.7 → 1.17.8

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.
@@ -489,7 +489,9 @@ function getLoadingsFiles()
489
489
  global $_filesListRoutes;
490
490
 
491
491
  $loadingFiles = array_filter($_filesListRoutes, function ($route) {
492
- return strpos($route, 'loading.php') !== false;
492
+ $normalizedRoute = str_replace('\\', '/', $route);
493
+ $isLoadingFile = preg_match('/\/loading\.php$/', $normalizedRoute);
494
+ return $isLoadingFile;
493
495
  });
494
496
 
495
497
  $haveLoadingFileContent = array_reduce($loadingFiles, function ($carry, $route) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.17.7",
3
+ "version": "1.17.8",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",