πŸš€ Big News:Socket Has Acquired Secure Annex.Learn More β†’
Socket
Book a DemoSign in
Socket

ldapts

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldapts - npm Package Compare versions

Comparing version
8.0.35
to
8.0.36
+1
-1
package.json
{
"name": "ldapts",
"version": "8.0.35",
"version": "8.0.36",
"description": "LDAP client",

@@ -5,0 +5,0 @@ "main": "./dist/index.cjs",

@@ -182,3 +182,5 @@ import * as crypto from 'node:crypto';

const isSecureProtocol = parsedUrl.scheme === 'ldaps';
this.secure = isSecureProtocol || !!this.clientOptions.tlsOptions;
// Check if tlsOptions has at least one defined property (not just an empty object or object with all undefined values)
const hasTlsOptions = !!this.clientOptions.tlsOptions && Object.values(this.clientOptions.tlsOptions).some((value) => value !== undefined);
this.secure = isSecureProtocol || hasTlsOptions;
let host: string | null | undefined = null;

@@ -185,0 +187,0 @@ if (typeof parsedUrl.host === 'string') {

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

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