ngx-papaparse icon indicating copy to clipboard operation
ngx-papaparse copied to clipboard

RenamedHeaders not present in metadata

Open Robouste opened this issue 8 months ago • 0 comments

Describe the bug

Trying to parse a csv with duplicate column names and config header: true will rename duplicate headers but will not add the information in the meta properties of the parse result.

To Reproduce

Please provide the necessary steps to reproduce the unwanted behaviour.

this.papa.parse(file, {
        worker: true,
        header: true,
        skipEmptyLines: true,
        complete: (results: ParseResult<{[key: string]: string}[]>) => {
             console.log(results);
        }
}

Expected behavior

According to the documentation, I should see something in ParseResult.meta.renamedHeaders

Software and platform

  • OS: Windows 10
  • Browser: Chrome
  • Version: 118.0.5993.70
  • Angular version: 16.1.8
  • Angular CLI version: 16.1.8
  • Node version: 16.14.2

Additional context

I'm using ngx-papaperse v8.0.0

Robouste avatar Oct 17 '23 13:10 Robouste