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

file-system-database

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-system-database - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

19

dist/db/index/IndexImplementation.js

@@ -169,8 +169,15 @@ "use strict";

}
logger(`Searching using index ${this.config.name} for collection ${this.config.collection} - loaded ${results.length} matching items - checking against full search criteria`);
entriesUsingIndex.forEach((entry) => {
if (SearchProcessor_1.SearchProcessor.doesItemMatchSearchItems(entry, search)) {
results.push(entry);
}
});
logger(`Searching using index ${this.config.name} for collection ${this.config.collection} - loaded ${entriesUsingIndex.length} matching items`);
if (search.length > indexSearchItems.length) {
logger('Refining index search results by the full search criteria');
entriesUsingIndex.forEach((entry) => {
if (SearchProcessor_1.SearchProcessor.doesItemMatchSearchItems(entry, search)) {
results.push(entry);
}
});
logger(`Searching using index ${this.config.name} for collection ${this.config.collection} - refined to ${results.length} matching items`);
}
else {
results = entriesUsingIndex;
}
if (sort) {

@@ -177,0 +184,0 @@ return SortProcessor_1.SortProcessor.sortItems(results, sort);

{
"name": "file-system-database",
"version": "0.3.3",
"version": "0.3.4",
"description": "A simple socket framework for persistent JSON objects using the file system",

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

Sorry, the diff of this file is not supported yet

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