local-video-library
Advanced tools
Comparing version 1.1.0 to 1.2.0
10
index.js
@@ -1,2 +0,2 @@ | ||
'use strict' | ||
'use strict'; | ||
@@ -8,3 +8,3 @@ const Parser = require('library-parser'); | ||
module.exports = class Library { | ||
constructor(traktId = String(), paths = Array(), debug) { | ||
constructor(traktId = String(), paths = Array(), debug = false) { | ||
if (!traktId) throw Error('You need to pass a Trakt.tv client_id, see http://docs.trakt.apiary.io/'); | ||
@@ -53,3 +53,3 @@ if (!paths.length) throw Error('At least one path is required'); | ||
resolve(this.matchedFiles.concat(this.unmatchedFiles)); | ||
} | ||
}; | ||
@@ -66,3 +66,3 @@ queue.push(files); | ||
this.trakt.matcher.match(file).then((md = Object()) => { | ||
this.trakt.matcher.match(file).then((md = {}) => { | ||
file.metadata = md; | ||
@@ -78,2 +78,2 @@ | ||
} | ||
} | ||
}; |
@@ -5,3 +5,3 @@ { | ||
"author": "Jean van Kasteel", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"license": "MIT", | ||
@@ -13,7 +13,7 @@ "repository": { | ||
"dependencies": { | ||
"library-parser": "1.x.x", | ||
"async": "2.x.x", | ||
"trakt.tv": "^5.x.x", | ||
"trakt.tv-matcher": "^5.x.x" | ||
"async": "^2.6.1", | ||
"library-parser": "^1.1.0", | ||
"trakt.tv": "^7.1.0", | ||
"trakt.tv-matcher": "^7.x.x" | ||
} | ||
} | ||
} |
@@ -17,4 +17,4 @@ # local-video-library | ||
var Parser = require('local-video-library'); | ||
var library = new Parser(traktId, paths, debug); | ||
const Parser = require('local-video-library'); | ||
const library = new Parser(traktId, paths, debug); | ||
@@ -21,0 +21,0 @@ library.scan(paths).then((localLibrary) => { |
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
3713
+ Added@sindresorhus/is@0.14.0(transitive)
+ Added@szmarczak/http-timer@1.1.2(transitive)
+ Addedcacheable-request@6.1.0(transitive)
+ Addedclone-response@1.0.3(transitive)
+ Addeddefer-to-connect@1.1.3(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedget-stream@4.1.05.2.0(transitive)
+ Addedgot@9.6.0(transitive)
+ Addedhttp-cache-semantics@4.1.1(transitive)
+ Addedjson-buffer@3.0.0(transitive)
+ Addedkeyv@3.1.0(transitive)
+ Addedlowercase-keys@2.0.0(transitive)
+ Addednormalize-url@4.5.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedp-cancelable@1.1.0(transitive)
+ Addedprepend-http@2.0.0(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedresponselike@1.0.2(transitive)
+ Addedto-readable-stream@1.0.0(transitive)
+ Addedtrakt.tv@7.2.0(transitive)
+ Addedtrakt.tv-matcher@7.0.0(transitive)
+ Addedurl-parse-lax@3.0.0(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedget-stream@3.0.0(transitive)
- Removedgot@7.1.0(transitive)
- Removedhas-symbol-support-x@1.4.2(transitive)
- Removedhas-to-string-tag-x@1.4.1(transitive)
- Removedis-object@1.0.2(transitive)
- Removedis-plain-obj@1.1.0(transitive)
- Removedis-retry-allowed@1.2.0(transitive)
- Removedis-stream@1.1.0(transitive)
- Removedisurl@1.0.0(transitive)
- Removedp-cancelable@0.3.0(transitive)
- Removedp-finally@1.0.0(transitive)
- Removedp-timeout@1.2.1(transitive)
- Removedprepend-http@1.0.4(transitive)
- Removedsafe-buffer@5.2.1(transitive)
- Removedtimed-out@4.0.1(transitive)
- Removedtrakt.tv@5.1.0(transitive)
- Removedtrakt.tv-matcher@5.2.0(transitive)
- Removedurl-parse-lax@1.0.0(transitive)
- Removedurl-to-options@1.0.1(transitive)
Updatedasync@^2.6.1
Updatedlibrary-parser@^1.1.0
Updatedtrakt.tv@^7.1.0
Updatedtrakt.tv-matcher@^7.x.x