name-to-imdb
Advanced tools
Comparing version 2.1.0 to 2.1.1
var namedQueue = require('named-queue'); | ||
var _ = require('lodash'); | ||
var helpers = require('./helpers') | ||
@@ -29,3 +28,5 @@ | ||
var q = _.pick(args, 'name', 'year', 'type') | ||
var q = { name: args.name } | ||
if (args.year) q.year = args.year | ||
if (args.type) q.type = args.type | ||
@@ -43,3 +44,3 @@ if (! q.name) | ||
var key = new Buffer(args.hintUrl || _.values(q).join(':')).toString('ascii') // convert to ASCII since EventEmitter bugs with UTF8 | ||
var key = new Buffer(args.hintUrl || Object.values(q).join(':')).toString('ascii') // convert to ASCII since EventEmitter bugs with UTF8 | ||
@@ -46,0 +47,0 @@ if (cache.hasOwnProperty(key) && Date.now()-cacheLastSet[key] < CACHE_TTL) { |
{ | ||
"name": "name-to-imdb", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Finds IMDB ID by movie/series name (fuzzily) and optionally year and type", | ||
@@ -26,3 +26,2 @@ "main": "index.js", | ||
"dependencies": { | ||
"lodash": "^3.10.1", | ||
"named-queue": "^2.1.0", | ||
@@ -29,0 +28,0 @@ "needle": "^1.1.2", |
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
22421
3
306
- Removedlodash@^3.10.1
- Removedlodash@3.10.1(transitive)