mirror of
https://github.com/KevinMidboe/moviedb.git
synced 2026-02-10 11:29:08 +00:00
Release 0.1.7
This commit is contained in:
@@ -1,3 +1,11 @@
|
|||||||
|
0.1.7 / 2014-07-27
|
||||||
|
==================
|
||||||
|
|
||||||
|
* Added Multi endpoint
|
||||||
|
* Error handling
|
||||||
|
* Movie credits endpoint
|
||||||
|
|
||||||
|
|
||||||
0.1.6 / 2014-07-08
|
0.1.6 / 2014-07-08
|
||||||
==================
|
==================
|
||||||
|
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ MovieDB.prototype.requestToken = function(fn){
|
|||||||
if(res.ok) self.token = res.body;
|
if(res.ok) self.token = res.body;
|
||||||
else throw res.error;
|
else throw res.error;
|
||||||
fn();
|
fn();
|
||||||
|
}).on('error', function(){
|
||||||
|
throw res.error;
|
||||||
});
|
});
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
@@ -91,4 +93,6 @@ var execMethod = function(type, params, endpoint, fn){
|
|||||||
if(res.ok) fn(null, res.body);
|
if(res.ok) fn(null, res.body);
|
||||||
else fn(res.error, null);
|
else fn(res.error, null);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
req.on('error', fn);
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name" : "moviedb"
|
"name" : "moviedb"
|
||||||
, "description" : "Library for interacting with themoviedb.com API"
|
, "description" : "Library for interacting with themoviedb.com API"
|
||||||
, "version" : "0.1.6"
|
, "version" : "0.1.7"
|
||||||
, "keywords" : ["themoviedb","api"]
|
, "keywords" : ["themoviedb","api"]
|
||||||
, "directories" : { "lib" : "./lib" }
|
, "directories" : { "lib" : "./lib" }
|
||||||
, "main" : "index.js"
|
, "main" : "index.js"
|
||||||
|
|||||||
Reference in New Issue
Block a user