neo4j-driver-core
Advanced tools
Comparing version 5.17.0 to 5.18.0
@@ -150,8 +150,8 @@ "use strict"; | ||
* | ||
* By default, the session will use connections authenticated with {@link AuthToken} configured in the | ||
* driver creation. This configuration allows switch user and/or authorization information for the | ||
* By default, the session will use connections authenticated with the {@link AuthToken} configured on | ||
* driver creation. This configuration allows switching user and/or authorization information for the | ||
* session lifetime. | ||
* | ||
* **Warning**: This option is only enable when the driver is connected with Neo4j Database servers | ||
* which supports Bolt 5.1 and onwards. | ||
* **Warning**: This option is only available when the driver is connected to Neo4j Database servers | ||
* which supports Bolt 5.1 or newer. | ||
* | ||
@@ -351,2 +351,16 @@ * @type {AuthToken|undefined} | ||
this.transactionConfig = undefined; | ||
/** | ||
* The {@link AuthToken} which will be used for executing the query. | ||
* | ||
* By default, the query executor will use connections authenticated with the {@link AuthToken} configured on | ||
* driver creation. This configuration allows switching user and/or authorization information for the | ||
* underlying transaction's lifetime. | ||
* | ||
* **Warning**: This option is only available when the driver is connected to Neo4j Database servers | ||
* which support Bolt 5.1 or newer. | ||
* | ||
* @type {AuthToken|undefined} | ||
* @see {@link driver} | ||
*/ | ||
this.auth = undefined; | ||
} | ||
@@ -507,3 +521,4 @@ return QueryConfig; | ||
impersonatedUser: config.impersonatedUser, | ||
transactionConfig: config.transactionConfig | ||
transactionConfig: config.transactionConfig, | ||
auth: config.auth | ||
}, query, parameters)]; | ||
@@ -510,0 +525,0 @@ case 1: return [2 /*return*/, _d.sent()]; |
@@ -70,3 +70,4 @@ "use strict"; | ||
bookmarkManager: config.bookmarkManager, | ||
impersonatedUser: config.impersonatedUser | ||
impersonatedUser: config.impersonatedUser, | ||
auth: config.auth | ||
}); | ||
@@ -73,0 +74,0 @@ // @ts-expect-error The method is private for external users |
{ | ||
"name": "neo4j-driver-core", | ||
"version": "5.17.0", | ||
"version": "5.18.0", | ||
"description": "Internals of neo4j-driver", | ||
@@ -48,3 +48,3 @@ "main": "lib/index.js", | ||
}, | ||
"gitHead": "b7f3e7a5322b8695671baeacc5ef067b761be65c" | ||
"gitHead": "4bd77f61af7153d08fae4a957bfff3ce22e64265" | ||
} |
@@ -119,2 +119,3 @@ /** | ||
transactionConfig?: TransactionConfig; | ||
auth?: AuthToken; | ||
/** | ||
@@ -121,0 +122,0 @@ * @constructor |
@@ -20,3 +20,3 @@ /** | ||
import Result from '../result'; | ||
import { Query } from '../types'; | ||
import { AuthToken, Query } from '../types'; | ||
type SessionFactory = (config: { | ||
@@ -26,2 +26,3 @@ database?: string; | ||
impersonatedUser?: string; | ||
auth?: AuthToken; | ||
}) => Session; | ||
@@ -34,2 +35,3 @@ interface ExecutionConfig<T> { | ||
transactionConfig?: TransactionConfig; | ||
auth?: AuthToken; | ||
resultTransformer: (result: Result) => Promise<T>; | ||
@@ -36,0 +38,0 @@ } |
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
664940
15686