Restructure exports

This commit is contained in:
Yarmo Mackenbach 2020-10-24 01:25:01 +02:00
parent e8aa308baa
commit 65cf309ea7
2 changed files with 14 additions and 5 deletions

View file

@ -1,7 +1,7 @@
exports.verify = (url, fingerprint, opts) => {
const verify = (url, fingerprint, opts) => {
}
exports.serviceproviders = {
dns: require('./serviceproviders/dns'),
xmpp: require('./serviceproviders/xmpp')
}
exports.verify = verify
exports.serviceproviders = require('./serviceproviders').serviceproviders
exports.serviceprovidersList = require('./serviceproviders').serviceprovidersList

9
src/serviceproviders.js Normal file
View file

@ -0,0 +1,9 @@
exports.serviceprovidersList = [
'dns',
'xmpp',
]
exports.serviceproviders = {
dns: require('./serviceproviders/dns'),
xmpp: require('./serviceproviders/xmpp')
}