refactor: 重构优化

This commit is contained in:
xiaojunnuo
2021-02-04 18:44:16 +08:00
parent a39dac4dbd
commit a25a15ca6e
59 changed files with 3903 additions and 967 deletions

View File

@@ -13,6 +13,7 @@
"@certd/api": "^0.1.11",
"@certd/certd": "^0.1.11",
"@certd/plugins": "^0.1.11",
"@certd/dns-providers": "^0.1.11",
"dayjs": "^1.9.7",
"lodash-es": "^4.17.20"
},

View File

@@ -4,12 +4,13 @@ import _ from 'lodash-es'
import dayjs from 'dayjs'
import { Trace } from './trace.js'
import DefaultPlugins from '@certd/plugins'
import DefaultProviders from '@certd/providers'
import DefaultDnsProviders from '@certd/dns-providers'
const logger = util.logger
// 安装默认插件和授权提供者
DefaultPlugins.install()
DefaultProviders.install()
DefaultDnsProviders.install()
function createDefaultOptions () {
return {