chore: 已优化依赖版本

This commit is contained in:
xiaojunnuo
2026-01-07 23:30:42 +08:00
parent b16b9e813d
commit d21a042ad8
8 changed files with 874 additions and 2030 deletions
@@ -1,5 +1,5 @@
import { AccessInput, BaseAccess, IsAccess } from "@certd/pipeline";
import { SynologyClient } from "./client.js";
import { SynologyClient } from "@certd/plugin-plus";
/**
* 这个注解将注册一个授权配置
* 在certd的后台管理系统中,用户可以选择添加此类型的授权
@@ -125,9 +125,8 @@ export class SynologyAccess extends BaseAccess {
timeout = 120;
onLoginWithOPTCode(data: { otpCode: string }) {
console.log("onLoginWithOPTCode", this);
const ctx = this.ctx;
const client = new SynologyClient(this, ctx.http, ctx.logger, this.skipSslVerify);
const client = new SynologyClient(this as any, ctx.http, ctx.logger, this.skipSslVerify);
return client.doLoginWithOTPCode(data.otpCode);
}
}
@@ -1,3 +1,2 @@
export * from "./plugins/index.js";
export * from "./access.js";
export * from "./client.js";
@@ -58,7 +58,7 @@ export class SynologyDeployToPanel extends AbstractPlusTaskPlugin {
async onInstance() {}
async execute(): Promise<void> {
const access: SynologyAccess = await this.getAccess<SynologyAccess>(this.accessId);
const client = new SynologyClient(access, this.ctx.http, this.ctx.logger, access.skipSslVerify);
const client = new SynologyClient(access as any, this.ctx.http, this.ctx.logger, access.skipSslVerify);
// await client.init();
await client.doLogin();
// const res = await client.getInfo();