From 8ba85ead00263865d39bcef0b8fd1aa9468ad813 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 3 Sep 2021 13:18:53 +0200 Subject: [PATCH] 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)}`