File tree Expand file tree Collapse file tree 6 files changed +28
-13
lines changed Expand file tree Collapse file tree 6 files changed +28
-13
lines changed Original file line number Diff line number Diff line change @@ -270,7 +270,7 @@ function driver (
270270 routingContext : parsedUrl . query
271271 } )
272272 } else {
273- if ( ! isEmptyObjectOrNull ( parsedUrl . query ) ) {
273+ if ( isEmptyObjectOrNull ( parsedUrl . query ) !== true ) {
274274 throw new Error (
275275 `Parameters are not supported with none routed scheme. Given URL: '${ url } '`
276276 )
@@ -330,7 +330,8 @@ const types = {
330330 LocalDateTime,
331331 LocalTime,
332332 Time,
333- Integer
333+ Integer,
334+ Vector
334335}
335336
336337/**
@@ -534,6 +535,7 @@ export {
534535 notificationFilterMinimumSeverityLevel ,
535536 clientCertificateProviders ,
536537 vector ,
538+ Vector ,
537539 rule ,
538540 RecordObjectMapping ,
539541 StandardCase
@@ -568,7 +570,6 @@ export type {
568570 ClientCertificateProvider ,
569571 ClientCertificateProviders ,
570572 RotatingClientCertificateProvider ,
571- Vector ,
572573 VectorType ,
573574 Rule ,
574575 Rules ,
Original file line number Diff line number Diff line change @@ -83,7 +83,6 @@ import {
8383 resolveCertificateProvider ,
8484 isVector ,
8585 Vector ,
86- VectorType ,
8786 vector ,
8887 Rule ,
8988 Rules ,
@@ -297,7 +296,6 @@ const types = {
297296 Time,
298297 Integer,
299298 Vector,
300- VectorType,
301299 Rule,
302300 Rules,
303301 ProtocolVersion
@@ -425,6 +423,7 @@ const forExport = {
425423 clientCertificateProviders,
426424 isVector,
427425 vector,
426+ Vector,
428427 rule,
429428 mappingDecorators,
430429 RecordObjectMapping,
@@ -507,7 +506,6 @@ export {
507506 isVector ,
508507 vector ,
509508 Vector ,
510- VectorType ,
511509 Rule ,
512510 Rules ,
513511 rule ,
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ import driver, {
2727 RxResult ,
2828 Session ,
2929 Record ,
30+ VectorType ,
3031 types
3132} from '../../'
3233
@@ -82,6 +83,7 @@ const dummy: any = null
8283const rxSession : RxSession = dummy
8384const rxTransaction : RxTransaction = dummy
8485const rxResult : RxResult = dummy
86+ const vectorType : VectorType = dummy
8587
8688const record : Record = new Record ( [ 'role' ] , [ 124 ] )
8789
@@ -104,6 +106,7 @@ const instanceOfRxSession: boolean = dummy instanceof types.RxSession
104106const instanceOfRxTransaction : boolean = dummy instanceof types . RxTransaction
105107const instanceOfRxManagedTransaction : boolean = dummy instanceof types . RxManagedTransaction
106108const instanceOfRxResult : boolean = dummy instanceof types . RxResult
109+ const instanceOfVector : boolean = dummy instanceof types . Vector
107110
108111const instanceOfDriverDriver : boolean = dummy instanceof driver . Driver
109112const instanceOfDriverNeo4jError : boolean = dummy instanceof driver . Neo4jError
Original file line number Diff line number Diff line change @@ -47,7 +47,8 @@ import {
4747 notificationFilterDisabledCategory ,
4848 NotificationFilterDisabledClassification ,
4949 notificationFilterDisabledClassification ,
50- authTokenManagers
50+ authTokenManagers ,
51+ vector
5152} from '../../types/index'
5253
5354import Driver from '../../types/driver'
@@ -137,6 +138,8 @@ const neo4jIsPathSegment: boolean = isPathSegment({})
137138const neo4jIsRelationship : boolean = isRelationship ( { } )
138139const neo4jIsUnboundRelationship : boolean = isUnboundRelationship ( { } )
139140
141+ const vectorConstructorFunction = vector ( Int16Array . from ( [ 0 ] ) )
142+
140143const unknownSeverityString : string = notificationSeverityLevel . UNKNOWN
141144const warningSeverityString : string = notificationSeverityLevel . WARNING
142145const informationSeverityString : string = notificationSeverityLevel . INFORMATION
Original file line number Diff line number Diff line change @@ -106,7 +106,10 @@ import {
106106 StandardCase ,
107107 MappedQueryResult ,
108108 types as coreTypes ,
109- isVector
109+ isVector ,
110+ vector ,
111+ Vector ,
112+ VectorType
110113} from 'neo4j-driver-core'
111114import {
112115 AuthToken ,
@@ -185,6 +188,7 @@ declare const types: {
185188 RxTransaction : typeof RxTransaction
186189 RxManagedTransaction : typeof RxManagedTransaction
187190 RxResult : typeof RxResult
191+ Vector : typeof Vector
188192}
189193
190194declare const session : {
@@ -309,6 +313,8 @@ declare const forExport: {
309313 logging : typeof logging
310314 clientCertificateProviders : typeof clientCertificateProviders
311315 isVector : typeof isVector
316+ vector : typeof vector
317+ Vector : typeof Vector
312318}
313319
314320export {
@@ -391,7 +397,9 @@ export {
391397 notificationFilterMinimumSeverityLevel ,
392398 logging ,
393399 clientCertificateProviders ,
394- isVector
400+ isVector ,
401+ vector ,
402+ Vector
395403}
396404
397405export type {
@@ -421,7 +429,8 @@ export type {
421429 rule ,
422430 RecordObjectMapping ,
423431 StandardCase ,
424- MappedQueryResult
432+ MappedQueryResult ,
433+ VectorType
425434}
426435
427436export default forExport
You can’t perform that action at this time.
0 commit comments