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

@ridi/epub-parser

Package Overview
Dependencies
Maintainers
12
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ridi/epub-parser - npm Package Compare versions

Comparing version 0.3.0-alpha.2 to 0.3.0-alpha.3

18

lib/EpubParser.js

@@ -309,10 +309,12 @@ 'use strict';

context = _context.sent;
_context.next = 20;
_parserCore.Logger.warn('Cover image not found in EPUB.');
_context.next = 21;
return this._createBook(context);
case 20:
case 21:
book = _context.sent;
return _context.abrupt('return', book);
case 22:
case 23:
case 'end':

@@ -760,2 +762,3 @@ return _context.stop();

rawItem.reason = _DeadItem2.default.Reason.NOT_SUPPORT_TYPE;
_parserCore.Logger.warn('Referenced resource \'' + rawItem.id + '\' ignored. (reason: ' + rawItem.reason + ')');
}

@@ -790,2 +793,3 @@

rawItem.reason = _DeadItem2.default.Reason.NOT_SPINE;
_parserCore.Logger.warn('Referenced resource \'' + rawItem.id + '\' ignored. (reason: ' + rawItem.reason + ')');
}

@@ -811,2 +815,3 @@ } else if (rawItem.itemType === _ImageItem2.default) {

rawItem.reason = _DeadItem2.default.Reason.NOT_NCX;
_parserCore.Logger.warn('Referenced resource \'' + rawItem.id + '\' ignored. (reason: ' + rawItem.reason + ')');
}

@@ -845,3 +850,3 @@ }

case 21:
_context7.next = 25;
_context7.next = 26;
break;

@@ -852,7 +857,8 @@

rawItem.reason = _DeadItem2.default.Reason.NOT_EXISTS;
_parserCore.Logger.warn('Referenced resource \'' + rawItem.id + '\' ignored. (reason: ' + rawItem.reason + ')');
case 25:
case 26:
rawBook.items.push(rawItem);
case 26:
case 27:
case 'end':

@@ -859,0 +865,0 @@ return _context7.stop();

@@ -18,2 +18,3 @@ 'use strict';

Errors: _parserCore.Errors,
Logger: _parserCore.Logger,
CryptoProvider: _parserCore.CryptoProvider,

@@ -20,0 +21,0 @@ Cryptor: _parserCore.Cryptor

{
"name": "@ridi/epub-parser",
"version": "0.3.0-alpha.2",
"version": "0.3.0-alpha.3",
"description": "Common EPUB2 data parser for Ridibooks services",

@@ -31,3 +31,3 @@ "author": {

"dependencies": {
"@ridi/parser-core": "^0.3.0-alpha.2",
"@ridi/parser-core": "^0.3.0-alpha.3",
"css-tree": "^1.0.0-alpha.29",

@@ -34,0 +34,0 @@ "fast-xml-parser": "^3.11.2",

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