Skip to content

Commit ca4afa3

Browse files
committed
Upgrade csv-parse from 5 to 6 and change imports
1 parent 9a1186a commit ca4afa3

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

lib/data/briefcase.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
const { Transform } = require('stream');
1111
const hparser = require('htmlparser2');
1212
const { identity, last } = require('ramda');
13-
const csv = require('csv-stringify');
13+
const { stringify: csv } = require('csv-stringify');
1414
const sanitize = require('sanitize-filename');
1515
const { SchemaStack } = require('./schema');
1616
const { rejectIfError } = require('../util/promise');

lib/data/client-audits.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
const { Transform } = require('stream');
1111
const { parse } = require('csv-parse');
12-
const csv = require('csv-stringify');
12+
const { stringify: csv } = require('csv-stringify');
1313
const sanitize = require('sanitize-filename');
1414
const { PartialPipe } = require('../util/stream');
1515
const { zipPart } = require('../util/zip');

lib/data/entity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
// for dealing with the XForms XML schema and transforming submission XML into
1212
// entities.
1313

14-
const csv = require('csv-stringify');
14+
const { stringify: csv } = require('csv-stringify');
1515
const { clone, path, mergeLeft } = require('ramda');
1616
const { Transform } = require('stream');
1717
const { v4: uuid } = require('uuid');

package-lock.json

Lines changed: 8 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"config": "^4.1.1",
1919
"cookie-parser": "^1.4.6",
2020
"csv-parse": "^6.1.0",
21-
"csv-stringify": "~5",
21+
"csv-stringify": "^6.6.0",
2222
"digest-stream": "~2",
2323
"entities": "^7.0.0",
2424
"express": "~4.21",

0 commit comments

Comments
 (0)