Comparing version 4.0.1 to 4.0.2
@@ -38,6 +38,7 @@ "use strict"; | ||
async multicall(calls) { | ||
const multi = calls.map(([method, ...params]) => { | ||
return [{ methodName: prefix(method), params: this.addSecret(params) }]; | ||
}); | ||
const multi = [ | ||
calls.map(([method, ...params]) => { | ||
return { methodName: prefix(method), params: this.addSecret(params) }; | ||
}) | ||
]; | ||
return super.call("system.multicall", multi); | ||
@@ -44,0 +45,0 @@ } |
{ | ||
"name": "aria2", | ||
"version": "4.0.1", | ||
"version": "4.0.2", | ||
"description": "Library and cli for aria2, \"The next generation download utility.\"", | ||
@@ -32,9 +32,9 @@ "homepage": "https://github.com/sonnyp/aria2.js", | ||
"dependencies": { | ||
"commander": "^2.9.0", | ||
"commander": "^2.16.0", | ||
"node-fetch": "^2.1.2", | ||
"ws": "^5.1.1" | ||
"ws": "^5.2.2" | ||
}, | ||
"devDependencies": { | ||
"ava": "^0.25.0", | ||
"prettier": "1.12.1" | ||
"prettier": "1.13.7" | ||
}, | ||
@@ -41,0 +41,0 @@ "engines": { |
31766
393
Updatedcommander@^2.16.0
Updatedws@^5.2.2