fix: apply linting fixes

This commit is contained in:
Yarmo Mackenbach 2023-06-16 15:38:47 +02:00
parent 4f5e5592f4
commit 542bab3232
No known key found for this signature in database
GPG key ID: 3C57D093219103A3
22 changed files with 30 additions and 30 deletions

View file

@ -29,11 +29,11 @@ const processURI = (uri) => {
}, },
profile: { profile: {
display: uri, display: uri,
uri: uri, uri,
qr: null qr: null
}, },
proof: { proof: {
uri: uri, uri,
request: { request: {
fetcher: E.Fetcher.ACTIVITYPUB, fetcher: E.Fetcher.ACTIVITYPUB,
access: E.ProofAccess.GENERIC, access: E.ProofAccess.GENERIC,

View file

@ -31,11 +31,11 @@ const processURI = (uri) => {
}, },
profile: { profile: {
display: `${match[2]}@${match[1]}`, display: `${match[2]}@${match[1]}`,
uri: uri, uri,
qr: null qr: null
}, },
proof: { proof: {
uri: uri, uri,
request: { request: {
fetcher: E.Fetcher.HTTP, fetcher: E.Fetcher.HTTP,
access: E.ProofAccess.NOCORS, access: E.ProofAccess.NOCORS,

View file

@ -35,7 +35,7 @@ const processURI = (uri) => {
qr: null qr: null
}, },
proof: { proof: {
uri: uri, uri,
request: { request: {
fetcher: E.Fetcher.HTTP, fetcher: E.Fetcher.HTTP,
access: E.ProofAccess.NOCORS, access: E.ProofAccess.NOCORS,

View file

@ -35,7 +35,7 @@ const processURI = (uri) => {
qr: null qr: null
}, },
proof: { proof: {
uri: uri, uri,
request: { request: {
fetcher: E.Fetcher.HTTP, fetcher: E.Fetcher.HTTP,
access: E.ProofAccess.NOCORS, access: E.ProofAccess.NOCORS,

View file

@ -35,7 +35,7 @@ const processURI = (uri) => {
qr: null qr: null
}, },
proof: { proof: {
uri: uri, uri,
request: { request: {
fetcher: E.Fetcher.HTTP, fetcher: E.Fetcher.HTTP,
access: E.ProofAccess.NOCORS, access: E.ProofAccess.NOCORS,

View file

@ -35,7 +35,7 @@ const processURI = (uri) => {
qr: null qr: null
}, },
proof: { proof: {
uri: uri, uri,
request: { request: {
fetcher: E.Fetcher.HTTP, fetcher: E.Fetcher.HTTP,
access: E.ProofAccess.GENERIC, access: E.ProofAccess.GENERIC,

View file

@ -35,7 +35,7 @@ const processURI = (uri) => {
qr: null qr: null
}, },
proof: { proof: {
uri: uri, uri,
request: { request: {
fetcher: E.Fetcher.HTTP, fetcher: E.Fetcher.HTTP,
access: E.ProofAccess.GENERIC, access: E.ProofAccess.GENERIC,

View file

@ -31,7 +31,7 @@ const processURI = (uri) => {
}, },
profile: { profile: {
display: match[1], display: match[1],
uri: uri, uri,
qr: null qr: null
}, },
proof: { proof: {

View file

@ -31,7 +31,7 @@ const processURI = (uri) => {
}, },
profile: { profile: {
display: `irc://${match[1]}/${match[2]}`, display: `irc://${match[1]}/${match[2]}`,
uri: uri, uri,
qr: null qr: null
}, },
proof: { proof: {

View file

@ -31,7 +31,7 @@ const processURI = (uri) => {
}, },
profile: { profile: {
display: match[1], display: match[1],
uri: uri, uri,
qr: null qr: null
}, },
proof: { proof: {

View file

@ -31,11 +31,11 @@ const processURI = (uri) => {
}, },
profile: { profile: {
display: match[1], display: match[1],
uri: uri, uri,
qr: null qr: null
}, },
proof: { proof: {
uri: uri, uri,
request: { request: {
fetcher: E.Fetcher.HTTP, fetcher: E.Fetcher.HTTP,
access: E.ProofAccess.GENERIC, access: E.ProofAccess.GENERIC,

View file

@ -31,7 +31,7 @@ const processURI = (uri) => {
}, },
profile: { profile: {
display: match[1], display: match[1],
uri: uri, uri,
qr: null qr: null
}, },
proof: { proof: {

View file

@ -31,7 +31,7 @@ const processURI = (uri) => {
}, },
profile: { profile: {
display: match[1], display: match[1],
uri: uri, uri,
qr: null qr: null
}, },
proof: { proof: {

View file

@ -31,11 +31,11 @@ const processURI = (uri) => {
}, },
profile: { profile: {
display: match[1], display: match[1],
uri: uri, uri,
qr: null qr: null
}, },
proof: { proof: {
uri: uri, uri,
request: { request: {
fetcher: E.Fetcher.GRAPHQL, fetcher: E.Fetcher.GRAPHQL,
access: E.ProofAccess.NOCORS, access: E.ProofAccess.NOCORS,

View file

@ -31,7 +31,7 @@ const processURI = (uri) => {
}, },
profile: { profile: {
display: match[1], display: match[1],
uri: uri, uri,
qr: null qr: null
}, },
proof: { proof: {

View file

@ -35,7 +35,7 @@ const processURI = (uri) => {
qr: null qr: null
}, },
proof: { proof: {
uri: uri, uri,
request: { request: {
fetcher: E.Fetcher.HTTP, fetcher: E.Fetcher.HTTP,
access: E.ProofAccess.NOCORS, access: E.ProofAccess.NOCORS,

View file

@ -33,7 +33,7 @@ const processURI = (uri) => {
}, },
profile: { profile: {
display: `${id}@${site}`, display: `${id}@${site}`,
uri: uri, uri,
qr: null qr: null
}, },
proof: { proof: {

View file

@ -35,7 +35,7 @@ const processURI = (uri) => {
qr: null qr: null
}, },
proof: { proof: {
uri: uri, uri,
request: { request: {
fetcher: E.Fetcher.HTTP, fetcher: E.Fetcher.HTTP,
access: E.ProofAccess.NOCORS, access: E.ProofAccess.NOCORS,

View file

@ -31,7 +31,7 @@ const processURI = (uri) => {
}, },
profile: { profile: {
display: `${match[1]}@${match[2]}`, display: `${match[1]}@${match[2]}`,
uri: uri, uri,
qr: uri qr: uri
}, },
proof: { proof: {

View file

@ -36,9 +36,9 @@ if (jsEnv.isNode) {
const xmppStart = async (service, username, password) => { const xmppStart = async (service, username, password) => {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const xmpp = client({ const xmpp = client({
service: service, service,
username: username, username,
password: password password
}) })
if (process.env.NODE_ENV !== 'production') { if (process.env.NODE_ENV !== 'production') {
debug(xmpp, true) debug(xmpp, true)
@ -46,7 +46,7 @@ if (jsEnv.isNode) {
const { iqCaller } = xmpp const { iqCaller } = xmpp
xmpp.start() xmpp.start()
xmpp.on('online', _ => { xmpp.on('online', _ => {
resolve({ xmpp: xmpp, iqCaller: iqCaller }) resolve({ xmpp, iqCaller })
}) })
xmpp.on('error', error => { xmpp.on('error', error => {
reject(error) reject(error)

View file

@ -303,7 +303,7 @@ const process = async (publicKey) => {
}) })
return { return {
fingerprint: fingerprint, fingerprint,
users: usersOutput, users: usersOutput,
primaryUserIndex: primaryUser.index, primaryUserIndex: primaryUser.index,
key: { key: {

View file

@ -111,7 +111,7 @@ const createDefaultRequestPromise = (data, opts) => {
.then((res) => { .then((res) => {
return resolve({ return resolve({
fetcher: data.proof.request.fetcher, fetcher: data.proof.request.fetcher,
data: data, data,
viaProxy: false, viaProxy: false,
result: res result: res
}) })
@ -145,7 +145,7 @@ const createProxyRequestPromise = (data, opts) => {
.then((res) => { .then((res) => {
return resolve({ return resolve({
fetcher: 'http', fetcher: 'http',
data: data, data,
viaProxy: true, viaProxy: true,
result: res result: res
}) })