@zenstackhq/server 3.0.0 → 3.1.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.
package/dist/api.js CHANGED
@@ -1967,7 +1967,7 @@ var RPCApiHandler = class {
1967
1967
  return resp;
1968
1968
  }
1969
1969
  async processRequestPayload(args) {
1970
- const { meta, ...rest } = args;
1970
+ const { meta, ...rest } = args ?? {};
1971
1971
  if (meta?.serialization) {
1972
1972
  try {
1973
1973
  args = SuperJSON3.deserialize({
@@ -1980,6 +1980,8 @@ var RPCApiHandler = class {
1980
1980
  error: `failed to deserialize request payload: ${err.message}`
1981
1981
  };
1982
1982
  }
1983
+ } else {
1984
+ args = rest;
1983
1985
  }
1984
1986
  return {
1985
1987
  result: args,