random-movie
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -6,3 +6,3 @@ 'use strict'; | ||
module.exports = function (cb){ | ||
module.exports = function again(cb){ | ||
var randNum = rand(); | ||
@@ -12,4 +12,8 @@ var randStr = randNum + ''; | ||
movie({id: randID}, function(data) { | ||
//No movie with this random ID. | ||
if(data.Error) { | ||
again(cb); | ||
} | ||
cb(data); | ||
}); | ||
}; |
{ | ||
"name": "random-movie", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "Random movie generator", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -0,0 +0,0 @@ # random-movie |
@@ -0,0 +0,0 @@ 'use strict'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
4023
21
8