@andrey4emk/npm-app-back-b24 2.0.14 → 3.0.1

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/bitrix24/b24.ts +3 -0
  2. package/package.json +2 -2
package/bitrix24/b24.ts CHANGED
@@ -265,6 +265,9 @@ export function stopProactiveRefresh(): void {
265
265
  */
266
266
  function isB24NetworkError(error: unknown): boolean {
267
267
  if (error instanceof AjaxError) {
268
+ // SDK уже сам retry'ил и исчерпал все попытки — не повторять
269
+ if (error.code === "JSSDK_CALL_ALL_ATTEMPTS_EXHAUSTED") return false;
270
+
268
271
  const { originalError, status } = error;
269
272
 
270
273
  if (originalError && isNetworkError(originalError)) return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrey4emk/npm-app-back-b24",
3
- "version": "2.0.14",
3
+ "version": "3.0.1",
4
4
  "description": "Bitrix24 OAuth helpers for Node.js projects",
5
5
  "main": "index.ts",
6
6
  "type": "module",
@@ -35,7 +35,7 @@
35
35
  "utils/fetchRetry.ts"
36
36
  ],
37
37
  "dependencies": {
38
- "@bitrix24/b24jssdk": "^0.5.1",
38
+ "@bitrix24/b24jssdk": "^1.0.4",
39
39
  "@types/express": "^5.0.6",
40
40
  "@types/luxon": "^3.7.1",
41
41
  "@types/node": "^25.0.10",