@slavmak2486/bx24ts 1.1.21 → 1.1.23
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 +14 -3
- package/dist/base/BX24.js +14 -3
- package/package.json +1 -1
package/base/BX24.ts
CHANGED
|
@@ -462,9 +462,20 @@ export abstract class baseBX24{
|
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
else{
|
|
465
|
-
return
|
|
466
|
-
|
|
467
|
-
|
|
465
|
+
return new Promise((resolve)=>{
|
|
466
|
+
this.call(url, {
|
|
467
|
+
method,
|
|
468
|
+
data:params
|
|
469
|
+
}).then(res=>{
|
|
470
|
+
resolve(res);
|
|
471
|
+
})
|
|
472
|
+
.catch(err=>{
|
|
473
|
+
resolve(new CallResult(err, {
|
|
474
|
+
data:params,
|
|
475
|
+
method,
|
|
476
|
+
callback:cb
|
|
477
|
+
}, this, 500));
|
|
478
|
+
})
|
|
468
479
|
});
|
|
469
480
|
}
|
|
470
481
|
}
|
package/dist/base/BX24.js
CHANGED
|
@@ -389,9 +389,20 @@ class baseBX24 {
|
|
|
389
389
|
});
|
|
390
390
|
}
|
|
391
391
|
else {
|
|
392
|
-
return
|
|
393
|
-
|
|
394
|
-
|
|
392
|
+
return new Promise((resolve) => {
|
|
393
|
+
this.call(url, {
|
|
394
|
+
method,
|
|
395
|
+
data: params
|
|
396
|
+
}).then(res => {
|
|
397
|
+
resolve(res);
|
|
398
|
+
})
|
|
399
|
+
.catch(err => {
|
|
400
|
+
resolve(new callResult_1.CallResult(err, {
|
|
401
|
+
data: params,
|
|
402
|
+
method,
|
|
403
|
+
callback: cb
|
|
404
|
+
}, this, 500));
|
|
405
|
+
});
|
|
395
406
|
});
|
|
396
407
|
}
|
|
397
408
|
}
|