Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ldapjs

Package Overview
Dependencies
Maintainers
5
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldapjs - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

15

lib/filters/filter.js

@@ -5,4 +5,2 @@ // Copyright 2011 Mark Cavage, Inc. All rights reserved.

var asn1 = require('asn1')
var Protocol = require('../protocol')

@@ -12,4 +10,2 @@

var BerWriter = asn1.BerWriter
var TYPES = {

@@ -43,5 +39,14 @@ and: Protocol.FILTER_AND,

function isBerWriter (ber) {
return Boolean(
ber &&
typeof (ber) === 'object' &&
typeof (ber.startSequence) === 'function' &&
typeof (ber.endSequence) === 'function'
)
}
function mixin (target) {
target.prototype.toBer = function toBer (ber) {
if (!ber || !(ber instanceof BerWriter)) { throw new TypeError('ber (BerWriter) required') }
if (isBerWriter(ber) === false) { throw new TypeError('ber (BerWriter) required') }

@@ -48,0 +53,0 @@ ber.startSequence(TYPES[this.type])

@@ -6,3 +6,3 @@ {

"description": "LDAP client and server APIs",
"version": "2.0.0",
"version": "2.1.0",
"license": "MIT",

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

Sorry, the diff of this file is not supported yet

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