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

@types/lunr

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/lunr - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

26

lunr/index.d.ts

@@ -538,2 +538,20 @@ // Type definitions for lunr.js 2.3

namespace Query {
/**
* Constants for indicating what kind of presence a term must have in matching documents.
*/
enum presence {
/**
* Term's presence in a document is optional, this is the default value.
*/
OPTIONAL = 1,
/**
* Term's presence in a document is required, documents that do not contain this term will not be returned.
*/
REQUIRED = 2,
/**
* Term's presence in a document is prohibited, documents that do contain this term will not be returned.
*/
PROHIBITED = 3
}
enum wildcard {

@@ -602,2 +620,8 @@ NONE = 0,

*
* The term is used as is, i.e. no tokenization will be performed by this method. Instead conversion
* to a token or token-like string should be done before calling this method.
*
* The term will be converted to a string by calling `toString`. Multiple terms can be passed as an
* array, each term in the array will share the same options.
*
* @param term - The term to add to the query.

@@ -616,3 +640,3 @@ * @param [options] - Any additional properties to add to the query clause.

*/
term(term: string, options: object): Query;
term(term: string | string[] | Token | Token[], options: object): Query;
}

@@ -619,0 +643,0 @@

4

lunr/package.json
{
"name": "@types/lunr",
"version": "2.3.0",
"version": "2.3.1",
"description": "TypeScript definitions for lunr.js",

@@ -26,4 +26,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "077cc36a84a59c9a042c50635622acc07520993520ec592f8c6271fa09a17fd3",
"typesPublisherContentHash": "312bf045f3b230fc6769ea087ee2a7ac06a4f6f6c6c123f7595cd4a18aab49b7",
"typeScriptVersion": "2.3"
}

@@ -11,3 +11,3 @@ # Installation

Additional Details
* Last updated: Sat, 08 Dec 2018 01:45:01 GMT
* Last updated: Tue, 22 Jan 2019 17:44:52 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: lunr

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