Comparing version 7.0.2 to 7.0.3
@@ -1,3 +0,4 @@ | ||
import { Ber } from 'asn1'; | ||
import asn1 from 'asn1'; | ||
import { ProtocolOperation } from './ProtocolOperation.js'; | ||
const { Ber } = asn1; | ||
export class Attribute { | ||
@@ -4,0 +5,0 @@ buffers = []; |
# Change Log | ||
## 7.0.3 - 2023-10-06 | ||
- Fix asn1 import statements | ||
## 7.0.2 - 2023-10-06 | ||
@@ -4,0 +8,0 @@ |
@@ -1,5 +0,5 @@ | ||
import { BerReader } from 'asn1'; | ||
import type { BerReader as BerReaderType } from 'asn1'; | ||
import type { Control } from './controls/Control.js'; | ||
export declare class ControlParser { | ||
static parse(reader: BerReader, requestControls: Control[]): Control | null; | ||
static parse(reader: BerReaderType, requestControls: Control[]): Control | null; | ||
} |
@@ -1,3 +0,4 @@ | ||
import { Ber, BerReader } from 'asn1'; | ||
import asn1 from 'asn1'; | ||
import { EntryChangeNotificationControl, PagedResultsControl, PersistentSearchControl, ServerSideSortingRequestControl } from './controls/index.js'; | ||
const { Ber, BerReader } = asn1; | ||
// eslint-disable-next-line @typescript-eslint/no-extraneous-class | ||
@@ -4,0 +5,0 @@ export class ControlParser { |
@@ -1,3 +0,2 @@ | ||
import type { BerReader } from 'asn1'; | ||
import { BerWriter } from 'asn1'; | ||
import type { BerReader, BerWriter as BerWriterType } from 'asn1'; | ||
import type { ControlOptions } from './Control.js'; | ||
@@ -18,3 +17,3 @@ import { Control } from './Control.js'; | ||
parseControl(reader: BerReader): void; | ||
writeControl(writer: BerWriter): void; | ||
writeControl(writer: BerWriterType): void; | ||
} |
@@ -1,3 +0,4 @@ | ||
import { BerWriter } from 'asn1'; | ||
import asn1 from 'asn1'; | ||
import { Control } from './Control.js'; | ||
const { BerWriter } = asn1; | ||
export class EntryChangeNotificationControl extends Control { | ||
@@ -4,0 +5,0 @@ static type = '2.16.840.1.113730.3.4.7'; |
/// <reference types="node" /> | ||
import type { BerReader } from 'asn1'; | ||
import { BerWriter } from 'asn1'; | ||
import type { BerReader, BerWriter as BerWriterType } from 'asn1'; | ||
import type { ControlOptions } from './Control.js'; | ||
@@ -18,3 +17,3 @@ import { Control } from './Control.js'; | ||
parseControl(reader: BerReader): void; | ||
writeControl(writer: BerWriter): void; | ||
writeControl(writer: BerWriterType): void; | ||
} |
@@ -1,3 +0,4 @@ | ||
import { Ber, BerWriter } from 'asn1'; | ||
import asn1 from 'asn1'; | ||
import { Control } from './Control.js'; | ||
const { Ber, BerWriter } = asn1; | ||
export class PagedResultsControl extends Control { | ||
@@ -4,0 +5,0 @@ static type = '1.2.840.113556.1.4.319'; |
@@ -1,3 +0,2 @@ | ||
import type { BerReader } from 'asn1'; | ||
import { BerWriter } from 'asn1'; | ||
import type { BerReader, BerWriter as BerWriterType } from 'asn1'; | ||
import type { ControlOptions } from './Control.js'; | ||
@@ -18,3 +17,3 @@ import { Control } from './Control.js'; | ||
parseControl(reader: BerReader): void; | ||
writeControl(writer: BerWriter): void; | ||
writeControl(writer: BerWriterType): void; | ||
} |
@@ -1,3 +0,4 @@ | ||
import { BerWriter } from 'asn1'; | ||
import asn1 from 'asn1'; | ||
import { Control } from './Control.js'; | ||
const { BerWriter } = asn1; | ||
export class PersistentSearchControl extends Control { | ||
@@ -4,0 +5,0 @@ static type = '2.16.840.1.113730.3.4.3'; |
@@ -1,3 +0,2 @@ | ||
import type { BerReader } from 'asn1'; | ||
import { BerWriter } from 'asn1'; | ||
import type { BerReader, BerWriter as BerWriterType } from 'asn1'; | ||
import type { ControlOptions } from './Control.js'; | ||
@@ -18,3 +17,3 @@ import { Control } from './Control.js'; | ||
parseControl(reader: BerReader): void; | ||
writeControl(writer: BerWriter): void; | ||
writeControl(writer: BerWriterType): void; | ||
} |
@@ -1,3 +0,4 @@ | ||
import { Ber, BerWriter } from 'asn1'; | ||
import asn1 from 'asn1'; | ||
import { Control } from './Control.js'; | ||
const { Ber, BerWriter } = asn1; | ||
export class ServerSideSortingRequestControl extends Control { | ||
@@ -4,0 +5,0 @@ static type = '2.16.840.1.113730.3.4.3'; |
@@ -1,4 +0,5 @@ | ||
import { Ber } from 'asn1'; | ||
import asn1 from 'asn1'; | ||
import { SearchFilter } from '../SearchFilter.js'; | ||
import { Filter } from './Filter.js'; | ||
const { Ber } = asn1; | ||
export class EqualityFilter extends Filter { | ||
@@ -5,0 +6,0 @@ type = SearchFilter.equalityMatch; |
import * as assert from 'assert'; | ||
import { EventEmitter } from 'events'; | ||
import { BerReader } from 'asn1'; | ||
import asn1 from 'asn1'; | ||
import { MessageParserError } from './errors/MessageParserError.js'; | ||
import { AddResponse, BindResponse, CompareResponse, DeleteResponse, ExtendedResponse, ModifyDNResponse, ModifyResponse, SearchResponse, SearchEntry, SearchReference } from './messages/index.js'; | ||
import { ProtocolOperation } from './ProtocolOperation.js'; | ||
const { BerReader } = asn1; | ||
export class MessageParser extends EventEmitter { | ||
@@ -8,0 +9,0 @@ buffer; |
@@ -1,4 +0,5 @@ | ||
import { Ber } from 'asn1'; | ||
import asn1 from 'asn1'; | ||
import { ProtocolOperation } from '../ProtocolOperation.js'; | ||
import { Message } from './Message.js'; | ||
const { Ber } = asn1; | ||
export const SASL_MECHANISMS = ['EXTERNAL', 'PLAIN', 'DIGEST-MD5', 'SCRAM-SHA-1']; | ||
@@ -5,0 +6,0 @@ export class BindRequest extends Message { |
/// <reference types="node" /> | ||
import type { BerReader } from 'asn1'; | ||
import { BerWriter } from 'asn1'; | ||
import type { BerReader, BerWriter as BerWriterType } from 'asn1'; | ||
import type { Control } from '../controls/Control.js'; | ||
@@ -20,3 +19,3 @@ import type { ProtocolOperationValues } from '../ProtocolOperation.js'; | ||
protected parseMessage(_: BerReader): void; | ||
protected writeMessage(_: BerWriter): void; | ||
protected writeMessage(_: BerWriterType): void; | ||
} |
@@ -1,4 +0,5 @@ | ||
import { BerWriter } from 'asn1'; | ||
import asn1 from 'asn1'; | ||
import { ControlParser } from '../ControlParser.js'; | ||
import { ProtocolOperation } from '../ProtocolOperation.js'; | ||
const { BerWriter } = asn1; | ||
export class Message { | ||
@@ -5,0 +6,0 @@ version = ProtocolOperation.LDAP_VERSION_3; |
{ | ||
"name": "ldapts", | ||
"version": "7.0.2", | ||
"version": "7.0.3", | ||
"description": "LDAP client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
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
347334
4824