create-prisma-php-app 1.10.21 → 1.11.1

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.
@@ -91,7 +91,7 @@ function checkForDuplicateRoutes()
91
91
  if (count($originalRoutes) > 1 && strpos($normalizedRoute, DIRECTORY_SEPARATOR) !== false) {
92
92
  $directGroupMatchFound = false;
93
93
  foreach ($originalRoutes as $originalRoute) {
94
- if (preg_match('#^\\.\\/src\\/app\\\\\\((.*?)\\)\\\\([^\\\\]+\\.php)$#', $originalRoute, $matches)) {
94
+ if (preg_match('~^\\.\\/src\\/app[\\/\\\\]\\(.*?\\)[\\/\\\\].*?\\.php$~', $originalRoute, $matches)) {
95
95
  $directGroupMatchFound = true;
96
96
  }
97
97
  }
@@ -123,9 +123,9 @@ class StateManager
123
123
  if ($clearFromStorage) {
124
124
  // Save the updated state to the session or clear it
125
125
  if (empty($this->state)) {
126
- unset($_SESSION['appState']);
126
+ unset($_SESSION[self::APP_STATE]);
127
127
  } else {
128
- $_SESSION['appState'] = json_encode($this->state);
128
+ $_SESSION[self::APP_STATE] = json_encode($this->state);
129
129
  }
130
130
  }
131
131
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.10.21",
3
+ "version": "1.11.1",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",