anytv-commons
Advanced tools
Comparing version 0.0.6 to 0.0.7
19
index.js
@@ -458,2 +458,4 @@ 'use strict'; | ||
this._additional_args = []; | ||
// default auth type | ||
@@ -483,3 +485,4 @@ this.auth_type = 'auto'; | ||
args () { | ||
this.request.args(...Array.from(arguments)); | ||
this._additional_args = Array.from(arguments); | ||
this.request.args(...arguments); | ||
return this; | ||
@@ -515,3 +518,8 @@ } | ||
this.done = true; | ||
this.next(new Error('YTRequest timed out')); | ||
this.next( | ||
new Error('YTRequest timed out'), | ||
null, | ||
this.request, | ||
this._additional_args | ||
); | ||
} | ||
@@ -534,3 +542,8 @@ }, 1000 * 60 * 5); | ||
this.done = true; | ||
return this.next(new FatalError('Need an api key or access token')); | ||
return this.next( | ||
new FatalError('Need an api key or access token'), | ||
null, | ||
this.request, | ||
this._additional_args | ||
); | ||
} | ||
@@ -537,0 +550,0 @@ |
{ | ||
"name": "anytv-commons", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "Collection of libraries commonly used", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
21887
657