create-prisma-php-app 1.1.1 → 1.1.3

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.
@@ -44,7 +44,11 @@ if (!empty($_SERVER["HTTP_X_REQUESTED_WITH"]) && $_SERVER["HTTP_X_REQUESTED_WITH
44
44
  if (is_array($params)) {
45
45
  // Attempt to call the method with unpacked arguments.
46
46
  try {
47
- $result = $instance->$methodName($params);
47
+ if (isset($params['identifier'], $params['data'])) {
48
+ $result = $instance->$methodName($params['identifier'], $params['data']);
49
+ } else {
50
+ $result = $instance->$methodName($params);
51
+ }
48
52
  if (is_object($result)) {
49
53
  $result = (array) $result;
50
54
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-prisma-php-app",
3
- "version": "1.1.1",
3
+ "version": "1.1.3",
4
4
  "description": "Prisma-PHP: A Revolutionary Library Bridging PHP with Prisma ORM",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",