@daisy/epub-utils
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -43,3 +43,4 @@ // input: unzipped book directory | ||
const content = fs.readFileSync(fullpath).toString(); | ||
const doc = new DOMParser({ errorHandler }).parseFromString(content, 'application/xhtml+xml'); | ||
//FIXME hack to workaround xmldom-alpha regex test | ||
const doc = new DOMParser({ errorHandler }).parseFromString(content, 'application/xhtml'); | ||
@@ -172,3 +173,4 @@ // Remove all links | ||
const content = fs.readFileSync(filepath).toString(); | ||
const doc = new DOMParser({ errorHandler }).parseFromString(content, 'application/xhtml+xml'); | ||
//FIXME hack to workaround xmldom-alpha regex test | ||
const doc = new DOMParser({ errorHandler }).parseFromString(content, 'application/xhtml'); | ||
const select = xpath.useNamespaces({ html: "http://www.w3.org/1999/xhtml", epub: "http://www.idpf.org/2007/ops" }); | ||
@@ -175,0 +177,0 @@ const title = select('//html:title/text()', doc); |
{ | ||
"name": "@daisy/epub-utils", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "EPUB parser and model, used by Ace", | ||
@@ -24,3 +24,3 @@ "author": { | ||
"winston": "^2.4.0", | ||
"xmldom-alpha": "https://github.com/fchasen/xmldom.git#a38f7ddb536ab74e9fb549477ba9f9b7ea2d0beb", | ||
"xmldom-alpha": "^0.1.28", | ||
"xpath": "^0.0.24" | ||
@@ -27,0 +27,0 @@ }, |
HTTP dependency
Supply chain riskContains a dependency which resolves to a remote HTTP URL which could be used to inject untrusted code and reduce overall package reliability.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
11823
284
0
0
+ Addedxmldom-alpha@0.1.28(transitive)
Updatedxmldom-alpha@^0.1.28