doipjs/src/index.js

13 lines
405 B
JavaScript
Raw Normal View History

2020-10-24 03:19:35 -06:00
const validUrl = require('valid-url')
const serviceprovidersList = require('./serviceproviders').serviceprovidersList
2020-10-23 14:35:53 -06:00
2020-10-24 03:19:35 -06:00
const verify = (uri, fingerprint, opts) => {
if !(validUrl.isUri(uri)) {
throw new Error('The provided URI was not valid')
}
2020-10-23 14:35:53 -06:00
}
2020-10-23 17:25:01 -06:00
exports.verify = verify
exports.serviceproviders = require('./serviceproviders').serviceproviders
2020-10-24 03:19:35 -06:00
exports.serviceprovidersList = serviceprovidersList