Comparing version 1.0.0 to 1.0.1
@@ -1,7 +0,2 @@ | ||
function isAsyncIterable(val) { | ||
const isIterable = typeof val[Symbol.iterator] === "function"; | ||
const isAsync = typeof val[Symbol.asyncIterator] === "function"; | ||
// ? console.log({ val, isIterable, isAsync, s: Symbol.asyncIterator }); | ||
return isAsync || isIterable; | ||
} | ||
import isAsyncIterable from "is-async-iterable"; | ||
@@ -8,0 +3,0 @@ export default async function* filter(predicate, data) { |
{ | ||
"name": "ai-filter", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Filter over async iterables.", | ||
@@ -35,3 +35,6 @@ "repository": "parro-it/ai-filter", | ||
"tape-async": "^2.3.0" | ||
}, | ||
"dependencies": { | ||
"is-async-iterable": "^1.0.0" | ||
} | ||
} |
3741
1
20
+ Addedis-async-iterable@^1.0.0
+ Addedis-async-iterable@1.0.2(transitive)