Skip to content

Commit dbcece7

Browse files
authored
Merge pull request #873 from miketownsend/fix-unsafe-eval
Uprev fast-csv to latest version which does not use unsafe eval
2 parents 77eeab1 + ffd9b71 commit dbcece7

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

gruntfile.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module.exports = function(grunt) {
44
grunt.loadNpmTasks('grunt-babel');
55
grunt.loadNpmTasks('grunt-browserify');
6-
grunt.loadNpmTasks('grunt-contrib-uglify');
6+
grunt.loadNpmTasks('grunt-contrib-uglify-es');
77
grunt.loadNpmTasks('grunt-contrib-jasmine');
88
grunt.loadNpmTasks('grunt-contrib-copy');
99

lib/csv/csv.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ CSV.prototype = {
7474
return datum;
7575
};
7676

77-
const csvStream = fastCsv(options)
77+
const csvStream = fastCsv.parse(options)
7878
.on('data', data => {
7979
worksheet.addRow(data.map(map));
8080
})
@@ -93,7 +93,7 @@ CSV.prototype = {
9393

9494
const worksheet = this.workbook.getWorksheet(options.sheetName || options.sheetId);
9595

96-
const csvStream = fastCsv.createWriteStream(options);
96+
const csvStream = fastCsv.format(options);
9797
stream.on('finish', () => {
9898
resolve();
9999
});

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@
8989
],
9090
"dependencies": {
9191
"archiver": "^3.0.0",
92-
"fast-csv": "^2.4.1",
93-
"jszip": "^3.1.5",
9492
"dayjs": "^1.8.15",
93+
"fast-csv": "^3.4.0",
94+
"jszip": "^3.1.5",
9595
"sax": "^1.2.4",
9696
"tmp": "^0.1.0",
9797
"unzipper": "^0.9.12"
@@ -120,7 +120,7 @@
120120
"grunt-browserify": "^5.3.0",
121121
"grunt-contrib-copy": "^1.0.0",
122122
"grunt-contrib-jasmine": "^2.0.3",
123-
"grunt-contrib-uglify": "^4.0.0",
123+
"grunt-contrib-uglify-es": "^3.3.0",
124124
"grunt-contrib-watch": "^1.1.0",
125125
"grunt-lib-phantomjs": "^1.1.0",
126126
"husky": "^2.2.0",

0 commit comments

Comments
 (0)