@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 CHANGED
@@ -1932,9 +1932,9 @@
1932
1932
  args.push(data);
1933
1933
  }
1934
1934
  args.push(options);
1935
- let loader = axios[args.length === 2 ? 'get' : 'post']
1936
- .apply(axios, ...args)
1937
- .then((res) => {
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
- let loader = axios[args.length === 2 ? 'get' : 'post']
71
- .apply(axios, ...args)
72
- .then((res) => {
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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",