@types/ldapjs
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -10,2 +10,4 @@ // Type definitions for ldapjs 2.2 | ||
export import DN = dn.DN; | ||
export import RDN = dn.RDN; | ||
export interface Error { | ||
@@ -605,2 +607,65 @@ code: number; | ||
export function parseDN(dn: string): any; | ||
export function parseDN(dn: string): dn.DN; | ||
/** Options for how a (relative) distinguished name should be textually represented */ | ||
export interface FormatOptions { | ||
/** Preserve order of multi-value RDNs */ | ||
keepOrder?: boolean; | ||
/** RDN values which were quoted will remain so */ | ||
keepQuote?: boolean; | ||
/** Leading/trailing space will be preserved */ | ||
keepSpace?: boolean; | ||
/** Attribute name case will be preserved instead of lowercased */ | ||
keepCase?: boolean; | ||
/** RDN names will be uppercased instead of lowercased */ | ||
upperName?: boolean; | ||
/** Disable trailing space after RDN separators */ | ||
skipSpace?: boolean | ||
} | ||
declare namespace dn { | ||
/** Represents a relative distinguished name */ | ||
export class RDN { | ||
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 */ | ||
equals(rdn: RDN): boolean; | ||
/** Convert the RDN to its string representation according to the given options */ | ||
format(options?: FormatOptions): string; | ||
} | ||
/** Represents a distinguished name */ | ||
export class DN { | ||
constructor(rdns?: RDN[]); | ||
readonly length: number; | ||
/** Returns the string representation the DN according to the given options */ | ||
format(options?: FormatOptions): string; | ||
/** Set the default string formatting options */ | ||
setFormat(option: FormatOptions): void; | ||
/** Checks whether this DN is the parent of another DN */ | ||
parentOf(dn: string | DN): boolean; | ||
/** Checks whether this DN is the child of another DN */ | ||
childOf(dn: string | DN): boolean; | ||
/** Checks whether this DN is empty */ | ||
isEmpty(): boolean; | ||
/** Checks whether this DN is equivalent to another DN */ | ||
equals(dn: string | DN): boolean; | ||
/** Returns the parent DN */ | ||
parent(): DN | null; | ||
/** Duplicate this DN */ | ||
clone(): DN; | ||
/** Reverse the RDNs of this DN */ | ||
reverse(): this; | ||
/** Pops an RDN from this DN */ | ||
pop(): RDN; | ||
/** Pushes and RDN to this DN */ | ||
push(rdn: RDN): void; | ||
shift(): RDN; | ||
unshift(rdn: RDN): void; | ||
/** Checks if the given value is a DN */ | ||
static isDN(dn: any): dn is DN; | ||
} | ||
/** Parses a distinguished name */ | ||
export function parse(name: string): DN; | ||
} |
{ | ||
"name": "@types/ldapjs", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "TypeScript definitions for ldapjs", | ||
@@ -40,4 +40,4 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/ldapjs", | ||
}, | ||
"typesPublisherContentHash": "fe2b845effa743be3fd6eec8e6d8ea7644f4dac673df24319a6ba07004482563", | ||
"typesPublisherContentHash": "54cb53e75eb69827ab91b8be06a4511c3a273f558eed36fe9d83de5c1ffe511c", | ||
"typeScriptVersion": "4.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
### Additional Details | ||
* Last updated: Fri, 08 Jul 2022 19:02:18 GMT | ||
* Last updated: Thu, 25 Aug 2022 19:02:13 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
25396
589