From 36db8814f9c1f2e7c1bbde4311ae20e0ffc14178 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Fri, 3 Sep 2021 13:32:19 +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 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)}`