Skip to content

Commit 779abd2

Browse files
committed
chore: update dependencies
1 parent e81cd60 commit 779abd2

File tree

9 files changed

+1606
-1357
lines changed

9 files changed

+1606
-1357
lines changed

package-lock.json

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

package.json

Lines changed: 6 additions & 6 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",
55-
"c8": "^7.14.0",
56-
"conventional-changelog-cli": "^4.1.0",
53+
"@typescript-eslint/eslint-plugin": "^8.14.0",
54+
"@typescript-eslint/parser": "^8.14.0",
55+
"c8": "^10.1.2",
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/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/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
}

packages/plainjs/src/BaseParser.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export interface FormattersOptions {
5353
[FormatterTypes.bigint]?: Formatter<bigint>;
5454
[FormatterTypes.string]?: Formatter<string>;
5555
[FormatterTypes.symbol]?: Formatter<symbol>;
56-
// eslint-disable-next-line @typescript-eslint/ban-types
56+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
5757
[FormatterTypes.function]?: Formatter<Function>;
5858
[FormatterTypes.object]?: Formatter<object>;
5959
}

packages/plainjs/src/utils.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,13 @@ export function getProp<T>(
162162
export function flattenReducer<T>(acc: Array<T>, arr: Array<T> | T): Array<T> {
163163
try {
164164
// This is faster but susceptible to `RangeError: Maximum call stack size exceeded`
165-
Array.isArray(arr) ? acc.push(...arr) : acc.push(arr);
165+
if (Array.isArray(arr)) {
166+
acc.push(...arr);
167+
} else {
168+
acc.push(arr);
169+
}
166170
return acc;
167-
} catch (err: unknown) {
171+
} catch {
168172
// Fallback to a slower but safer option
169173
return acc.concat(arr);
170174
}

packages/transforms/src/utils.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,13 @@ export function unsetProp<T extends object>(obj: T, path: PropertyPath): T {
218218
export function flattenReducer<T>(acc: Array<T>, arr: Array<T> | T): Array<T> {
219219
try {
220220
// This is faster but susceptible to `RangeError: Maximum call stack size exceeded`
221-
Array.isArray(arr) ? acc.push(...arr) : acc.push(arr);
221+
if (Array.isArray(arr)) {
222+
acc.push(...arr);
223+
} else {
224+
acc.push(arr);
225+
}
222226
return acc;
223-
} catch (err: unknown) {
227+
} catch {
224228
// Fallback to a slower but safer option
225229
return acc.concat(arr);
226230
}

0 commit comments

Comments
 (0)