alberthaff / ngx-papaparse

Papa Parse wrapper for Angular
https://alberthaff.dk/projects/ngx-papaparse/docs/v8
MIT License
90 stars 19 forks source link

RenamedHeaders not present in metadata #115

Open Robouste opened 1 year ago

Robouste commented 1 year ago

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

Additional context

I'm using ngx-papaperse v8.0.0