+1
-1
| { | ||
| "name": "ldapts", | ||
| "version": "8.0.35", | ||
| "version": "8.0.36", | ||
| "description": "LDAP client", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.cjs", |
+3
-1
@@ -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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
547016
0.09%12048
0.03%