diff --git a/dist/index.js b/dist/index.js index d60d7cad8..861ac542d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6435,7 +6435,7 @@ class Parser extends Transform { const date = Date.parse(value) return !isNaN(date) ? new Date(date) : value } - }else if(typeof options.cast_date !== 'function'){ + }else{ throw new CsvError('CSV_INVALID_OPTION_CAST_DATE', [ 'Invalid option cast_date:', 'cast_date must be true or a function,', `got ${JSON.stringify(options.cast_date)}` diff --git a/package.json b/package.json index da184d576..b87054cd4 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "@actions/core": "^1.5.0", "@actions/exec": "^1.1.0", "@actions/github": "^5.0.0", - "csv-parse": "^4.16.2", + "csv-parse": "^4.16.3", "semver": "^7.3.5", "tmp": "^0.2.1" }, diff --git a/yarn.lock b/yarn.lock index 763d64b90..b398f92f2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1270,10 +1270,10 @@ cssstyle@^2.3.0: dependencies: cssom "~0.3.6" -csv-parse@*, csv-parse@^4.16.2: - version "4.16.2" - resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-4.16.2.tgz#cd7d25e9b9e1430ac6aa5ed9b5c1685e72d4a8d8" - integrity sha512-eq2BhB6JiIJaNv61pH5EC+o/iyCBxT+g6ukLu2UoNyS5daCN8YlzhOsLHGt/t9sGraMYt/aizaXPLQoNvxlIMw== +csv-parse@*, csv-parse@^4.16.3: + version "4.16.3" + resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-4.16.3.tgz#7ca624d517212ebc520a36873c3478fa66efbaf7" + integrity sha512-cO1I/zmz4w2dcKHVvpCr7JVRu8/FymG5OEpmvsZYlccYolPBLoVGKUHgNoc4ZGkFeFlWGEDmMyBM+TTqRdW/wg== data-urls@^2.0.0: version "2.0.0"