Skip to content
This repository has been archived by the owner on Jul 21, 2023. It is now read-only.

Commit

Permalink
Update csv-parse to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
himdel committed Sep 23, 2020
1 parent 6f8e502 commit e5ecc05
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import csv from 'csv';
import csvParse from 'csv-parse';
import utf8 from 'utf8';
import { Button, EmptyState } from 'patternfly-react';
import Dropzone from 'react-dropzone';
Expand All @@ -21,7 +21,7 @@ class CSVDropzoneField extends React.Component {
if (fileHandle) {
const reader = new FileReader();
reader.onload = () => {
csv.parse(reader.result, (err, csvRows) => {
csvParse(reader.result, (err, csvRows) => {
if (csvRows && csvRows.length > 0) {
csvRows = this.trimWhiteSpaces(csvRows);
const headerRow = this.mapCSVColumnNameToKey(csvRows[0]);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -61,7 +61,7 @@
"classnames": "^2.2.5",
"connected-react-router": "^6.7.0",
"core-js": "^2.5.7",
"csv": "^2.0.0",
"csv-parse": "~4.12.0",
"file-saver": "^1.3.8",
"lodash.orderby": "^4.6.0",
"moment": "^2.22.0",
Expand Down

0 comments on commit e5ecc05

Please sign in to comment.