Socket
Socket
Sign inDemoInstall

lucene-query-builder

Package Overview
Dependencies
0
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.6.0

3

lib/cjs/index.d.ts
import { query } from './query';
import { LuceneBuilder } from './LuceneBuilder';
import { fq } from './fq';
export { query, fq, LuceneBuilder };
import { QueryTerm, Filter, DateParams } from './types';
export { query, fq, LuceneBuilder, QueryTerm, Filter, DateParams };

@@ -1,2 +0,2 @@

import { Filter, Options, QueryParams } from './types';
import { Filter, Options, Query } from './types';
/**

@@ -22,3 +22,3 @@ * This class is used to build query strings for Lucene.

*/
query({ phrase, and, not, dates }: Omit<QueryParams, 'options'>): string;
query({ phrase, and, not, dates }: Omit<Query, 'options'>): string;
/**

@@ -25,0 +25,0 @@ * Constructs a filter query (fq) string based on the provided filters.

@@ -1,5 +0,5 @@

import { QueryParams } from './types';
import { Query } from './types';
/**
* Constructs a query string based on the provided options.
*/
export declare const query: ({ phrase, and, not, dates, options, }?: Partial<QueryParams>) => string;
export declare const query: ({ phrase, and, not, dates, options, }?: Partial<Query>) => string;

@@ -46,3 +46,3 @@ /**

*/
export interface QueryParams {
export interface Query {
phrase?: string;

@@ -49,0 +49,0 @@ and?: QueryTerm[];

import { query } from './query';
import { LuceneBuilder } from './LuceneBuilder';
import { fq } from './fq';
export { query, fq, LuceneBuilder };
import { QueryTerm, Filter, DateParams } from './types';
export { query, fq, LuceneBuilder, QueryTerm, Filter, DateParams };

@@ -1,2 +0,2 @@

import { Filter, Options, QueryParams } from './types';
import { Filter, Options, Query } from './types';
/**

@@ -22,3 +22,3 @@ * This class is used to build query strings for Lucene.

*/
query({ phrase, and, not, dates }: Omit<QueryParams, 'options'>): string;
query({ phrase, and, not, dates }: Omit<Query, 'options'>): string;
/**

@@ -25,0 +25,0 @@ * Constructs a filter query (fq) string based on the provided filters.

@@ -1,5 +0,5 @@

import { QueryParams } from './types';
import { Query } from './types';
/**
* Constructs a query string based on the provided options.
*/
export declare const query: ({ phrase, and, not, dates, options, }?: Partial<QueryParams>) => string;
export declare const query: ({ phrase, and, not, dates, options, }?: Partial<Query>) => string;

@@ -46,3 +46,3 @@ /**

*/
export interface QueryParams {
export interface Query {
phrase?: string;

@@ -49,0 +49,0 @@ and?: QueryTerm[];

{
"name": "lucene-query-builder",
"version": "0.5.0",
"version": "0.6.0",
"description": "Library to build lucene queries in a typescript friendly way",

@@ -5,0 +5,0 @@ "main": "lib/cjs/index.js",

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