mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
feat: 升级midway,支持esm
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
export * from './dnspod-access';
|
||||
export * from './tencent-access';
|
||||
export * from './dnspod-access.js';
|
||||
export * from './tencent-access.js';
|
||||
|
||||
+2
-2
@@ -5,8 +5,8 @@ import {
|
||||
IsDnsProvider,
|
||||
RemoveRecordOptions,
|
||||
} from '@certd/plugin-cert';
|
||||
import _ from 'lodash';
|
||||
import { DnspodAccess } from '../access';
|
||||
import * as _ from 'lodash-es';
|
||||
import { DnspodAccess } from '../access/index.js';
|
||||
|
||||
@IsDnsProvider({
|
||||
name: 'dnspod',
|
||||
|
||||
@@ -1 +1 @@
|
||||
import './dnspod-dns-provider';
|
||||
import './dnspod-dns-provider.js';
|
||||
|
||||
+5
-8
@@ -5,9 +5,8 @@ import {
|
||||
IsDnsProvider,
|
||||
RemoveRecordOptions,
|
||||
} from '@certd/plugin-cert';
|
||||
import { TencentAccess } from '../access';
|
||||
import tencentcloud from 'tencentcloud-sdk-nodejs/index';
|
||||
import TencentCloudSDKHttpException from 'tencentcloud-sdk-nodejs/tencentcloud/common/exception/tencent_cloud_sdk_exception';
|
||||
import { TencentAccess } from '../access/index.js';
|
||||
import * as tencentcloud from 'tencentcloud-sdk-nodejs';
|
||||
|
||||
const DnspodClient = tencentcloud.dnspod.v20210323.Client;
|
||||
@IsDnsProvider({
|
||||
@@ -73,11 +72,9 @@ export class TencentDnsProvider extends AbstractDnsProvider {
|
||||
*/
|
||||
return ret;
|
||||
} catch (e: any) {
|
||||
if (e instanceof TencentCloudSDKHttpException) {
|
||||
if (e.code === 'InvalidParameter.DomainRecordExist') {
|
||||
this.logger.info('域名解析已存在,无需重复添加:', fullRecord, value);
|
||||
return {};
|
||||
}
|
||||
if (e?.code === 'InvalidParameter.DomainRecordExist') {
|
||||
this.logger.info('域名解析已存在,无需重复添加:', fullRecord, value);
|
||||
return {};
|
||||
}
|
||||
throw e;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
export * from './access';
|
||||
export * from './plugin';
|
||||
export * from './dns-provider';
|
||||
export * from './access/index.js';
|
||||
export * from './plugin/index.js';
|
||||
export * from './dns-provider/index.js';
|
||||
|
||||
@@ -6,8 +6,8 @@ import {
|
||||
RunStrategy,
|
||||
TaskInput,
|
||||
} from '@certd/pipeline';
|
||||
import tencentcloud from 'tencentcloud-sdk-nodejs/index';
|
||||
import { TencentAccess } from '../../access';
|
||||
import tencentcloud from 'tencentcloud-sdk-nodejs';
|
||||
import { TencentAccess } from '../../access/index.js';
|
||||
import { CertInfo } from '@certd/plugin-cert';
|
||||
|
||||
@IsTaskPlugin({
|
||||
|
||||
@@ -7,8 +7,8 @@ import {
|
||||
TaskInput,
|
||||
utils,
|
||||
} from '@certd/pipeline';
|
||||
import tencentcloud from 'tencentcloud-sdk-nodejs/index';
|
||||
import { TencentAccess } from '../../access';
|
||||
import tencentcloud from 'tencentcloud-sdk-nodejs';
|
||||
import { TencentAccess } from '../../access/index.js';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
@IsTaskPlugin({
|
||||
|
||||
+2
-2
@@ -6,8 +6,8 @@ import {
|
||||
TaskInput,
|
||||
utils,
|
||||
} from '@certd/pipeline';
|
||||
import tencentcloud from 'tencentcloud-sdk-nodejs/index';
|
||||
import { K8sClient } from '@certd/plugin-util';
|
||||
import tencentcloud from 'tencentcloud-sdk-nodejs';
|
||||
import { K8sClient } from '@certd/lib-k8s';
|
||||
import dayjs from 'dayjs';
|
||||
import { Logger } from 'log4js';
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export * from './deploy-to-clb';
|
||||
export * from './deploy-to-tke-ingress';
|
||||
export * from './deploy-to-cdn';
|
||||
export * from './upload-to-tencent';
|
||||
export * from './deploy-to-clb/index.js';
|
||||
export * from './deploy-to-tke-ingress/index.js';
|
||||
export * from './deploy-to-cdn/index.js';
|
||||
export * from './upload-to-tencent/index.js';
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ import {
|
||||
TaskInput,
|
||||
TaskOutput,
|
||||
} from '@certd/pipeline';
|
||||
import tencentcloud from 'tencentcloud-sdk-nodejs/index';
|
||||
import tencentcloud from 'tencentcloud-sdk-nodejs';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
@IsTaskPlugin({
|
||||
|
||||
Reference in New Issue
Block a user