create-prisma-php-app 2.2.0 → 2.2.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.
@@ -106,6 +106,7 @@ class MainLayout
106
106
  if (str_starts_with(trim($script), '<script')) {
107
107
  $script = preg_replace_callback('/<script\b([^>]*)>/i', function ($m) use ($className) {
108
108
  $attrs = $m[1];
109
+ $className = base64_encode($className);
109
110
 
110
111
  if (!str_contains($attrs, 'pp-sync-script=')) {
111
112
  $attrs .= " pp-sync-script=\"{$className}\"";
@@ -308,7 +308,7 @@ class TemplateCompiler
308
308
  throw new RuntimeException("Class {$className} does not exist.");
309
309
  }
310
310
 
311
- $attributes['pp-sync-script'] = $className;
311
+ $attributes['pp-sync-script'] = base64_encode($className);
312
312
  return new $className($attributes);
313
313
  }
314
314
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",