1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2025-02-14 21:10:32 +01:00

Merge branch 'greenkeeper/eslint-4.1.1'

This commit is contained in:
vrde 2017-07-05 17:58:21 +02:00
commit 197ece2264
No known key found for this signature in database
GPG Key ID: 6581C7C39B3D397D
5 changed files with 14 additions and 18 deletions

View File

@ -48,7 +48,7 @@
"babel-preset-latest": "^6.22.0", "babel-preset-latest": "^6.22.0",
"babel-runtime": "^6.22.0", "babel-runtime": "^6.22.0",
"cross-env": "^5.0.1", "cross-env": "^5.0.1",
"eslint": "^3.14.1", "eslint": "^4.1.1",
"eslint-config-ascribe": "^3.0.4", "eslint-config-ascribe": "^3.0.4",
"eslint-plugin-import": "^2.2.0", "eslint-plugin-import": "^2.2.0",
"husky": "^0.14.0", "husky": "^0.14.0",

View File

@ -30,12 +30,8 @@ export default function request(url, config = {}, onlyJsonResponse = true) {
} }
return baseRequest(apiUrl, requestConfig) return baseRequest(apiUrl, requestConfig)
.then((res) => onlyJsonResponse ? res.json() : // eslint-disable-line no-confusing-arrow .then(res => (onlyJsonResponse ? res.json() : { json: res.json(), url: res.url }))
{ .catch(err => {
json: res.json(),
url: res.url
})
.catch((err) => {
console.error(err) console.error(err)
throw err throw err
}) })

View File

@ -29,7 +29,7 @@ export default function makeTransferTransaction(
metadata, metadata,
outputs, outputs,
...outputIndices ...outputIndices
) { ) {
const inputs = outputIndices.map((outputIndex) => { const inputs = outputIndices.map((outputIndex) => {
const fulfilledOutput = unspentTransaction.outputs[outputIndex] const fulfilledOutput = unspentTransaction.outputs[outputIndex]
const transactionLink = { const transactionLink = {