rtf-parser
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -5,2 +5,13 @@ # Change Log | ||
<a name="1.3.1"></a> | ||
## [1.3.1](https://github.com/iarna/rtf-parser/compare/v1.3.0...v1.3.1) (2019-01-08) | ||
### Bug Fixes | ||
* **interpreter:** avoid finish callback after err ([#14](https://github.com/iarna/rtf-parser/issues/14)) ([2882b17](https://github.com/iarna/rtf-parser/commit/2882b17)), closes [#13](https://github.com/iarna/rtf-parser/issues/13) | ||
* **interpreter:** Unknown RTF command error ([#16](https://github.com/iarna/rtf-parser/issues/16)) ([63314fe](https://github.com/iarna/rtf-parser/commit/63314fe)), closes [#13](https://github.com/iarna/rtf-parser/issues/13) | ||
<a name="1.3.0"></a> | ||
@@ -7,0 +18,0 @@ # [1.3.0](https://github.com/iarna/rtf-parser/compare/v1.2.0...v1.3.0) (2018-07-08) |
@@ -32,3 +32,5 @@ 'use strict' | ||
interpreter.on('error', errorHandler) | ||
interpreter.on('finish', () => cb(null, document)) | ||
interpreter.on('finish', () => { | ||
if (!errored) cb(null, document) | ||
}) | ||
parser.pipe(interpreter) | ||
@@ -35,0 +37,0 @@ return parser |
{ | ||
"name": "rtf-parser", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "This is a general RTF parser. It takes a text stream and produces a document object representing the parsed document. In and of itself, this isn't super useful but it's the building block for other tools to convert RTF into other formats.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -127,2 +127,5 @@ 'use strict' | ||
} | ||
cmd$error (cmd) { | ||
this.emit('error', new Error('Error: ' + cmd.value + (cmd.row && cmd.col ? ' at line ' + cmd.row + ':' + cmd.col : '') + '.')) | ||
} | ||
@@ -129,0 +132,0 @@ ctrl$rtf () { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27358
723