corp-chat-library-antd-react-socket 1.2.8 → 1.2.9

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10372,6 +10372,13 @@ const Mg = ({ open: e, onOk: t, onCancel: r, positionCorner: n }) => {
10372
10372
  });
10373
10373
  return;
10374
10374
  }
10375
+ if (typeof g?.post != "function") {
10376
+ console.warn("[fetchChatsList] axios instance invalid", {
10377
+ type: typeof g,
10378
+ keys: Object.keys(g)
10379
+ });
10380
+ return;
10381
+ }
10375
10382
  const te = (await g.post(
10376
10383
  E,
10377
10384
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corp-chat-library-antd-react-socket",
3
3
  "description": "React chat component with Ant Design and Socket.io support",
4
- "version": "1.2.8",
4
+ "version": "1.2.9",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",