Merge pull request #52 from bigchaindb/greenkeeper/xo-0.23.0

Update xo to the latest version 🚀
pull/53/head
Matthias Kretschmann 4 years ago committed by GitHub
commit 5f7584c776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -63,12 +63,12 @@ const fetchRepos = () => {
topics
})).sort((p1, p2) => p2.stars - p1.stars)
log(`Re-built projects cache. ` +
log('Re-built projects cache. ' +
`Total: ${data_.length} public BigchainDB projects. ` +
`Elapsed: ${(new Date() - start)}ms`)
})
.catch(err => {
logError('Error parsing response from GitHub: ' + err.stack)
.catch(error => {
logError('Error parsing response from GitHub: ' + error.stack)
})
}
@ -96,12 +96,12 @@ const fetchReleases = () => {
release_url: data_.html_url
})
log(`Re-built releases cache. ` +
log('Re-built releases cache. ' +
`Latest release: ${data_.tag_name}. ` +
`Elapsed: ${(new Date() - start)}ms`)
})
.catch(err => {
logError('Error parsing response from GitHub: ' + err.stack)
.catch(error => {
logError('Error parsing response from GitHub: ' + error.stack)
})
}
@ -125,7 +125,7 @@ module.exports = async (req, res) => {
// Merge the responses together
// kinda hacky, needs rewrite for adding release info to all objects in dataRepos
data = Object.assign(dataReleases, dataRepos[0])
data = await Object.assign(dataReleases, dataRepos[0])
data = Object.assign(dataRepos, {0: data})
// Make json pretty again.

@ -25,7 +25,7 @@
"ava": "^0.25.0",
"request-promise": "^4.2.1",
"test-listen": "^1.1.0",
"xo": "^0.22.0"
"xo": "^0.23.0"
},
"now": {
"alias": "bigchaindb-github.now.sh",

@ -5,7 +5,7 @@ import request from 'request-promise'
test('it works', async t => {
const service = micro(async (req, res) => {
micro.send(res, 200, {
await micro.send(res, 200, {
test: 'woot'
})
})

Loading…
Cancel
Save