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 1.0.1 to 1.0.2

8

dist/fergies-inverted-index.cjs.js

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

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