Comparing version 2.8.1 to 2.9.0
@@ -0,1 +1,5 @@ | ||
### 2.9.0 | ||
* Update npms | ||
* Improve Control usability and provide example test for search with a custom Control. Fix #91 | ||
### 2.8.1 | ||
@@ -2,0 +6,0 @@ * Fix null/undefined values for attributes when calling add(). Fix #88 |
@@ -5,6 +5,6 @@ import type { BerReader, BerWriter } from 'asn1'; | ||
} | ||
export declare abstract class Control { | ||
abstract type: string; | ||
export declare class Control { | ||
type: string; | ||
critical: boolean; | ||
protected constructor(options?: ControlOptions); | ||
constructor(type: string, options?: ControlOptions); | ||
write(writer: BerWriter): void; | ||
@@ -11,0 +11,0 @@ parse(reader: BerReader): void; |
@@ -5,3 +5,4 @@ "use strict"; | ||
class Control { | ||
constructor(options = {}) { | ||
constructor(type, options = {}) { | ||
this.type = type; | ||
this.critical = options.critical === true; | ||
@@ -8,0 +9,0 @@ } |
@@ -15,3 +15,2 @@ import type { BerReader } from 'asn1'; | ||
static type: string; | ||
type: string; | ||
value?: EntryChangeNotificationControlValue; | ||
@@ -18,0 +17,0 @@ constructor(options?: EntryChangeNotificationControlOptions); |
@@ -8,4 +8,3 @@ "use strict"; | ||
constructor(options = {}) { | ||
super(options); | ||
this.type = EntryChangeNotificationControl.type; | ||
super(EntryChangeNotificationControl.type, options); | ||
this.value = options.value; | ||
@@ -12,0 +11,0 @@ } |
@@ -15,3 +15,2 @@ /// <reference types="node" /> | ||
static type: string; | ||
type: string; | ||
value?: PagedResultsValue; | ||
@@ -18,0 +17,0 @@ constructor(options?: PagedResultsControlOptions); |
@@ -8,4 +8,3 @@ "use strict"; | ||
constructor(options = {}) { | ||
super(options); | ||
this.type = PagedResultsControl.type; | ||
super(PagedResultsControl.type, options); | ||
this.value = options.value; | ||
@@ -12,0 +11,0 @@ } |
@@ -15,3 +15,2 @@ import type { BerReader } from 'asn1'; | ||
static type: string; | ||
type: string; | ||
value?: PersistentSearchValue; | ||
@@ -18,0 +17,0 @@ constructor(options?: PersistentSearchControlOptions); |
@@ -8,4 +8,3 @@ "use strict"; | ||
constructor(options = {}) { | ||
super(options); | ||
this.type = PersistentSearchControl.type; | ||
super(PersistentSearchControl.type, options); | ||
this.value = options.value; | ||
@@ -12,0 +11,0 @@ } |
@@ -15,3 +15,2 @@ import type { BerReader } from 'asn1'; | ||
static type: string; | ||
type: string; | ||
values: ServerSideSortingRequestValue[]; | ||
@@ -18,0 +17,0 @@ constructor(options?: ServerSideSortingRequestControlOptions); |
@@ -8,4 +8,3 @@ "use strict"; | ||
constructor(options = {}) { | ||
super(options); | ||
this.type = ServerSideSortingRequestControl.type; | ||
super(ServerSideSortingRequestControl.type, options); | ||
if (Array.isArray(options.value)) { | ||
@@ -12,0 +11,0 @@ this.values = options.value; |
{ | ||
"name": "ldapts", | ||
"version": "2.8.1", | ||
"version": "2.9.0", | ||
"description": "LDAP client", | ||
@@ -44,3 +44,3 @@ "main": "index.js", | ||
"@types/asn1": "~0.2.0", | ||
"@types/node": "~14.11.8", | ||
"@types/node": "~14.14.7", | ||
"@types/uuid": "~8.3.0", | ||
@@ -53,3 +53,3 @@ "asn1": "~0.2.4", | ||
"devDependencies": { | ||
"@types/chai": "~4.2.13", | ||
"@types/chai": "~4.2.14", | ||
"@types/chai-as-promised": "~7.1.3", | ||
@@ -59,12 +59,12 @@ "@types/debug": "~4.1.5", | ||
"@types/sinon": "~9.0.8", | ||
"@typescript-eslint/eslint-plugin": "~4.4.1", | ||
"@typescript-eslint/parser": "~4.4.1", | ||
"@typescript-eslint/eslint-plugin": "~4.7.0", | ||
"@typescript-eslint/parser": "~4.7.0", | ||
"chai": "~4.2.0", | ||
"chai-as-promised": "~7.1.1", | ||
"eslint": "~7.11.0", | ||
"eslint-config-airbnb-base": "~14.2.0", | ||
"eslint-config-airbnb-typescript": "~11.0.0", | ||
"eslint-config-prettier": "~6.12.0", | ||
"eslint": "~7.13.0", | ||
"eslint-config-airbnb-base": "~14.2.1", | ||
"eslint-config-airbnb-typescript": "~12.0.0", | ||
"eslint-config-prettier": "~6.15.0", | ||
"eslint-plugin-import": "~2.22.1", | ||
"eslint-plugin-jsdoc": "~30.6.5", | ||
"eslint-plugin-jsdoc": "~30.7.7", | ||
"eslint-plugin-mocha": "~8.0.0", | ||
@@ -74,12 +74,12 @@ "eslint-plugin-prettier": "~3.1.4", | ||
"eslint-plugin-security": "~1.4.0", | ||
"husky": "~5.0.0-alpha.6", | ||
"lint-staged": "~10.4.0", | ||
"mocha": "~8.1.3", | ||
"husky": "~5.0.0-beta.0", | ||
"lint-staged": "~10.5.1", | ||
"mocha": "~8.2.1", | ||
"pinst": "~2.0.0", | ||
"prettier": "~2.1.2", | ||
"sinon": "~9.2.0", | ||
"sinon": "~9.2.1", | ||
"ts-mockito": "~2.6.1", | ||
"ts-node": "~9.0.0", | ||
"typescript": "~4.0.3" | ||
"typescript": "~4.0.5" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
333738
5086
+ Added@types/node@14.14.45(transitive)
- Removed@types/node@14.11.11(transitive)
Updated@types/node@~14.14.7