Comparing version 2.0.0 to 2.0.1
{ | ||
"name": "from2", | ||
"description": "Convenience wrapper for ReadableStream, with an API lifted from \"from\" and \"through2\"", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -29,4 +29,2 @@ # from2 [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=hughskennedy&url=http://github.com/hughsk/from2&title=from2&description=hughsk/from2%20on%20GitHub&language=en_GB&tags=flattr,github,javascript&category=software)[![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://github.com/hughsk/stability-badges) # | ||
module.exports = fromString | ||
function fromString(string) { | ||
@@ -36,3 +34,3 @@ return from(function(size, next) { | ||
// left in the string, close the stream. | ||
if (string.length <= 0) return cb(null, null) | ||
if (string.length <= 0) return next(null, null) | ||
@@ -39,0 +37,0 @@ // Pull in a new chunk of text, |
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
7908
66