mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 14:39:28 -07:00
Restructure exports
This commit is contained in:
parent
e8aa308baa
commit
65cf309ea7
2 changed files with 14 additions and 5 deletions
10
src/index.js
10
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
|
||||
|
|
9
src/serviceproviders.js
Normal file
9
src/serviceproviders.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
exports.serviceprovidersList = [
|
||||
'dns',
|
||||
'xmpp',
|
||||
]
|
||||
|
||||
exports.serviceproviders = {
|
||||
dns: require('./serviceproviders/dns'),
|
||||
xmpp: require('./serviceproviders/xmpp')
|
||||
}
|
Loading…
Reference in a new issue