@faasjs/ant-design 6.12.1 → 6.12.3

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.cjs CHANGED
@@ -250,7 +250,7 @@ function App(props) {
250
250
  ...props.faasConfigProviderProps,
251
251
  faasClientOptions: {
252
252
  onError: (action) => async (res) => {
253
- if ("message" in res && res.message.includes("AbortError") || res.body?.name === "AbortError")
253
+ if ("message" in res && res.toString().includes("AbortError"))
254
254
  return;
255
255
  console.error(`[FaasJS][${action}]`, res);
256
256
  messageApi.error(
package/dist/index.mjs CHANGED
@@ -246,7 +246,7 @@ function App(props) {
246
246
  ...props.faasConfigProviderProps,
247
247
  faasClientOptions: {
248
248
  onError: (action) => async (res) => {
249
- if ("message" in res && res.message.includes("AbortError") || res.body?.name === "AbortError")
249
+ if ("message" in res && res.toString().includes("AbortError"))
250
250
  return;
251
251
  console.error(`[FaasJS][${action}]`, res);
252
252
  messageApi.error(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/ant-design",
3
- "version": "6.12.1",
3
+ "version": "6.12.3",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -30,7 +30,7 @@
30
30
  "dist"
31
31
  ],
32
32
  "peerDependencies": {
33
- "@faasjs/react": ">=6.12.1",
33
+ "@faasjs/react": ">=6.12.3",
34
34
  "antd": "*",
35
35
  "@ant-design/icons": "*",
36
36
  "lodash-es": "*",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/lodash-es": "*",
43
- "@faasjs/react": ">=6.12.1",
43
+ "@faasjs/react": ">=6.12.3",
44
44
  "antd": "*",
45
45
  "@ant-design/icons": "*",
46
46
  "lodash-es": "*",