diff --git a/lib/es5/index.js b/lib/es5/index.js index 8d77f14..68a207e 100644 --- a/lib/es5/index.js +++ b/lib/es5/index.js @@ -6,7 +6,7 @@ var _slicedToArray = function () { function sliceIterator(arr, i) { var _arr = [ function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } -// Generated by CoffeeScript 2.2.3 +// Generated by CoffeeScript 2.2.4 // # CSV Parser // This module provides a CSV parser tested and used against large datasets. Over diff --git a/lib/es5/sync.js b/lib/es5/sync.js index 4bb3c65..d492b7a 100644 --- a/lib/es5/sync.js +++ b/lib/es5/sync.js @@ -1,6 +1,6 @@ 'use strict'; -// Generated by CoffeeScript 2.2.3 +// Generated by CoffeeScript 2.2.4 // # CSV Parse Sync // Provides a synchronous alternative to the CSV parser. diff --git a/lib/index.js b/lib/index.js index 4705d4c..1b11ec6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,4 +1,4 @@ -// Generated by CoffeeScript 2.2.3 +// Generated by CoffeeScript 2.2.4 // # CSV Parser // This module provides a CSV parser tested and used against large datasets. Over diff --git a/lib/sync.js b/lib/sync.js index e004e0c..88b8ba8 100644 --- a/lib/sync.js +++ b/lib/sync.js @@ -1,4 +1,4 @@ -// Generated by CoffeeScript 2.2.3 +// Generated by CoffeeScript 2.2.4 // # CSV Parse Sync // Provides a synchronous alternative to the CSV parser. diff --git a/test/options.auto_parse.coffee b/test/options.auto_parse.coffee index 2a2c02b..9ea4bac 100644 --- a/test/options.auto_parse.coffee +++ b/test/options.auto_parse.coffee @@ -46,12 +46,12 @@ describe 'options "auto_parse" (deprecated)', -> """, auto_parse: (value, context) -> if context.index is 0 - then new Date "#{value} 05:00:00" + then "#{value}T05:00:00.000Z" else {...context} , (err, records) -> records.should.eql [ - [ new Date('2000-01-01T04:00:00.000Z'), {quoting: false, count: 0, index: 1, column: 1} ] - [ new Date('2050-11-27T04:00:00.000Z'), {quoting: false, count: 1, index: 1, column: 1} ] + [ '2000-01-01T05:00:00.000Z', {quoting: false, count: 0, index: 1, column: 1} ] + [ '2050-11-27T05:00:00.000Z', {quoting: false, count: 1, index: 1, column: 1} ] ] unless err next err diff --git a/test/options.cast.coffee b/test/options.cast.coffee index e9c3bc8..1a886f4 100644 --- a/test/options.cast.coffee +++ b/test/options.cast.coffee @@ -46,12 +46,12 @@ describe 'options "cast"', -> """, cast: (value, context) -> if context.index is 0 - then new Date "#{value} 05:00:00" + then "#{value}T05:00:00.000Z" else {...context} , (err, records) -> records.should.eql [ - [ new Date('2000-01-01T04:00:00.000Z'), {quoting: false, count: 0, index: 1, column: 1} ] - [ new Date('2050-11-27T04:00:00.000Z'), {quoting: false, count: 1, index: 1, column: 1} ] + [ '2000-01-01T05:00:00.000Z', {quoting: false, count: 0, index: 1, column: 1} ] + [ '2050-11-27T05:00:00.000Z', {quoting: false, count: 1, index: 1, column: 1} ] ] unless err next err