Socket
Socket
Sign inDemoInstall

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 10.0.5 to 10.0.6

2

package.json
{
"name": "fergies-inverted-index",
"version": "10.0.5",
"version": "10.0.6",
"description": "An inverted index that allows javascript objects to be easily serialised and retrieved using promises and map-reduce",

@@ -5,0 +5,0 @@ "browser": "src/browser.js",

@@ -21,19 +21,21 @@ // polyfill- HI and LO coming in next version of charwise

if (typeof token === 'string') {
const fieldValue = token.split(':')
const value = fieldValue.pop()
const field = fieldValue.pop()
if (field) {
// Find the first occurrence of ':'. Anything thereafter should be considered
// a part of the value. This accounts for occasions where the value itself
// has a ':'.
if (token.indexOf(':') === -1) {
return resolve({
FIELD: [field],
FIELD: availableFields,
VALUE: {
GTE: value,
LTE: value
GTE: token,
LTE: token
}
})
}
const [field, ...value] = token.split(':')
return resolve({
FIELD: availableFields,
FIELD: [field],
VALUE: {
GTE: value,
LTE: value
GTE: value.join(':'),
LTE: value.join(':')
}

@@ -40,0 +42,0 @@ })

Sorry, the diff of this file is too big to display

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