@bbn/bbn 1.0.334 → 1.0.336

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.
@@ -131,12 +131,12 @@ export default function ajax(url, datatype, data, success, failure, abort) {
131
131
  switch (res.status) {
132
132
  case 200:
133
133
  if (isFunction(success)) {
134
- bbn.fn.log("THERE US A SUCCESS FUNCTION", res);
134
+ bbn.fn.log(["THERE US A SUCCESS FUNCTION", res, loader_1]);
135
135
  success(res.data, res.headers);
136
136
  }
137
137
  break;
138
138
  default:
139
- bbn.fn.log("THIS IS THE DEFAULT FUNCTION", res, loader_1);
139
+ bbn.fn.log(["THIS IS THE DEFAULT FUNCTION", res, loader_1]);
140
140
  bbn.fn.defaultAjaxErrorFunction(loader_1, res);
141
141
  }
142
142
  return res;
@@ -160,7 +160,7 @@ export default function ajax(url, datatype, data, success, failure, abort) {
160
160
  ok = failure(err.request, err);
161
161
  }
162
162
  if (ok) {
163
- bbn.fn.log("THIS IS THE ERROR FUNCTION", err);
163
+ bbn.fn.log(["THIS IS THE ERROR FUNCTION for url " + url, err, loader_1, err.request, err.response, err.message, err.cause]);
164
164
  bbn.fn.defaultAjaxErrorFunction(err.request, err.response ? err.response.data : "", err.response ? err.response.status : err);
165
165
  }
166
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.334",
3
+ "version": "1.0.336",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",