New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.4 to 2.3.5

44

lunr/index.d.ts

@@ -106,3 +106,3 @@ // Type definitions for lunr.js 2.3

constructor()
constructor();

@@ -138,3 +138,9 @@ /**

*/
field(fieldName: string, attributes?: { boost?: number | undefined, extractor?: ((doc: object) => string | object | object[]) | undefined }): void;
field(
fieldName: string,
attributes?: {
boost?: number | undefined;
extractor?: ((doc: object) => string | object | object[]) | undefined;
},
): void;

@@ -183,3 +189,2 @@ /**

* once all documents have been added to the index.
*
*/

@@ -312,3 +317,3 @@ build(): Index;

*/
constructor(attrs: Index.Attributes)
constructor(attrs: Index.Attributes);

@@ -350,3 +355,2 @@ /**

* separate JSON schema file.
*
*/

@@ -379,3 +383,3 @@ toJSON(): object;

*/
constructor(term: string, field: string, metadata: object)
constructor(term: string, field: string, metadata: object);

@@ -415,3 +419,3 @@ /**

i: number,
tokens: Token[]
tokens: Token[],
) => null | Token | Token[];

@@ -447,3 +451,3 @@

class Pipeline {
constructor()
constructor();

@@ -532,3 +536,2 @@ /**

* Resets the pipeline by removing any existing processors.
*
*/

@@ -541,3 +544,2 @@ reset(): void;

* Logs a warning if the function has not been registered.
*
*/

@@ -563,3 +565,3 @@ toJSON(): PipelineFunction[];

*/
PROHIBITED = 3
PROHIBITED = 3,
}

@@ -570,3 +572,3 @@

LEADING = 1 << 0,
TRAILING = 1 << 1
TRAILING = 1 << 1,
}

@@ -614,3 +616,3 @@

*/
constructor(allFields: string[])
constructor(allFields: string[]);

@@ -660,3 +662,3 @@ /**

constructor(message: string, start: string, end: string)
constructor(message: string, start: string, end: string);
}

@@ -722,7 +724,6 @@

*/
constructor(str: string, metadata: object)
constructor(str: string, metadata: object);
/**
* Returns the token string that is being wrapped by this object.
*
*/

@@ -772,3 +773,3 @@ toString(): string;

class TokenSet {
constructor()
constructor();

@@ -813,3 +814,2 @@ /**

* contained within the TokenSet.
*
*/

@@ -825,3 +825,2 @@ toArray(): string[];

* friendly representation of the TokenSet.
*
*/

@@ -922,3 +921,3 @@ toString(): string;

*/
constructor(elements: number[])
constructor(elements: number[]);

@@ -958,3 +957,3 @@ /**

val: number,
fn: (existingVal: number, val: number) => number
fn: (existingVal: number, val: number) => number,
): void;

@@ -964,3 +963,2 @@

* Calculates the magnitude of this vector.
*
*/

@@ -987,3 +985,2 @@ magnitude(): number;

* Converts the vector to an array of the elements within the vector.
*
*/

@@ -994,3 +991,2 @@ toArray(): number[];

* A JSON serializable representation of the vector.
*
*/

@@ -997,0 +993,0 @@ toJSON(): number[];

{
"name": "@types/lunr",
"version": "2.3.4",
"version": "2.3.5",
"description": "TypeScript definitions for lunr.js",

@@ -28,4 +28,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lunr",

"dependencies": {},
"typesPublisherContentHash": "33c300e076ae73f4d8bf4e99f96ebf89cbd81c3bd3efb9bbe0247a87765c42c6",
"typeScriptVersion": "3.6"
"typesPublisherContentHash": "4602c7589be00270b386edebffb9c6c6ea32a6b9c10a32bf36857aaef093b34a",
"typeScriptVersion": "4.3"
}

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

### Additional Details
* Last updated: Tue, 06 Jul 2021 22:02:59 GMT
* Last updated: Wed, 30 Aug 2023 19:35:22 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