Skip to content

Commit 1a6f83e

Browse files
build: update deps
1 parent 9831673 commit 1a6f83e

9 files changed

Lines changed: 119 additions & 117 deletions

File tree

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -61,21 +61,21 @@
6161
"tslib": "^2.8.1"
6262
},
6363
"devDependencies": {
64-
"@angular/animations": "^20.3.12",
65-
"@angular/build": "^20.3.10",
64+
"@angular/animations": "^20.3.19",
65+
"@angular/build": "^20.3.24",
6666
"@angular/cdk": "^16.2.14",
67-
"@angular/cli": "^20.3.10",
68-
"@angular/common": "^20.3.12",
69-
"@angular/compiler": "^20.3.12",
70-
"@angular/compiler-cli": "^20.3.12",
71-
"@angular/core": "^20.3.12",
72-
"@angular/forms": "^20.3.12",
73-
"@angular/language-service": "^20.3.12",
67+
"@angular/cli": "^20.3.24",
68+
"@angular/common": "^20.3.19",
69+
"@angular/compiler": "^20.3.19",
70+
"@angular/compiler-cli": "^20.3.19",
71+
"@angular/core": "^20.3.19",
72+
"@angular/forms": "^20.3.19",
73+
"@angular/language-service": "^20.3.19",
7474
"@angular/material": "^16.2.14",
75-
"@angular/platform-browser": "^20.3.12",
76-
"@angular/platform-browser-dynamic": "^20.3.12",
77-
"@angular/router": "^20.3.12",
78-
"@angular/service-worker": "^20.3.12",
75+
"@angular/platform-browser": "^20.3.19",
76+
"@angular/platform-browser-dynamic": "^20.3.19",
77+
"@angular/router": "^20.3.19",
78+
"@angular/service-worker": "^20.3.19",
7979
"@commander-js/extra-typings": "^14.0.0",
8080
"@eslint/js": "^10.0.1",
8181
"@fastify/compress": "^8.3.1",
@@ -91,7 +91,7 @@
9191
"@types/node": "^25.6.0",
9292
"@types/supertest": "^7.2.0",
9393
"dotenv": "^17.4.2",
94-
"esbuild": "^0.27.7",
94+
"esbuild": "^0.28.0",
9595
"eslint": "^10.2.1",
9696
"eslint-config-prettier": "^10.1.8",
9797
"fflate": "^0.8.2",

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ ignoredBuiltDependencies:
99
- unrs-resolver
1010

1111
shellEmulator: true
12+
dedupePeers: true

src/browser/app/editor/editor.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ export class EditorComponent implements OnInit {
408408
return (v.value ?? '') as Item[F];
409409
}
410410
if (field === 'namespace') {
411-
return 'other' as Item[F];
411+
return 'other';
412412
}
413413
return '' as Item[F];
414414
}

src/server/app/etag.interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export class EtagInterceptor extends InjectableBase implements NestInterceptor<u
8282
}),
8383
mergeMap((sent) => (sent ? of('') : next.handle())),
8484
catchError((err: unknown) => {
85-
if (err instanceof HttpException && (err.getStatus() as HttpStatus) === HttpStatus.NOT_FOUND) {
85+
if (err instanceof HttpException && err.getStatus() === HttpStatus.NOT_FOUND) {
8686
return setEtag().pipe(mergeMap(() => throwError(() => err)));
8787
}
8888
return throwError(() => err);

src/server/database/database.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class DatabaseService extends InjectableBase implements OnModuleInit {
9595
return this.schedule(async () => {
9696
const oldInfo = this.info;
9797
const headCommit = await this.octokit.getHead();
98-
const blob = { ...oldInfo.blob } as RepoInfo['blob'];
98+
const blob: RepoInfo['blob'] = { ...oldInfo.blob };
9999
if (!force && oldInfo.head.sha === headCommit.sha) {
100100
this.logger.verbose(`Up to date. Sha: ${headCommit.sha}`);
101101
return undefined;

src/shared/database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class Database implements DatabaseView {
3636
await fs.access(file);
3737
} catch (e) {
3838
const p = path.join(repoPath, 'database', `${ns}.md`);
39-
throw new Error(`无法访问 "${p}","${repoPath}" 可能不是一个有效的数据库\n${String(e)}`);
39+
throw new Error(`无法访问 "${p}","${repoPath}" 可能不是一个有效的数据库\n${String(e)}`, {cause: e});
4040
}
4141
}),
4242
);

src/shared/ehentai/http/core.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ async function requestImpl<T = unknown, R = AxiosResponse<T>>(
2020
throw new AggregateError(
2121
errors,
2222
`Failed after ${errors.length} tries.\n${errors.map((e) => e.message).join('\n')}`,
23+
{ cause: err }
2324
);
2425
}
2526
await delay(delayTime);

src/shared/markdown/md-parser.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
type ContainerNode,
1010
type TextNode,
1111
type TagRefNode,
12-
type BreakNode,
1312
type ImageNode,
1413
type LinkNode,
1514
isNodeType,
@@ -585,7 +584,7 @@ class AstBuilder {
585584
} else if (token.type === 'softbreak' || token.type === 'hardbreak') {
586585
parent.content.push({
587586
type: 'br',
588-
} as BreakNode);
587+
});
589588
} else if (token.type === 'image') {
590589
const node: ImageNode = {
591590
type: 'image',

0 commit comments

Comments
 (0)