@ridi/epub-parser
Advanced tools
Comparing version 0.3.0-alpha.2 to 0.3.0-alpha.3
@@ -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", |
120344
2624