From 65cf309ea7ac81ba3f3d2ec576a3399ba221022c Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Sat, 24 Oct 2020 01:25:01 +0200 Subject: [PATCH] Restructure exports --- src/index.js | 10 +++++----- src/serviceproviders.js | 9 +++++++++ 2 files changed, 14 insertions(+), 5 deletions(-) create mode 100644 src/serviceproviders.js 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') +}