From c6dca826de1d6606247439ca51d5c441d24252fb Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 3 Sep 2021 11:03:15 +0000 Subject: [PATCH 1/2] Bump csv-parse from 4.16.2 to 4.16.3 Bumps [csv-parse](https://github.com/wdavidw/node-csv-parse) from 4.16.2 to 4.16.3. - [Release notes](https://github.com/wdavidw/node-csv-parse/releases) - [Commits](https://github.com/wdavidw/node-csv-parse/commits) --- updated-dependencies: - dependency-name: csv-parse dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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" From 8ba85ead00263865d39bcef0b8fd1aa9468ad813 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 3 Sep 2021 13:18:53 +0200 Subject: [PATCH 2/2] Update generated content Signed-off-by: CrazyMax --- dist/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)}`