pull-stream
Advanced tools
Comparing version 3.0.0 to 3.0.1
{ | ||
"name": "pull-stream", | ||
"description": "minimal pull stream", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"homepage": "https://github.com/dominictarr/pull-stream", | ||
@@ -6,0 +6,0 @@ "repository": { |
@@ -9,3 +9,3 @@ 'use strict' | ||
? function (data) { return data[key] } | ||
: 'object' === typeof key && 'function' === typeof key.exec //regexp | ||
: key && 'object' === typeof key && 'function' === typeof key.exec //regexp | ||
? function (data) { var v = map.exec(data); return v && v[0] } | ||
@@ -12,0 +12,0 @@ : key || id |
@@ -70,1 +70,12 @@ | ||
}) | ||
test('find null', function (t) { | ||
pull( | ||
pull.values([1, 2, 3, 4, 5, 6, 7, 8, 9, 10]), | ||
pull.find(null, function (err, first) { | ||
t.equal(first, 1) | ||
t.notOk(err) | ||
t.end() | ||
}) | ||
) | ||
}) |
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
50154
1087