name-to-imdb
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -44,3 +44,3 @@ var namedQueue = require('named-queue'); | ||
if (cache.hasOwnProperty(key)) | ||
return cb(null, cache[key], { match: 'cache' }) | ||
return cb(null, cache[key][0], { match: cache[key][1].match, isCached: true }) | ||
@@ -56,3 +56,3 @@ queue.push({ | ||
if (imdb_id) { | ||
cache[key] = imdb_id | ||
cache[key] = [imdb_id, match] | ||
setTimeout(function() { delete cache[key] }, CACHE_TTL) | ||
@@ -59,0 +59,0 @@ } |
{ | ||
"name": "name-to-imdb", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Finds IMDB ID by movie/series name (fuzzily) and optionally year and type", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
14103
0