New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ai-filter

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ai-filter - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

7

index.js

@@ -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) {

5

package.json
{
"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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc