Socket
Socket
Sign inDemoInstall

ldap-filter

Package Overview
Dependencies
1
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.1

3

lib/and_filter.js

@@ -49,3 +49,4 @@ // Copyright 2014 Mark Cavage, Inc. All rights reserved.

if (this.filters.length === 0) {
return false;
/* true per RFC4526 */
return true;
}

@@ -52,0 +53,0 @@

@@ -9,3 +9,3 @@ {

"description": "API for handling LDAP-style filters",
"version": "0.2.0",
"version": "0.2.1",
"license": "MIT",

@@ -12,0 +12,0 @@ "repository": {

@@ -76,7 +76,6 @@ // Copyright 2014 Mark Cavage, Inc. All rights reserved.

test('match empty', function (t) {
test('RFC-4526 - empty AND', function (t) {
var f = new AndFilter();
t.ok(f);
t.ok(!f.matches({ foo: 'bar', zig: 'zonk' }));
t.ok(f.matches({}));
t.end();
});

@@ -75,1 +75,7 @@ // Copyright 2014 Mark Cavage, Inc. All rights reserved.

});
test('RFC-4526 - empty OR', function (t) {
var f = new OrFilter();
t.notOk(f.matches({}));
t.end();
});
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc