refactor: 重构

This commit is contained in:
xiaojunnuo
2021-02-08 13:40:28 +08:00
parent 82f86d9556
commit cb8c8186f1
38 changed files with 807 additions and 1895 deletions
+4 -3
View File
@@ -12,8 +12,6 @@
"dependencies": {
"@certd/api": "^0.1.13",
"@certd/certd": "^0.1.13",
"@certd/dns-providers": "^0.1.13",
"@certd/plugins": "^0.1.13",
"dayjs": "^1.9.7",
"lodash-es": "^4.17.20"
},
@@ -29,7 +27,10 @@
"eslint-plugin-promise": "^4.2.1",
"mocha": "^8.2.1",
"rollup": "^2.35.1",
"rollup-plugin-terser": "^7.0.2"
"rollup-plugin-terser": "^7.0.2",
"@certd/plugin-aliyun": "^0.1.13",
"@certd/plugin-tencent": "^0.1.13",
"@certd/plugin-host": "^0.1.13"
},
"author": "Greper",
"license": "MIT",
-9
View File
@@ -3,15 +3,6 @@ import { pluginRegistry, util } from '@certd/api'
import _ from 'lodash-es'
import dayjs from 'dayjs'
import { Trace } from './trace.js'
import PluginAliyun from '@certd/plugin-aliyun'
import PluginTencent from '@certd/plugin-tencent'
import PluginHost from '@certd/plugin-host'
// 安装默认插件和授权提供者
PluginAliyun.install()
PluginTencent.install()
PluginHost.install()
const logger = util.logger
function createDefaultOptions () {