ldap-ts-client
Advanced tools
Comparing version 0.9.1-beta6 to 0.9.1-beta7
@@ -17,6 +17,3 @@ "use strict"; | ||
this.baseDN = config.baseDN; | ||
this.client = ldapjs_1.default.createClient({ | ||
url: this.config.ldapServerUrl, | ||
log: this.config.logger, | ||
}); | ||
this.client = ldapjs_1.default.createClient(Object.assign(Object.assign({}, this.config), { url: this.config.ldapServerUrl, log: this.config.logger })); | ||
} | ||
@@ -35,7 +32,5 @@ /** @return a connected ldap client that is useful for use flexibility of [ldap.js](http://ldapjs.org/) directly. */ | ||
}); | ||
console.log(`File: index.ts,`, `Line: 109 => destroy success!`); | ||
} | ||
this.client = ldapjs_1.default.createClient({ | ||
url: this.config.ldapServerUrl, | ||
log: this.config.logger, | ||
}); | ||
this.client = ldapjs_1.default.createClient(Object.assign(Object.assign({}, this.config), { url: this.config.ldapServerUrl, log: this.config.logger })); | ||
this.client.on("connectError", (err) => { | ||
@@ -42,0 +37,0 @@ console.log(`File: index.ts,`, `Line: 118 => `, err); |
{ | ||
"name": "ldap-ts-client", | ||
"version": "0.9.1-beta6", | ||
"version": "0.9.1-beta7", | ||
"description": "Type-safe LDAP client written in typescript", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -85,2 +85,3 @@ import ldap, { SearchOptions, Control, SearchEntryObject } from "ldapjs"; | ||
this.client = ldap.createClient({ | ||
...this.config, | ||
url: this.config.ldapServerUrl, | ||
@@ -110,5 +111,7 @@ log: this.config.logger, | ||
}); | ||
console.log(`File: index.ts,`, `Line: 109 => destroy success!`); | ||
} | ||
this.client = ldap.createClient({ | ||
...this.config, | ||
url: this.config.ldapServerUrl, | ||
@@ -115,0 +118,0 @@ log: this.config.logger, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60099
1145