mirror of
https://codeberg.org/keyoxide/doipjs.git
synced 2024-12-22 22:49:28 -07:00
fix: apply linting fixes
This commit is contained in:
parent
4f5e5592f4
commit
542bab3232
22 changed files with 30 additions and 30 deletions
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -31,7 +31,7 @@ const processURI = (uri) => {
|
||||||
},
|
},
|
||||||
profile: {
|
profile: {
|
||||||
display: match[1],
|
display: match[1],
|
||||||
uri: uri,
|
uri,
|
||||||
qr: null
|
qr: null
|
||||||
},
|
},
|
||||||
proof: {
|
proof: {
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -31,7 +31,7 @@ const processURI = (uri) => {
|
||||||
},
|
},
|
||||||
profile: {
|
profile: {
|
||||||
display: match[1],
|
display: match[1],
|
||||||
uri: uri,
|
uri,
|
||||||
qr: null
|
qr: null
|
||||||
},
|
},
|
||||||
proof: {
|
proof: {
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -31,7 +31,7 @@ const processURI = (uri) => {
|
||||||
},
|
},
|
||||||
profile: {
|
profile: {
|
||||||
display: match[1],
|
display: match[1],
|
||||||
uri: uri,
|
uri,
|
||||||
qr: null
|
qr: null
|
||||||
},
|
},
|
||||||
proof: {
|
proof: {
|
||||||
|
|
|
@ -31,7 +31,7 @@ const processURI = (uri) => {
|
||||||
},
|
},
|
||||||
profile: {
|
profile: {
|
||||||
display: match[1],
|
display: match[1],
|
||||||
uri: uri,
|
uri,
|
||||||
qr: null
|
qr: null
|
||||||
},
|
},
|
||||||
proof: {
|
proof: {
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -31,7 +31,7 @@ const processURI = (uri) => {
|
||||||
},
|
},
|
||||||
profile: {
|
profile: {
|
||||||
display: match[1],
|
display: match[1],
|
||||||
uri: uri,
|
uri,
|
||||||
qr: null
|
qr: null
|
||||||
},
|
},
|
||||||
proof: {
|
proof: {
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -33,7 +33,7 @@ const processURI = (uri) => {
|
||||||
},
|
},
|
||||||
profile: {
|
profile: {
|
||||||
display: `${id}@${site}`,
|
display: `${id}@${site}`,
|
||||||
uri: uri,
|
uri,
|
||||||
qr: null
|
qr: null
|
||||||
},
|
},
|
||||||
proof: {
|
proof: {
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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: {
|
||||||
|
|
|
@ -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
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue