@bbn/bbn 1.0.58 → 1.0.59
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/dist/bundle.js +3 -3
- package/dist/fn/ajax.js +3 -3
- package/package.json +1 -1
package/dist/bundle.js
CHANGED
|
@@ -1932,9 +1932,9 @@
|
|
|
1932
1932
|
args.push(data);
|
|
1933
1933
|
}
|
|
1934
1934
|
args.push(options);
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
.then(
|
|
1935
|
+
const axiosMethod = args.length === 2 ? 'get' : 'post';
|
|
1936
|
+
let loader = axios[axiosMethod].apply(null, args)
|
|
1937
|
+
.then(res => {
|
|
1938
1938
|
(0, _deleteLoader_1._deleteLoader)(requestId, res);
|
|
1939
1939
|
(0, defaultEndLoadingFunction_1.defaultEndLoadingFunction)(url, tst, data, res);
|
|
1940
1940
|
switch (res.status) {
|
package/dist/fn/ajax.js
CHANGED
|
@@ -67,9 +67,9 @@ const ajax = function (url, datatype, data, success, failure, abort) {
|
|
|
67
67
|
args.push(data);
|
|
68
68
|
}
|
|
69
69
|
args.push(options);
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
.then(
|
|
70
|
+
const axiosMethod = args.length === 2 ? 'get' : 'post';
|
|
71
|
+
let loader = axios[axiosMethod].apply(null, args)
|
|
72
|
+
.then(res => {
|
|
73
73
|
_deleteLoader(requestId, res);
|
|
74
74
|
defaultEndLoadingFunction(url, tst, data, res);
|
|
75
75
|
switch (res.status) {
|