Swap asn1 package
This commit is contained in:
parent
92dfc80fd1
commit
9fe58a44a2
|
@ -2,7 +2,7 @@
|
|||
|
||||
const assert = require('assert')
|
||||
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const Protocol = require('./protocol')
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
const assert = require('assert-plus')
|
||||
|
||||
// var asn1 = require('asn1')
|
||||
// var asn1 = require('@ldapjs/asn1')
|
||||
|
||||
// var Protocol = require('../protocol')
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const Control = require('./control')
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright 2011 Mark Cavage, Inc. All rights reserved.
|
||||
|
||||
const assert = require('assert')
|
||||
const Ber = require('asn1').Ber
|
||||
const Ber = require('@ldapjs/asn1').Ber
|
||||
|
||||
const Control = require('./control')
|
||||
const EntryChangeNotificationControl =
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const Control = require('./control')
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const Control = require('./control')
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const Control = require('./control')
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const Control = require('./control')
|
||||
const CODES = require('../errors/codes')
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const Control = require('./control')
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const Control = require('./control')
|
||||
const CODES = require('../errors/codes')
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
const ASN1 = require('asn1').Ber
|
||||
const ASN1 = require('@ldapjs/asn1').Ber
|
||||
const parents = require('ldap-filter')
|
||||
|
||||
const Filter = require('./filter')
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
const assert = require('assert')
|
||||
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const parents = require('ldap-filter')
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const LDAPMessage = require('./message')
|
||||
const Protocol = require('../protocol')
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const logger = require('../logger')
|
||||
// var Control = require('../controls').Control
|
||||
|
|
|
@ -4,7 +4,7 @@ const EventEmitter = require('events').EventEmitter
|
|||
const util = require('util')
|
||||
|
||||
const assert = require('assert-plus')
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
// var VError = require('verror').VError
|
||||
const logger = require('../logger')
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
// var asn1 = require('asn1')
|
||||
// var asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const dtrace = require('../dtrace')
|
||||
const LDAPMessage = require('./message')
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
// var asn1 = require('asn1')
|
||||
// var asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const LDAPMessage = require('./message')
|
||||
const Attribute = require('../attribute')
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
// var asn1 = require('asn1')
|
||||
// var asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const LDAPMessage = require('./message')
|
||||
const Protocol = require('../protocol')
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const assert = require('assert-plus')
|
||||
const util = require('util')
|
||||
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const LDAPMessage = require('./message')
|
||||
// var LDAPResult = require('./result')
|
||||
|
|
|
@ -6,7 +6,7 @@ const net = require('net')
|
|||
const tls = require('tls')
|
||||
const util = require('util')
|
||||
|
||||
// var asn1 = require('asn1')
|
||||
// var asn1 = require('@ldapjs/asn1')
|
||||
const VError = require('verror').VError
|
||||
|
||||
const dn = require('./dn')
|
||||
|
|
|
@ -17,8 +17,8 @@
|
|||
"node": ">=10.13.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@ldapjs/asn1": "^1.0.0-rc.1",
|
||||
"abstract-logging": "^2.0.0",
|
||||
"asn1": "^0.2.4",
|
||||
"assert-plus": "^1.0.0",
|
||||
"backoff": "^2.5.0",
|
||||
"ldap-filter": "^0.3.3",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { Attribute } = require('../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
const fs = require('fs')
|
||||
const path = require('path')
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { Attribute, Change } = require('../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -509,7 +509,7 @@ tap.test('add success with object', function (t) {
|
|||
})
|
||||
|
||||
tap.test('add buffer', function (t) {
|
||||
const { BerReader } = require('asn1')
|
||||
const { BerReader } = require('@ldapjs/asn1')
|
||||
const dn = `cn=add, ${SUFFIX}`
|
||||
const attribute = 'thumbnailPhoto'
|
||||
const binary = 0xa5
|
||||
|
@ -729,7 +729,7 @@ tap.test('modify DN excessive length (GH-480)', function (t) {
|
|||
})
|
||||
|
||||
tap.test('modify DN excessive superior length', function (t) {
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const ModifyDNRequest = require('../lib/messages/moddn_request')
|
||||
const ber = new BerWriter()
|
||||
const entry = 'cn=Test User,ou=A Long OU ,ou=Another Long OU ,ou=Another Long OU ,dc=acompany,DC=io'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { Control, getControl } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { getControl, EntryChangeNotificationControl } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { getControl, PagedResultsControl } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
const test = require('tap').test
|
||||
|
||||
const asn1 = require('asn1')
|
||||
const asn1 = require('@ldapjs/asn1')
|
||||
|
||||
const BerReader = asn1.BerReader
|
||||
const BerWriter = asn1.BerWriter
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { getControl, ServerSideSortingRequestControl: SSSRControl } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const ldap = require('../../lib')
|
||||
const { getControl, ServerSideSortingResponseControl: SSSResponseControl } = ldap
|
||||
const OID = '1.2.840.113556.1.4.474'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { getControl, VirtualListViewRequestControl: VLVRControl } = require('../../lib')
|
||||
|
||||
test('VLV request - new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const ldap = require('../../lib')
|
||||
const { getControl, VirtualListViewResponseControl: VLVResponseControl } = require('../../lib')
|
||||
const OID = '2.16.840.1.113730.3.4.10'
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { filters: { ApproximateFilter } } = require('../../lib')
|
||||
|
||||
test('Construct no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { filters: { EqualityFilter } } = require('../../lib')
|
||||
|
||||
test('Construct no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { filters: { GreaterThanEqualsFilter } } = require('../../lib')
|
||||
|
||||
test('Construct no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { filters: { LessThanEqualsFilter } } = require('../../lib')
|
||||
|
||||
test('Construct no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { filters: { PresenceFilter } } = require('../../lib')
|
||||
|
||||
test('Construct no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { filters: { SubstringFilter } } = require('../../lib')
|
||||
|
||||
test('Construct no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { AddRequest, Attribute, dn } = require('../../lib')
|
||||
|
||||
test('new no args', t => {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { AddResponse } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { BindRequest, dn } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { BindResponse } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { CompareRequest, dn } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { CompareResponse } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { DeleteRequest, dn } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { DeleteResponse } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { ExtendedRequest } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { ExtendedResponse } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { ModifyDNRequest, dn } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { ModifyDNResponse } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { ModifyRequest, Attribute, Change, dn } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { ModifyResponse } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { SearchEntry, Attribute, dn } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { SearchRequest, EqualityFilter, dn } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { SearchResponse } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
|
||||
const { test } = require('tap')
|
||||
const { BerReader, BerWriter } = require('asn1')
|
||||
const { BerReader, BerWriter } = require('@ldapjs/asn1')
|
||||
const { UnbindRequest } = require('../../lib')
|
||||
|
||||
test('new no args', function (t) {
|
||||
|
|
Loading…
Reference in New Issue