Skip to content

Commit 1712d25

Browse files
committed
chore: update dependencies
1 parent e81cd60 commit 1712d25

File tree

17 files changed

+1283
-1350
lines changed

17 files changed

+1283
-1350
lines changed

package-lock.json

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

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@
5050
},
5151
"devDependencies": {
5252
"@types/tape": "^5.6.0",
53-
"@typescript-eslint/eslint-plugin": "^6.2.0",
54-
"@typescript-eslint/parser": "^6.2.0",
53+
"@typescript-eslint/eslint-plugin": "^8.14.0",
54+
"@typescript-eslint/parser": "^8.14.0",
5555
"c8": "^7.14.0",
56-
"conventional-changelog-cli": "^4.1.0",
56+
"conventional-changelog-cli": "^5.0.0",
5757
"docsify-cli": "^4.4.4",
58-
"esbuild": "^0.20.0",
59-
"eslint": "^8.30.0",
58+
"esbuild": "^0.24.0",
59+
"eslint": "^8.2.0",
6060
"eslint-config-airbnb-base": "^15.0.0",
6161
"eslint-config-prettier": "^9.0.0",
6262
"eslint-plugin-import": "^2.26.0",

packages/cli/src/json2csv.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,11 @@ async function processOutput(
232232
config: OutputOptions,
233233
): Promise<void> {
234234
if (!outputPath) {
235-
config.pretty
236-
? new TablePrinter(config).printCSV(csv)
237-
: process.stdout.write(csv);
235+
if (config.pretty) {
236+
new TablePrinter(config).printCSV(csv);
237+
} else {
238+
process.stdout.write(csv);
239+
}
238240
return;
239241
}
240242

packages/cli/src/utils/parseNdjson.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default function parseNdJson<T>(input: string, eol: string): Array<T> {
55
.map((line) => line.trim())
66
.filter((line) => line !== '')
77
.map((line) => JSON.parse(line));
8-
} catch (err: unknown) {
8+
} catch {
99
throw new Error("Invalid ND-JSON couldn't be parsed");
1010
}
1111
}

packages/cli/test/CLI.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os from 'os';
21
import { promises as fsPromises } from 'fs';
32
import { join as joinPath } from 'path';
43
import { exec } from 'child_process';
@@ -73,14 +72,7 @@ export default function (
7372

7473
t.fail('Exception expected.');
7574
} catch (err: any) {
76-
t.ok(
77-
err.message.includes(
78-
`Unexpected SEPARATOR ("${os.EOL.replace('\r', '\\r').replace(
79-
'\n',
80-
'\\n',
81-
)}") in state COMMA`,
82-
),
83-
);
75+
t.ok(err.message.includes('Unexpected LEFT_BRACE ("{") in state COMMA'));
8476
}
8577
});
8678

packages/node/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"prepublishOnly": "npm run build"
4949
},
5050
"devDependencies": {
51-
"@types/node": "^20.1.7"
51+
"@types/node": "^22.9.0"
5252
},
5353
"dependencies": {
5454
"@json2csv/plainjs": "^7.0.6"

packages/node/test/AsyncParser.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os from 'os';
21
import { type Readable, Writable } from 'stream';
32

43
import TestRunner from '@json2csv/test-helpers/TestRunner.js';
@@ -109,13 +108,7 @@ export default function (
109108

110109
t.fail('Exception expected');
111110
} catch (err: any) {
112-
t.equal(
113-
err.message,
114-
`Unexpected SEPARATOR ("${os.EOL.replace('\r', '\\r').replace(
115-
'\n',
116-
'\\n',
117-
)}") in state COMMA`,
118-
);
111+
t.equal(err.message, 'Unexpected LEFT_BRACE ("{") in state COMMA');
119112
}
120113
});
121114

@@ -131,14 +124,7 @@ export default function (
131124

132125
t.fail('Exception expected');
133126
} catch (err: any) {
134-
t.ok(
135-
err.message.includes(
136-
`Unexpected SEPARATOR ("${os.EOL.replace('\r', '\\r').replace(
137-
'\n',
138-
'\\n',
139-
)}") in state COMMA`,
140-
),
141-
);
127+
t.ok(err.message.includes('Unexpected LEFT_BRACE ("{") in state COMMA'));
142128
}
143129
});
144130

packages/node/test/AsyncParserInMemory.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os from 'os';
21
import { type Readable, Writable } from 'stream';
32

43
import TestRunner from '@json2csv/test-helpers/TestRunner.js';
@@ -109,13 +108,7 @@ export default function (
109108

110109
t.fail('Exception expected');
111110
} catch (err: any) {
112-
t.equal(
113-
err.message,
114-
`Unexpected SEPARATOR ("${os.EOL.replace('\r', '\\r').replace(
115-
'\n',
116-
'\\n',
117-
)}") in state COMMA`,
118-
);
111+
t.equal(err.message, 'Unexpected LEFT_BRACE ("{") in state COMMA');
119112
}
120113
});
121114

@@ -131,14 +124,7 @@ export default function (
131124

132125
t.fail('Exception expected');
133126
} catch (err: any) {
134-
t.ok(
135-
err.message.includes(
136-
`Unexpected SEPARATOR ("${os.EOL.replace('\r', '\\r').replace(
137-
'\n',
138-
'\\n',
139-
)}") in state COMMA`,
140-
),
141-
);
127+
t.ok(err.message.includes('Unexpected LEFT_BRACE ("{") in state COMMA'));
142128
}
143129
});
144130

packages/node/test/Transform.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import os from 'os';
21
import { type Readable, Writable } from 'stream';
32

43
import TestRunner from '@json2csv/test-helpers/TestRunner.js';
@@ -95,13 +94,7 @@ export default function (
9594

9695
t.fail('Exception expected');
9796
} catch (err: any) {
98-
t.equal(
99-
err.message,
100-
`Unexpected SEPARATOR ("${os.EOL.replace('\r', '\\r').replace(
101-
'\n',
102-
'\\n',
103-
)}") in state COMMA`,
104-
);
97+
t.equal(err.message, 'Unexpected LEFT_BRACE ("{") in state COMMA');
10598
}
10699
});
107100

@@ -117,14 +110,7 @@ export default function (
117110

118111
t.fail('Exception expected');
119112
} catch (err: any) {
120-
t.ok(
121-
err.message.includes(
122-
`Unexpected SEPARATOR ("${os.EOL.replace('\r', '\\r').replace(
123-
'\n',
124-
'\\n',
125-
)}") in state COMMA`,
126-
),
127-
);
113+
t.ok(err.message.includes('Unexpected LEFT_BRACE ("{") in state COMMA'));
128114
}
129115
});
130116

packages/plainjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,6 @@
4949
},
5050
"dependencies": {
5151
"@json2csv/formatters": "^7.0.6",
52-
"@streamparser/json": "^0.0.20"
52+
"@streamparser/json": "^0.0.21"
5353
}
5454
}

0 commit comments

Comments
 (0)