fergies-inverted-index
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -79,9 +79,9 @@ 'use strict'; | ||
// NOT | ||
const SET_DIFFERENCE = (a, b) => Promise.all([ | ||
// NOT (set a minus set b) | ||
const SET_SUBTRACTION = (a, b) => Promise.all([ | ||
isString(a) ? GET(a) : a, | ||
isString(b) ? GET(b) : b | ||
]).then(result => result[0].filter( | ||
item => result[1].map(item => item._id).indexOf(item._id) | ||
)); | ||
]).then(([a, b]) => a.filter( | ||
aItem => b.map(bItem => bItem._id).indexOf(aItem._id) === -1) | ||
); | ||
@@ -176,3 +176,4 @@ // Accepts a range of tokens (field, value {gte, lte}) and returns | ||
INTERSECTION: INTERSECTION, | ||
SET_DIFFERENCE: SET_DIFFERENCE, | ||
// SET_DIFFERENCE: SET_DIFFERENCE, | ||
SET_SUBTRACTION: SET_SUBTRACTION, | ||
UNION: UNION | ||
@@ -372,6 +373,8 @@ } | ||
MIN: init$2(db).MIN, | ||
NOT: init(db).SET_DIFFERENCE, | ||
// NOT: idMap(db).SET_DIFFERENCE, | ||
NOT: init(db).SET_SUBTRACTION, | ||
OBJECT: init$1(db).OBJECT, | ||
OR: init(db).UNION, | ||
PUT: init$3(db).PUT, | ||
SET_SUBTRACTION: init(db).SET_SUBTRACTION, | ||
STORE: db | ||
@@ -378,0 +381,0 @@ } |
@@ -75,9 +75,9 @@ import level from 'level'; | ||
// NOT | ||
const SET_DIFFERENCE = (a, b) => Promise.all([ | ||
// NOT (set a minus set b) | ||
const SET_SUBTRACTION = (a, b) => Promise.all([ | ||
isString(a) ? GET(a) : a, | ||
isString(b) ? GET(b) : b | ||
]).then(result => result[0].filter( | ||
item => result[1].map(item => item._id).indexOf(item._id) | ||
)); | ||
]).then(([a, b]) => a.filter( | ||
aItem => b.map(bItem => bItem._id).indexOf(aItem._id) === -1) | ||
); | ||
@@ -172,3 +172,4 @@ // Accepts a range of tokens (field, value {gte, lte}) and returns | ||
INTERSECTION: INTERSECTION, | ||
SET_DIFFERENCE: SET_DIFFERENCE, | ||
// SET_DIFFERENCE: SET_DIFFERENCE, | ||
SET_SUBTRACTION: SET_SUBTRACTION, | ||
UNION: UNION | ||
@@ -368,6 +369,8 @@ } | ||
MIN: init$2(db).MIN, | ||
NOT: init(db).SET_DIFFERENCE, | ||
// NOT: idMap(db).SET_DIFFERENCE, | ||
NOT: init(db).SET_SUBTRACTION, | ||
OBJECT: init$1(db).OBJECT, | ||
OR: init(db).UNION, | ||
PUT: init$3(db).PUT, | ||
SET_SUBTRACTION: init(db).SET_SUBTRACTION, | ||
STORE: db | ||
@@ -374,0 +377,0 @@ } |
{ | ||
"name": "fergies-inverted-index", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "An inverted index that allows javascript objects to be easily serialised and retrieved using promises and map-reduce", | ||
@@ -5,0 +5,0 @@ "main": "dist/fergies-inverted-index.cjs.js", |
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
31310
720