mirror of
https://github.com/certd/certd.git
synced 2026-04-28 07:57:25 +08:00
chore: 已优化依赖版本
This commit is contained in:
@@ -45,6 +45,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"copyfiles": "^2.4.1",
|
"copyfiles": "^2.4.1",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
|
"root": "link:",
|
||||||
"typescript": "^5.4.2"
|
"typescript": "^5.4.2"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
|
|||||||
@@ -17,31 +17,31 @@
|
|||||||
"compile": "tsc --skipLibCheck --watch"
|
"compile": "tsc --skipLibCheck --watch"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@alicloud/openapi-client": "^0.4.14",
|
"@alicloud/openapi-client": "^0.4.15",
|
||||||
"@alicloud/openapi-util": "^0.3.2",
|
"@alicloud/openapi-util": "^0.3.2",
|
||||||
"@alicloud/pop-core": "^1.7.10",
|
"@alicloud/pop-core": "^1.7.10",
|
||||||
"@alicloud/tea-util": "^1.4.10",
|
"@alicloud/tea-util": "^1.4.11",
|
||||||
"psl": "^1.15.0",
|
"@aws-sdk/client-s3": "^3.964.0",
|
||||||
"@aws-sdk/client-s3": "^3.787.0",
|
"@certd/acme-client": "^1.37.17",
|
||||||
"@certd/basic": "^1.37.17",
|
"@certd/basic": "^1.37.17",
|
||||||
"@certd/pipeline": "^1.37.17",
|
"@certd/pipeline": "^1.37.17",
|
||||||
|
"@certd/plus-core": "^1.37.17",
|
||||||
"@kubernetes/client-node": "0.21.0",
|
"@kubernetes/client-node": "0.21.0",
|
||||||
"ali-oss": "^6.22.0",
|
"ali-oss": "^6.22.0",
|
||||||
"basic-ftp": "^5.0.5",
|
"basic-ftp": "^5.0.5",
|
||||||
"cos-nodejs-sdk-v5": "^2.14.6",
|
"cos-nodejs-sdk-v5": "^2.15.4",
|
||||||
"dayjs": "^1.11.7",
|
"dayjs": "^1.11.7",
|
||||||
"iconv-lite": "^0.6.3",
|
"iconv-lite": "^0.6.3",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
|
"psl": "^1.15.0",
|
||||||
|
"punycode.js": "^2.3.1",
|
||||||
"qiniu": "^7.12.0",
|
"qiniu": "^7.12.0",
|
||||||
"rimraf": "^5.0.5",
|
"rimraf": "^5.0.5",
|
||||||
"socks": "^2.8.3",
|
"socks": "^2.8.3",
|
||||||
"socks-proxy-agent": "^8.0.4",
|
"socks-proxy-agent": "^8.0.4",
|
||||||
"ssh2": "1.17.0",
|
"ssh2": "1.17.0",
|
||||||
"strip-ansi": "^7.1.0",
|
"strip-ansi": "^7.1.0",
|
||||||
"tencentcloud-sdk-nodejs": "^4.0.1005",
|
"tencentcloud-sdk-nodejs": "^4.1.166"
|
||||||
"@certd/acme-client": "^1.37.17",
|
|
||||||
"@certd/plus-core": "^1.37.17",
|
|
||||||
"punycode.js": "^2.3.1"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/chai": "^4.3.3",
|
"@types/chai": "^4.3.3",
|
||||||
|
|||||||
@@ -29,8 +29,8 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ant-design/colors": "^7.0.2",
|
"@ant-design/colors": "^7.0.2",
|
||||||
"@ant-design/icons-vue": "^7.0.1",
|
"@ant-design/icons-vue": "^7.0.1",
|
||||||
"@aws-sdk/client-s3": "^3.535.0",
|
"@aws-sdk/client-s3": "^3.964.0",
|
||||||
"@aws-sdk/s3-request-presigner": "^3.535.0",
|
"@aws-sdk/s3-request-presigner": "^3.964.0",
|
||||||
"@certd/vue-js-cron-light": "^4.0.14",
|
"@certd/vue-js-cron-light": "^4.0.14",
|
||||||
"@ctrl/tinycolor": "^4.1.0",
|
"@ctrl/tinycolor": "^4.1.0",
|
||||||
"@fast-crud/editor-code": "^1.27.8",
|
"@fast-crud/editor-code": "^1.27.8",
|
||||||
|
|||||||
@@ -41,11 +41,11 @@
|
|||||||
"@alicloud/pop-core": "^1.7.10",
|
"@alicloud/pop-core": "^1.7.10",
|
||||||
"@alicloud/tea-typescript": "^1.8.0",
|
"@alicloud/tea-typescript": "^1.8.0",
|
||||||
"@alicloud/tea-util": "^1.4.10",
|
"@alicloud/tea-util": "^1.4.10",
|
||||||
"@aws-sdk/client-acm": "^3.699.0",
|
"@aws-sdk/client-acm": "^3.964.0",
|
||||||
"@aws-sdk/client-cloudfront": "^3.699.0",
|
"@aws-sdk/client-cloudfront": "^3.964.0",
|
||||||
"@aws-sdk/client-iam": "^3.699.0",
|
"@aws-sdk/client-iam": "^3.964.0",
|
||||||
"@aws-sdk/client-route-53": "^3.957.0",
|
"@aws-sdk/client-route-53": "^3.964.0",
|
||||||
"@aws-sdk/client-s3": "^3.705.0",
|
"@aws-sdk/client-s3": "^3.964.0",
|
||||||
"@certd/acme-client": "^1.37.17",
|
"@certd/acme-client": "^1.37.17",
|
||||||
"@certd/basic": "^1.37.17",
|
"@certd/basic": "^1.37.17",
|
||||||
"@certd/commercial-core": "^1.37.17",
|
"@certd/commercial-core": "^1.37.17",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { AccessInput, BaseAccess, IsAccess } from "@certd/pipeline";
|
import { AccessInput, BaseAccess, IsAccess } from "@certd/pipeline";
|
||||||
import { SynologyClient } from "./client.js";
|
import { SynologyClient } from "@certd/plugin-plus";
|
||||||
/**
|
/**
|
||||||
* 这个注解将注册一个授权配置
|
* 这个注解将注册一个授权配置
|
||||||
* 在certd的后台管理系统中,用户可以选择添加此类型的授权
|
* 在certd的后台管理系统中,用户可以选择添加此类型的授权
|
||||||
@@ -125,9 +125,8 @@ export class SynologyAccess extends BaseAccess {
|
|||||||
timeout = 120;
|
timeout = 120;
|
||||||
|
|
||||||
onLoginWithOPTCode(data: { otpCode: string }) {
|
onLoginWithOPTCode(data: { otpCode: string }) {
|
||||||
console.log("onLoginWithOPTCode", this);
|
|
||||||
const ctx = this.ctx;
|
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);
|
return client.doLoginWithOTPCode(data.otpCode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,2 @@
|
|||||||
export * from "./plugins/index.js";
|
export * from "./plugins/index.js";
|
||||||
export * from "./access.js";
|
export * from "./access.js";
|
||||||
export * from "./client.js";
|
|
||||||
|
|||||||
+1
-1
@@ -58,7 +58,7 @@ export class SynologyDeployToPanel extends AbstractPlusTaskPlugin {
|
|||||||
async onInstance() {}
|
async onInstance() {}
|
||||||
async execute(): Promise<void> {
|
async execute(): Promise<void> {
|
||||||
const access: SynologyAccess = await this.getAccess<SynologyAccess>(this.accessId);
|
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.init();
|
||||||
await client.doLogin();
|
await client.doLogin();
|
||||||
// const res = await client.getInfo();
|
// const res = await client.getInfo();
|
||||||
|
|||||||
Generated
+854
-2009
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user