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

flexsearch

Package Overview
Dependencies
Maintainers
1
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

flexsearch - npm Package Compare versions

Comparing version 0.7.33 to 0.7.34

2

package.json
{
"name": "flexsearch",
"version": "0.7.33",
"version": "0.7.34",
"description": "Next-Generation full text search library with zero dependencies.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/nextapps-de/flexsearch/",

@@ -571,2 +571,3 @@ /**!

limit = field_options["limit"] || limit;
enrich = field_options["enrich"] || enrich;
}

@@ -573,0 +574,0 @@

@@ -6,3 +6,3 @@ // TODO return promises instead of inner await

function async(callback, self, field, key, index_doc, index, data){
function async(callback, self, field, key, index_doc, index, data, on_done){

@@ -19,3 +19,3 @@ setTimeout(function(){

self.export(callback, self, field, index_doc, index + 1);
self.export(callback, self, field, index_doc, index + 1, on_done);
})

@@ -25,3 +25,3 @@ }

self.export(callback, self, field, index_doc, index + 1);
self.export(callback, self, field, index_doc, index + 1, on_done);
}

@@ -35,4 +35,11 @@ });

export function exportIndex(callback, self, field, index_doc, index){
export function exportIndex(callback, self, field, index_doc, index, on_done){
let return_value = true
if (typeof on_done === 'undefined') {
return_value = new Promise((resolve) => {
on_done = resolve
})
}
let key, data;

@@ -88,8 +95,13 @@

if (typeof field === 'undefined' && on_done) {
on_done();
}
return;
}
async(callback, self || this, field, key, index_doc, index, data);
async(callback, self || this, field, key, index_doc, index, data, on_done);
return true;
return return_value;
}

@@ -144,4 +156,11 @@

export function exportDocument(callback, self, field, index_doc, index){
export function exportDocument(callback, self, field, index_doc, index, on_done){
let return_value
if (typeof on_done === 'undefined') {
return_value = new Promise((resolve) => {
on_done = resolve
})
}
index || (index = 0);

@@ -159,3 +178,3 @@ index_doc || (index_doc = 0);

if(!idx.export(callback, self, index ? field/*.replace(":", "-")*/ : "", index_doc, index++)){
if(!idx.export(callback, self, index ? field/*.replace(":", "-")*/ : "", index_doc, index++, on_done)){

@@ -165,3 +184,3 @@ index_doc++;

self.export(callback, self, field, index_doc, index);
self.export(callback, self, field, index_doc, index, on_done);
}

@@ -180,2 +199,3 @@ });

data = this.tagindex;
field = null;
break;

@@ -187,2 +207,3 @@

data = this.store;
field = null;
break;

@@ -198,7 +219,10 @@

on_done();
return;
}
async(callback, this, field, key, index_doc, index, data);
async(callback, this, field, key, index_doc, index, data, on_done);
}
return return_value
}

@@ -205,0 +229,0 @@

Sorry, the diff of this file is too big to display

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