ng2-rest 13.1.1 → 13.1.2

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.
@@ -1015,9 +1015,9 @@ var Models;
1015
1015
  return res;
1016
1016
  }
1017
1017
  get json() {
1018
- // if (this.entity && typeof this.entity === 'function') {
1019
- // return this.entity(); // @LAST
1020
- // }
1018
+ if (this.entity && typeof this.entity === 'function') {
1019
+ return this.entity(); // @LAST
1020
+ }
1021
1021
  if (this.entity && typeof this.entity === 'object') {
1022
1022
  const json = this.toJSON(this.body, this.isArray);
1023
1023
  return Mapping.encode(json, this.entity, this.circular);
@@ -1070,7 +1070,9 @@ var Models;
1070
1070
  this.circular = circular;
1071
1071
  this.jobid = jobid;
1072
1072
  this.isArray = isArray;
1073
- // debugger
1073
+ // console.log({
1074
+ // sourceRequest, responseText, headers, statusCode, entity, circular, jobid, isArray
1075
+ // })
1074
1076
  this.init();
1075
1077
  }
1076
1078
  init() {