diff --git a/src/serviceproviders/devto.js b/src/serviceproviders/devto.js index 17a234e..06a7b7d 100644 --- a/src/serviceproviders/devto.js +++ b/src/serviceproviders/devto.js @@ -26,7 +26,8 @@ const processURI = (uri, opts) => { }, profile: { display: match[1], - uri: `https://dev.to/${match[1]}` + uri: `https://dev.to/${match[1]}`, + qr: null }, proof: { uri: uri, @@ -40,7 +41,7 @@ const processURI = (uri, opts) => { path: ['body_markdown'], relation: 'contains' }, - qr: null + customRequestHandler: null } } diff --git a/src/serviceproviders/discourse.js b/src/serviceproviders/discourse.js index 3828db5..dc90852 100644 --- a/src/serviceproviders/discourse.js +++ b/src/serviceproviders/discourse.js @@ -26,7 +26,8 @@ const processURI = (uri, opts) => { }, profile: { display: `${match[2]}@${match[1]}`, - uri: uri + uri: uri, + qr: null }, proof: { uri: uri, @@ -40,7 +41,7 @@ const processURI = (uri, opts) => { path: ['user', 'bio_raw'], relation: 'contains' }, - qr: null + customRequestHandler: null } } diff --git a/src/serviceproviders/dns.js b/src/serviceproviders/dns.js index f08b944..be1f9b0 100644 --- a/src/serviceproviders/dns.js +++ b/src/serviceproviders/dns.js @@ -53,7 +53,8 @@ const processURI = (uri, opts) => { }, profile: { display: match[1], - uri: `https://${match[1]}` + uri: `https://${match[1]}`, + qr: null }, proof: { uri: utils.generateProxyURL('dns', match[1]), @@ -67,7 +68,6 @@ const processURI = (uri, opts) => { path: ['records', 'txt'], relation: 'contains' }, - qr: null, customRequestHandler: customRequestHandler } } diff --git a/src/serviceproviders/fediverse.js b/src/serviceproviders/fediverse.js index 0116c0a..da62f2a 100644 --- a/src/serviceproviders/fediverse.js +++ b/src/serviceproviders/fediverse.js @@ -26,7 +26,8 @@ const processURI = (uri, opts) => { }, profile: { display: `@${match[2]}@${match[1]}`, - uri: uri + uri: uri, + qr: null }, proof: { uri: uri, @@ -40,7 +41,7 @@ const processURI = (uri, opts) => { path: ['summary'], relation: 'contains' }, - qr: null + customRequestHandler: null } } diff --git a/src/serviceproviders/gitea.js b/src/serviceproviders/gitea.js index b992e9f..118c488 100644 --- a/src/serviceproviders/gitea.js +++ b/src/serviceproviders/gitea.js @@ -26,7 +26,8 @@ const processURI = (uri, opts) => { }, profile: { display: `${match[2]}@${match[1]}`, - uri: `https://${match[1]}/${match[2]}` + uri: `https://${match[1]}/${match[2]}`, + qr: null }, proof: { uri: uri, @@ -40,7 +41,7 @@ const processURI = (uri, opts) => { path: ['description'], relation: 'equals' }, - qr: null + customRequestHandler: null } } diff --git a/src/serviceproviders/github.js b/src/serviceproviders/github.js index ca1a3a3..2096697 100644 --- a/src/serviceproviders/github.js +++ b/src/serviceproviders/github.js @@ -26,7 +26,8 @@ const processURI = (uri, opts) => { }, profile: { display: match[1], - uri: `https://github.com/${match[1]}` + uri: `https://github.com/${match[1]}`, + qr: null }, proof: { uri: uri, @@ -40,7 +41,7 @@ const processURI = (uri, opts) => { path: ['files', 'openpgp.md', 'content'], relation: 'contains' }, - qr: null + customRequestHandler: null } } diff --git a/src/serviceproviders/gitlab.js b/src/serviceproviders/gitlab.js index 8ad0c7f..16c91c6 100644 --- a/src/serviceproviders/gitlab.js +++ b/src/serviceproviders/gitlab.js @@ -53,7 +53,8 @@ const processURI = (uri, opts) => { }, profile: { display: `${match[2]}@${match[1]}`, - uri: `https://${match[1]}/${match[2]}` + uri: `https://${match[1]}/${match[2]}`, + qr: null }, proof: { uri: uri, @@ -67,7 +68,6 @@ const processURI = (uri, opts) => { path: ['description'], relation: 'equals' }, - qr: null, customRequestHandler: customRequestHandler } } diff --git a/src/serviceproviders/hackernews.js b/src/serviceproviders/hackernews.js index c979940..2783229 100644 --- a/src/serviceproviders/hackernews.js +++ b/src/serviceproviders/hackernews.js @@ -26,7 +26,8 @@ const processURI = (uri, opts) => { }, profile: { display: match[1], - uri: uri + uri: uri, + qr: null }, proof: { uri: `https://hacker-news.firebaseio.com/v0/user/${match[1]}.json`, @@ -40,7 +41,7 @@ const processURI = (uri, opts) => { path: ['about'], relation: 'contains' }, - qr: null + customRequestHandler: null } } diff --git a/src/serviceproviders/liberapay.js b/src/serviceproviders/liberapay.js index 18506e3..4d9cad9 100644 --- a/src/serviceproviders/liberapay.js +++ b/src/serviceproviders/liberapay.js @@ -26,7 +26,8 @@ const processURI = (uri, opts) => { }, profile: { display: match[1], - uri: uri + uri: uri, + qr: null }, proof: { uri: uri, @@ -40,7 +41,7 @@ const processURI = (uri, opts) => { path: ['statements', 'content'], relation: 'contains' }, - qr: null + customRequestHandler: null } } diff --git a/src/serviceproviders/lobsters.js b/src/serviceproviders/lobsters.js index 147eac6..4dd65b8 100644 --- a/src/serviceproviders/lobsters.js +++ b/src/serviceproviders/lobsters.js @@ -26,7 +26,8 @@ const processURI = (uri, opts) => { }, profile: { display: match[1], - uri: uri + uri: uri, + qr: null }, proof: { uri: `https://lobste.rs/u/${match[1]}.json`, @@ -40,7 +41,7 @@ const processURI = (uri, opts) => { path: ['about'], relation: 'contains' }, - qr: null + customRequestHandler: null } } diff --git a/src/serviceproviders/mastodon.js b/src/serviceproviders/mastodon.js index bbaed39..47e4334 100644 --- a/src/serviceproviders/mastodon.js +++ b/src/serviceproviders/mastodon.js @@ -26,7 +26,8 @@ const processURI = (uri, opts) => { }, profile: { display: `@${match[2]}@${match[1]}`, - uri: uri + uri: uri, + qr: null }, proof: { uri: uri, @@ -40,7 +41,7 @@ const processURI = (uri, opts) => { path: ['attachment', 'value'], relation: 'contains' }, - qr: null + customRequestHandler: null } } diff --git a/src/serviceproviders/reddit.js b/src/serviceproviders/reddit.js index fc90439..81dc6c9 100644 --- a/src/serviceproviders/reddit.js +++ b/src/serviceproviders/reddit.js @@ -26,7 +26,8 @@ const processURI = (uri, opts) => { }, profile: { display: match[1], - uri: `https://www.reddit.com/user/${match[1]}` + uri: `https://www.reddit.com/user/${match[1]}`, + qr: null }, proof: { uri: uri, @@ -40,7 +41,7 @@ const processURI = (uri, opts) => { path: ['data', 'children', 'data', 'selftext'], relation: 'contains' }, - qr: null + customRequestHandler: null } } diff --git a/src/serviceproviders/twitter.js b/src/serviceproviders/twitter.js index 3cc5082..e6fb4b2 100644 --- a/src/serviceproviders/twitter.js +++ b/src/serviceproviders/twitter.js @@ -26,7 +26,8 @@ const processURI = (uri, opts) => { }, profile: { display: `@${match[1]}`, - uri: `https://twitter.com/${match[1]}` + uri: `https://twitter.com/${match[1]}`, + qr: null }, proof: { uri: uri, @@ -40,7 +41,7 @@ const processURI = (uri, opts) => { path: [], relation: 'contains' }, - qr: null + customRequestHandler: null } } diff --git a/src/serviceproviders/xmpp.js b/src/serviceproviders/xmpp.js index 1e69e41..a0a0524 100644 --- a/src/serviceproviders/xmpp.js +++ b/src/serviceproviders/xmpp.js @@ -26,7 +26,8 @@ const processURI = (uri, opts) => { }, profile: { display: `${match[1]}@${match[2]}`, - uri: uri + uri: uri, + qr: uri }, proof: { uri: 'xmppVcardServerDomain' in opts @@ -42,7 +43,7 @@ const processURI = (uri, opts) => { path: [], relation: 'contains' }, - qr: uri + customRequestHandler: null } } diff --git a/test/verify.test.js b/test/verify.test.js index 263dc7b..e43c400 100644 --- a/test/verify.test.js +++ b/test/verify.test.js @@ -29,7 +29,8 @@ const pattern = { }, profile: { display: _.isString, - uri: _.isString + uri: _.isString, + qr: (x) => { return _.isString(x) || _.isNull(x) } }, proof: { uri: (x) => { return _.isString(x) || _.isNull(x) }, @@ -43,7 +44,6 @@ const pattern = { path: _.isArray, relation: _.isString }, - qr: (x) => { return _.isString(x) || _.isNull(x) }, customRequestHandler: (x) => { return _.isFunction(x) || _.isNull(x) || _.isUndefined(x) } }