intertext-splitlines
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -103,3 +103,3 @@ (function() { | ||
line = decode(me, me.collector); | ||
if (!(me.skip_empty_last && line === '')) { | ||
if (!(me.skip_empty_last && line.length === 0)) { | ||
yield line; | ||
@@ -106,0 +106,0 @@ } |
{ | ||
"name": "intertext-splitlines", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "split streaming buffers into neat, decoded lines of text", | ||
@@ -5,0 +5,0 @@ "main": "lib/main.js", |
@@ -26,3 +26,3 @@ | ||
In case you have one or more buffers with textual content, the simplest way to use InterText SplitLines | ||
is to use the `splitlines()` method which will return a list of strings, each representing one line. To | ||
is to use the `splitlines()` method which will return a list of strings, each representing one line: | ||
@@ -43,3 +43,3 @@ | ||
# Now we can | ||
# Now that we have a number of buffers, let's split them into text lines: | ||
SL = require 'intertext-splitlines' | ||
@@ -116,7 +116,12 @@ lines = SL.splitlines buffers | ||
* publish v1.1.0 | ||
* [X] fix treatment of last line when emitting buffers | ||
* publish v1.1.1 | ||
--------------------------------------------------------------------- | ||
* [ ] implement `encoding` | ||
* [ ] make keeping of newlines configurable | ||
* [ ] make sure all relevant line ending conventions are properly honored | ||
* [ ] allow custom line splitter | ||
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
21565
125