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 2.1.1 to 2.1.2

6

lib/deepMatch.js

@@ -6,8 +6,8 @@ 'use strict'

function deepPartialMatch (a, b) {
if (safeEqual(a, b)) {
return true
} else if (a instanceof RegExp) {
if (a instanceof RegExp) {
return a.test(b)
} else if (b instanceof RegExp) {
return b.test(a)
} else if (typeof a !== 'object') {
return safeEqual(a, b)
}

@@ -14,0 +14,0 @@

@@ -11,3 +11,3 @@ 'use strict'

for (var i = 0; i < a.length; ++i) {
mismatch |= (b.charCodeAt(i) ^ b.charCodeAt(i))
mismatch |= (a.charCodeAt(i) ^ b.charCodeAt(i))

@@ -14,0 +14,0 @@ // check after for perf, we don't want to

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

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

@@ -457,1 +457,20 @@ 'use strict'

})
test('mad string equality', function (t) {
t.plan(2)
var instance = bloomrun()
instance.add({
to: '1',
some: 'pattern'
}, 'first')
instance.add({
to: '2',
some: 'pattern'
}, 'second')
t.deepEqual(instance.lookup({ to: '1', some: 'pattern' }), 'first')
t.deepEqual(instance.lookup({ to: '2', some: 'pattern' }), 'second')
})
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