New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bloomrun

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bloomrun - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

lib/reverseSort.js

4

lib/bucket.js

@@ -6,2 +6,3 @@ 'use strict'

var onlyRegex = require('./onlyRegex')
var reverseSort = require('./reverseSort')

@@ -16,3 +17,4 @@ function Bucket (parent) {

Bucket.prototype.add = function (set) {
sorted.add(this.data, set, this._algo)
sorted.add(this.data, set, this.magic !== set.magic ? this._algo : reverseSort)
if (this._isDeep) {

@@ -19,0 +21,0 @@ if (this.magic < set.magic) {

{
"name": "bloomrun",
"version": "3.0.2",
"version": "3.0.3",
"description": "JS object pattern matching, powered by bloom filters",

@@ -5,0 +5,0 @@ "main": "bloomrun.js",

@@ -524,1 +524,19 @@ 'use strict'

})
test('depth indexing preserves insertion order for same pattern', function (t) {
t.plan(1)
var instance = bloomrun({ indexing: 'depth' })
var pattern = { group: '123', another: 'value' }
function payloadOne () { }
function payloadTwo () { }
instance.add(pattern, payloadOne)
instance.add(pattern, payloadTwo)
t.deepEqual(instance.list({ group: '123', another: 'value' }), [
payloadOne,
payloadTwo
])
})
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