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

fergies-inverted-index

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fergies-inverted-index - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

17

dist/fergies-inverted-index.cjs.js

@@ -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",

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