@ecodrix/erix-api 1.1.8 → 1.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecodrix/erix-api",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "author": "ECODrIx Team <contact@ecodrix.com>",
5
5
  "license": "MIT",
6
6
  "description": "Official Isomorphic SDK for the ECODrIx platform. Native support for WhatsApp, CRM, Storage, and Meetings across TS, JS, Python, and Java.",
@@ -46,12 +46,12 @@
46
46
  "schema"
47
47
  ],
48
48
  "dependencies": {
49
- "axios": "^1.7.0",
49
+ "axios": "^1.7.9",
50
50
  "axios-retry": "^4.5.0",
51
51
  "commander": "^14.0.3",
52
52
  "dotenv": "^17.4.0",
53
53
  "picocolors": "^1.1.1",
54
- "socket.io-client": "^4.7.5"
54
+ "socket.io-client": "^4.8.1"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@biomejs/biome": "^1.9.4",
package/src/core.ts CHANGED
@@ -159,6 +159,14 @@ export class Ecodrix {
159
159
  axiosRetry.isNetworkOrIdempotentRequestError(error) || error.response?.status === 429
160
160
  );
161
161
  },
162
+ onRetry: (retryCount, error, requestConfig) => {
163
+ const isDev = typeof process !== "undefined" && process.env?.NODE_ENV === "development";
164
+ if (isDev) {
165
+ console.warn(
166
+ `[ECODrIx SDK] Retrying request (${retryCount}/3): ${requestConfig.method?.toUpperCase()} ${requestConfig.url}. Reason: ${error.message}`,
167
+ );
168
+ }
169
+ },
162
170
  });
163
171
 
164
172
  // Initialise resources