Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Socket
Sign inDemoInstall

sift

Package Overview
Dependencies
Maintainers
2
Versions
155
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sift - npm Package Compare versions

Comparing version 3.3.7 to 3.3.8

8

index.d.ts

@@ -41,3 +41,3 @@ export type SupportedTypes = Array<string | { [index: string]: any } | number | null>;

export type PluginDefinition<T = any> = {
export type PluginDefinition<T> = {
[index: string]: (a: T, b: T) => boolean | number;

@@ -52,7 +52,7 @@ }

<T extends SupportedTypes>(query: RegExp, target: T, rawSelector?: any): T;
<T = any>(query: SiftQuery<any>, rawSelector: (item: T) => boolean): Exec;
<T extends SupportedTypes = any[]>(query: SiftQuery<T>): FilterFn;
<T>(query: SiftQuery<any>, rawSelector: (item: T) => boolean): Exec;
<T extends SupportedTypes[]>(query: SiftQuery<T>): FilterFn;
<T extends SupportedTypes>(query: SiftQuery<T>, target: T, rawSelector?: any): T;
indexOf<T extends SupportedTypes>(query: SiftQuery<T>, target: T, rawSelector?: any): number;
use<K = any>(plugin: PluginFunction<K> | PluginDefinition<K>): void;
use<K>(plugin: PluginFunction<K> | PluginDefinition<K>): void;
compare<T, K>(a: T, b: K): 0 | -1 | 1;

@@ -59,0 +59,0 @@ }

{
"name": "sift",
"description": "mongodb query style array filtering",
"version": "3.3.7",
"version": "3.3.8",
"repository": "crcn/sift.js",

@@ -6,0 +6,0 @@ "author": {

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