tmdb-node
Advanced tools
Comparing version 0.8.0 to 0.8.1
@@ -127,7 +127,7 @@ var config = require('./config') | ||
TmdbApi.prototype.search = function(where,query,opts,callback) { | ||
if(!query || typeof query !== 'string') return callback("You must specify a query!") | ||
if(typeof opts === 'function'){ | ||
callback = opts | ||
opts = {} | ||
opts = { qs : {} } | ||
} | ||
if(!query || typeof query !== 'string') return callback("You must specify a query!") | ||
opts.uri = formUri(config.endpoints.search[where]) | ||
@@ -134,0 +134,0 @@ opts.qs.query = query |
{ | ||
"name": "tmdb-node", | ||
"version": "0.8.0", | ||
"version": "0.8.1", | ||
"description": "Wrapper for The Movie Database api", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
29054