Socket
Socket
Sign inDemoInstall

sift

Package Overview
Dependencies
0
Maintainers
2
Versions
155
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 13.1.7 to 13.1.8

16

lib/core.d.ts

@@ -22,3 +22,3 @@ import { Key, Comparator } from "./utils";

$exists?: boolean;
$regex?: string;
$regex?: string | RegExp;
$size?: number;

@@ -28,8 +28,9 @@ $where?: Function | string;

$type?: Function;
$or?: Query<TValue>[];
$nor?: Query<TValue>[];
$and?: Query<TValue>[];
$not?: NestedQuery<TValue>;
$or?: NestedQuery<TValue>[];
$nor?: NestedQuery<TValue>[];
$and?: NestedQuery<TValue>[];
};
declare type ArrayValueQuery<TValue> = {
$elemMatch?: Query<TValue, true>;
$elemMatch?: Query<TValue>;
} & BasicValueQuery<TValue>;

@@ -42,3 +43,4 @@ declare type Unpacked<T> = T extends (infer U)[] ? U : T;

};
export declare type Query<TItemSchema, nested = false> = ValueQuery<TItemSchema> & ShapeQuery<TItemSchema>;
declare type NestedQuery<TItemSchema> = ValueQuery<TItemSchema> & ShapeQuery<TItemSchema>;
export declare type Query<TItemSchema> = TItemSchema | RegExp | NestedQuery<TItemSchema>;
export declare abstract class BaseOperation<TParams> implements Operation {

@@ -103,3 +105,3 @@ readonly params: TParams;

export declare const createQueryOperation: (query: any, owneryQuery: any, options: Options) => any;
export declare const createQueryTester: <TItem, TSchema = TItem>(query: Query<TSchema, false>, { compare, operations }?: Partial<Options>) => (item: TItem, key?: Key, owner?: any) => any;
export declare const createQueryTester: <TItem, TSchema = TItem>(query: Query<TSchema>, { compare, operations }?: Partial<Options>) => (item: TItem, key?: Key, owner?: any) => any;
export {};
import { Query, Options, createQueryTester, EqualsOperation, createEqualsOperation } from "./core";
declare const createDefaultQueryTester: <TItem, TSchema extends TItem = TItem>(query: Query<TSchema, false>, { compare, operations }?: Partial<Options>) => (item: TItem, key?: string | number, owner?: any) => any;
declare const createDefaultQueryTester: <TItem, TSchema extends TItem = TItem>(query: Query<TSchema>, { compare, operations }?: Partial<Options>) => (item: TItem, key?: string | number, owner?: any) => any;
export { Query, EqualsOperation, createQueryTester, createEqualsOperation };
export * from "./operations";
export default createDefaultQueryTester;
{
"name": "sift",
"description": "MongoDB query filtering in JavaScript",
"version": "13.1.7",
"version": "13.1.8",
"repository": "crcn/sift.js",

@@ -6,0 +6,0 @@ "sideEffects": false,

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc