Skip to content

Commit ca546bd

Browse files
committed
Bump dependencies & resolves CVE-2026-25128
1 parent 6d15621 commit ca546bd

7 files changed

Lines changed: 57 additions & 62 deletions

File tree

.xo-config.json

Lines changed: 0 additions & 44 deletions
This file was deleted.

package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@
2929
"author": "LitoMore",
3030
"license": "MIT",
3131
"dependencies": {
32-
"fast-xml-parser": "^5.0.8"
32+
"fast-xml-parser": "^5.3.4"
3333
},
3434
"devDependencies": {
35-
"@ava/typescript": "^5.0.0",
36-
"@sindresorhus/tsconfig": "^7.0.0",
37-
"@types/node": "^22.13.8",
38-
"ava": "^6.2.0",
35+
"@ava/typescript": "^6.0.0",
36+
"@sindresorhus/tsconfig": "^8.1.0",
37+
"@types/node": "^25.1.0",
38+
"ava": "^6.4.1",
3939
"c8": "^10.1.3",
40-
"del-cli": "^6.0.0",
41-
"eslint-plugin-import": "^2.31.0",
42-
"typescript": "^5.8.2",
43-
"xo": "^0.60.0"
40+
"del-cli": "^7.0.0",
41+
"eslint-plugin-import": "^2.32.0",
42+
"typescript": "^5.9.3",
43+
"xo": "^1.2.3"
4444
}
4545
}

source/convertions/fcpxml.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ export const dataToFcpxml = (
247247
};
248248
/* eslint-enable @typescript-eslint/naming-convention */
249249

250-
const xml = builder.build(xmlData) as string;
250+
const xml = builder.build(xmlData);
251251
if (typeof xml === 'string') return xml;
252252
/* c8 ignore start */
253253
throw new Error('Failed to build XML');

source/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
export * from './convertions/_index.js';
22
export {detectFormat, timeToMs, msToTime} from './convertions/_utils.js';
3-
export * from './types.js';
3+
export type * from './types.js';

test/index.test.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
import test from 'ava';
2+
import {
3+
approxMatch,
4+
sampleFcpxml,
5+
sampleSrt,
6+
sampleVtt,
7+
} from './_helpers.test.js';
28
import {
39
fcpxmlToData,
410
fcpxmlToSrt,
@@ -10,12 +16,6 @@ import {
1016
vttToFcpxml,
1117
vttToSrt,
1218
} from 'subkit';
13-
import {
14-
approxMatch,
15-
sampleFcpxml,
16-
sampleSrt,
17-
sampleVtt,
18-
} from './_helpers.test.js';
1919

2020
const srtText = await sampleSrt();
2121
const vttText = await sampleVtt();

test/utils.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import test from 'ava';
2-
import {detectFormat, msToTime, timeToMs} from 'subkit';
32
import {sampleFcpxml, sampleSrt, sampleVtt} from './_helpers.test.js';
3+
import {detectFormat, msToTime, timeToMs} from 'subkit';
44

55
const srtText = await sampleSrt();
66
const vttText = await sampleVtt();

xo.config.mjs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
const xoConfig = [
2+
{
3+
prettier: true,
4+
rules: {
5+
'sort-imports': [
6+
'error',
7+
{
8+
ignoreCase: false,
9+
ignoreDeclarationSort: true,
10+
ignoreMemberSort: false,
11+
memberSyntaxSortOrder: ['none', 'all', 'multiple', 'single'],
12+
allowSeparatedGroups: false,
13+
},
14+
],
15+
'import-x/no-named-as-default': 'off',
16+
'import-x/extensions': 'off',
17+
'import-x/order': [
18+
'error',
19+
{
20+
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
21+
alphabetize: {
22+
order: 'asc',
23+
caseInsensitive: true,
24+
},
25+
warnOnUnassignedImports: true,
26+
'newlines-between': 'never',
27+
},
28+
],
29+
'@typescript-eslint/consistent-type-imports': [
30+
'error',
31+
{
32+
prefer: 'no-type-imports',
33+
},
34+
],
35+
},
36+
},
37+
];
38+
39+
export default xoConfig;

0 commit comments

Comments
 (0)