@develit-io/backend-sdk 9.10.4 → 9.11.0

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.
package/README.md CHANGED
@@ -60,7 +60,7 @@ export { defineCommand, DatabaseTransaction, createAuditLogWriter } from '@devel
60
60
 
61
61
  ## Requirements
62
62
 
63
- - Node.js 18+
63
+ - Node.js 22+
64
64
  - TypeScript 5.0+
65
65
  - Cloudflare Workers environment
66
66
  - Drizzle ORM setup
package/dist/index.mjs CHANGED
@@ -372,7 +372,7 @@ async function handleAction(worker, input, options = {}, actionExecution) {
372
372
  }
373
373
  return RPCResponse.ok(successMessage, { data });
374
374
  } catch (error) {
375
- const internalError = createInternalError(error);
375
+ const internalError = isInternalError(error) ? error : createInternalError(error);
376
376
  worker.logError(internalError);
377
377
  return RPCResponse.serviceError(internalError);
378
378
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@develit-io/backend-sdk",
3
- "version": "9.10.4",
3
+ "version": "9.11.0",
4
4
  "description": "Develit Backend SDK",
5
5
  "author": "Develit.io",
6
6
  "license": "ISC",