Socket
Socket
Sign inDemoInstall

neo4j-driver-core

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neo4j-driver-core - npm Package Compare versions

Comparing version 5.17.0 to 5.18.0

25

lib/driver.js

@@ -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()];

3

lib/internal/query-executor.js

@@ -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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc