@wix/sdk 1.9.7 → 1.9.8

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.
@@ -204,7 +204,7 @@ export function createClient(config) {
204
204
  if (!implMethod) {
205
205
  throw new Error(`Got request for service plugin method ${method.name} but no implementation was provided. Available methods: ${Object.keys(impl).join(', ')}`);
206
206
  }
207
- return implMethod(method.transformations.fromREST(decoded.data));
207
+ return method.transformations.toREST(await implMethod(method.transformations.fromREST(decoded.data)));
208
208
  },
209
209
  async processRequest(request, componentType) {
210
210
  const url = request.url;
@@ -207,7 +207,7 @@ function createClient(config) {
207
207
  if (!implMethod) {
208
208
  throw new Error(`Got request for service plugin method ${method.name} but no implementation was provided. Available methods: ${Object.keys(impl).join(', ')}`);
209
209
  }
210
- return implMethod(method.transformations.fromREST(decoded.data));
210
+ return method.transformations.toREST(await implMethod(method.transformations.fromREST(decoded.data)));
211
211
  },
212
212
  async processRequest(request, componentType) {
213
213
  const url = request.url;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/sdk",
3
- "version": "1.9.7",
3
+ "version": "1.9.8",
4
4
  "license": "UNLICENSED",
5
5
  "author": {
6
6
  "name": "Ronny Ringel",
@@ -120,5 +120,5 @@
120
120
  "wallaby": {
121
121
  "autoDetect": true
122
122
  },
123
- "falconPackageHash": "d4dbbb6460aeb154746786c06a55f71816e5fd35e26dbe365fbe69aa"
123
+ "falconPackageHash": "e54c791dea32ccc3284789ca35f54c8187eda8e78badbe988df64cc3"
124
124
  }