ldap-ts-client
Advanced tools
Comparing version 0.12.0 to 0.13.0
@@ -7,2 +7,9 @@ ### Changelog | ||
#### [v0.12.0](https://github.com/saostad/ldap-ts-client/compare/v0.11.1...v0.12.0) | ||
> 4 June 2020 | ||
- feat: exposed client.destroy function [`ff15f6e`](https://github.com/saostad/ldap-ts-client/commit/ff15f6ed915f79c2f6dfb3865585ab81fcf06ef6) | ||
- doc: change log [`bc9885b`](https://github.com/saostad/ldap-ts-client/commit/bc9885b917c82580d98a6a5e788e73dbf07206c9) | ||
#### [v0.11.1](https://github.com/saostad/ldap-ts-client/compare/v0.11.0...v0.11.1) | ||
@@ -9,0 +16,0 @@ |
@@ -13,3 +13,2 @@ "use strict"; | ||
baseDN: "DC=ki,DC=local", | ||
queueDisable: false, | ||
}; | ||
@@ -16,0 +15,0 @@ const client = new index_1.Client(options); |
@@ -12,2 +12,3 @@ "use strict"; | ||
constructor(config) { | ||
var _a; | ||
/** connection status */ | ||
@@ -19,3 +20,3 @@ this.getConnectionStatus = () => { | ||
this.baseDN = config.baseDN; | ||
this.client = ldapjs_1.default.createClient(Object.assign(Object.assign({}, this.config), { url: this.config.ldapServerUrl, log: this.config.logger })); | ||
this.client = ldapjs_1.default.createClient(Object.assign(Object.assign({}, this.config), { reconnect: (_a = config.reconnect) !== null && _a !== void 0 ? _a : true, url: this.config.ldapServerUrl, log: this.config.logger })); | ||
} | ||
@@ -22,0 +23,0 @@ /** @return a connected ldap client that is useful for use flexibility of [ldap.js](http://ldapjs.org/) directly. */ |
{ | ||
"name": "ldap-ts-client", | ||
"version": "0.12.0", | ||
"version": "0.13.0", | ||
"description": "Type-safe LDAP client written in typescript", | ||
@@ -44,3 +44,3 @@ "repository": { | ||
"@types/jest": "^25.2.3", | ||
"@types/node": "^14.0.10", | ||
"@types/node": "^14.0.11", | ||
"@typescript-eslint/eslint-plugin": "^3.1.0", | ||
@@ -47,0 +47,0 @@ "@typescript-eslint/parser": "^3.1.0", |
@@ -12,3 +12,2 @@ import { config } from "dotenv"; | ||
baseDN: "DC=ki,DC=local", | ||
queueDisable: false, | ||
}; | ||
@@ -15,0 +14,0 @@ const client = new Client(options); |
@@ -90,4 +90,6 @@ import ldap, { SearchOptions, Control, SearchEntryObject } from "ldapjs"; | ||
this.baseDN = config.baseDN; | ||
this.client = ldap.createClient({ | ||
...this.config, | ||
reconnect: config.reconnect ?? true, | ||
url: this.config.ldapServerUrl, | ||
@@ -94,0 +96,0 @@ log: this.config.logger, |
Sorry, the diff of this file is not supported yet
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
63483