mirror of
https://github.com/bigchaindb/js-bigchaindb-driver.git
synced 2024-06-30 21:52:11 +02:00
Merge branch 'greenkeeper/eslint-4.1.1'
This commit is contained in:
commit
197ece2264
|
@ -48,7 +48,7 @@
|
|||
"babel-preset-latest": "^6.22.0",
|
||||
"babel-runtime": "^6.22.0",
|
||||
"cross-env": "^5.0.1",
|
||||
"eslint": "^3.14.1",
|
||||
"eslint": "^4.1.1",
|
||||
"eslint-config-ascribe": "^3.0.4",
|
||||
"eslint-plugin-import": "^2.2.0",
|
||||
"husky": "^0.14.0",
|
||||
|
|
|
@ -30,12 +30,8 @@ export default function request(url, config = {}, onlyJsonResponse = true) {
|
|||
}
|
||||
|
||||
return baseRequest(apiUrl, requestConfig)
|
||||
.then((res) => onlyJsonResponse ? res.json() : // eslint-disable-line no-confusing-arrow
|
||||
{
|
||||
json: res.json(),
|
||||
url: res.url
|
||||
})
|
||||
.catch((err) => {
|
||||
.then(res => (onlyJsonResponse ? res.json() : { json: res.json(), url: res.url }))
|
||||
.catch(err => {
|
||||
console.error(err)
|
||||
throw err
|
||||
})
|
||||
|
|
|
@ -29,7 +29,7 @@ export default function makeTransferTransaction(
|
|||
metadata,
|
||||
outputs,
|
||||
...outputIndices
|
||||
) {
|
||||
) {
|
||||
const inputs = outputIndices.map((outputIndex) => {
|
||||
const fulfilledOutput = unspentTransaction.outputs[outputIndex]
|
||||
const transactionLink = {
|
||||
|
|
Loading…
Reference in New Issue
Block a user