@slavmak2486/bx24ts 1.0.2 → 1.0.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/base/BX24.ts +1 -1
- package/dist/base/BX24.js +1 -1
- package/package.json +4 -4
package/base/BX24.ts
CHANGED
|
@@ -220,7 +220,7 @@ export abstract class baseBX24{
|
|
|
220
220
|
.catch(err=>{
|
|
221
221
|
if (__get(err, ['response','data','error'], undefined)=='expired_token'&&!url.includes('oauth.bitrix.info/oauth/token/')){
|
|
222
222
|
this.refreshAuth(()=>{
|
|
223
|
-
this.call(url, config);
|
|
223
|
+
this.call(url, config).then(resolve).catch(reject);
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
else{
|
package/dist/base/BX24.js
CHANGED
|
@@ -195,7 +195,7 @@ class baseBX24 {
|
|
|
195
195
|
.catch(err => {
|
|
196
196
|
if ((0, lodash_1.get)(err, ['response', 'data', 'error'], undefined) == 'expired_token' && !url.includes('oauth.bitrix.info/oauth/token/')) {
|
|
197
197
|
this.refreshAuth(() => {
|
|
198
|
-
this.call(url, config);
|
|
198
|
+
this.call(url, config).then(resolve).catch(reject);
|
|
199
199
|
});
|
|
200
200
|
}
|
|
201
201
|
else {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slavmak2486/bx24ts",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"description": "Library for bitrix24",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,8 +18,6 @@
|
|
|
18
18
|
"license": "ISC",
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"@types/jest": "^27.4.1",
|
|
21
|
-
"@types/lodash": "^4.14.179",
|
|
22
|
-
"@types/qs": "^6.9.7",
|
|
23
21
|
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
24
22
|
"@typescript-eslint/parser": "^5.13.0",
|
|
25
23
|
"axios-mock-adapter": "^1.20.0",
|
|
@@ -33,6 +31,8 @@
|
|
|
33
31
|
"dependencies": {
|
|
34
32
|
"axios": "^0.26.0",
|
|
35
33
|
"lodash": "^4.17.21",
|
|
36
|
-
"qs": "^6.10.3"
|
|
34
|
+
"qs": "^6.10.3",
|
|
35
|
+
"@types/lodash": "^4.14.179",
|
|
36
|
+
"@types/qs": "^6.9.7"
|
|
37
37
|
}
|
|
38
38
|
}
|