Comparing version 2.0.0 to 2.0.1
@@ -103,3 +103,3 @@ ;(function (global) { | ||
Aria2.prototype.send = function (method /* [,param] [,param] [,...] [, fn]*/) { | ||
Aria2.prototype.send = function (method /* [,param] [,param] [,...] [, fn] */) { | ||
var params = Array.prototype.slice.call(arguments, 1) | ||
@@ -327,3 +327,3 @@ var cb = typeof params[params.length - 1] === 'function' ? params.pop() : null | ||
var sufix = method.indexOf('.') > -1 ? method.split('.')[1] : method | ||
Aria2.prototype[sufix] = function (/* [param] [,param] [,...]*/) { | ||
Aria2.prototype[sufix] = function (/* [param] [,param] [,...] */) { | ||
return this.send.apply(this, [method].concat(Array.prototype.slice.call(arguments))) | ||
@@ -330,0 +330,0 @@ } |
@@ -75,3 +75,3 @@ ;(function (global) { | ||
Aria2.prototype.send = function (method /* [,param] [,param] [,...] [, fn]*/) { | ||
Aria2.prototype.send = function (method /* [,param] [,param] [,...] [, fn] */) { | ||
var params = Array.prototype.slice.call(arguments, 1) | ||
@@ -299,3 +299,3 @@ var cb = typeof params[params.length - 1] === 'function' ? params.pop() : null | ||
var sufix = method.indexOf('.') > -1 ? method.split('.')[1] : method | ||
Aria2.prototype[sufix] = function (/* [param] [,param] [,...]*/) { | ||
Aria2.prototype[sufix] = function (/* [param] [,param] [,...] */) { | ||
return this.send.apply(this, [method].concat(Array.prototype.slice.call(arguments))) | ||
@@ -302,0 +302,0 @@ } |
{ | ||
"name": "aria2", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Library and cli for aria2, \"The next generation download utility.\"", | ||
@@ -36,4 +36,4 @@ "homepage": "https://github.com/sonnyp/aria2.js", | ||
"httpclient": "0.1.0", | ||
"polygoat": "^1.1.2", | ||
"ws": "^1.0.1" | ||
"polygoat": "^1.1.4", | ||
"ws": "^1.1.1" | ||
}, | ||
@@ -40,0 +40,0 @@ "devDependencies": { |
@@ -132,2 +132,4 @@ aria2.js | ||
If the WebSocket is open (via the [open method](#open)) aria2.js will use the WebSocket transport, otherwise the HTTP transport. | ||
`jsonp: true` will make aria2.js uses [JSONP](https://en.wikipedia.org/wiki/JSONP) for non WebSocket requests, useful if you cannot make aria2c allow your origin. It has no effect on Node.js. | ||
@@ -190,4 +192,2 @@ | ||
When sending a request to aria2, if the WebSocket is closed, aria2.js will use the HTTP transport. | ||
For every aria2 methods you can use | ||
@@ -194,0 +194,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
46405
2
Updatedpolygoat@^1.1.4
Updatedws@^1.1.1