Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

epub2web

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epub2web - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

16

lib/epub2web.js

@@ -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 @@

3

package.json
{
"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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc