@types/ldapjs
Advanced tools
Comparing version 2.2.4 to 2.2.5
@@ -8,3 +8,3 @@ // Type definitions for ldapjs 2.2 | ||
import { EventEmitter } from "events"; | ||
import { EventEmitter } from 'events'; | ||
@@ -43,7 +43,10 @@ export import DN = dn.DN; | ||
idleTimeout?: number | undefined; | ||
reconnect?: boolean | { | ||
initialDelay?: number | undefined, | ||
maxDelay?: number | undefined, | ||
failAfter?: number | undefined | ||
} | undefined; | ||
reconnect?: | ||
| boolean | ||
| { | ||
initialDelay?: number | undefined; | ||
maxDelay?: number | undefined; | ||
failAfter?: number | undefined; | ||
} | ||
| undefined; | ||
strictDN?: boolean | undefined; | ||
@@ -59,3 +62,3 @@ queueSize?: number | undefined; | ||
/** Defaults to base */ | ||
scope?: "base" | "one" | "sub" | undefined; | ||
scope?: 'base' | 'one' | 'sub' | undefined; | ||
/** Defaults to (objectclass=*) */ | ||
@@ -71,6 +74,9 @@ filter?: string | Filter | undefined; | ||
typesOnly?: boolean | undefined; | ||
paged?: boolean | { | ||
pageSize?: number | undefined; | ||
pagePause?: boolean | undefined; | ||
} | undefined | ||
paged?: | ||
| boolean | ||
| { | ||
pageSize?: number | undefined; | ||
pagePause?: boolean | undefined; | ||
} | ||
| undefined; | ||
} | ||
@@ -86,4 +92,4 @@ | ||
export var Change: { | ||
new(change: Change): Change; | ||
} | ||
new (change: Change): Change; | ||
}; | ||
@@ -93,7 +99,7 @@ export type SearchReference = any; | ||
export interface SearchCallbackResponse extends EventEmitter { | ||
on(event: "searchEntry", listener: (entry: SearchEntry) => void): this; | ||
on(event: "searchReference", listener: (referral: SearchReference) => void): this; | ||
on(event: "page", listener: (res: LDAPResult, cb: (...args: any[]) => void) => void): this; | ||
on(event: "error", listener: (err: Error) => void): this; | ||
on(event: "end", listener: (res: LDAPResult | null) => void): this; | ||
on(event: 'searchEntry', listener: (entry: SearchEntry) => void): this; | ||
on(event: 'searchReference', listener: (referral: SearchReference) => void): this; | ||
on(event: 'page', listener: (res: LDAPResult, cb: (...args: any[]) => void) => void): this; | ||
on(event: 'error', listener: (err: Error) => void): this; | ||
on(event: 'end', listener: (res: LDAPResult | null) => void): this; | ||
on(event: string | symbol, listener: (...args: any[]) => void): this; | ||
@@ -109,6 +115,9 @@ } | ||
export interface Client extends EventEmitter { | ||
connecting: boolean; | ||
connected: boolean; | ||
host: string; // URL["hostname"] | ||
port: string; // URL["port"] | ||
secure: boolean; | ||
/** | ||
@@ -153,3 +162,9 @@ * Performs a simple authentication against the server. | ||
compare(name: string, attr: string, value: string, callback: CompareCallback): void; | ||
compare(name: string, attr: string, value: string, controls: Control | Array<Control>, callback: CompareCallback): void; | ||
compare( | ||
name: string, | ||
attr: string, | ||
value: string, | ||
controls: Control | Array<Control>, | ||
callback: CompareCallback, | ||
): void; | ||
@@ -193,3 +208,8 @@ /** | ||
modify(name: string, change: Change | Array<Change>, callback: ErrorCallback): void; | ||
modify(name: string, change: Change | Array<Change>, controls: Control | Array<Control>, callback: ErrorCallback): void; | ||
modify( | ||
name: string, | ||
change: Change | Array<Change>, | ||
controls: Control | Array<Control>, | ||
callback: ErrorCallback, | ||
): void; | ||
@@ -235,3 +255,9 @@ /** | ||
search(base: string, options: SearchOptions, controls: Control | Array<Control>, callback: SearchCallBack): void; | ||
search(base: string, options: SearchOptions, controls: Control | Array<Control>, callback: SearchCallBack, _bypass: boolean): void; | ||
search( | ||
base: string, | ||
options: SearchOptions, | ||
controls: Control | Array<Control>, | ||
callback: SearchCallBack, | ||
_bypass: boolean, | ||
): void; | ||
@@ -284,3 +310,2 @@ /** | ||
export interface Server extends EventEmitter { | ||
/** | ||
@@ -347,3 +372,3 @@ * Set this property to reject connections when the server's connection count gets high. | ||
baseObject: string; | ||
scope: "base"|"one"|"sub"; | ||
scope: 'base' | 'one' | 'sub'; | ||
derefAliases: number; | ||
@@ -479,35 +504,40 @@ sizeLimit: number; | ||
export class EqualityFilter extends Filter { | ||
constructor(options: { attribute: string, value: string | Buffer }) | ||
constructor(options: { attribute: string; value: string | Buffer }); | ||
} | ||
export class PresenceFilter extends Filter { | ||
constructor(options: { attribute: string }) | ||
constructor(options: { attribute: string }); | ||
} | ||
export class SubstringFilter extends Filter { | ||
constructor(options: { attribute: string, initial: string, any?: string[] | undefined, final?: string | undefined }) | ||
constructor(options: { | ||
attribute: string; | ||
initial: string; | ||
any?: string[] | undefined; | ||
final?: string | undefined; | ||
}); | ||
} | ||
export class GreaterThanEqualsFilter extends Filter { | ||
constructor(options: { attribute: string, value: string }) | ||
constructor(options: { attribute: string; value: string }); | ||
} | ||
export class LessThanEqualsFilter extends Filter { | ||
constructor(options: { attribute: string, value: string }) | ||
constructor(options: { attribute: string; value: string }); | ||
} | ||
export class AndFilter extends Filter { | ||
constructor(options: { filters: Filter[] }) | ||
constructor(options: { filters: Filter[] }); | ||
} | ||
export class OrFilter extends Filter { | ||
constructor(options: { filters: Filter[] }) | ||
constructor(options: { filters: Filter[] }); | ||
} | ||
export class NotFilter extends Filter { | ||
constructor(options: { filter: Filter }) | ||
constructor(options: { filter: Filter }); | ||
} | ||
export class ApproximateFilter extends Filter { | ||
constructor(options: { attribute: string, value: string }) | ||
constructor(options: { attribute: string; value: string }); | ||
} | ||
@@ -521,3 +551,3 @@ | ||
dnAttributes?: boolean | undefined; | ||
}) | ||
}); | ||
} | ||
@@ -531,6 +561,3 @@ | ||
export class Attribute { | ||
constructor(options?: { | ||
type?: string, | ||
vals?: any; | ||
}) | ||
constructor(options?: { type?: string; vals?: any }); | ||
readonly type: string; | ||
@@ -582,3 +609,3 @@ readonly buffers: Buffer[]; | ||
export class LDAPResult extends LDAPMessage { | ||
readonly type: "LDAPResult"; | ||
readonly type: 'LDAPResult'; | ||
/** Result status 0 = success */ | ||
@@ -605,7 +632,7 @@ status: number; | ||
export class SearchEntry extends LDAPMessage { | ||
readonly type: "SearchEntry"; | ||
readonly type: 'SearchEntry'; | ||
objectName: string | null; | ||
attributes: Attribute[]; | ||
readonly json: LDAPMessageJsonObject & { objectName: string, attributes: AttributeJson[]}; | ||
readonly json: LDAPMessageJsonObject & { objectName: string; attributes: AttributeJson[] }; | ||
@@ -638,3 +665,3 @@ /** | ||
/** Disable trailing space after RDN separators */ | ||
skipSpace?: boolean | ||
skipSpace?: boolean; | ||
} | ||
@@ -645,4 +672,4 @@ | ||
export class RDN { | ||
constructor(obj?: {[index: string]: string}); | ||
set(name: string, value: string, opts?: {[index: string]: any}): void; | ||
constructor(obj?: { [index: string]: string }); | ||
set(name: string, value: string, opts?: { [index: string]: any }): void; | ||
/** Check if two RDNs have equal attributes. Order does not affect comparison */ | ||
@@ -649,0 +676,0 @@ equals(rdn: RDN): boolean; |
{ | ||
"name": "@types/ldapjs", | ||
"version": "2.2.4", | ||
"version": "2.2.5", | ||
"description": "TypeScript definitions for ldapjs", | ||
@@ -40,4 +40,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ldapjs", | ||
}, | ||
"typesPublisherContentHash": "54cb53e75eb69827ab91b8be06a4511c3a273f558eed36fe9d83de5c1ffe511c", | ||
"typeScriptVersion": "4.0" | ||
"typesPublisherContentHash": "916b6e70860ae08b340211b382a58e2d038ab793bd8028216ee5870c4b2a35a1", | ||
"typeScriptVersion": "4.1" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Thu, 25 Aug 2022 19:02:13 GMT | ||
* Last updated: Tue, 01 Nov 2022 17:02:53 GMT | ||
* Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
@@ -14,0 +14,0 @@ * Global values: none |
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
25754
617