Skip to content

Commit 5147e6e

Browse files
committed
1 parent 5c8ef2e commit 5147e6e

File tree

12 files changed

+48
-11
lines changed

12 files changed

+48
-11
lines changed

demo/eslint/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
### [0.1.2](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.2) (2022-06-14)
7+
8+
**Note:** Version bump only for package csv-demo-eslint
9+
10+
11+
12+
13+
614
### [0.1.1](https://github.com/adaltas/node-csv/compare/[email protected]@0.1.1) (2022-06-14)
715

816
**Note:** Version bump only for package csv-demo-eslint

demo/eslint/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "csv-demo-eslint",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "",
55
"main": "index.js",
66
"private": true,
@@ -10,7 +10,7 @@
1010
},
1111
"license": "MIT",
1212
"dependencies": {
13-
"csv-stringify": "^6.1.1"
13+
"csv-stringify": "^6.1.2"
1414
},
1515
"devDependencies": {
1616
"eslint": "^8.16.0",

demo/esm/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
### [0.0.5](https://github.com/adaltas/node-csv/compare/[email protected]@0.0.5) (2022-06-14)
7+
8+
**Note:** Version bump only for package csv-demo-esm
9+
10+
11+
12+
13+
614
### [0.0.4](https://github.com/adaltas/node-csv/compare/[email protected]@0.0.4) (2022-06-14)
715

816
**Note:** Version bump only for package csv-demo-esm

demo/esm/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
22
"name": "csv-demo-esm",
3-
"version": "0.0.4",
3+
"version": "0.0.5",
44
"main": "index.js",
55
"license": "MIT",
66
"type": "module",
77
"private": true,
88
"dependencies": {
9-
"csv": "^6.1.1",
9+
"csv": "^6.1.2",
1010
"csv-parse": "^5.2.0"
1111
},
1212
"devDependencies": {

packages/csv-stringify/CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
### [6.1.2](https://github.com/adaltas/node-csv/compare/[email protected]@6.1.2) (2022-06-14)
7+
8+
9+
### Bug Fixes
10+
11+
* **csv-stringify:** throw err with no records and header in sync mode ([5c8ef2e](https://github.com/adaltas/node-csv/commit/5c8ef2e25618b122982e01c22bcfa3f8ed5db8aa))
12+
13+
14+
615
### [6.1.1](https://github.com/adaltas/node-csv/compare/[email protected]@6.1.1) (2022-06-14)
716

817

packages/csv-stringify/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "6.1.1",
2+
"version": "6.1.2",
33
"name": "csv-stringify",
44
"description": "CSV stringifier implementing the Node.js `stream.Transform` API",
55
"keywords": [

packages/csv/CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
### [6.1.2](https://github.com/adaltas/node-csv/compare/[email protected]@6.1.2) (2022-06-14)
7+
8+
**Note:** Version bump only for package csv
9+
10+
11+
12+
13+
614
### [6.1.1](https://github.com/adaltas/node-csv/compare/[email protected]@6.1.1) (2022-06-14)
715

816

packages/csv/dist/cjs/sync.cjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -2086,9 +2086,10 @@ const stringify = function(records, opts={}){
20862086
api.bom((d) => {
20872087
data.push(d);
20882088
});
2089-
api.headers((headers) => {
2089+
const err = api.headers((headers) => {
20902090
data.push(headers);
20912091
});
2092+
if(err !== undefined) throw err;
20922093
}
20932094
return data.join('');
20942095
};

packages/csv/dist/esm/sync.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -7206,9 +7206,10 @@ const stringify = function(records, opts={}){
72067206
api.bom((d) => {
72077207
data.push(d);
72087208
});
7209-
api.headers((headers) => {
7209+
const err = api.headers((headers) => {
72107210
data.push(headers);
72117211
});
7212+
if(err !== undefined) throw err;
72127213
}
72137214
return data.join('');
72147215
};

packages/csv/dist/iife/sync.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -7209,9 +7209,10 @@ var csv_sync = (function (exports) {
72097209
api.bom((d) => {
72107210
data.push(d);
72117211
});
7212-
api.headers((headers) => {
7212+
const err = api.headers((headers) => {
72137213
data.push(headers);
72147214
});
7215+
if(err !== undefined) throw err;
72157216
}
72167217
return data.join('');
72177218
};

packages/csv/dist/umd/sync.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -7212,9 +7212,10 @@
72127212
api.bom((d) => {
72137213
data.push(d);
72147214
});
7215-
api.headers((headers) => {
7215+
const err = api.headers((headers) => {
72167216
data.push(headers);
72177217
});
7218+
if(err !== undefined) throw err;
72187219
}
72197220
return data.join('');
72207221
};

packages/csv/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "csv",
3-
"version": "6.1.1",
3+
"version": "6.1.2",
44
"description": "A mature CSV toolset with simple api, full of options and tested against large datasets.",
55
"keywords": [
66
"node",
@@ -23,7 +23,7 @@
2323
"dependencies": {
2424
"csv-generate": "^4.1.0",
2525
"csv-parse": "^5.2.0",
26-
"csv-stringify": "^6.1.1",
26+
"csv-stringify": "^6.1.2",
2727
"stream-transform": "^3.1.0"
2828
},
2929
"devDependencies": {

0 commit comments

Comments
 (0)