create-prisma-php-app 1.19.3 → 1.19.4

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.
@@ -522,14 +522,14 @@ function wireCallback()
522
522
 
523
523
  function getLoadingsFiles()
524
524
  {
525
- global $_filesListRoutes, $uri, $pathname, $dynamicRouteParams, $params;
525
+ global $_filesListRoutes, $uri, $pathname, $dynamicRouteParams, $params, $referer;
526
526
 
527
527
  $loadingFiles = array_filter($_filesListRoutes, function ($route) {
528
528
  $normalizedRoute = str_replace('\\', '/', $route);
529
529
  return preg_match('/\/loading\.php$/', $normalizedRoute);
530
530
  });
531
531
 
532
- $haveLoadingFileContent = array_reduce($loadingFiles, function ($carry, $route) use ($uri, $pathname, $dynamicRouteParams, $params) {
532
+ $haveLoadingFileContent = array_reduce($loadingFiles, function ($carry, $route) use ($uri, $pathname, $dynamicRouteParams, $params, $referer) {
533
533
  $normalizeUri = str_replace('\\', '/', $route);
534
534
  $fileUrl = str_replace('./src/app', '', $normalizeUri);
535
535
 
@@ -32,6 +32,7 @@ $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') ||
32
32
  $domainName = $_SERVER['HTTP_HOST'];
33
33
  $scriptName = dirname($_SERVER['SCRIPT_NAME']) . '/';
34
34
  $baseUrl = $protocol . $domainName . rtrim($scriptName, '/') . '/src/app/';
35
+ $referer = $_SERVER['HTTP_REFERER'] ?? 'Unknown';
35
36
 
36
37
  $params = [];
37
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.19.3",
3
+ "version": "1.19.4",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",