@zenstackhq/server 3.0.0 → 3.1.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/dist/api.cjs CHANGED
@@ -2002,7 +2002,7 @@ var RPCApiHandler = class {
2002
2002
  return resp;
2003
2003
  }
2004
2004
  async processRequestPayload(args) {
2005
- const { meta, ...rest } = args;
2005
+ const { meta, ...rest } = args ?? {};
2006
2006
  if (meta?.serialization) {
2007
2007
  try {
2008
2008
  args = import_superjson3.default.deserialize({
@@ -2015,6 +2015,8 @@ var RPCApiHandler = class {
2015
2015
  error: `failed to deserialize request payload: ${err.message}`
2016
2016
  };
2017
2017
  }
2018
+ } else {
2019
+ args = rest;
2018
2020
  }
2019
2021
  return {
2020
2022
  result: args,