ldapts
Advanced tools
Comparing version 7.0.10 to 7.0.11
{ | ||
"name": "ldapts", | ||
"version": "7.0.10", | ||
"version": "7.0.11", | ||
"description": "LDAP client", | ||
@@ -79,3 +79,3 @@ "main": "./dist/index.cjs", | ||
"devDependencies": { | ||
"@types/chai": "~4.3.12", | ||
"@types/chai": "~4.3.14", | ||
"@types/chai-as-promised": "~7.1.8", | ||
@@ -86,4 +86,4 @@ "@types/debug": "~4.1.12", | ||
"@types/sinon": "~17.0.3", | ||
"@typescript-eslint/eslint-plugin": "~7.2.0", | ||
"@typescript-eslint/parser": "~7.2.0", | ||
"@typescript-eslint/eslint-plugin": "~7.6.0", | ||
"@typescript-eslint/parser": "~7.6.0", | ||
"chai": "~4.4.1", | ||
@@ -96,3 +96,3 @@ "chai-as-promised": "~7.1.1", | ||
"eslint-plugin-import": "~2.29.1", | ||
"eslint-plugin-jsdoc": "~48.2.1", | ||
"eslint-plugin-jsdoc": "~48.2.3", | ||
"eslint-plugin-mocha": "10.4.1", | ||
@@ -105,3 +105,3 @@ "eslint-plugin-prettier": "~5.1.3", | ||
"markdownlint-cli": "~0.39.0", | ||
"mocha": "~10.3.0", | ||
"mocha": "~10.4.0", | ||
"npm-run-all": "~4.1.5", | ||
@@ -112,6 +112,6 @@ "pinst": "~3.0.0", | ||
"ts-mockito": "~2.6.1", | ||
"tsx": "~4.7.1", | ||
"typescript": "~5.4.2", | ||
"tsx": "~4.7.2", | ||
"typescript": "~5.4.4", | ||
"unbuild": "2.0.0" | ||
} | ||
} |
@@ -147,3 +147,3 @@ import type { RDNAttributes } from './RDN.js'; | ||
public clone(): DN { | ||
return new DN(this.rdns); | ||
return new DN([...this.rdns]); | ||
} | ||
@@ -150,0 +150,0 @@ |
@@ -127,7 +127,11 @@ export type RDNAttributes = Record<string, string>; | ||
while (current < len) { | ||
if (escaped.test(value[current] ?? '') || (!quoted && special.test(value[current] ?? ''))) { | ||
const character = value[current] ?? ''; | ||
if (escaped.test(character) || (!quoted && special.test(character))) { | ||
str += '\\'; | ||
} | ||
str += value[current]; | ||
if (character) { | ||
str += character; | ||
} | ||
current += 1; | ||
@@ -134,0 +138,0 @@ } |
@@ -359,3 +359,6 @@ import type { BerReader } from 'asn1'; | ||
default: | ||
result += char; | ||
if (char) { | ||
result += char; | ||
} | ||
index += 1; | ||
@@ -362,0 +365,0 @@ break; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
551669
11985