New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

epubstream

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

epubstream - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

9

lib/ncx.js

@@ -13,6 +13,9 @@ var genx = require('genx');

_playOrder = 0,
out = '<?xml version="1.0" encoding="UTF-8"?>' +
'<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" ' +
'"http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">';
out = '<?xml version="1.0" encoding="UTF-8"?>';
if (opts.epubVersion !== 'epub3') {
out += '<!DOCTYPE ncx PUBLIC "-//NISO//DTD ncx 2005-1//EN" ' +
'"http://www.daisy.org/z3986/2005/ncx-2005-1.dtd">';
}
// Capture data events to build the output string

@@ -19,0 +22,0 @@ w.on('data', function(chunk) { out += chunk; });

@@ -87,5 +87,6 @@ var genx = require('genx');

if (opts.epubVersion === "epub3" && opts.modified) { // <meta property="dcterms:modified">2011-01-01T12:00:00Z</meta>
var dateModified = opts.modified.replace(/\.[0-9]+/, ''); // remove the milliseconds (.nn)
w.startElement(meta)
.addAttribute(property, "dcterms:modified")
.addText(opts.modified).endElement();
.addText(dateModified).endElement();
}

@@ -156,4 +157,2 @@

// Guide
w.startElementLiteral('guide');
// iBooks

@@ -160,0 +159,0 @@ if (opts.cover) {

{
"name": "epubstream",
"version": "0.0.7",
"version": "0.0.8",
"description": "Epub",

@@ -8,3 +8,3 @@ "author": "Danny Amey <danny@dannyamey.com>",

"dependencies": {
"genx": "0.9.0",
"genx": "~1.0.0",
"zipstream-contentment": "0.2.1",

@@ -11,0 +11,0 @@ "stache": "0.1.0",

Sorry, the diff of this file is not supported yet

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