@faasjs/react 3.1.4 → 3.2.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/index.js CHANGED
@@ -244,7 +244,7 @@ useFaas.whyDidYouRender = true;
244
244
  async function faas(action, params, options) {
245
245
  const client = getClient(options?.baseUrl);
246
246
  if (client.onError)
247
- return client.faas(action, params, options).catch(async (res) => {
247
+ return client.browserClient.action(action, params, options).catch(async (res) => {
248
248
  await client.onError(action, params)(res);
249
249
  return Promise.reject(res);
250
250
  });
package/dist/index.mjs CHANGED
@@ -242,7 +242,7 @@ useFaas.whyDidYouRender = true;
242
242
  async function faas(action, params, options) {
243
243
  const client = getClient(options?.baseUrl);
244
244
  if (client.onError)
245
- return client.faas(action, params, options).catch(async (res) => {
245
+ return client.browserClient.action(action, params, options).catch(async (res) => {
246
246
  await client.onError(action, params)(res);
247
247
  return Promise.reject(res);
248
248
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/react",
3
- "version": "3.1.4",
3
+ "version": "3.2.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -34,7 +34,7 @@
34
34
  "dist"
35
35
  ],
36
36
  "dependencies": {
37
- "@faasjs/browser": "3.1.4"
37
+ "@faasjs/browser": "3.2.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "react": "*"