From 542bab323250282f2f44a970af665d45c6be6393 Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 16 Jun 2023 15:38:47 +0200 Subject: [PATCH] fix: apply linting fixes --- src/claimDefinitions/activitypub.js | 4 ++-- src/claimDefinitions/discourse.js | 4 ++-- src/claimDefinitions/forem.js | 2 +- src/claimDefinitions/forgejo.js | 2 +- src/claimDefinitions/gitea.js | 2 +- src/claimDefinitions/github.js | 2 +- src/claimDefinitions/gitlab.js | 2 +- src/claimDefinitions/hackernews.js | 2 +- src/claimDefinitions/irc.js | 2 +- src/claimDefinitions/keybase.js | 2 +- src/claimDefinitions/liberapay.js | 4 ++-- src/claimDefinitions/lichess.js | 2 +- src/claimDefinitions/lobsters.js | 2 +- src/claimDefinitions/opencollective.js | 4 ++-- src/claimDefinitions/owncast.js | 2 +- src/claimDefinitions/reddit.js | 2 +- src/claimDefinitions/stackexchange.js | 2 +- src/claimDefinitions/twitter.js | 2 +- src/claimDefinitions/xmpp.js | 2 +- src/fetcher/xmpp.js | 8 ++++---- src/keys.js | 2 +- src/proofs.js | 4 ++-- 22 files changed, 30 insertions(+), 30 deletions(-) diff --git a/src/claimDefinitions/activitypub.js b/src/claimDefinitions/activitypub.js index e6712bc..9a1f599 100644 --- a/src/claimDefinitions/activitypub.js +++ b/src/claimDefinitions/activitypub.js @@ -29,11 +29,11 @@ const processURI = (uri) => { }, profile: { display: uri, - uri: uri, + uri, qr: null }, proof: { - uri: uri, + uri, request: { fetcher: E.Fetcher.ACTIVITYPUB, access: E.ProofAccess.GENERIC, diff --git a/src/claimDefinitions/discourse.js b/src/claimDefinitions/discourse.js index 9f0157c..99fad8c 100644 --- a/src/claimDefinitions/discourse.js +++ b/src/claimDefinitions/discourse.js @@ -31,11 +31,11 @@ const processURI = (uri) => { }, profile: { display: `${match[2]}@${match[1]}`, - uri: uri, + uri, qr: null }, proof: { - uri: uri, + uri, request: { fetcher: E.Fetcher.HTTP, access: E.ProofAccess.NOCORS, diff --git a/src/claimDefinitions/forem.js b/src/claimDefinitions/forem.js index a5a9aa3..d9c0491 100644 --- a/src/claimDefinitions/forem.js +++ b/src/claimDefinitions/forem.js @@ -35,7 +35,7 @@ const processURI = (uri) => { qr: null }, proof: { - uri: uri, + uri, request: { fetcher: E.Fetcher.HTTP, access: E.ProofAccess.NOCORS, diff --git a/src/claimDefinitions/forgejo.js b/src/claimDefinitions/forgejo.js index 7cae15e..55792c1 100644 --- a/src/claimDefinitions/forgejo.js +++ b/src/claimDefinitions/forgejo.js @@ -35,7 +35,7 @@ const processURI = (uri) => { qr: null }, proof: { - uri: uri, + uri, request: { fetcher: E.Fetcher.HTTP, access: E.ProofAccess.NOCORS, diff --git a/src/claimDefinitions/gitea.js b/src/claimDefinitions/gitea.js index 83539e2..72a5195 100644 --- a/src/claimDefinitions/gitea.js +++ b/src/claimDefinitions/gitea.js @@ -35,7 +35,7 @@ const processURI = (uri) => { qr: null }, proof: { - uri: uri, + uri, request: { fetcher: E.Fetcher.HTTP, access: E.ProofAccess.NOCORS, diff --git a/src/claimDefinitions/github.js b/src/claimDefinitions/github.js index bfe1c77..f330e7e 100644 --- a/src/claimDefinitions/github.js +++ b/src/claimDefinitions/github.js @@ -35,7 +35,7 @@ const processURI = (uri) => { qr: null }, proof: { - uri: uri, + uri, request: { fetcher: E.Fetcher.HTTP, access: E.ProofAccess.GENERIC, diff --git a/src/claimDefinitions/gitlab.js b/src/claimDefinitions/gitlab.js index 16976c1..a685fc1 100644 --- a/src/claimDefinitions/gitlab.js +++ b/src/claimDefinitions/gitlab.js @@ -35,7 +35,7 @@ const processURI = (uri) => { qr: null }, proof: { - uri: uri, + uri, request: { fetcher: E.Fetcher.HTTP, access: E.ProofAccess.GENERIC, diff --git a/src/claimDefinitions/hackernews.js b/src/claimDefinitions/hackernews.js index 5068177..8571738 100644 --- a/src/claimDefinitions/hackernews.js +++ b/src/claimDefinitions/hackernews.js @@ -31,7 +31,7 @@ const processURI = (uri) => { }, profile: { display: match[1], - uri: uri, + uri, qr: null }, proof: { diff --git a/src/claimDefinitions/irc.js b/src/claimDefinitions/irc.js index a79d460..6e5c798 100644 --- a/src/claimDefinitions/irc.js +++ b/src/claimDefinitions/irc.js @@ -31,7 +31,7 @@ const processURI = (uri) => { }, profile: { display: `irc://${match[1]}/${match[2]}`, - uri: uri, + uri, qr: null }, proof: { diff --git a/src/claimDefinitions/keybase.js b/src/claimDefinitions/keybase.js index 1d2d734..99b5986 100644 --- a/src/claimDefinitions/keybase.js +++ b/src/claimDefinitions/keybase.js @@ -31,7 +31,7 @@ const processURI = (uri) => { }, profile: { display: match[1], - uri: uri, + uri, qr: null }, proof: { diff --git a/src/claimDefinitions/liberapay.js b/src/claimDefinitions/liberapay.js index e5a23bf..e17bddc 100644 --- a/src/claimDefinitions/liberapay.js +++ b/src/claimDefinitions/liberapay.js @@ -31,11 +31,11 @@ const processURI = (uri) => { }, profile: { display: match[1], - uri: uri, + uri, qr: null }, proof: { - uri: uri, + uri, request: { fetcher: E.Fetcher.HTTP, access: E.ProofAccess.GENERIC, diff --git a/src/claimDefinitions/lichess.js b/src/claimDefinitions/lichess.js index 9e6a57a..e806d85 100644 --- a/src/claimDefinitions/lichess.js +++ b/src/claimDefinitions/lichess.js @@ -31,7 +31,7 @@ const processURI = (uri) => { }, profile: { display: match[1], - uri: uri, + uri, qr: null }, proof: { diff --git a/src/claimDefinitions/lobsters.js b/src/claimDefinitions/lobsters.js index 3b89f15..4f17067 100644 --- a/src/claimDefinitions/lobsters.js +++ b/src/claimDefinitions/lobsters.js @@ -31,7 +31,7 @@ const processURI = (uri) => { }, profile: { display: match[1], - uri: uri, + uri, qr: null }, proof: { diff --git a/src/claimDefinitions/opencollective.js b/src/claimDefinitions/opencollective.js index 737e330..3abbfdb 100644 --- a/src/claimDefinitions/opencollective.js +++ b/src/claimDefinitions/opencollective.js @@ -31,11 +31,11 @@ const processURI = (uri) => { }, profile: { display: match[1], - uri: uri, + uri, qr: null }, proof: { - uri: uri, + uri, request: { fetcher: E.Fetcher.GRAPHQL, access: E.ProofAccess.NOCORS, diff --git a/src/claimDefinitions/owncast.js b/src/claimDefinitions/owncast.js index 6631c3f..499e938 100644 --- a/src/claimDefinitions/owncast.js +++ b/src/claimDefinitions/owncast.js @@ -31,7 +31,7 @@ const processURI = (uri) => { }, profile: { display: match[1], - uri: uri, + uri, qr: null }, proof: { diff --git a/src/claimDefinitions/reddit.js b/src/claimDefinitions/reddit.js index 6fde6ed..493dff7 100644 --- a/src/claimDefinitions/reddit.js +++ b/src/claimDefinitions/reddit.js @@ -35,7 +35,7 @@ const processURI = (uri) => { qr: null }, proof: { - uri: uri, + uri, request: { fetcher: E.Fetcher.HTTP, access: E.ProofAccess.NOCORS, diff --git a/src/claimDefinitions/stackexchange.js b/src/claimDefinitions/stackexchange.js index 6a99772..c98f916 100644 --- a/src/claimDefinitions/stackexchange.js +++ b/src/claimDefinitions/stackexchange.js @@ -33,7 +33,7 @@ const processURI = (uri) => { }, profile: { display: `${id}@${site}`, - uri: uri, + uri, qr: null }, proof: { diff --git a/src/claimDefinitions/twitter.js b/src/claimDefinitions/twitter.js index 5d873e9..996a33b 100644 --- a/src/claimDefinitions/twitter.js +++ b/src/claimDefinitions/twitter.js @@ -35,7 +35,7 @@ const processURI = (uri) => { qr: null }, proof: { - uri: uri, + uri, request: { fetcher: E.Fetcher.HTTP, access: E.ProofAccess.NOCORS, diff --git a/src/claimDefinitions/xmpp.js b/src/claimDefinitions/xmpp.js index 93714b3..56ea5ea 100644 --- a/src/claimDefinitions/xmpp.js +++ b/src/claimDefinitions/xmpp.js @@ -31,7 +31,7 @@ const processURI = (uri) => { }, profile: { display: `${match[1]}@${match[2]}`, - uri: uri, + uri, qr: uri }, proof: { diff --git a/src/fetcher/xmpp.js b/src/fetcher/xmpp.js index 59823f9..607a738 100644 --- a/src/fetcher/xmpp.js +++ b/src/fetcher/xmpp.js @@ -36,9 +36,9 @@ if (jsEnv.isNode) { const xmppStart = async (service, username, password) => { return new Promise((resolve, reject) => { const xmpp = client({ - service: service, - username: username, - password: password + service, + username, + password }) if (process.env.NODE_ENV !== 'production') { debug(xmpp, true) @@ -46,7 +46,7 @@ if (jsEnv.isNode) { const { iqCaller } = xmpp xmpp.start() xmpp.on('online', _ => { - resolve({ xmpp: xmpp, iqCaller: iqCaller }) + resolve({ xmpp, iqCaller }) }) xmpp.on('error', error => { reject(error) diff --git a/src/keys.js b/src/keys.js index efa4f77..b132fb5 100644 --- a/src/keys.js +++ b/src/keys.js @@ -303,7 +303,7 @@ const process = async (publicKey) => { }) return { - fingerprint: fingerprint, + fingerprint, users: usersOutput, primaryUserIndex: primaryUser.index, key: { diff --git a/src/proofs.js b/src/proofs.js index 9f824e9..bc222fb 100644 --- a/src/proofs.js +++ b/src/proofs.js @@ -111,7 +111,7 @@ const createDefaultRequestPromise = (data, opts) => { .then((res) => { return resolve({ fetcher: data.proof.request.fetcher, - data: data, + data, viaProxy: false, result: res }) @@ -145,7 +145,7 @@ const createProxyRequestPromise = (data, opts) => { .then((res) => { return resolve({ fetcher: 'http', - data: data, + data, viaProxy: true, result: res })