@esfaenza/extensions 11.2.29 → 11.2.30

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.
@@ -1043,14 +1043,14 @@
1043
1043
  ExportService.prototype.parseAndGetHeaders = function (obj) {
1044
1044
  var headers = [];
1045
1045
  // Miracle incoming
1046
- for (var prop in obj) {
1046
+ for (var prop in Object.getOwnPropertyNames(Object.getPrototypeOf(obj))) {
1047
1047
  var toCall = void 0;
1048
- if (typeof obj[prop + listCsvHdrPrefix] !== "undefined")
1048
+ if (prop.endsWith(listCsvHdrPrefix))
1049
1049
  toCall = this.parseList.bind(this);
1050
- else if (typeof obj[prop + dictionaryCsvHdrPrefix] !== "undefined")
1050
+ else if (prop.endsWith(dictionaryCsvHdrPrefix))
1051
1051
  toCall = this.parseDictionary.bind(this);
1052
- else if (typeof obj[prop + csvVisPrefix] !== "undefined") {
1053
- if (typeof obj[prop + csvValueNavigator] !== "undefined")
1052
+ else if (prop.endsWith(csvVisPrefix)) {
1053
+ if (typeof obj[prop.replace(csvVisPrefix, '') + csvValueNavigator] !== "undefined")
1054
1054
  toCall = this.parseObject.bind(this);
1055
1055
  else
1056
1056
  toCall = this.parseProperty.bind(this);