Socket
Socket
Sign inDemoInstall

ldap-ts-client

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldap-ts-client - npm Package Compare versions

Comparing version 0.11.1 to 0.12.0

CHANGELOG.md

7

dist/index.d.ts

@@ -82,7 +82,10 @@ import ldap, { SearchOptions, Control, SearchEntryObject } from "ldapjs";

/** connection status */
isConnected: () => boolean;
getConnectionStatus: () => boolean;
/** @return a connected ldap client that is useful for use flexibility of [ldap.js](http://ldapjs.org/) directly. */
bind(): Promise<ldap.Client>;
/** unbind connection and free-up memory */
/** unbind connection */
unbind(): Promise<void>;
/** unbind the connection and don't allow it to connect again. */
destroy(): Promise<void>;
/** bind to server if client is not already bound */
private connect;

@@ -89,0 +92,0 @@ /** @description raw search to provided full flexibility */

@@ -13,3 +13,3 @@ "use strict";

/** connection status */
this.isConnected = () => {
this.getConnectionStatus = () => {
return this.client.connected;

@@ -43,3 +43,3 @@ };

}
/** unbind connection and free-up memory */
/** unbind connection */
async unbind() {

@@ -57,2 +57,11 @@ var _a;

}
/** unbind the connection and don't allow it to connect again. */
async destroy() {
return new Promise((resolve, reject) => {
this.client.destroy((err) => {
reject(err);
});
});
}
/** bind to server if client is not already bound */
async connect() {

@@ -59,0 +68,0 @@ var _a, _b;

{
"name": "ldap-ts-client",
"version": "0.11.1",
"version": "0.12.0",
"description": "Type-safe LDAP client written in typescript",

@@ -59,3 +59,3 @@ "repository": {

"typedoc": "^0.17.7",
"typescript": "^3.9.3"
"typescript": "^3.9.5"
},

@@ -62,0 +62,0 @@ "dependencies": {

@@ -98,3 +98,3 @@ import ldap, { SearchOptions, Control, SearchEntryObject } from "ldapjs";

/** connection status */
public isConnected = (): boolean => {
public getConnectionStatus = (): boolean => {
return this.client.connected;

@@ -133,3 +133,3 @@ };

/** unbind connection and free-up memory */
/** unbind connection */
public async unbind(): Promise<void> {

@@ -148,2 +148,12 @@ this.logger?.trace("unbind()");

/** unbind the connection and don't allow it to connect again. */
public async destroy(): Promise<void> {
return new Promise((resolve, reject) => {
this.client.destroy((err: any) => {
reject(err);
});
});
}
/** bind to server if client is not already bound */
private async connect() {

@@ -150,0 +160,0 @@ this.logger?.trace("connect()");

Sorry, the diff of this file is not supported yet

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