Skip to content

Commit

Permalink
Fix duplicated neo4j-javascript string on boltAgent.product object (
Browse files Browse the repository at this point in the history
#1173)

This duplication was happening because the neo4j methods were sending
the agent string instead of the driver version the bolt agent factory.
  • Loading branch information
bigmontz committed Jan 11, 2024
1 parent 6b56046 commit 7545b38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/neo4j-driver-deno/lib/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function driver (

// Use default user agent or user agent specified by user.
_config.userAgent = _config.userAgent ?? USER_AGENT
_config.boltAgent = internal.boltAgent.fromVersion('neo4j-javascript/' + VERSION)
_config.boltAgent = internal.boltAgent.fromVersion(VERSION)

const address = ServerAddress.fromUrl(parsedUrl.hostAndPort)

Expand Down
2 changes: 1 addition & 1 deletion packages/neo4j-driver-lite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ function driver (

// Use default user agent or user agent specified by user.
_config.userAgent = _config.userAgent ?? USER_AGENT
_config.boltAgent = internal.boltAgent.fromVersion('neo4j-javascript/' + VERSION)
_config.boltAgent = internal.boltAgent.fromVersion(VERSION)

const address = ServerAddress.fromUrl(parsedUrl.hostAndPort)

Expand Down
2 changes: 1 addition & 1 deletion packages/neo4j-driver/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ function driver (url, authToken, config = {}) {

// Use default user agent or user agent specified by user.
config.userAgent = config.userAgent || USER_AGENT
config.boltAgent = internal.boltAgent.fromVersion('neo4j-javascript/' + VERSION)
config.boltAgent = internal.boltAgent.fromVersion(VERSION)
const address = ServerAddress.fromUrl(parsedUrl.hostAndPort)

const meta = {
Expand Down

0 comments on commit 7545b38

Please sign in to comment.