Comparing version 0.1.2 to 0.1.3
@@ -42,6 +42,18 @@ var cacher = require('epub-cache'); | ||
console.log('webifying '+epubfile); | ||
cacher.cache(epubfile, function (err, cacheId, bundle) { | ||
console.log(arguments); | ||
var cacheId = null; | ||
if('function' !== typeof arguments[2]) { // if cb not 3rd arg | ||
cacheId = arguments[2]; // force cacheId from 2nd arg | ||
cb = arguments[3]; // assume cb is last arg | ||
} | ||
if(cacheId) { | ||
console.log('cacheId override: '+cacheId); | ||
} | ||
cacher.cache(epubfile, cacheId, function (err, cacheId, bundle) { | ||
if(err) return cb(err, null, null); | ||
@@ -48,0 +60,0 @@ |
{ | ||
"name": "epub2web", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Web server module to allow reading of Epub content directly in the browser, without plugins or specialized applications. ", | ||
@@ -23,4 +23,5 @@ "main": "index.js", | ||
"epub-cache": "0.0.3", | ||
"epub-tmpl": "0.1.3", | ||
"mime": "~1.2.7" | ||
} | ||
} |
1528856
366
3
+ Addedepub-tmpl@0.1.3
+ Addedepub-tmpl@0.1.3(transitive)