@faasjs/react 3.1.4 → 3.1.5
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 +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
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.
|
|
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.
|
|
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.
|
|
3
|
+
"version": "3.1.5",
|
|
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.
|
|
37
|
+
"@faasjs/browser": "3.1.5"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"react": "*"
|