Comparing version 0.0.19 to 0.0.20
@@ -169,4 +169,4 @@ // Generated by CoffeeScript 2.2.2 | ||
id = uuid(); | ||
mediaType = mime.lookup(url.replace(/\?.*/, "")); | ||
extension = mime.extension(mediaType); | ||
mediaType = mime.getType(url.replace(/\?.*/, "")); | ||
extension = mime.getExtension(mediaType); | ||
dir = content.dir; | ||
@@ -181,4 +181,4 @@ self.options.images.push({id, url, dir, mediaType, extension}); | ||
if (this.options.cover) { | ||
this.options._coverMediaType = mime.lookup(this.options.cover); | ||
this.options._coverExtension = mime.extension(this.options._coverMediaType); | ||
this.options._coverMediaType = mime.getType(this.options.cover); | ||
this.options._coverExtension = mime.getExtension(this.options._coverMediaType); | ||
} | ||
@@ -185,0 +185,0 @@ this.render(); |
{ | ||
"name": "epub-gen", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"description": "A library to generate EPUB from HTML", | ||
@@ -27,15 +27,15 @@ "main": "index.js", | ||
"dependencies": { | ||
"archiver": "^1.0.1", | ||
"rimraf": "^2.5.2", | ||
"archiver": "^2.1.1", | ||
"cheerio": "^0.22.0", | ||
"diacritics": "^1.2.1", | ||
"ejs": "^2.2.4", | ||
"diacritics": "^1.3.0", | ||
"ejs": "^2.5.7", | ||
"entities": "^1.1.1", | ||
"fs-extra": "^0.18.2", | ||
"mime": "^1.3.4", | ||
"q": "^1.1.2", | ||
"superagent": "^0.21.0", | ||
"underscore": "^1.7.0", | ||
"uslug": "^1.0.3" | ||
"fs-extra": "^5.0.0", | ||
"mime": "^2.2.0", | ||
"q": "^1.5.1", | ||
"rimraf": "^2.6.2", | ||
"superagent": "^3.8.2", | ||
"underscore": "^1.8.3", | ||
"uslug": "^1.0.4" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
965325
+ Addedarchiver@2.1.1(transitive)
+ Addedasynckit@0.4.0(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedcombined-stream@1.0.8(transitive)
+ Addedcomponent-emitter@1.3.1(transitive)
+ Addedcookiejar@2.1.4(transitive)
+ Addeddebug@3.2.7(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addeddelayed-stream@1.0.0(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedform-data@2.5.2(transitive)
+ Addedformidable@1.2.6(transitive)
+ Addedfs-extra@5.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedjsonfile@4.0.0(transitive)
+ Addedmethods@1.1.2(transitive)
+ Addedmime@2.6.0(transitive)
+ Addedmime-db@1.52.0(transitive)
+ Addedmime-types@2.1.35(transitive)
+ Addedms@2.1.3(transitive)
+ Addedobject-inspect@1.13.3(transitive)
+ Addedqs@6.13.0(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedside-channel@1.0.6(transitive)
+ Addedsuperagent@3.8.3(transitive)
+ Addeduniversalify@0.1.2(transitive)
- Removedarchiver@1.3.0(transitive)
- Removedasync@0.9.2(transitive)
- Removedcombined-stream@0.0.7(transitive)
- Removedcomponent-emitter@1.1.2(transitive)
- Removedcookiejar@2.0.1(transitive)
- Removeddebug@2.6.9(transitive)
- Removeddelayed-stream@0.0.5(transitive)
- Removedextend@1.2.1(transitive)
- Removedform-data@0.1.3(transitive)
- Removedformidable@1.0.14(transitive)
- Removedfs-extra@0.18.4(transitive)
- Removedgraceful-fs@3.0.12(transitive)
- Removedisarray@0.0.1(transitive)
- Removedjsonfile@2.4.0(transitive)
- Removedmethods@1.0.1(transitive)
- Removedmime@1.2.11(transitive)
- Removedms@2.0.0(transitive)
- Removednatives@1.1.6(transitive)
- Removedqs@1.2.0(transitive)
- Removedreadable-stream@1.0.27-1(transitive)
- Removedreduce-component@1.0.1(transitive)
- Removedstring_decoder@0.10.31(transitive)
- Removedsuperagent@0.21.0(transitive)
- Removedwalkdir@0.0.11(transitive)
Updatedarchiver@^2.1.1
Updateddiacritics@^1.3.0
Updatedejs@^2.5.7
Updatedfs-extra@^5.0.0
Updatedmime@^2.2.0
Updatedq@^1.5.1
Updatedrimraf@^2.6.2
Updatedsuperagent@^3.8.2
Updatedunderscore@^1.8.3
Updateduslug@^1.0.4