diff --git a/dist/index.js b/dist/index.js index 9ed2161..c7b3239 100644 --- a/dist/index.js +++ b/dist/index.js @@ -2606,7 +2606,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 610ca6c..60a4f92 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "dependencies": { "@actions/core": "^1.5.0", "@actions/exec": "^1.1.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 6f3fc9c..263d2eb 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1120,10 +1120,10 @@ cssstyle@^2.3.0: dependencies: cssom "~0.3.6" -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@^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"