fergies-inverted-index
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -24,3 +24,3 @@ 'use strict'; | ||
var setObject = sets.reduce((acc, cur) => { | ||
acc[cur._id] = [...(acc[cur._id] || []), cur.match]; | ||
acc[cur._id] = [...(acc[cur._id] || []), cur._match]; | ||
return acc | ||
@@ -30,3 +30,3 @@ }, {}); | ||
_id: id, | ||
match: setObject[id] | ||
_match: setObject[id] | ||
})) | ||
@@ -38,3 +38,3 @@ }); | ||
result => result.filter( | ||
item => (item.match.length === keys.length) | ||
item => (item._match.length === keys.length) | ||
) | ||
@@ -65,3 +65,3 @@ ); | ||
_id: id, | ||
match: rs[id] | ||
_match: rs[id] | ||
})) | ||
@@ -68,0 +68,0 @@ )); |
@@ -20,3 +20,3 @@ import level from 'level'; | ||
var setObject = sets.reduce((acc, cur) => { | ||
acc[cur._id] = [...(acc[cur._id] || []), cur.match]; | ||
acc[cur._id] = [...(acc[cur._id] || []), cur._match]; | ||
return acc | ||
@@ -26,3 +26,3 @@ }, {}); | ||
_id: id, | ||
match: setObject[id] | ||
_match: setObject[id] | ||
})) | ||
@@ -34,3 +34,3 @@ }); | ||
result => result.filter( | ||
item => (item.match.length === keys.length) | ||
item => (item._match.length === keys.length) | ||
) | ||
@@ -61,3 +61,3 @@ ); | ||
_id: id, | ||
match: rs[id] | ||
_match: rs[id] | ||
})) | ||
@@ -64,0 +64,0 @@ )); |
{ | ||
"name": "fergies-inverted-index", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"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
25288