diff --git a/src/index.js b/src/index.js index fa783ea..b562f92 100644 --- a/src/index.js +++ b/src/index.js @@ -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 diff --git a/src/serviceproviders.js b/src/serviceproviders.js new file mode 100644 index 0000000..452d4c5 --- /dev/null +++ b/src/serviceproviders.js @@ -0,0 +1,9 @@ +exports.serviceprovidersList = [ + 'dns', + 'xmpp', +] + +exports.serviceproviders = { + dns: require('./serviceproviders/dns'), + xmpp: require('./serviceproviders/xmpp') +}