Comparing version 2.1.1 to 2.2.0
@@ -32,3 +32,3 @@ var Readable = require('readable-stream').Readable | ||
var rs = new Proto(opts) | ||
rs._from = Array.isArray(read) ? toFunction(read) : read | ||
rs._from = Array.isArray(read) ? toFunction(read) : (read || noop) | ||
return rs | ||
@@ -99,2 +99,4 @@ } | ||
function noop () {} | ||
function defaults(opts) { | ||
@@ -101,0 +103,0 @@ opts = opts || {} |
{ | ||
"name": "from2", | ||
"description": "Convenience wrapper for ReadableStream, with an API lifted from \"from\" and \"through2\"", | ||
"version": "2.1.1", | ||
"version": "2.2.0", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
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
9345
189