epubstream
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -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
105046
417
+ Addedgenx@1.0.0(transitive)
- Removedgenx@0.9.0(transitive)
Updatedgenx@~1.0.0