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

@daisy/epub-utils

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@daisy/epub-utils - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

6

lib/epub-parse.js

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

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