ngx-papaparse
ngx-papaparse copied to clipboard
RenamedHeaders not present in metadata
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