fergies-inverted-index
Advanced tools
Comparing version 10.1.0 to 10.2.0
{ | ||
"name": "fergies-inverted-index", | ||
"version": "10.1.0", | ||
"version": "10.2.0", | ||
"description": "An inverted index that allows javascript objects to be easily serialised and retrieved using promises and map-reduce", | ||
@@ -19,3 +19,2 @@ "browser": "src/browser.js", | ||
"memory-level": "^1.0.0", | ||
"os-browserify": "^0.3.0", | ||
"path-browserify": "^1.0.1", | ||
@@ -22,0 +21,0 @@ "process": "^0.11.10", |
@@ -286,3 +286,2 @@ const tokenParser = require('./parseToken.js') | ||
// TODO remove if DISTINCT is no longer used | ||
const DISTINCT = (...tokens) => | ||
@@ -300,3 +299,2 @@ Promise.all( | ||
// TODO remove if DISTINCT is no longer used | ||
const DIST = token => | ||
@@ -303,0 +301,0 @@ parseToken(token) |
@@ -39,3 +39,3 @@ const trav = require('traverse') | ||
this.isLeaf && | ||
ops.stopwords.includes((this.node + '').split('#')[0]) | ||
ops.stopwords.includes((this.node + '').split('#')[0]) // TODO: is # still used? | ||
) { | ||
@@ -47,5 +47,7 @@ searchable = false | ||
let key | ||
try { | ||
const parsedJSON = JSON.parse(this.node) | ||
if (!Array.isArray(parsedJSON)) throw new Error() | ||
this.update(parsedJSON, true) | ||
key = JSON.stringify([fieldName, parsedJSON]) | ||
@@ -52,0 +54,0 @@ } catch (e) { |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15
129985
813