ldap-ts-client
Advanced tools
Comparing version 0.7.0 to 0.8.0
@@ -39,3 +39,3 @@ "use strict"; | ||
// console.log(addResult); | ||
// const modifyResult = await client.modify<User>({ | ||
// const modifyAttributeResult = await client.modifyAttribute<User>({ | ||
// dn: "CN=testUser2,OU=Users,OU=KII,DC=ki,DC=local", | ||
@@ -51,3 +51,3 @@ // changes: [ | ||
// }); | ||
// console.log(`File: app.ts,`, `Line: 53 => `, modifyResult); | ||
// console.log(`File: app.ts,`, `Line: 53 => `, modifyAttributeResult); | ||
// const compared = await client.compare<User>({ | ||
@@ -54,0 +54,0 @@ // dn: "CN=testUser2,OU=Users,OU=KII,DC=ki,DC=local", |
@@ -27,3 +27,3 @@ import ldap, { SearchOptions, Control, SearchEntryObject } from "ldapjs"; | ||
} | ||
interface ModifyFnInput<T> { | ||
interface ModifyAttributeFnInput<T> { | ||
dn: string; | ||
@@ -115,6 +115,6 @@ changes: ModifyChange<T>[]; | ||
modifyDn({ dn, newDn, controls, }: ModifyDnFnInput): Promise<boolean>; | ||
/** Performs an LDAP modify operation against the existing LDAP entity. This API requires you to pass in a Change object. | ||
/** Performs an LDAP modify operation against attributes of the existing LDAP entity. This API requires you to pass in a Change object. | ||
*/ | ||
modify<T = any>({ dn, changes, controls, }: ModifyFnInput<T>): Promise<boolean>; | ||
modifyAttribute<T = any>({ dn, changes, controls, }: ModifyAttributeFnInput<T>): Promise<boolean>; | ||
} | ||
export {}; |
@@ -215,7 +215,7 @@ "use strict"; | ||
} | ||
/** Performs an LDAP modify operation against the existing LDAP entity. This API requires you to pass in a Change object. | ||
/** Performs an LDAP modify operation against attributes of the existing LDAP entity. This API requires you to pass in a Change object. | ||
*/ | ||
async modify({ dn, changes, controls, }) { | ||
async modifyAttribute({ dn, changes, controls, }) { | ||
var _a; | ||
(_a = this.logger) === null || _a === void 0 ? void 0 : _a.trace("modify()"); | ||
(_a = this.logger) === null || _a === void 0 ? void 0 : _a.trace("modifyAttribute()"); | ||
await this.connect(); | ||
@@ -222,0 +222,0 @@ return new Promise((resolve, reject) => { |
{ | ||
"name": "ldap-ts-client", | ||
"version": "0.7.0", | ||
"version": "0.8.0", | ||
"description": "Type-safe LDAP client written in typescript", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -43,3 +43,3 @@ import { config } from "dotenv"; | ||
// const modifyResult = await client.modify<User>({ | ||
// const modifyAttributeResult = await client.modifyAttribute<User>({ | ||
// dn: "CN=testUser2,OU=Users,OU=KII,DC=ki,DC=local", | ||
@@ -55,3 +55,3 @@ // changes: [ | ||
// }); | ||
// console.log(`File: app.ts,`, `Line: 53 => `, modifyResult); | ||
// console.log(`File: app.ts,`, `Line: 53 => `, modifyAttributeResult); | ||
@@ -58,0 +58,0 @@ // const compared = await client.compare<User>({ |
@@ -30,3 +30,3 @@ import ldap, { SearchOptions, Control, SearchEntryObject } from "ldapjs"; | ||
} | ||
interface ModifyFnInput<T> { | ||
interface ModifyAttributeFnInput<T> { | ||
dn: string; | ||
@@ -341,10 +341,10 @@ changes: ModifyChange<T>[]; | ||
/** Performs an LDAP modify operation against the existing LDAP entity. This API requires you to pass in a Change object. | ||
/** Performs an LDAP modify operation against attributes of the existing LDAP entity. This API requires you to pass in a Change object. | ||
*/ | ||
public async modify<T = any>({ | ||
public async modifyAttribute<T = any>({ | ||
dn, | ||
changes, | ||
controls, | ||
}: ModifyFnInput<T>): Promise<boolean> { | ||
this.logger?.trace("modify()"); | ||
}: ModifyAttributeFnInput<T>): Promise<boolean> { | ||
this.logger?.trace("modifyAttribute()"); | ||
await this.connect(); | ||
@@ -351,0 +351,0 @@ return new Promise((resolve, reject) => { |
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
56870