rsf-zero 0.3.0 → 0.3.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.
@@ -40,7 +40,8 @@ const callActionFn = async (actionId, actionFn, fnArgs) => {
40
40
  return actionFnReturnValue;
41
41
  }
42
42
  catch (e) {
43
- throw new Error('Error thrown in action handler ' + actionId + ': ' + e);
43
+ const errorWithStack = (e instanceof Error) ? e.stack : e;
44
+ throw new Error('Error thrown in action handler ' + actionId + ': ' + errorWithStack);
44
45
  }
45
46
  };
46
47
  const serialiseReturnValue = (actionId, value) => {
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "A minimal micro-framework with React Server Functions support",
4
4
  "author": "Igor Nadj",
5
5
  "type": "module",
6
- "version": "0.3.0",
6
+ "version": "0.3.1",
7
7
  "repository": {
8
8
  "type": "git",
9
9
  "url": "https://github.com/IgorNadj/rsf-zero.git",