Skip to content

Commit 7545b38

Browse files
authored
Fix duplicated neo4j-javascript string on boltAgent.product object (neo4j#1173)
This duplication was happening because the neo4j methods were sending the agent string instead of the driver version the bolt agent factory.
1 parent 6b56046 commit 7545b38

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/neo4j-driver-deno/lib/mod.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ function driver (
215215

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

220220
const address = ServerAddress.fromUrl(parsedUrl.hostAndPort)
221221

packages/neo4j-driver-lite/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ function driver (
214214

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

219219
const address = ServerAddress.fromUrl(parsedUrl.hostAndPort)
220220

packages/neo4j-driver/src/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ function driver (url, authToken, config = {}) {
175175

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

181181
const meta = {

0 commit comments

Comments
 (0)