neo4j-driver 5.8.0 → 5.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -36,7 +36,7 @@
36
36
  * See the License for the specific language governing permissions and
37
37
  * limitations under the License.
38
38
  */
39
- var __extends$J = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
39
+ var __extends$K = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
40
40
  var extendStatics = function (d, b) {
41
41
  extendStatics = Object.setPrototypeOf ||
42
42
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -83,7 +83,7 @@
83
83
  * Class for all errors thrown/returned by the driver.
84
84
  */
85
85
  var Neo4jError = /** @class */ (function (_super) {
86
- __extends$J(Neo4jError, _super);
86
+ __extends$K(Neo4jError, _super);
87
87
  /**
88
88
  * @constructor
89
89
  * @param {string} message - the error message
@@ -4474,7 +4474,7 @@
4474
4474
  * limitations under the License.
4475
4475
  */
4476
4476
  Object.defineProperty(constants$1, "__esModule", { value: true });
4477
- constants$1.BOLT_PROTOCOL_V5_2 = constants$1.BOLT_PROTOCOL_V5_1 = constants$1.BOLT_PROTOCOL_V5_0 = constants$1.BOLT_PROTOCOL_V4_4 = constants$1.BOLT_PROTOCOL_V4_3 = constants$1.BOLT_PROTOCOL_V4_2 = constants$1.BOLT_PROTOCOL_V4_1 = constants$1.BOLT_PROTOCOL_V4_0 = constants$1.BOLT_PROTOCOL_V3 = constants$1.BOLT_PROTOCOL_V2 = constants$1.BOLT_PROTOCOL_V1 = constants$1.DEFAULT_POOL_MAX_SIZE = constants$1.DEFAULT_POOL_ACQUISITION_TIMEOUT = constants$1.DEFAULT_CONNECTION_TIMEOUT_MILLIS = constants$1.ACCESS_MODE_WRITE = constants$1.ACCESS_MODE_READ = constants$1.FETCH_ALL = void 0;
4477
+ constants$1.BOLT_PROTOCOL_V5_3 = constants$1.BOLT_PROTOCOL_V5_2 = constants$1.BOLT_PROTOCOL_V5_1 = constants$1.BOLT_PROTOCOL_V5_0 = constants$1.BOLT_PROTOCOL_V4_4 = constants$1.BOLT_PROTOCOL_V4_3 = constants$1.BOLT_PROTOCOL_V4_2 = constants$1.BOLT_PROTOCOL_V4_1 = constants$1.BOLT_PROTOCOL_V4_0 = constants$1.BOLT_PROTOCOL_V3 = constants$1.BOLT_PROTOCOL_V2 = constants$1.BOLT_PROTOCOL_V1 = constants$1.DEFAULT_POOL_MAX_SIZE = constants$1.DEFAULT_POOL_ACQUISITION_TIMEOUT = constants$1.DEFAULT_CONNECTION_TIMEOUT_MILLIS = constants$1.ACCESS_MODE_WRITE = constants$1.ACCESS_MODE_READ = constants$1.FETCH_ALL = void 0;
4478
4478
  var FETCH_ALL$6 = -1;
4479
4479
  constants$1.FETCH_ALL = FETCH_ALL$6;
4480
4480
  var DEFAULT_POOL_ACQUISITION_TIMEOUT = 60 * 1000; // 60 seconds
@@ -4509,6 +4509,8 @@
4509
4509
  constants$1.BOLT_PROTOCOL_V5_1 = BOLT_PROTOCOL_V5_1$3;
4510
4510
  var BOLT_PROTOCOL_V5_2$1 = 5.2;
4511
4511
  constants$1.BOLT_PROTOCOL_V5_2 = BOLT_PROTOCOL_V5_2$1;
4512
+ var BOLT_PROTOCOL_V5_3$1 = 5.3;
4513
+ constants$1.BOLT_PROTOCOL_V5_3 = BOLT_PROTOCOL_V5_3$1;
4512
4514
 
4513
4515
  var connectionHolder$1 = {};
4514
4516
 
@@ -4531,7 +4533,7 @@
4531
4533
  * limitations under the License.
4532
4534
  */
4533
4535
  /* eslint-disable @typescript-eslint/promise-function-async */
4534
- var __extends$I = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
4536
+ var __extends$J = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
4535
4537
  var extendStatics = function (d, b) {
4536
4538
  extendStatics = Object.setPrototypeOf ||
4537
4539
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -4736,7 +4738,7 @@
4736
4738
  * releasing or initilizing
4737
4739
  */
4738
4740
  var ReadOnlyConnectionHolder = /** @class */ (function (_super) {
4739
- __extends$I(ReadOnlyConnectionHolder, _super);
4741
+ __extends$J(ReadOnlyConnectionHolder, _super);
4740
4742
  /**
4741
4743
  * Contructor
4742
4744
  * @param {ConnectionHolder} connectionHolder the connection holder which will treat the requests
@@ -4790,7 +4792,7 @@
4790
4792
  connectionHolder$1.ReadOnlyConnectionHolder = ReadOnlyConnectionHolder;
4791
4793
  connectionHolder$1.default = ReadOnlyConnectionHolder;
4792
4794
  var EmptyConnectionHolder = /** @class */ (function (_super) {
4793
- __extends$I(EmptyConnectionHolder, _super);
4795
+ __extends$J(EmptyConnectionHolder, _super);
4794
4796
  function EmptyConnectionHolder() {
4795
4797
  return _super !== null && _super.apply(this, arguments) || this;
4796
4798
  }
@@ -5182,7 +5184,7 @@
5182
5184
 
5183
5185
  var logger$1 = {};
5184
5186
 
5185
- var __extends$H = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
5187
+ var __extends$I = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
5186
5188
  var extendStatics = function (d, b) {
5187
5189
  extendStatics = Object.setPrototypeOf ||
5188
5190
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -5332,7 +5334,7 @@
5332
5334
  }());
5333
5335
  logger$1.Logger = Logger$2;
5334
5336
  var NoOpLogger = /** @class */ (function (_super) {
5335
- __extends$H(NoOpLogger, _super);
5337
+ __extends$I(NoOpLogger, _super);
5336
5338
  function NoOpLogger() {
5337
5339
  return _super.call(this, INFO, function (level, message) { }) || this;
5338
5340
  }
@@ -5416,8 +5418,8 @@
5416
5418
  * See the License for the specific language governing permissions and
5417
5419
  * limitations under the License.
5418
5420
  */
5419
- var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
5420
- __assign$i = Object.assign || function(t) {
5421
+ var __assign$k = (commonjsGlobal && commonjsGlobal.__assign) || function () {
5422
+ __assign$k = Object.assign || function(t) {
5421
5423
  for (var s, i = 1, n = arguments.length; i < n; i++) {
5422
5424
  s = arguments[i];
5423
5425
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -5425,7 +5427,7 @@
5425
5427
  }
5426
5428
  return t;
5427
5429
  };
5428
- return __assign$i.apply(this, arguments);
5430
+ return __assign$k.apply(this, arguments);
5429
5431
  };
5430
5432
  var __read$s = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
5431
5433
  var m = typeof Symbol === "function" && o[Symbol.iterator];
@@ -5687,7 +5689,7 @@
5687
5689
  // Parse authority and path
5688
5690
  if (value.startsWith('//')) {
5689
5691
  parts = partition(value.substr(2), '/');
5690
- parsed = __assign$i(__assign$i({}, parsed), parseAuthority(parts[0]));
5692
+ parsed = __assign$k(__assign$k({}, parsed), parseAuthority(parts[0]));
5691
5693
  parsed.path = parts[1] + parts[2];
5692
5694
  }
5693
5695
  else {
@@ -5867,7 +5869,7 @@
5867
5869
  }());
5868
5870
  configuredCustomResolver.default = ConfiguredCustomResolver;
5869
5871
 
5870
- var __importDefault$Q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
5872
+ var __importDefault$S = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
5871
5873
  return (mod && mod.__esModule) ? mod : { "default": mod };
5872
5874
  };
5873
5875
  Object.defineProperty(resolver$1, "__esModule", { value: true });
@@ -5890,11 +5892,99 @@
5890
5892
  * See the License for the specific language governing permissions and
5891
5893
  * limitations under the License.
5892
5894
  */
5893
- var base_host_name_resolver_1 = __importDefault$Q(baseHostNameResolver);
5895
+ var base_host_name_resolver_1 = __importDefault$S(baseHostNameResolver);
5894
5896
  resolver$1.BaseHostNameResolver = base_host_name_resolver_1.default;
5895
- var configured_custom_resolver_1$1 = __importDefault$Q(configuredCustomResolver);
5897
+ var configured_custom_resolver_1$1 = __importDefault$S(configuredCustomResolver);
5896
5898
  resolver$1.ConfiguredCustomResolver = configured_custom_resolver_1$1.default;
5897
5899
 
5900
+ var browser$1 = {};
5901
+
5902
+ var boltAgent$1 = {};
5903
+
5904
+ /**
5905
+ * Copyright (c) "Neo4j"
5906
+ * Neo4j Sweden AB [http://neo4j.com]
5907
+ *
5908
+ * This file is part of Neo4j.
5909
+ *
5910
+ * Licensed under the Apache License, Version 2.0 (the "License");
5911
+ * you may not use this file except in compliance with the License.
5912
+ * You may obtain a copy of the License at
5913
+ *
5914
+ * http://www.apache.org/licenses/LICENSE-2.0
5915
+ *
5916
+ * Unless required by applicable law or agreed to in writing, software
5917
+ * distributed under the License is distributed on an "AS IS" BASIS,
5918
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5919
+ * See the License for the specific language governing permissions and
5920
+ * limitations under the License.
5921
+ */
5922
+ /* eslint-disable */
5923
+ Object.defineProperty(boltAgent$1, "__esModule", { value: true });
5924
+ boltAgent$1.fromVersion = void 0;
5925
+ /**
5926
+ * Constructs a BoltAgent structure from a given product version.
5927
+ *
5928
+ * @param {string} version The product version
5929
+ * @param {function():SystemInfo} getSystemInfo Parameter used of inject system information and mock calls to the APIs.
5930
+ * @returns {BoltAgent} The bolt agent
5931
+ */
5932
+ function fromVersion(version, getSystemInfo) {
5933
+ if (getSystemInfo === void 0) { getSystemInfo = function () { return ({
5934
+ get userAgent() {
5935
+ // @ts-ignore: browser code so must be skipped by ts
5936
+ return window.navigator.userAgent;
5937
+ }
5938
+ }); }; }
5939
+ var systemInfo = getSystemInfo();
5940
+ //USER_AGENT looks like 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36'
5941
+ var platform = systemInfo.userAgent != null ? systemInfo.userAgent.split("(")[1].split(")")[0] : undefined;
5942
+ var languageDetails = systemInfo.userAgent || undefined;
5943
+ return {
5944
+ product: "neo4j-javascript/".concat(version),
5945
+ platform: platform,
5946
+ languageDetails: languageDetails
5947
+ };
5948
+ }
5949
+ boltAgent$1.fromVersion = fromVersion;
5950
+
5951
+ (function (exports) {
5952
+ /**
5953
+ * Copyright (c) "Neo4j"
5954
+ * Neo4j Sweden AB [http://neo4j.com]
5955
+ *
5956
+ * This file is part of Neo4j.
5957
+ *
5958
+ * Licensed under the Apache License, Version 2.0 (the "License");
5959
+ * you may not use this file except in compliance with the License.
5960
+ * You may obtain a copy of the License at
5961
+ *
5962
+ * http://www.apache.org/licenses/LICENSE-2.0
5963
+ *
5964
+ * Unless required by applicable law or agreed to in writing, software
5965
+ * distributed under the License is distributed on an "AS IS" BASIS,
5966
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
5967
+ * See the License for the specific language governing permissions and
5968
+ * limitations under the License.
5969
+ */
5970
+ var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
5971
+ if (k2 === undefined) k2 = k;
5972
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5973
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
5974
+ desc = { enumerable: true, get: function() { return m[k]; } };
5975
+ }
5976
+ Object.defineProperty(o, k2, desc);
5977
+ }) : (function(o, m, k, k2) {
5978
+ if (k2 === undefined) k2 = k;
5979
+ o[k2] = m[k];
5980
+ }));
5981
+ var __exportStar = (commonjsGlobal && commonjsGlobal.__exportStar) || function(m, exports) {
5982
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
5983
+ };
5984
+ Object.defineProperty(exports, "__esModule", { value: true });
5985
+ __exportStar(boltAgent$1, exports);
5986
+ }(browser$1));
5987
+
5898
5988
  /**
5899
5989
  * Copyright (c) "Neo4j"
5900
5990
  * Neo4j Sweden AB [http://neo4j.com]
@@ -5937,7 +6027,7 @@
5937
6027
  return result;
5938
6028
  };
5939
6029
  Object.defineProperty(internal, "__esModule", { value: true });
5940
- internal.objectUtil = internal.resolver = internal.serverAddress = internal.urlUtil = internal.logger = internal.transactionExecutor = internal.txConfig = internal.connectionHolder = internal.constants = internal.bookmarks = internal.observer = internal.temporalUtil = internal.util = void 0;
6030
+ internal.boltAgent = internal.objectUtil = internal.resolver = internal.serverAddress = internal.urlUtil = internal.logger = internal.transactionExecutor = internal.txConfig = internal.connectionHolder = internal.constants = internal.bookmarks = internal.observer = internal.temporalUtil = internal.util = void 0;
5941
6031
  var util = __importStar$6(util$4);
5942
6032
  internal.util = util;
5943
6033
  var temporalUtil = __importStar$6(temporalUtil$1);
@@ -5964,6 +6054,8 @@
5964
6054
  internal.resolver = resolver;
5965
6055
  var objectUtil$1 = __importStar$6(objectUtil$2);
5966
6056
  internal.objectUtil = objectUtil$1;
6057
+ var boltAgent = __importStar$6(browser$1);
6058
+ internal.boltAgent = boltAgent;
5967
6059
 
5968
6060
  /**
5969
6061
  * Copyright (c) "Neo4j"
@@ -6019,12 +6111,12 @@
6019
6111
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
6020
6112
  }
6021
6113
  };
6022
- var __importDefault$P = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
6114
+ var __importDefault$R = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
6023
6115
  return (mod && mod.__esModule) ? mod : { "default": mod };
6024
6116
  };
6025
6117
  Object.defineProperty(result, "__esModule", { value: true });
6026
6118
  /* eslint-disable @typescript-eslint/promise-function-async */
6027
- var result_summary_1 = __importDefault$P(resultSummary);
6119
+ var result_summary_1 = __importDefault$R(resultSummary);
6028
6120
  var internal_1$1 = internal;
6029
6121
  var error_1$4 = error;
6030
6122
  var EMPTY_CONNECTION_HOLDER = internal_1$1.connectionHolder.EMPTY_CONNECTION_HOLDER;
@@ -6890,10 +6982,12 @@
6890
6982
  /**
6891
6983
  * Connect to the target address, negotiate Bolt protocol and send initialization message.
6892
6984
  * @param {string} userAgent the user agent for this driver.
6985
+ * @param {string} boltAgent the bolt agent for this driver.
6893
6986
  * @param {Object} authToken the object containing auth information.
6987
+ * @param {Object} waitReAuth whether to connect method should wait until re-Authorised
6894
6988
  * @return {Promise<Connection>} promise resolved with the current connection if connection is successful. Rejected promise otherwise.
6895
6989
  */
6896
- Connection.prototype.connect = function (userAgent, authToken) {
6990
+ Connection.prototype.connect = function (userAgent, boltAgent, authToken, waitReAuth) {
6897
6991
  throw Error('Not implemented');
6898
6992
  };
6899
6993
  /**
@@ -6993,7 +7087,7 @@
6993
7087
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
6994
7088
  }
6995
7089
  };
6996
- var __importDefault$O = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
7090
+ var __importDefault$Q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
6997
7091
  return (mod && mod.__esModule) ? mod : { "default": mod };
6998
7092
  };
6999
7093
  Object.defineProperty(transaction, "__esModule", { value: true });
@@ -7004,7 +7098,7 @@
7004
7098
  var tx_config_1$1 = txConfig$1;
7005
7099
  var observers_1$1 = observers;
7006
7100
  var error_1$3 = error;
7007
- var result_1$1 = __importDefault$O(result);
7101
+ var result_1$1 = __importDefault$Q(result);
7008
7102
  /**
7009
7103
  * Represents a transaction in the Neo4j database.
7010
7104
  *
@@ -7532,7 +7626,7 @@
7532
7626
  * See the License for the specific language governing permissions and
7533
7627
  * limitations under the License.
7534
7628
  */
7535
- var __extends$G = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
7629
+ var __extends$H = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
7536
7630
  var extendStatics = function (d, b) {
7537
7631
  extendStatics = Object.setPrototypeOf ||
7538
7632
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -7547,8 +7641,8 @@
7547
7641
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
7548
7642
  };
7549
7643
  })();
7550
- var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
7551
- __assign$h = Object.assign || function(t) {
7644
+ var __assign$j = (commonjsGlobal && commonjsGlobal.__assign) || function () {
7645
+ __assign$j = Object.assign || function(t) {
7552
7646
  for (var s, i = 1, n = arguments.length; i < n; i++) {
7553
7647
  s = arguments[i];
7554
7648
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -7556,15 +7650,15 @@
7556
7650
  }
7557
7651
  return t;
7558
7652
  };
7559
- return __assign$h.apply(this, arguments);
7653
+ return __assign$j.apply(this, arguments);
7560
7654
  };
7561
- var __importDefault$N = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
7655
+ var __importDefault$P = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
7562
7656
  return (mod && mod.__esModule) ? mod : { "default": mod };
7563
7657
  };
7564
7658
  var _a$d;
7565
7659
  Object.defineProperty(transactionPromise, "__esModule", { value: true });
7566
7660
  /* eslint-disable @typescript-eslint/promise-function-async */
7567
- var transaction_1 = __importDefault$N(transaction);
7661
+ var transaction_1 = __importDefault$P(transaction);
7568
7662
  /**
7569
7663
  * Represents a {@link Promise<Transaction>} object and a {@link Transaction} object.
7570
7664
  *
@@ -7576,7 +7670,7 @@
7576
7670
  * @access public
7577
7671
  */
7578
7672
  var TransactionPromise = /** @class */ (function (_super) {
7579
- __extends$G(TransactionPromise, _super);
7673
+ __extends$H(TransactionPromise, _super);
7580
7674
  /**
7581
7675
  * @constructor
7582
7676
  * @param {object} args
@@ -7655,7 +7749,7 @@
7655
7749
  * @access private
7656
7750
  */
7657
7751
  TransactionPromise.prototype._toTransaction = function () {
7658
- return __assign$h(__assign$h({}, this), { run: _super.prototype.run.bind(this), commit: _super.prototype.commit.bind(this), rollback: _super.prototype.rollback.bind(this), close: _super.prototype.close.bind(this), isOpen: _super.prototype.isOpen.bind(this), _begin: this._begin.bind(this) });
7752
+ return __assign$j(__assign$j({}, this), { run: _super.prototype.run.bind(this), commit: _super.prototype.commit.bind(this), rollback: _super.prototype.rollback.bind(this), close: _super.prototype.close.bind(this), isOpen: _super.prototype.isOpen.bind(this), _begin: this._begin.bind(this) });
7659
7753
  };
7660
7754
  /**
7661
7755
  * @access private
@@ -7772,7 +7866,7 @@
7772
7866
  }
7773
7867
  return to.concat(ar || Array.prototype.slice.call(from));
7774
7868
  };
7775
- var __importDefault$M = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
7869
+ var __importDefault$O = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
7776
7870
  return (mod && mod.__esModule) ? mod : { "default": mod };
7777
7871
  };
7778
7872
  Object.defineProperty(session, "__esModule", { value: true });
@@ -7781,13 +7875,13 @@
7781
7875
  var util_1$1 = util$4;
7782
7876
  var constants_1$1 = constants$1;
7783
7877
  var error_1$2 = error;
7784
- var result_1 = __importDefault$M(result);
7878
+ var result_1 = __importDefault$O(result);
7785
7879
  var connection_holder_1 = connectionHolder$1;
7786
7880
  var transaction_executor_1 = transactionExecutor$1;
7787
7881
  var bookmarks_1$1 = bookmarks$1;
7788
7882
  var tx_config_1 = txConfig$1;
7789
- var transaction_promise_1 = __importDefault$M(transactionPromise);
7790
- var transaction_managed_1 = __importDefault$M(transactionManaged);
7883
+ var transaction_promise_1 = __importDefault$O(transactionPromise);
7884
+ var transaction_managed_1 = __importDefault$O(transactionManaged);
7791
7885
  /**
7792
7886
  * A Session instance is used for handling the connection and
7793
7887
  * sending queries through the connection.
@@ -8577,11 +8671,11 @@
8577
8671
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
8578
8672
  }
8579
8673
  };
8580
- var __importDefault$L = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
8674
+ var __importDefault$N = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
8581
8675
  return (mod && mod.__esModule) ? mod : { "default": mod };
8582
8676
  };
8583
8677
  Object.defineProperty(resultTransformers$1, "__esModule", { value: true });
8584
- var result_eager_1 = __importDefault$L(resultEager);
8678
+ var result_eager_1 = __importDefault$N(resultEager);
8585
8679
  var error_1$1 = error;
8586
8680
  function createEagerResultFromResult(result) {
8587
8681
  return __awaiter$b(this, void 0, void 0, function () {
@@ -8888,20 +8982,20 @@
8888
8982
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
8889
8983
  }
8890
8984
  };
8891
- var __importDefault$K = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
8985
+ var __importDefault$M = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
8892
8986
  return (mod && mod.__esModule) ? mod : { "default": mod };
8893
8987
  };
8894
8988
  Object.defineProperty(driver, "__esModule", { value: true });
8895
8989
  driver.QueryConfig = driver.SessionConfig = driver.routing = driver.WRITE = driver.READ = driver.Driver = void 0;
8896
8990
  var bookmarks_1 = bookmarks$1;
8897
- var configured_custom_resolver_1 = __importDefault$K(configuredCustomResolver);
8991
+ var configured_custom_resolver_1 = __importDefault$M(configuredCustomResolver);
8898
8992
  var constants_1 = constants$1;
8899
8993
  var logger_1 = logger$1;
8900
- var session_1 = __importDefault$K(session);
8994
+ var session_1 = __importDefault$M(session);
8901
8995
  var util_1 = util$4;
8902
8996
  var bookmark_manager_1 = bookmarkManager$1;
8903
- var result_transformers_1 = __importDefault$K(resultTransformers$1);
8904
- var query_executor_1 = __importDefault$K(queryExecutor);
8997
+ var result_transformers_1 = __importDefault$M(resultTransformers$1);
8998
+ var query_executor_1 = __importDefault$M(queryExecutor);
8905
8999
  var error_1 = error;
8906
9000
  var DEFAULT_MAX_CONNECTION_LIFETIME = 60 * 60 * 1000; // 1 hour
8907
9001
  /**
@@ -9068,7 +9162,11 @@
9068
9162
  *
9069
9163
  *
9070
9164
  * Disabling notifications can be done by defining the minimum severity level to 'OFF'.
9071
- * Default values can be use by omitting the configuration.
9165
+ * At driver level, when omitted, uses the server's default.
9166
+ * At session level, when omitted, defaults to what filters have been configured at driver level.
9167
+ *
9168
+ * Disabling categories or severities allows the server to skip analysis for those, which can speed up query
9169
+ * execution.
9072
9170
  *
9073
9171
  * @example
9074
9172
  * // enabling warning notification, but disabling `HINT` and `DEPRECATION` notifications.
@@ -9820,12 +9918,12 @@
9820
9918
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
9821
9919
  }
9822
9920
  };
9823
- var __importDefault$J = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
9921
+ var __importDefault$L = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
9824
9922
  return (mod && mod.__esModule) ? mod : { "default": mod };
9825
9923
  };
9826
9924
  Object.defineProperty(authTokenManager, "__esModule", { value: true });
9827
9925
  authTokenManager.isStaticAuthTokenManger = authTokenManager.staticAuthTokenManager = authTokenManager.expirationBasedAuthTokenManager = authTokenManager.AuthTokenAndExpiration = void 0;
9828
- var auth_1 = __importDefault$J(auth$1);
9926
+ var auth_1 = __importDefault$L(auth$1);
9829
9927
  var internal_1 = internal;
9830
9928
  /**
9831
9929
  * Interface for the piece of software responsible for keeping track of current active {@link AuthToken} across the driver.
@@ -11038,7 +11136,7 @@
11038
11136
 
11039
11137
  var OperatorSubscriber$1 = {};
11040
11138
 
11041
- var __extends$F = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11139
+ var __extends$G = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11042
11140
  var extendStatics = function (d, b) {
11043
11141
  extendStatics = Object.setPrototypeOf ||
11044
11142
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11061,7 +11159,7 @@
11061
11159
  }
11062
11160
  OperatorSubscriber$1.createOperatorSubscriber = createOperatorSubscriber;
11063
11161
  var OperatorSubscriber = (function (_super) {
11064
- __extends$F(OperatorSubscriber, _super);
11162
+ __extends$G(OperatorSubscriber, _super);
11065
11163
  function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
11066
11164
  var _this = _super.call(this, destination) || this;
11067
11165
  _this.onFinalize = onFinalize;
@@ -11145,7 +11243,7 @@
11145
11243
  }
11146
11244
  refCount$1.refCount = refCount;
11147
11245
 
11148
- var __extends$E = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11246
+ var __extends$F = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11149
11247
  var extendStatics = function (d, b) {
11150
11248
  extendStatics = Object.setPrototypeOf ||
11151
11249
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11168,7 +11266,7 @@
11168
11266
  var OperatorSubscriber_1$T = OperatorSubscriber$1;
11169
11267
  var lift_1$12 = lift;
11170
11268
  var ConnectableObservable = (function (_super) {
11171
- __extends$E(ConnectableObservable, _super);
11269
+ __extends$F(ConnectableObservable, _super);
11172
11270
  function ConnectableObservable(source, subjectFactory) {
11173
11271
  var _this = _super.call(this) || this;
11174
11272
  _this.source = source;
@@ -11355,7 +11453,7 @@
11355
11453
  };
11356
11454
  });
11357
11455
 
11358
- var __extends$D = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11456
+ var __extends$E = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11359
11457
  var extendStatics = function (d, b) {
11360
11458
  extendStatics = Object.setPrototypeOf ||
11361
11459
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11389,7 +11487,7 @@
11389
11487
  var arrRemove_1$6 = arrRemove$1;
11390
11488
  var errorContext_1 = errorContext$1;
11391
11489
  var Subject = (function (_super) {
11392
- __extends$D(Subject, _super);
11490
+ __extends$E(Subject, _super);
11393
11491
  function Subject() {
11394
11492
  var _this = _super.call(this) || this;
11395
11493
  _this.closed = false;
@@ -11517,7 +11615,7 @@
11517
11615
  }(Observable_1$l.Observable));
11518
11616
  Subject$1.Subject = Subject;
11519
11617
  var AnonymousSubject = (function (_super) {
11520
- __extends$D(AnonymousSubject, _super);
11618
+ __extends$E(AnonymousSubject, _super);
11521
11619
  function AnonymousSubject(destination, source) {
11522
11620
  var _this = _super.call(this) || this;
11523
11621
  _this.destination = destination;
@@ -11546,7 +11644,7 @@
11546
11644
 
11547
11645
  var BehaviorSubject$1 = {};
11548
11646
 
11549
- var __extends$C = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11647
+ var __extends$D = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11550
11648
  var extendStatics = function (d, b) {
11551
11649
  extendStatics = Object.setPrototypeOf ||
11552
11650
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11565,7 +11663,7 @@
11565
11663
  BehaviorSubject$1.BehaviorSubject = void 0;
11566
11664
  var Subject_1$e = Subject$1;
11567
11665
  var BehaviorSubject = (function (_super) {
11568
- __extends$C(BehaviorSubject, _super);
11666
+ __extends$D(BehaviorSubject, _super);
11569
11667
  function BehaviorSubject(_value) {
11570
11668
  var _this = _super.call(this) || this;
11571
11669
  _this._value = _value;
@@ -11614,7 +11712,7 @@
11614
11712
 
11615
11713
  }(dateTimestampProvider));
11616
11714
 
11617
- var __extends$B = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11715
+ var __extends$C = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11618
11716
  var extendStatics = function (d, b) {
11619
11717
  extendStatics = Object.setPrototypeOf ||
11620
11718
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11634,7 +11732,7 @@
11634
11732
  var Subject_1$d = Subject$1;
11635
11733
  var dateTimestampProvider_1$2 = dateTimestampProvider;
11636
11734
  var ReplaySubject = (function (_super) {
11637
- __extends$B(ReplaySubject, _super);
11735
+ __extends$C(ReplaySubject, _super);
11638
11736
  function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {
11639
11737
  if (_bufferSize === void 0) { _bufferSize = Infinity; }
11640
11738
  if (_windowTime === void 0) { _windowTime = Infinity; }
@@ -11690,7 +11788,7 @@
11690
11788
 
11691
11789
  var AsyncSubject$1 = {};
11692
11790
 
11693
- var __extends$A = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11791
+ var __extends$B = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11694
11792
  var extendStatics = function (d, b) {
11695
11793
  extendStatics = Object.setPrototypeOf ||
11696
11794
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11709,7 +11807,7 @@
11709
11807
  AsyncSubject$1.AsyncSubject = void 0;
11710
11808
  var Subject_1$c = Subject$1;
11711
11809
  var AsyncSubject = (function (_super) {
11712
- __extends$A(AsyncSubject, _super);
11810
+ __extends$B(AsyncSubject, _super);
11713
11811
  function AsyncSubject() {
11714
11812
  var _this = _super !== null && _super.apply(this, arguments) || this;
11715
11813
  _this._value = null;
@@ -11753,7 +11851,7 @@
11753
11851
 
11754
11852
  var Action$1 = {};
11755
11853
 
11756
- var __extends$z = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11854
+ var __extends$A = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11757
11855
  var extendStatics = function (d, b) {
11758
11856
  extendStatics = Object.setPrototypeOf ||
11759
11857
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11772,7 +11870,7 @@
11772
11870
  Action$1.Action = void 0;
11773
11871
  var Subscription_1$5 = Subscription$1;
11774
11872
  var Action = (function (_super) {
11775
- __extends$z(Action, _super);
11873
+ __extends$A(Action, _super);
11776
11874
  function Action(scheduler, work) {
11777
11875
  return _super.call(this) || this;
11778
11876
  }
@@ -11830,7 +11928,7 @@
11830
11928
 
11831
11929
  }(intervalProvider));
11832
11930
 
11833
- var __extends$y = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11931
+ var __extends$z = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
11834
11932
  var extendStatics = function (d, b) {
11835
11933
  extendStatics = Object.setPrototypeOf ||
11836
11934
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -11851,7 +11949,7 @@
11851
11949
  var intervalProvider_1 = intervalProvider;
11852
11950
  var arrRemove_1$5 = arrRemove$1;
11853
11951
  var AsyncAction = (function (_super) {
11854
- __extends$y(AsyncAction, _super);
11952
+ __extends$z(AsyncAction, _super);
11855
11953
  function AsyncAction(scheduler, work) {
11856
11954
  var _this = _super.call(this, scheduler, work) || this;
11857
11955
  _this.scheduler = scheduler;
@@ -12016,7 +12114,7 @@
12016
12114
 
12017
12115
  }(immediateProvider));
12018
12116
 
12019
- var __extends$x = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12117
+ var __extends$y = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12020
12118
  var extendStatics = function (d, b) {
12021
12119
  extendStatics = Object.setPrototypeOf ||
12022
12120
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12036,7 +12134,7 @@
12036
12134
  var AsyncAction_1$3 = AsyncAction$1;
12037
12135
  var immediateProvider_1 = immediateProvider;
12038
12136
  var AsapAction = (function (_super) {
12039
- __extends$x(AsapAction, _super);
12137
+ __extends$y(AsapAction, _super);
12040
12138
  function AsapAction(scheduler, work) {
12041
12139
  var _this = _super.call(this, scheduler, work) || this;
12042
12140
  _this.scheduler = scheduler;
@@ -12092,7 +12190,7 @@
12092
12190
  }());
12093
12191
  Scheduler$1.Scheduler = Scheduler;
12094
12192
 
12095
- var __extends$w = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12193
+ var __extends$x = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12096
12194
  var extendStatics = function (d, b) {
12097
12195
  extendStatics = Object.setPrototypeOf ||
12098
12196
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12111,7 +12209,7 @@
12111
12209
  AsyncScheduler$1.AsyncScheduler = void 0;
12112
12210
  var Scheduler_1 = Scheduler$1;
12113
12211
  var AsyncScheduler = (function (_super) {
12114
- __extends$w(AsyncScheduler, _super);
12212
+ __extends$x(AsyncScheduler, _super);
12115
12213
  function AsyncScheduler(SchedulerAction, now) {
12116
12214
  if (now === void 0) { now = Scheduler_1.Scheduler.now; }
12117
12215
  var _this = _super.call(this, SchedulerAction, now) || this;
@@ -12144,7 +12242,7 @@
12144
12242
  }(Scheduler_1.Scheduler));
12145
12243
  AsyncScheduler$1.AsyncScheduler = AsyncScheduler;
12146
12244
 
12147
- var __extends$v = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12245
+ var __extends$w = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12148
12246
  var extendStatics = function (d, b) {
12149
12247
  extendStatics = Object.setPrototypeOf ||
12150
12248
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12163,7 +12261,7 @@
12163
12261
  AsapScheduler$1.AsapScheduler = void 0;
12164
12262
  var AsyncScheduler_1$3 = AsyncScheduler$1;
12165
12263
  var AsapScheduler = (function (_super) {
12166
- __extends$v(AsapScheduler, _super);
12264
+ __extends$w(AsapScheduler, _super);
12167
12265
  function AsapScheduler() {
12168
12266
  return _super !== null && _super.apply(this, arguments) || this;
12169
12267
  }
@@ -12217,7 +12315,7 @@
12217
12315
 
12218
12316
  var QueueAction$1 = {};
12219
12317
 
12220
- var __extends$u = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12318
+ var __extends$v = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12221
12319
  var extendStatics = function (d, b) {
12222
12320
  extendStatics = Object.setPrototypeOf ||
12223
12321
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12236,7 +12334,7 @@
12236
12334
  QueueAction$1.QueueAction = void 0;
12237
12335
  var AsyncAction_1$2 = AsyncAction$1;
12238
12336
  var QueueAction = (function (_super) {
12239
- __extends$u(QueueAction, _super);
12337
+ __extends$v(QueueAction, _super);
12240
12338
  function QueueAction(scheduler, work) {
12241
12339
  var _this = _super.call(this, scheduler, work) || this;
12242
12340
  _this.scheduler = scheduler;
@@ -12270,7 +12368,7 @@
12270
12368
 
12271
12369
  var QueueScheduler$1 = {};
12272
12370
 
12273
- var __extends$t = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12371
+ var __extends$u = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12274
12372
  var extendStatics = function (d, b) {
12275
12373
  extendStatics = Object.setPrototypeOf ||
12276
12374
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12289,7 +12387,7 @@
12289
12387
  QueueScheduler$1.QueueScheduler = void 0;
12290
12388
  var AsyncScheduler_1$2 = AsyncScheduler$1;
12291
12389
  var QueueScheduler = (function (_super) {
12292
- __extends$t(QueueScheduler, _super);
12390
+ __extends$u(QueueScheduler, _super);
12293
12391
  function QueueScheduler() {
12294
12392
  return _super !== null && _super.apply(this, arguments) || this;
12295
12393
  }
@@ -12311,7 +12409,7 @@
12311
12409
 
12312
12410
  var AnimationFrameAction$1 = {};
12313
12411
 
12314
- var __extends$s = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12412
+ var __extends$t = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12315
12413
  var extendStatics = function (d, b) {
12316
12414
  extendStatics = Object.setPrototypeOf ||
12317
12415
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12331,7 +12429,7 @@
12331
12429
  var AsyncAction_1$1 = AsyncAction$1;
12332
12430
  var animationFrameProvider_1 = animationFrameProvider;
12333
12431
  var AnimationFrameAction = (function (_super) {
12334
- __extends$s(AnimationFrameAction, _super);
12432
+ __extends$t(AnimationFrameAction, _super);
12335
12433
  function AnimationFrameAction(scheduler, work) {
12336
12434
  var _this = _super.call(this, scheduler, work) || this;
12337
12435
  _this.scheduler = scheduler;
@@ -12365,7 +12463,7 @@
12365
12463
 
12366
12464
  var AnimationFrameScheduler$1 = {};
12367
12465
 
12368
- var __extends$r = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12466
+ var __extends$s = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12369
12467
  var extendStatics = function (d, b) {
12370
12468
  extendStatics = Object.setPrototypeOf ||
12371
12469
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12384,7 +12482,7 @@
12384
12482
  AnimationFrameScheduler$1.AnimationFrameScheduler = void 0;
12385
12483
  var AsyncScheduler_1$1 = AsyncScheduler$1;
12386
12484
  var AnimationFrameScheduler = (function (_super) {
12387
- __extends$r(AnimationFrameScheduler, _super);
12485
+ __extends$s(AnimationFrameScheduler, _super);
12388
12486
  function AnimationFrameScheduler() {
12389
12487
  return _super !== null && _super.apply(this, arguments) || this;
12390
12488
  }
@@ -12424,7 +12522,7 @@
12424
12522
 
12425
12523
  var VirtualTimeScheduler$1 = {};
12426
12524
 
12427
- var __extends$q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12525
+ var __extends$r = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
12428
12526
  var extendStatics = function (d, b) {
12429
12527
  extendStatics = Object.setPrototypeOf ||
12430
12528
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -12445,7 +12543,7 @@
12445
12543
  var Subscription_1$4 = Subscription$1;
12446
12544
  var AsyncScheduler_1 = AsyncScheduler$1;
12447
12545
  var VirtualTimeScheduler = (function (_super) {
12448
- __extends$q(VirtualTimeScheduler, _super);
12546
+ __extends$r(VirtualTimeScheduler, _super);
12449
12547
  function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
12450
12548
  if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; }
12451
12549
  if (maxFrames === void 0) { maxFrames = Infinity; }
@@ -12478,7 +12576,7 @@
12478
12576
  }(AsyncScheduler_1.AsyncScheduler));
12479
12577
  VirtualTimeScheduler$1.VirtualTimeScheduler = VirtualTimeScheduler;
12480
12578
  var VirtualAction = (function (_super) {
12481
- __extends$q(VirtualAction, _super);
12579
+ __extends$r(VirtualAction, _super);
12482
12580
  function VirtualAction(scheduler, work, index) {
12483
12581
  if (index === void 0) { index = (scheduler.index += 1); }
12484
12582
  var _this = _super.call(this, scheduler, work) || this;
@@ -18311,7 +18409,7 @@
18311
18409
  * limitations under the License.
18312
18410
  */
18313
18411
  /* eslint-disable-next-line no-unused-vars */
18314
- var neo4j_driver_core_1$F = lib$1;
18412
+ var neo4j_driver_core_1$G = lib$1;
18315
18413
  var rxjs_1$3 = cjs;
18316
18414
  var operators_1$2 = operators;
18317
18415
  var States = {
@@ -18445,7 +18543,7 @@
18445
18543
  });
18446
18544
  }
18447
18545
  else if (recordsObserver) {
18448
- recordsObserver.error((0, neo4j_driver_core_1$F.newError)('Streaming has already started/consumed with a previous records or summary subscription.'));
18546
+ recordsObserver.error((0, neo4j_driver_core_1$G.newError)('Streaming has already started/consumed with a previous records or summary subscription.'));
18449
18547
  }
18450
18548
  return function () {
18451
18549
  subscriptions.forEach(function (s) { return s.unsubscribe(); });
@@ -18636,7 +18734,7 @@
18636
18734
 
18637
18735
  var transactionRx = {};
18638
18736
 
18639
- var __importDefault$I = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
18737
+ var __importDefault$K = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
18640
18738
  return (mod && mod.__esModule) ? mod : { "default": mod };
18641
18739
  };
18642
18740
  Object.defineProperty(transactionRx, "__esModule", { value: true });
@@ -18659,9 +18757,9 @@
18659
18757
  * limitations under the License.
18660
18758
  */
18661
18759
  var rxjs_1$2 = cjs;
18662
- var result_rx_1$1 = __importDefault$I(resultRx);
18760
+ var result_rx_1$1 = __importDefault$K(resultRx);
18663
18761
  // eslint-disable-next-line no-unused-vars
18664
- __importDefault$I(lib$1);
18762
+ __importDefault$K(lib$1);
18665
18763
  /**
18666
18764
  * A reactive transaction, which provides the same functionality as {@link Transaction} but through a Reactive API.
18667
18765
  */
@@ -18760,7 +18858,7 @@
18760
18858
 
18761
18859
  var transactionManagedRx = {};
18762
18860
 
18763
- var __importDefault$H = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
18861
+ var __importDefault$J = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
18764
18862
  return (mod && mod.__esModule) ? mod : { "default": mod };
18765
18863
  };
18766
18864
  Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
@@ -18783,9 +18881,9 @@
18783
18881
  * limitations under the License.
18784
18882
  */
18785
18883
  // eslint-disable-next-line no-unused-vars
18786
- __importDefault$H(resultRx);
18884
+ __importDefault$J(resultRx);
18787
18885
  // eslint-disable-next-line no-unused-vars
18788
- __importDefault$H(transactionRx);
18886
+ __importDefault$J(transactionRx);
18789
18887
  /**
18790
18888
  * Represents a rx transaction that is managed by the transaction executor.
18791
18889
  *
@@ -18845,13 +18943,13 @@
18845
18943
  * limitations under the License.
18846
18944
  */
18847
18945
  Object.defineProperty(retryLogicRx, "__esModule", { value: true });
18848
- var neo4j_driver_core_1$E = lib$1;
18946
+ var neo4j_driver_core_1$F = lib$1;
18849
18947
  // eslint-disable-next-line no-unused-vars
18850
18948
  var rxjs_1$1 = cjs;
18851
18949
  var operators_1$1 = operators;
18852
18950
  // eslint-disable-next-line no-unused-vars
18853
- neo4j_driver_core_1$E.internal.logger.Logger;
18854
- var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$E.error.SERVICE_UNAVAILABLE;
18951
+ neo4j_driver_core_1$F.internal.logger.Logger;
18952
+ var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$F.error.SERVICE_UNAVAILABLE;
18855
18953
  var DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000; // 30 seconds
18856
18954
  var DEFAULT_INITIAL_RETRY_DELAY_MS = 1000; // 1 seconds
18857
18955
  var DEFAULT_RETRY_DELAY_MULTIPLIER = 2.0;
@@ -18882,13 +18980,13 @@
18882
18980
  var retryCount = 1;
18883
18981
  var delayDuration = _this._initialDelay;
18884
18982
  return failedWork.pipe((0, operators_1$1.mergeMap)(function (err) {
18885
- if (!(0, neo4j_driver_core_1$E.isRetriableError)(err)) {
18983
+ if (!(0, neo4j_driver_core_1$F.isRetriableError)(err)) {
18886
18984
  return (0, rxjs_1$1.throwError)(function () { return err; });
18887
18985
  }
18888
18986
  handledExceptions.push(err);
18889
18987
  if (retryCount >= 2 &&
18890
18988
  Date.now() - startTime >= _this._maxRetryTimeout) {
18891
- var error_1 = (0, neo4j_driver_core_1$E.newError)("Failed after retried for ".concat(retryCount, " times in ").concat(_this._maxRetryTimeout, " ms. Make sure that your database is online and retry again."), SERVICE_UNAVAILABLE$5);
18989
+ var error_1 = (0, neo4j_driver_core_1$F.newError)("Failed after retried for ".concat(retryCount, " times in ").concat(_this._maxRetryTimeout, " ms. Make sure that your database is online and retry again."), SERVICE_UNAVAILABLE$5);
18892
18990
  error_1.seenErrors = handledExceptions;
18893
18991
  return (0, rxjs_1$1.throwError)(function () { return error_1; });
18894
18992
  }
@@ -18916,7 +19014,7 @@
18916
19014
  return defaultValue;
18917
19015
  }
18918
19016
 
18919
- var __importDefault$G = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
19017
+ var __importDefault$I = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
18920
19018
  return (mod && mod.__esModule) ? mod : { "default": mod };
18921
19019
  };
18922
19020
  Object.defineProperty(sessionRx, "__esModule", { value: true });
@@ -18940,13 +19038,13 @@
18940
19038
  */
18941
19039
  var rxjs_1 = cjs;
18942
19040
  var operators_1 = operators;
18943
- var result_rx_1 = __importDefault$G(resultRx);
19041
+ var result_rx_1 = __importDefault$I(resultRx);
18944
19042
  // eslint-disable-next-line no-unused-vars
18945
- var neo4j_driver_core_1$D = lib$1;
18946
- var transaction_rx_1 = __importDefault$G(transactionRx);
18947
- var transaction_managed_rx_1 = __importDefault$G(transactionManagedRx);
18948
- var retry_logic_rx_1 = __importDefault$G(retryLogicRx);
18949
- var _a$c = neo4j_driver_core_1$D.internal.constants, ACCESS_MODE_READ$1 = _a$c.ACCESS_MODE_READ, ACCESS_MODE_WRITE$1 = _a$c.ACCESS_MODE_WRITE, TxConfig$3 = neo4j_driver_core_1$D.internal.txConfig.TxConfig;
19043
+ var neo4j_driver_core_1$E = lib$1;
19044
+ var transaction_rx_1 = __importDefault$I(transactionRx);
19045
+ var transaction_managed_rx_1 = __importDefault$I(transactionManagedRx);
19046
+ var retry_logic_rx_1 = __importDefault$I(retryLogicRx);
19047
+ var _a$c = neo4j_driver_core_1$E.internal.constants, ACCESS_MODE_READ$1 = _a$c.ACCESS_MODE_READ, ACCESS_MODE_WRITE$1 = _a$c.ACCESS_MODE_WRITE, TxConfig$3 = neo4j_driver_core_1$E.internal.txConfig.TxConfig;
18950
19048
  /**
18951
19049
  * A Reactive session, which provides the same functionality as {@link Session} but through a Reactive API.
18952
19050
  */
@@ -19173,7 +19271,7 @@
19173
19271
  * See the License for the specific language governing permissions and
19174
19272
  * limitations under the License.
19175
19273
  */
19176
- var __extends$p = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
19274
+ var __extends$q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
19177
19275
  var extendStatics = function (d, b) {
19178
19276
  extendStatics = Object.setPrototypeOf ||
19179
19277
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -19188,15 +19286,15 @@
19188
19286
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19189
19287
  };
19190
19288
  })();
19191
- var __importDefault$F = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
19289
+ var __importDefault$H = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
19192
19290
  return (mod && mod.__esModule) ? mod : { "default": mod };
19193
19291
  };
19194
19292
  Object.defineProperty(driver$1, "__esModule", { value: true });
19195
19293
  driver$1.WRITE = driver$1.READ = driver$1.Driver = void 0;
19196
- var neo4j_driver_core_1$C = lib$1;
19197
- var session_rx_1 = __importDefault$F(sessionRx);
19198
- var FETCH_ALL$5 = neo4j_driver_core_1$C.internal.constants.FETCH_ALL;
19199
- var READ$2 = neo4j_driver_core_1$C.driver.READ, WRITE$2 = neo4j_driver_core_1$C.driver.WRITE;
19294
+ var neo4j_driver_core_1$D = lib$1;
19295
+ var session_rx_1 = __importDefault$H(sessionRx);
19296
+ var FETCH_ALL$5 = neo4j_driver_core_1$D.internal.constants.FETCH_ALL;
19297
+ var READ$2 = neo4j_driver_core_1$D.driver.READ, WRITE$2 = neo4j_driver_core_1$D.driver.WRITE;
19200
19298
  driver$1.READ = READ$2;
19201
19299
  driver$1.WRITE = WRITE$2;
19202
19300
  /**
@@ -19210,7 +19308,7 @@
19210
19308
  * @access public
19211
19309
  */
19212
19310
  var Driver = /** @class */ (function (_super) {
19213
- __extends$p(Driver, _super);
19311
+ __extends$q(Driver, _super);
19214
19312
  function Driver() {
19215
19313
  return _super !== null && _super.apply(this, arguments) || this;
19216
19314
  }
@@ -19247,7 +19345,7 @@
19247
19345
  });
19248
19346
  };
19249
19347
  return Driver;
19250
- }(neo4j_driver_core_1$C.Driver));
19348
+ }(neo4j_driver_core_1$D.Driver));
19251
19349
  driver$1.Driver = Driver;
19252
19350
  /**
19253
19351
  * @private
@@ -19295,7 +19393,7 @@
19295
19393
  // This is set up this way to keep the version in the code in
19296
19394
  // sync with the npm package version, and to allow the build
19297
19395
  // system to control version names at packaging time.
19298
- version$1.default = '5.8.0';
19396
+ version$1.default = '5.9.0';
19299
19397
 
19300
19398
  var lib = {};
19301
19399
 
@@ -19399,7 +19497,7 @@
19399
19497
  }());
19400
19498
  roundRobinArrayIndex.default = RoundRobinArrayIndex;
19401
19499
 
19402
- var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
19500
+ var __extends$p = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
19403
19501
  var extendStatics = function (d, b) {
19404
19502
  extendStatics = Object.setPrototypeOf ||
19405
19503
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -19414,7 +19512,7 @@
19414
19512
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
19415
19513
  };
19416
19514
  })();
19417
- var __importDefault$E = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
19515
+ var __importDefault$G = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
19418
19516
  return (mod && mod.__esModule) ? mod : { "default": mod };
19419
19517
  };
19420
19518
  Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value: true });
@@ -19436,10 +19534,10 @@
19436
19534
  * See the License for the specific language governing permissions and
19437
19535
  * limitations under the License.
19438
19536
  */
19439
- var round_robin_array_index_1 = __importDefault$E(roundRobinArrayIndex);
19440
- var load_balancing_strategy_1$1 = __importDefault$E(loadBalancingStrategy);
19537
+ var round_robin_array_index_1 = __importDefault$G(roundRobinArrayIndex);
19538
+ var load_balancing_strategy_1$1 = __importDefault$G(loadBalancingStrategy);
19441
19539
  var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
19442
- __extends$o(LeastConnectedLoadBalancingStrategy, _super);
19540
+ __extends$p(LeastConnectedLoadBalancingStrategy, _super);
19443
19541
  /**
19444
19542
  * @constructor
19445
19543
  * @param {Pool} connectionPool the connection pool of this driver.
@@ -19495,7 +19593,7 @@
19495
19593
  }(load_balancing_strategy_1$1.default));
19496
19594
  leastConnectedLoadBalancingStrategy.default = LeastConnectedLoadBalancingStrategy;
19497
19595
 
19498
- var __importDefault$D = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
19596
+ var __importDefault$F = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
19499
19597
  return (mod && mod.__esModule) ? mod : { "default": mod };
19500
19598
  };
19501
19599
  Object.defineProperty(loadBalancing, "__esModule", { value: true });
@@ -19518,9 +19616,9 @@
19518
19616
  * See the License for the specific language governing permissions and
19519
19617
  * limitations under the License.
19520
19618
  */
19521
- var load_balancing_strategy_1 = __importDefault$D(loadBalancingStrategy);
19619
+ var load_balancing_strategy_1 = __importDefault$F(loadBalancingStrategy);
19522
19620
  loadBalancing.LoadBalancingStrategy = load_balancing_strategy_1.default;
19523
- var least_connected_load_balancing_strategy_1 = __importDefault$D(leastConnectedLoadBalancingStrategy);
19621
+ var least_connected_load_balancing_strategy_1 = __importDefault$F(leastConnectedLoadBalancingStrategy);
19524
19622
  loadBalancing.LeastConnectedLoadBalancingStrategy = least_connected_load_balancing_strategy_1.default;
19525
19623
  loadBalancing.default = least_connected_load_balancing_strategy_1.default;
19526
19624
 
@@ -21907,7 +22005,7 @@
21907
22005
  * See the License for the specific language governing permissions and
21908
22006
  * limitations under the License.
21909
22007
  */
21910
- var __extends$n = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
22008
+ var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
21911
22009
  var extendStatics = function (d, b) {
21912
22010
  extendStatics = Object.setPrototypeOf ||
21913
22011
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -22243,7 +22341,7 @@
22243
22341
  * @access private
22244
22342
  */
22245
22343
  var SliceBuffer = /** @class */ (function (_super) {
22246
- __extends$n(SliceBuffer, _super);
22344
+ __extends$o(SliceBuffer, _super);
22247
22345
  function SliceBuffer(start, length, inner) {
22248
22346
  var _this = _super.call(this, length) || this;
22249
22347
  _this._start = start;
@@ -22289,12 +22387,12 @@
22289
22387
  * See the License for the specific language governing permissions and
22290
22388
  * limitations under the License.
22291
22389
  */
22292
- var __importDefault$C = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
22390
+ var __importDefault$E = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
22293
22391
  return (mod && mod.__esModule) ? mod : { "default": mod };
22294
22392
  };
22295
22393
  Object.defineProperty(buf, "__esModule", { value: true });
22296
22394
  buf.BaseBuffer = void 0;
22297
- var base_buf_1$1 = __importDefault$C(baseBuf);
22395
+ var base_buf_1$1 = __importDefault$E(baseBuf);
22298
22396
  buf.BaseBuffer = base_buf_1$1.default;
22299
22397
  buf.default = base_buf_1$1.default;
22300
22398
 
@@ -22316,7 +22414,7 @@
22316
22414
  * See the License for the specific language governing permissions and
22317
22415
  * limitations under the License.
22318
22416
  */
22319
- var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
22417
+ var __extends$n = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
22320
22418
  var extendStatics = function (d, b) {
22321
22419
  extendStatics = Object.setPrototypeOf ||
22322
22420
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -22331,15 +22429,15 @@
22331
22429
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
22332
22430
  };
22333
22431
  })();
22334
- var __importDefault$B = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
22432
+ var __importDefault$D = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
22335
22433
  return (mod && mod.__esModule) ? mod : { "default": mod };
22336
22434
  };
22337
22435
  Object.defineProperty(channelBuf, "__esModule", { value: true });
22338
22436
  channelBuf.alloc = void 0;
22339
- var buffer_1$1 = __importDefault$B(buffer);
22340
- var buf_1$1 = __importDefault$B(buf);
22437
+ var buffer_1$1 = __importDefault$D(buffer);
22438
+ var buf_1$1 = __importDefault$D(buf);
22341
22439
  var ChannelBuffer = /** @class */ (function (_super) {
22342
- __extends$m(ChannelBuffer, _super);
22440
+ __extends$n(ChannelBuffer, _super);
22343
22441
  function ChannelBuffer(arg) {
22344
22442
  var _this = this;
22345
22443
  var buffer = newChannelJSBuffer(arg);
@@ -22407,7 +22505,7 @@
22407
22505
  }
22408
22506
  }
22409
22507
 
22410
- var __importDefault$A = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
22508
+ var __importDefault$C = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
22411
22509
  return (mod && mod.__esModule) ? mod : { "default": mod };
22412
22510
  };
22413
22511
  Object.defineProperty(browserChannel, "__esModule", { value: true });
@@ -22430,9 +22528,9 @@
22430
22528
  * limitations under the License.
22431
22529
  */
22432
22530
  /* eslint-env browser */
22433
- var channel_buf_1$3 = __importDefault$A(channelBuf);
22434
- var neo4j_driver_core_1$B = lib$1;
22435
- var _a$b = neo4j_driver_core_1$B.internal.util, ENCRYPTION_OFF$1 = _a$b.ENCRYPTION_OFF, ENCRYPTION_ON$1 = _a$b.ENCRYPTION_ON;
22531
+ var channel_buf_1$3 = __importDefault$C(channelBuf);
22532
+ var neo4j_driver_core_1$C = lib$1;
22533
+ var _a$b = neo4j_driver_core_1$C.internal.util, ENCRYPTION_OFF$1 = _a$b.ENCRYPTION_OFF, ENCRYPTION_ON$1 = _a$b.ENCRYPTION_ON;
22436
22534
  var WS_OPEN = 1;
22437
22535
  var WS_CLOSED = 3;
22438
22536
  /**
@@ -22497,7 +22595,7 @@
22497
22595
  WebSocketChannel.prototype._handleConnectionError = function () {
22498
22596
  if (this._connectionTimeoutFired) {
22499
22597
  // timeout fired - not connected within configured time
22500
- this._error = (0, neo4j_driver_core_1$B.newError)("Failed to establish connection in ".concat(this._config.connectionTimeout, "ms"), this._config.connectionErrorCode);
22598
+ this._error = (0, neo4j_driver_core_1$C.newError)("Failed to establish connection in ".concat(this._config.connectionTimeout, "ms"), this._config.connectionErrorCode);
22501
22599
  if (this.onerror) {
22502
22600
  this.onerror(this._error);
22503
22601
  }
@@ -22506,7 +22604,7 @@
22506
22604
  // onerror triggers on websocket close as well.. don't get me started.
22507
22605
  if (this._open && !this._timedout) {
22508
22606
  // http://stackoverflow.com/questions/25779831/how-to-catch-websocket-connection-to-ws-xxxnn-failed-connection-closed-be
22509
- this._error = (0, neo4j_driver_core_1$B.newError)('WebSocket connection failure. Due to security ' +
22607
+ this._error = (0, neo4j_driver_core_1$C.newError)('WebSocket connection failure. Due to security ' +
22510
22608
  'constraints in your web browser, the reason for the failure is not available ' +
22511
22609
  'to this Neo4j Driver. Please use your browsers development console to determine ' +
22512
22610
  'the root cause of the failure. Common reasons include the database being ' +
@@ -22545,7 +22643,7 @@
22545
22643
  }
22546
22644
  }
22547
22645
  else {
22548
- throw (0, neo4j_driver_core_1$B.newError)("Don't know how to send buffer: " + buffer);
22646
+ throw (0, neo4j_driver_core_1$C.newError)("Don't know how to send buffer: " + buffer);
22549
22647
  }
22550
22648
  };
22551
22649
  /**
@@ -22555,10 +22653,10 @@
22555
22653
  WebSocketChannel.prototype.close = function () {
22556
22654
  var _this = this;
22557
22655
  return new Promise(function (resolve, reject) {
22656
+ _this._clearConnectionTimeout();
22558
22657
  if (_this._ws && _this._ws.readyState !== WS_CLOSED) {
22559
22658
  _this._open = false;
22560
22659
  _this.stopReceiveTimeout();
22561
- _this._clearConnectionTimeout();
22562
22660
  _this._ws.onclose = function () { return resolve(); };
22563
22661
  _this._ws.close();
22564
22662
  }
@@ -22611,7 +22709,7 @@
22611
22709
  _this._receiveTimeoutId = null;
22612
22710
  _this._timedout = true;
22613
22711
  _this.stopReceiveTimeout();
22614
- _this._error = (0, neo4j_driver_core_1$B.newError)("Connection lost. Server didn't respond in ".concat(_this._receiveTimeout, "ms"), _this._config.connectionErrorCode);
22712
+ _this._error = (0, neo4j_driver_core_1$C.newError)("Connection lost. Server didn't respond in ".concat(_this._receiveTimeout, "ms"), _this._config.connectionErrorCode);
22615
22713
  _this.close();
22616
22714
  if (_this.onerror) {
22617
22715
  _this.onerror(_this._error);
@@ -22720,7 +22818,7 @@
22720
22818
  return { scheme: 'wss', error: null };
22721
22819
  }
22722
22820
  else {
22723
- var error = (0, neo4j_driver_core_1$B.newError)('The browser version of this driver only supports one trust ' +
22821
+ var error = (0, neo4j_driver_core_1$C.newError)('The browser version of this driver only supports one trust ' +
22724
22822
  "strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. " +
22725
22823
  trust +
22726
22824
  ' is not supported. Please ' +
@@ -22797,7 +22895,7 @@
22797
22895
  * See the License for the specific language governing permissions and
22798
22896
  * limitations under the License.
22799
22897
  */
22800
- var __extends$l = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
22898
+ var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
22801
22899
  var extendStatics = function (d, b) {
22802
22900
  extendStatics = Object.setPrototypeOf ||
22803
22901
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -22813,10 +22911,10 @@
22813
22911
  };
22814
22912
  })();
22815
22913
  Object.defineProperty(browserHostNameResolver, "__esModule", { value: true });
22816
- var neo4j_driver_core_1$A = lib$1;
22817
- var BaseHostNameResolver = neo4j_driver_core_1$A.internal.resolver.BaseHostNameResolver;
22914
+ var neo4j_driver_core_1$B = lib$1;
22915
+ var BaseHostNameResolver = neo4j_driver_core_1$B.internal.resolver.BaseHostNameResolver;
22818
22916
  var BrowserHostNameResolver = /** @class */ (function (_super) {
22819
- __extends$l(BrowserHostNameResolver, _super);
22917
+ __extends$m(BrowserHostNameResolver, _super);
22820
22918
  function BrowserHostNameResolver() {
22821
22919
  return _super !== null && _super.apply(this, arguments) || this;
22822
22920
  }
@@ -22845,13 +22943,13 @@
22845
22943
  * See the License for the specific language governing permissions and
22846
22944
  * limitations under the License.
22847
22945
  */
22848
- var __importDefault$z = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
22946
+ var __importDefault$B = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
22849
22947
  return (mod && mod.__esModule) ? mod : { "default": mod };
22850
22948
  };
22851
22949
  Object.defineProperty(browser, "__esModule", { value: true });
22852
22950
  browser.HostNameResolver = browser.Channel = void 0;
22853
- var browser_channel_1 = __importDefault$z(browserChannel);
22854
- var browser_host_name_resolver_1 = __importDefault$z(browserHostNameResolver);
22951
+ var browser_channel_1 = __importDefault$B(browserChannel);
22952
+ var browser_host_name_resolver_1 = __importDefault$B(browserHostNameResolver);
22855
22953
  /*
22856
22954
 
22857
22955
  This module exports a set of components to be used in browser environment.
@@ -22887,7 +22985,7 @@
22887
22985
  * See the License for the specific language governing permissions and
22888
22986
  * limitations under the License.
22889
22987
  */
22890
- var __extends$k = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
22988
+ var __extends$l = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
22891
22989
  var extendStatics = function (d, b) {
22892
22990
  extendStatics = Object.setPrototypeOf ||
22893
22991
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -22909,7 +23007,7 @@
22909
23007
  * Buffer that combines multiple buffers, exposing them as one single buffer.
22910
23008
  */
22911
23009
  var CombinedBuffer = /** @class */ (function (_super) {
22912
- __extends$k(CombinedBuffer, _super);
23010
+ __extends$l(CombinedBuffer, _super);
22913
23011
  function CombinedBuffer(buffers) {
22914
23012
  var _this = this;
22915
23013
  var length = 0;
@@ -22977,7 +23075,7 @@
22977
23075
  * See the License for the specific language governing permissions and
22978
23076
  * limitations under the License.
22979
23077
  */
22980
- var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
23078
+ var __extends$k = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
22981
23079
  var extendStatics = function (d, b) {
22982
23080
  extendStatics = Object.setPrototypeOf ||
22983
23081
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -22992,14 +23090,14 @@
22992
23090
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
22993
23091
  };
22994
23092
  })();
22995
- var __importDefault$y = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
23093
+ var __importDefault$A = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
22996
23094
  return (mod && mod.__esModule) ? mod : { "default": mod };
22997
23095
  };
22998
23096
  Object.defineProperty(chunking, "__esModule", { value: true });
22999
23097
  chunking.Dechunker = chunking.Chunker = void 0;
23000
- var base_buf_1 = __importDefault$y(baseBuf);
23098
+ var base_buf_1 = __importDefault$A(baseBuf);
23001
23099
  var channel_buf_1$1 = channelBuf;
23002
- var combined_buf_1 = __importDefault$y(combinedBuf);
23100
+ var combined_buf_1 = __importDefault$A(combinedBuf);
23003
23101
  var _CHUNK_HEADER_SIZE = 2;
23004
23102
  var _MESSAGE_BOUNDARY = 0x00;
23005
23103
  var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/maximum-packet-size-for-a-tcp-connection
@@ -23008,7 +23106,7 @@
23008
23106
  * @access private
23009
23107
  */
23010
23108
  var Chunker = /** @class */ (function (_super) {
23011
- __extends$j(Chunker, _super);
23109
+ __extends$k(Chunker, _super);
23012
23110
  function Chunker(channel, bufferSize) {
23013
23111
  var _this = _super.call(this, 0) || this;
23014
23112
  _this._bufferSize = bufferSize || _DEFAULT_BUFFER_SIZE;
@@ -23193,9 +23291,9 @@
23193
23291
  * limitations under the License.
23194
23292
  */
23195
23293
  Object.defineProperty(channelConfig, "__esModule", { value: true });
23196
- var neo4j_driver_core_1$z = lib$1;
23197
- var _a$a = neo4j_driver_core_1$z.internal.util, ENCRYPTION_OFF = _a$a.ENCRYPTION_OFF, ENCRYPTION_ON = _a$a.ENCRYPTION_ON;
23198
- var SERVICE_UNAVAILABLE$4 = neo4j_driver_core_1$z.error.SERVICE_UNAVAILABLE;
23294
+ var neo4j_driver_core_1$A = lib$1;
23295
+ var _a$a = neo4j_driver_core_1$A.internal.util, ENCRYPTION_OFF = _a$a.ENCRYPTION_OFF, ENCRYPTION_ON = _a$a.ENCRYPTION_ON;
23296
+ var SERVICE_UNAVAILABLE$4 = neo4j_driver_core_1$A.error.SERVICE_UNAVAILABLE;
23199
23297
  var ALLOWED_VALUES_ENCRYPTED = [
23200
23298
  null,
23201
23299
  undefined,
@@ -23233,14 +23331,14 @@
23233
23331
  function extractEncrypted(driverConfig) {
23234
23332
  var value = driverConfig.encrypted;
23235
23333
  if (ALLOWED_VALUES_ENCRYPTED.indexOf(value) === -1) {
23236
- throw (0, neo4j_driver_core_1$z.newError)("Illegal value of the encrypted setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_ENCRYPTED));
23334
+ throw (0, neo4j_driver_core_1$A.newError)("Illegal value of the encrypted setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_ENCRYPTED));
23237
23335
  }
23238
23336
  return value;
23239
23337
  }
23240
23338
  function extractTrust(driverConfig) {
23241
23339
  var value = driverConfig.trust;
23242
23340
  if (ALLOWED_VALUES_TRUST.indexOf(value) === -1) {
23243
- throw (0, neo4j_driver_core_1$z.newError)("Illegal value of the trust setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_TRUST));
23341
+ throw (0, neo4j_driver_core_1$A.newError)("Illegal value of the trust setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_TRUST));
23244
23342
  }
23245
23343
  return value;
23246
23344
  }
@@ -23617,13 +23715,13 @@
23617
23715
  * See the License for the specific language governing permissions and
23618
23716
  * limitations under the License.
23619
23717
  */
23620
- var __importDefault$x = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
23718
+ var __importDefault$z = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
23621
23719
  return (mod && mod.__esModule) ? mod : { "default": mod };
23622
23720
  };
23623
23721
  Object.defineProperty(utf8, "__esModule", { value: true });
23624
- var channel_buf_1 = __importDefault$x(channelBuf);
23625
- var neo4j_driver_core_1$y = lib$1;
23626
- var buffer_1 = __importDefault$x(buffer);
23722
+ var channel_buf_1 = __importDefault$z(channelBuf);
23723
+ var neo4j_driver_core_1$z = lib$1;
23724
+ var buffer_1 = __importDefault$z(buffer);
23627
23725
  var string_decoder_1 = string_decoder;
23628
23726
  var decoder = new string_decoder_1.StringDecoder('utf8');
23629
23727
  function encode(str) {
@@ -23637,7 +23735,7 @@
23637
23735
  return decodeCombinedBuffer(buffer, length);
23638
23736
  }
23639
23737
  else {
23640
- throw (0, neo4j_driver_core_1$y.newError)("Don't know how to decode strings from '".concat(buffer, "'"));
23738
+ throw (0, neo4j_driver_core_1$z.newError)("Don't know how to decode strings from '".concat(buffer, "'"));
23641
23739
  }
23642
23740
  }
23643
23741
  function decodeChannelBuffer(buffer, length) {
@@ -23758,7 +23856,7 @@
23758
23856
  */
23759
23857
  Object.defineProperty(handshake$1, "__esModule", { value: true });
23760
23858
  var channel_1$3 = channel;
23761
- var neo4j_driver_core_1$x = lib$1;
23859
+ var neo4j_driver_core_1$y = lib$1;
23762
23860
  var BOLT_MAGIC_PREAMBLE = 0x6060b017;
23763
23861
  function version(major, minor) {
23764
23862
  return {
@@ -23768,7 +23866,7 @@
23768
23866
  }
23769
23867
  function createHandshakeMessage(versions) {
23770
23868
  if (versions.length > 4) {
23771
- throw (0, neo4j_driver_core_1$x.newError)('It should not have more than 4 versions of the protocol');
23869
+ throw (0, neo4j_driver_core_1$y.newError)('It should not have more than 4 versions of the protocol');
23772
23870
  }
23773
23871
  var handshakeBuffer = (0, channel_1$3.alloc)(5 * 4);
23774
23872
  handshakeBuffer.writeInt32(BOLT_MAGIC_PREAMBLE);
@@ -23795,7 +23893,7 @@
23795
23893
  buffer.readUInt8()
23796
23894
  ];
23797
23895
  if (h[0] === 0x48 && h[1] === 0x54 && h[2] === 0x54 && h[3] === 0x50) {
23798
- throw (0, neo4j_driver_core_1$x.newError)('Server responded HTTP. Make sure you are not trying to connect to the http endpoint ' +
23896
+ throw (0, neo4j_driver_core_1$y.newError)('Server responded HTTP. Make sure you are not trying to connect to the http endpoint ' +
23799
23897
  '(HTTP defaults to port 7474 whereas BOLT defaults to port 7687)');
23800
23898
  }
23801
23899
  return Number(h[3] + '.' + h[2]);
@@ -23806,7 +23904,7 @@
23806
23904
  */
23807
23905
  function newHandshakeBuffer() {
23808
23906
  return createHandshakeMessage([
23809
- [version(5, 2), version(5, 0)],
23907
+ [version(5, 3), version(5, 0)],
23810
23908
  [version(4, 4), version(4, 2)],
23811
23909
  version(4, 1),
23812
23910
  version(3, 0)
@@ -23870,7 +23968,7 @@
23870
23968
 
23871
23969
  var routingTableRaw = {};
23872
23970
 
23873
- var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
23971
+ var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
23874
23972
  var extendStatics = function (d, b) {
23875
23973
  extendStatics = Object.setPrototypeOf ||
23876
23974
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -23885,7 +23983,7 @@
23885
23983
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
23886
23984
  };
23887
23985
  })();
23888
- var __importDefault$w = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
23986
+ var __importDefault$y = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
23889
23987
  return (mod && mod.__esModule) ? mod : { "default": mod };
23890
23988
  };
23891
23989
  Object.defineProperty(routingTableRaw, "__esModule", { value: true });
@@ -23908,7 +24006,7 @@
23908
24006
  * limitations under the License.
23909
24007
  */
23910
24008
  // eslint-disable-next-line no-unused-vars
23911
- __importDefault$w(lib$1);
24009
+ __importDefault$y(lib$1);
23912
24010
  /**
23913
24011
  * Represente the raw version of the routing table
23914
24012
  */
@@ -24003,7 +24101,7 @@
24003
24101
  * Get the raw routing table information from route message response
24004
24102
  */
24005
24103
  var ResponseRawRoutingTable = /** @class */ (function (_super) {
24006
- __extends$i(ResponseRawRoutingTable, _super);
24104
+ __extends$j(ResponseRawRoutingTable, _super);
24007
24105
  function ResponseRawRoutingTable(response) {
24008
24106
  var _this = _super.call(this) || this;
24009
24107
  _this._response = response;
@@ -24043,7 +24141,7 @@
24043
24141
  * Null routing table
24044
24142
  */
24045
24143
  var NullRawRoutingTable = /** @class */ (function (_super) {
24046
- __extends$i(NullRawRoutingTable, _super);
24144
+ __extends$j(NullRawRoutingTable, _super);
24047
24145
  function NullRawRoutingTable() {
24048
24146
  return _super !== null && _super.apply(this, arguments) || this;
24049
24147
  }
@@ -24060,7 +24158,7 @@
24060
24158
  * Get the raw routing table information from the record
24061
24159
  */
24062
24160
  var RecordRawRoutingTable = /** @class */ (function (_super) {
24063
- __extends$i(RecordRawRoutingTable, _super);
24161
+ __extends$j(RecordRawRoutingTable, _super);
24064
24162
  function RecordRawRoutingTable(record) {
24065
24163
  var _this = _super.call(this) || this;
24066
24164
  _this._record = record;
@@ -24097,7 +24195,7 @@
24097
24195
  return RecordRawRoutingTable;
24098
24196
  }(RawRoutingTable));
24099
24197
 
24100
- var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
24198
+ var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
24101
24199
  var extendStatics = function (d, b) {
24102
24200
  extendStatics = Object.setPrototypeOf ||
24103
24201
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -24112,7 +24210,7 @@
24112
24210
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
24113
24211
  };
24114
24212
  })();
24115
- var __importDefault$v = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
24213
+ var __importDefault$x = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
24116
24214
  return (mod && mod.__esModule) ? mod : { "default": mod };
24117
24215
  };
24118
24216
  Object.defineProperty(streamObservers, "__esModule", { value: true });
@@ -24135,10 +24233,10 @@
24135
24233
  * See the License for the specific language governing permissions and
24136
24234
  * limitations under the License.
24137
24235
  */
24138
- var neo4j_driver_core_1$w = lib$1;
24139
- var routing_table_raw_1 = __importDefault$v(routingTableRaw);
24140
- var FETCH_ALL$4 = neo4j_driver_core_1$w.internal.constants.FETCH_ALL;
24141
- var PROTOCOL_ERROR$5 = neo4j_driver_core_1$w.error.PROTOCOL_ERROR;
24236
+ var neo4j_driver_core_1$x = lib$1;
24237
+ var routing_table_raw_1 = __importDefault$x(routingTableRaw);
24238
+ var FETCH_ALL$4 = neo4j_driver_core_1$x.internal.constants.FETCH_ALL;
24239
+ var PROTOCOL_ERROR$5 = neo4j_driver_core_1$x.error.PROTOCOL_ERROR;
24142
24240
  var StreamObserver = /** @class */ (function () {
24143
24241
  function StreamObserver() {
24144
24242
  }
@@ -24159,7 +24257,7 @@
24159
24257
  * @access private
24160
24258
  */
24161
24259
  var ResultStreamObserver = /** @class */ (function (_super) {
24162
- __extends$h(ResultStreamObserver, _super);
24260
+ __extends$i(ResultStreamObserver, _super);
24163
24261
  /**
24164
24262
  *
24165
24263
  * @param {Object} param
@@ -24231,7 +24329,7 @@
24231
24329
  * @param {Array} rawRecord - An array with the raw record
24232
24330
  */
24233
24331
  ResultStreamObserver.prototype.onNext = function (rawRecord) {
24234
- var record = new neo4j_driver_core_1$w.Record(this._fieldKeys, rawRecord, this._fieldLookup);
24332
+ var record = new neo4j_driver_core_1$x.Record(this._fieldKeys, rawRecord, this._fieldLookup);
24235
24333
  if (this._observers.some(function (o) { return o.onNext; })) {
24236
24334
  this._observers.forEach(function (o) {
24237
24335
  if (o.onNext) {
@@ -24334,7 +24432,7 @@
24334
24432
  var _this = this;
24335
24433
  var completionMetadata = Object.assign(this._server ? { server: this._server } : {}, this._meta, meta);
24336
24434
  if (![undefined, null, 'r', 'w', 'rw', 's'].includes(completionMetadata.type)) {
24337
- this.onError((0, neo4j_driver_core_1$w.newError)("Server returned invalid query type. Expected one of [undefined, null, \"r\", \"w\", \"rw\", \"s\"] but got '".concat(completionMetadata.type, "'"), PROTOCOL_ERROR$5));
24435
+ this.onError((0, neo4j_driver_core_1$x.newError)("Server returned invalid query type. Expected one of [undefined, null, \"r\", \"w\", \"rw\", \"s\"] but got '".concat(completionMetadata.type, "'"), PROTOCOL_ERROR$5));
24338
24436
  return;
24339
24437
  }
24340
24438
  this._setState(_states.SUCCEEDED);
@@ -24476,7 +24574,7 @@
24476
24574
  }(StreamObserver));
24477
24575
  streamObservers.ResultStreamObserver = ResultStreamObserver;
24478
24576
  var LoginObserver = /** @class */ (function (_super) {
24479
- __extends$h(LoginObserver, _super);
24577
+ __extends$i(LoginObserver, _super);
24480
24578
  /**
24481
24579
  *
24482
24580
  * @param {Object} param -
@@ -24491,7 +24589,7 @@
24491
24589
  return _this;
24492
24590
  }
24493
24591
  LoginObserver.prototype.onNext = function (record) {
24494
- this.onError((0, neo4j_driver_core_1$w.newError)('Received RECORD when initializing ' + neo4j_driver_core_1$w.json.stringify(record)));
24592
+ this.onError((0, neo4j_driver_core_1$x.newError)('Received RECORD when initializing ' + neo4j_driver_core_1$x.json.stringify(record)));
24495
24593
  };
24496
24594
  LoginObserver.prototype.onError = function (error) {
24497
24595
  if (this._onError) {
@@ -24507,7 +24605,7 @@
24507
24605
  }(StreamObserver));
24508
24606
  streamObservers.LoginObserver = LoginObserver;
24509
24607
  var LogoffObserver = /** @class */ (function (_super) {
24510
- __extends$h(LogoffObserver, _super);
24608
+ __extends$i(LogoffObserver, _super);
24511
24609
  /**
24512
24610
  *
24513
24611
  * @param {Object} param -
@@ -24522,7 +24620,7 @@
24522
24620
  return _this;
24523
24621
  }
24524
24622
  LogoffObserver.prototype.onNext = function (record) {
24525
- this.onError((0, neo4j_driver_core_1$w.newError)('Received RECORD when logging off ' + neo4j_driver_core_1$w.json.stringify(record)));
24623
+ this.onError((0, neo4j_driver_core_1$x.newError)('Received RECORD when logging off ' + neo4j_driver_core_1$x.json.stringify(record)));
24526
24624
  };
24527
24625
  LogoffObserver.prototype.onError = function (error) {
24528
24626
  if (this._onError) {
@@ -24538,7 +24636,7 @@
24538
24636
  }(StreamObserver));
24539
24637
  streamObservers.LogoffObserver = LogoffObserver;
24540
24638
  var ResetObserver = /** @class */ (function (_super) {
24541
- __extends$h(ResetObserver, _super);
24639
+ __extends$i(ResetObserver, _super);
24542
24640
  /**
24543
24641
  *
24544
24642
  * @param {Object} param -
@@ -24555,8 +24653,8 @@
24555
24653
  return _this;
24556
24654
  }
24557
24655
  ResetObserver.prototype.onNext = function (record) {
24558
- this.onError((0, neo4j_driver_core_1$w.newError)('Received RECORD when resetting: received record is: ' +
24559
- neo4j_driver_core_1$w.json.stringify(record), PROTOCOL_ERROR$5));
24656
+ this.onError((0, neo4j_driver_core_1$x.newError)('Received RECORD when resetting: received record is: ' +
24657
+ neo4j_driver_core_1$x.json.stringify(record), PROTOCOL_ERROR$5));
24560
24658
  };
24561
24659
  ResetObserver.prototype.onError = function (error) {
24562
24660
  if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
@@ -24575,7 +24673,7 @@
24575
24673
  }(StreamObserver));
24576
24674
  streamObservers.ResetObserver = ResetObserver;
24577
24675
  var FailedObserver = /** @class */ (function (_super) {
24578
- __extends$h(FailedObserver, _super);
24676
+ __extends$i(FailedObserver, _super);
24579
24677
  function FailedObserver(_a) {
24580
24678
  var error = _a.error, onError = _a.onError;
24581
24679
  var _this = _super.call(this, { beforeError: onError }) || this;
@@ -24586,7 +24684,7 @@
24586
24684
  }(ResultStreamObserver));
24587
24685
  streamObservers.FailedObserver = FailedObserver;
24588
24686
  var CompletedObserver = /** @class */ (function (_super) {
24589
- __extends$h(CompletedObserver, _super);
24687
+ __extends$i(CompletedObserver, _super);
24590
24688
  function CompletedObserver() {
24591
24689
  var _this = _super.call(this) || this;
24592
24690
  _super.prototype.markCompleted.call(_this);
@@ -24596,7 +24694,7 @@
24596
24694
  }(ResultStreamObserver));
24597
24695
  streamObservers.CompletedObserver = CompletedObserver;
24598
24696
  var ProcedureRouteObserver = /** @class */ (function (_super) {
24599
- __extends$h(ProcedureRouteObserver, _super);
24697
+ __extends$i(ProcedureRouteObserver, _super);
24600
24698
  function ProcedureRouteObserver(_a) {
24601
24699
  var resultObserver = _a.resultObserver, onProtocolError = _a.onProtocolError, onError = _a.onError, onCompleted = _a.onCompleted;
24602
24700
  var _this = _super.call(this) || this;
@@ -24621,10 +24719,10 @@
24621
24719
  };
24622
24720
  ProcedureRouteObserver.prototype.onCompleted = function () {
24623
24721
  if (this._records !== null && this._records.length !== 1) {
24624
- this.onError((0, neo4j_driver_core_1$w.newError)('Illegal response from router. Received ' +
24722
+ this.onError((0, neo4j_driver_core_1$x.newError)('Illegal response from router. Received ' +
24625
24723
  this._records.length +
24626
24724
  ' records but expected only one.\n' +
24627
- neo4j_driver_core_1$w.json.stringify(this._records), PROTOCOL_ERROR$5));
24725
+ neo4j_driver_core_1$x.json.stringify(this._records), PROTOCOL_ERROR$5));
24628
24726
  return;
24629
24727
  }
24630
24728
  if (this._onCompleted) {
@@ -24635,7 +24733,7 @@
24635
24733
  }(StreamObserver));
24636
24734
  streamObservers.ProcedureRouteObserver = ProcedureRouteObserver;
24637
24735
  var RouteObserver = /** @class */ (function (_super) {
24638
- __extends$h(RouteObserver, _super);
24736
+ __extends$i(RouteObserver, _super);
24639
24737
  /**
24640
24738
  *
24641
24739
  * @param {Object} param -
@@ -24652,8 +24750,8 @@
24652
24750
  return _this;
24653
24751
  }
24654
24752
  RouteObserver.prototype.onNext = function (record) {
24655
- this.onError((0, neo4j_driver_core_1$w.newError)('Received RECORD when resetting: received record is: ' +
24656
- neo4j_driver_core_1$w.json.stringify(record), PROTOCOL_ERROR$5));
24753
+ this.onError((0, neo4j_driver_core_1$x.newError)('Received RECORD when resetting: received record is: ' +
24754
+ neo4j_driver_core_1$x.json.stringify(record), PROTOCOL_ERROR$5));
24657
24755
  };
24658
24756
  RouteObserver.prototype.onError = function (error) {
24659
24757
  if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
@@ -24757,7 +24855,7 @@
24757
24855
  * See the License for the specific language governing permissions and
24758
24856
  * limitations under the License.
24759
24857
  */
24760
- var neo4j_driver_core_1$v = lib$1;
24858
+ var neo4j_driver_core_1$w = lib$1;
24761
24859
  /**
24762
24860
  * @param {TxConfig} txConfig the auto-commit transaction configuration.
24763
24861
  * @param {function(error: string)} onProtocolError called when the txConfig is not empty.
@@ -24766,7 +24864,7 @@
24766
24864
  function assertTxConfigIsEmpty(txConfig, onProtocolError, observer) {
24767
24865
  if (onProtocolError === void 0) { onProtocolError = function () { }; }
24768
24866
  if (txConfig && !txConfig.isEmpty()) {
24769
- var error = (0, neo4j_driver_core_1$v.newError)('Driver is connected to the database that does not support transaction configuration. ' +
24867
+ var error = (0, neo4j_driver_core_1$w.newError)('Driver is connected to the database that does not support transaction configuration. ' +
24770
24868
  'Please upgrade to neo4j 3.5.0 or later in order to use this functionality');
24771
24869
  // unsupported API was used, consider this a fatal error for the current connection
24772
24870
  onProtocolError(error.message);
@@ -24783,7 +24881,7 @@
24783
24881
  function assertDatabaseIsEmpty(database, onProtocolError, observer) {
24784
24882
  if (onProtocolError === void 0) { onProtocolError = function () { }; }
24785
24883
  if (database) {
24786
- var error = (0, neo4j_driver_core_1$v.newError)('Driver is connected to the database that does not support multiple databases. ' +
24884
+ var error = (0, neo4j_driver_core_1$w.newError)('Driver is connected to the database that does not support multiple databases. ' +
24787
24885
  'Please upgrade to neo4j 4.0.0 or later in order to use this functionality');
24788
24886
  // unsupported API was used, consider this a fatal error for the current connection
24789
24887
  onProtocolError(error.message);
@@ -24801,7 +24899,7 @@
24801
24899
  function assertImpersonatedUserIsEmpty(impersonatedUser, onProtocolError, observer) {
24802
24900
  if (onProtocolError === void 0) { onProtocolError = function () { }; }
24803
24901
  if (impersonatedUser) {
24804
- var error = (0, neo4j_driver_core_1$v.newError)('Driver is connected to the database that does not support user impersonation. ' +
24902
+ var error = (0, neo4j_driver_core_1$w.newError)('Driver is connected to the database that does not support user impersonation. ' +
24805
24903
  'Please upgrade to neo4j 4.4.0 or later in order to use this functionality. ' +
24806
24904
  "Trying to impersonate ".concat(impersonatedUser, "."));
24807
24905
  // unsupported API was used, consider this a fatal error for the current connection
@@ -24820,9 +24918,9 @@
24820
24918
  function assertNotificationFilterIsEmpty(notificationFilter, onProtocolError, observer) {
24821
24919
  if (onProtocolError === void 0) { onProtocolError = function () { }; }
24822
24920
  if (notificationFilter !== undefined) {
24823
- var error = (0, neo4j_driver_core_1$v.newError)('Driver is connected to a database that does not support user notification filters. ' +
24921
+ var error = (0, neo4j_driver_core_1$w.newError)('Driver is connected to a database that does not support user notification filters. ' +
24824
24922
  'Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. ' +
24825
- "Trying to set notifications to ".concat(neo4j_driver_core_1$v.json.stringify(notificationFilter), "."));
24923
+ "Trying to set notifications to ".concat(neo4j_driver_core_1$w.json.stringify(notificationFilter), "."));
24826
24924
  // unsupported API was used, consider this a fatal error for the current connection
24827
24925
  onProtocolError(error.message);
24828
24926
  observer.onError(error);
@@ -25008,8 +25106,8 @@
25008
25106
  */
25009
25107
  Object.defineProperty(structure$1, "__esModule", { value: true });
25010
25108
  structure$1.verifyStructSize = structure$1.Structure = void 0;
25011
- var neo4j_driver_core_1$u = lib$1;
25012
- var PROTOCOL_ERROR$4 = neo4j_driver_core_1$u.error.PROTOCOL_ERROR;
25109
+ var neo4j_driver_core_1$v = lib$1;
25110
+ var PROTOCOL_ERROR$4 = neo4j_driver_core_1$v.error.PROTOCOL_ERROR;
25013
25111
  /**
25014
25112
  * A Structure have a signature and fields.
25015
25113
  */
@@ -25043,7 +25141,7 @@
25043
25141
  structure$1.Structure = Structure;
25044
25142
  function verifyStructSize(structName, expectedSize, actualSize) {
25045
25143
  if (expectedSize !== actualSize) {
25046
- throw (0, neo4j_driver_core_1$u.newError)("Wrong struct size for ".concat(structName, ", expected ").concat(expectedSize, " but was ").concat(actualSize), PROTOCOL_ERROR$4);
25144
+ throw (0, neo4j_driver_core_1$v.newError)("Wrong struct size for ".concat(structName, ", expected ").concat(expectedSize, " but was ").concat(actualSize), PROTOCOL_ERROR$4);
25047
25145
  }
25048
25146
  }
25049
25147
  structure$1.verifyStructSize = verifyStructSize;
@@ -25072,8 +25170,8 @@
25072
25170
  var channel_1$2 = channel;
25073
25171
  var lang_1$2 = lang;
25074
25172
  var structure_1 = structure$1;
25075
- var neo4j_driver_core_1$t = lib$1;
25076
- var PROTOCOL_ERROR$3 = neo4j_driver_core_1$t.error.PROTOCOL_ERROR;
25173
+ var neo4j_driver_core_1$u = lib$1;
25174
+ var PROTOCOL_ERROR$3 = neo4j_driver_core_1$u.error.PROTOCOL_ERROR;
25077
25175
  var TINY_STRING = 0x80;
25078
25176
  var TINY_LIST = 0x90;
25079
25177
  var TINY_MAP = 0xa0;
@@ -25143,9 +25241,9 @@
25143
25241
  return function () { return _this.packString(x); };
25144
25242
  }
25145
25243
  else if (typeof x === 'bigint') {
25146
- return function () { return _this.packInteger((0, neo4j_driver_core_1$t.int)(x)); };
25244
+ return function () { return _this.packInteger((0, neo4j_driver_core_1$u.int)(x)); };
25147
25245
  }
25148
- else if ((0, neo4j_driver_core_1$t.isInt)(x)) {
25246
+ else if ((0, neo4j_driver_core_1$u.isInt)(x)) {
25149
25247
  return function () { return _this.packInteger(x); };
25150
25248
  }
25151
25249
  else if (x instanceof Int8Array) {
@@ -25199,7 +25297,7 @@
25199
25297
  }
25200
25298
  catch (e) {
25201
25299
  // handle errors from iterable to array conversion
25202
- throw (0, neo4j_driver_core_1$t.newError)("Cannot pack given iterable, ".concat(e.message, ": ").concat(iterable));
25300
+ throw (0, neo4j_driver_core_1$u.newError)("Cannot pack given iterable, ".concat(e.message, ": ").concat(iterable));
25203
25301
  }
25204
25302
  };
25205
25303
  /**
@@ -25269,7 +25367,7 @@
25269
25367
  this._ch.writeBytes(bytes);
25270
25368
  }
25271
25369
  else {
25272
- throw (0, neo4j_driver_core_1$t.newError)('UTF-8 strings of size ' + size + ' are not supported');
25370
+ throw (0, neo4j_driver_core_1$u.newError)('UTF-8 strings of size ' + size + ' are not supported');
25273
25371
  }
25274
25372
  };
25275
25373
  Packer.prototype.packListHeader = function (size) {
@@ -25293,7 +25391,7 @@
25293
25391
  this._ch.writeUInt8(size % 256);
25294
25392
  }
25295
25393
  else {
25296
- throw (0, neo4j_driver_core_1$t.newError)('Lists of size ' + size + ' are not supported');
25394
+ throw (0, neo4j_driver_core_1$u.newError)('Lists of size ' + size + ' are not supported');
25297
25395
  }
25298
25396
  };
25299
25397
  Packer.prototype.packBytes = function (array) {
@@ -25304,7 +25402,7 @@
25304
25402
  }
25305
25403
  }
25306
25404
  else {
25307
- throw (0, neo4j_driver_core_1$t.newError)('Byte arrays are not supported by the database this driver is connected to');
25405
+ throw (0, neo4j_driver_core_1$u.newError)('Byte arrays are not supported by the database this driver is connected to');
25308
25406
  }
25309
25407
  };
25310
25408
  Packer.prototype.packBytesHeader = function (size) {
@@ -25325,7 +25423,7 @@
25325
25423
  this._ch.writeUInt8(size % 256);
25326
25424
  }
25327
25425
  else {
25328
- throw (0, neo4j_driver_core_1$t.newError)('Byte arrays of size ' + size + ' are not supported');
25426
+ throw (0, neo4j_driver_core_1$u.newError)('Byte arrays of size ' + size + ' are not supported');
25329
25427
  }
25330
25428
  };
25331
25429
  Packer.prototype.packMapHeader = function (size) {
@@ -25349,7 +25447,7 @@
25349
25447
  this._ch.writeUInt8(size % 256);
25350
25448
  }
25351
25449
  else {
25352
- throw (0, neo4j_driver_core_1$t.newError)('Maps of size ' + size + ' are not supported');
25450
+ throw (0, neo4j_driver_core_1$u.newError)('Maps of size ' + size + ' are not supported');
25353
25451
  }
25354
25452
  };
25355
25453
  Packer.prototype.packStructHeader = function (size, signature) {
@@ -25368,7 +25466,7 @@
25368
25466
  this._ch.writeUInt8(size % 256);
25369
25467
  }
25370
25468
  else {
25371
- throw (0, neo4j_driver_core_1$t.newError)('Structures of size ' + size + ' are not supported');
25469
+ throw (0, neo4j_driver_core_1$u.newError)('Structures of size ' + size + ' are not supported');
25372
25470
  }
25373
25471
  };
25374
25472
  Packer.prototype.disableByteArrays = function () {
@@ -25376,7 +25474,7 @@
25376
25474
  };
25377
25475
  Packer.prototype._nonPackableValue = function (message) {
25378
25476
  return function () {
25379
- throw (0, neo4j_driver_core_1$t.newError)(message, PROTOCOL_ERROR$3);
25477
+ throw (0, neo4j_driver_core_1$u.newError)(message, PROTOCOL_ERROR$3);
25380
25478
  };
25381
25479
  };
25382
25480
  return Packer;
@@ -25412,7 +25510,7 @@
25412
25510
  }
25413
25511
  var numberOrInteger = this._unpackNumberOrInteger(marker, buffer);
25414
25512
  if (numberOrInteger !== null) {
25415
- if ((0, neo4j_driver_core_1$t.isInt)(numberOrInteger)) {
25513
+ if ((0, neo4j_driver_core_1$u.isInt)(numberOrInteger)) {
25416
25514
  if (this._useBigInt) {
25417
25515
  return numberOrInteger.toBigInt();
25418
25516
  }
@@ -25442,13 +25540,13 @@
25442
25540
  if (struct !== null) {
25443
25541
  return struct;
25444
25542
  }
25445
- throw (0, neo4j_driver_core_1$t.newError)('Unknown packed value with marker ' + marker.toString(16));
25543
+ throw (0, neo4j_driver_core_1$u.newError)('Unknown packed value with marker ' + marker.toString(16));
25446
25544
  };
25447
25545
  Unpacker.prototype.unpackInteger = function (buffer) {
25448
25546
  var marker = buffer.readUInt8();
25449
25547
  var result = this._unpackInteger(marker, buffer);
25450
25548
  if (result == null) {
25451
- throw (0, neo4j_driver_core_1$t.newError)('Unable to unpack integer value with marker ' + marker.toString(16));
25549
+ throw (0, neo4j_driver_core_1$u.newError)('Unable to unpack integer value with marker ' + marker.toString(16));
25452
25550
  }
25453
25551
  return result;
25454
25552
  };
@@ -25473,25 +25571,25 @@
25473
25571
  };
25474
25572
  Unpacker.prototype._unpackInteger = function (marker, buffer) {
25475
25573
  if (marker >= 0 && marker < 128) {
25476
- return (0, neo4j_driver_core_1$t.int)(marker);
25574
+ return (0, neo4j_driver_core_1$u.int)(marker);
25477
25575
  }
25478
25576
  else if (marker >= 240 && marker < 256) {
25479
- return (0, neo4j_driver_core_1$t.int)(marker - 256);
25577
+ return (0, neo4j_driver_core_1$u.int)(marker - 256);
25480
25578
  }
25481
25579
  else if (marker === INT_8) {
25482
- return (0, neo4j_driver_core_1$t.int)(buffer.readInt8());
25580
+ return (0, neo4j_driver_core_1$u.int)(buffer.readInt8());
25483
25581
  }
25484
25582
  else if (marker === INT_16) {
25485
- return (0, neo4j_driver_core_1$t.int)(buffer.readInt16());
25583
+ return (0, neo4j_driver_core_1$u.int)(buffer.readInt16());
25486
25584
  }
25487
25585
  else if (marker === INT_32) {
25488
25586
  var b = buffer.readInt32();
25489
- return (0, neo4j_driver_core_1$t.int)(b);
25587
+ return (0, neo4j_driver_core_1$u.int)(b);
25490
25588
  }
25491
25589
  else if (marker === INT_64) {
25492
25590
  var high = buffer.readInt32();
25493
25591
  var low = buffer.readInt32();
25494
- return new neo4j_driver_core_1$t.Integer(low, high);
25592
+ return new neo4j_driver_core_1$u.Integer(low, high);
25495
25593
  }
25496
25594
  else {
25497
25595
  return null;
@@ -25636,7 +25734,7 @@
25636
25734
  * See the License for the specific language governing permissions and
25637
25735
  * limitations under the License.
25638
25736
  */
25639
- var __extends$g = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
25737
+ var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
25640
25738
  var extendStatics = function (d, b) {
25641
25739
  extendStatics = Object.setPrototypeOf ||
25642
25740
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -25678,7 +25776,7 @@
25678
25776
  packstreamV2.Unpacker = packstreamV2.Packer = void 0;
25679
25777
  var v1$1 = __importStar$4(packstreamV1);
25680
25778
  var Packer = /** @class */ (function (_super) {
25681
- __extends$g(Packer, _super);
25779
+ __extends$h(Packer, _super);
25682
25780
  function Packer() {
25683
25781
  return _super !== null && _super.apply(this, arguments) || this;
25684
25782
  }
@@ -25689,7 +25787,7 @@
25689
25787
  }(v1$1.Packer));
25690
25788
  packstreamV2.Packer = Packer;
25691
25789
  var Unpacker = /** @class */ (function (_super) {
25692
- __extends$g(Unpacker, _super);
25790
+ __extends$h(Unpacker, _super);
25693
25791
  /**
25694
25792
  * @constructor
25695
25793
  * @param {boolean} disableLosslessIntegers if this unpacker should convert all received integers to native JS numbers.
@@ -25777,8 +25875,8 @@
25777
25875
  */
25778
25876
  Object.defineProperty(requestMessage, "__esModule", { value: true });
25779
25877
  requestMessage.SIGNATURES = void 0;
25780
- var neo4j_driver_core_1$s = lib$1;
25781
- var _a$9 = neo4j_driver_core_1$s.internal.constants, ACCESS_MODE_READ = _a$9.ACCESS_MODE_READ, FETCH_ALL$3 = _a$9.FETCH_ALL, assertString = neo4j_driver_core_1$s.internal.util.assertString;
25878
+ var neo4j_driver_core_1$t = lib$1;
25879
+ var _a$9 = neo4j_driver_core_1$t.internal.constants, ACCESS_MODE_READ = _a$9.ACCESS_MODE_READ, FETCH_ALL$3 = _a$9.FETCH_ALL, assertString = neo4j_driver_core_1$t.internal.util.assertString;
25782
25880
  /* eslint-disable no-unused-vars */
25783
25881
  // Signature bytes for each request message type
25784
25882
  var INIT = 0x01; // 0000 0001 // INIT <user_agent> <authentication_token>
@@ -25837,7 +25935,7 @@
25837
25935
  * @return {RequestMessage} new RUN message.
25838
25936
  */
25839
25937
  RequestMessage.run = function (query, parameters) {
25840
- return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$s.json.stringify(parameters)); });
25938
+ return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$t.json.stringify(parameters)); });
25841
25939
  };
25842
25940
  /**
25843
25941
  * Get a PULL_ALL message.
@@ -25908,7 +26006,43 @@
25908
26006
  if (routing) {
25909
26007
  metadata.routing = routing;
25910
26008
  }
25911
- return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$s.json.stringify(metadata)); });
26009
+ return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
26010
+ };
26011
+ /**
26012
+ * Create a new HELLO message.
26013
+ * @param {string} userAgent the user agent.
26014
+ * @param {string} boltAgent the bolt agent.
26015
+ * @param {NotificationFilter} notificationFilter the notification filter configured
26016
+ * @param {Object} routing server side routing, set to routing context to turn on server side routing (> 4.1)
26017
+ * @return {RequestMessage} new HELLO message.
26018
+ */
26019
+ RequestMessage.hello5x3 = function (userAgent, boltAgent, notificationFilter, routing) {
26020
+ if (notificationFilter === void 0) { notificationFilter = null; }
26021
+ if (routing === void 0) { routing = null; }
26022
+ var metadata = {};
26023
+ if (userAgent) {
26024
+ metadata.user_agent = userAgent;
26025
+ }
26026
+ if (boltAgent) {
26027
+ metadata.bolt_agent = {
26028
+ product: boltAgent.product,
26029
+ platform: boltAgent.platform,
26030
+ language: boltAgent.language,
26031
+ language_details: boltAgent.languageDetails
26032
+ };
26033
+ }
26034
+ if (notificationFilter) {
26035
+ if (notificationFilter.minimumSeverityLevel) {
26036
+ metadata.notifications_minimum_severity = notificationFilter.minimumSeverityLevel;
26037
+ }
26038
+ if (notificationFilter.disabledCategories) {
26039
+ metadata.notifications_disabled_categories = notificationFilter.disabledCategories;
26040
+ }
26041
+ }
26042
+ if (routing) {
26043
+ metadata.routing = routing;
26044
+ }
26045
+ return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
25912
26046
  };
25913
26047
  /**
25914
26048
  * Create a new LOGON message.
@@ -25940,7 +26074,7 @@
25940
26074
  RequestMessage.begin = function (_a) {
25941
26075
  var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter;
25942
26076
  var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
25943
- return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$s.json.stringify(metadata)); });
26077
+ return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
25944
26078
  };
25945
26079
  /**
25946
26080
  * Get a COMMIT message.
@@ -25971,7 +26105,7 @@
25971
26105
  var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter;
25972
26106
  var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
25973
26107
  return new RequestMessage(RUN, [query, parameters, metadata], function () {
25974
- return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$s.json.stringify(parameters), " ").concat(neo4j_driver_core_1$s.json.stringify(metadata));
26108
+ return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$t.json.stringify(parameters), " ").concat(neo4j_driver_core_1$t.json.stringify(metadata));
25975
26109
  });
25976
26110
  };
25977
26111
  /**
@@ -25990,7 +26124,7 @@
25990
26124
  RequestMessage.pull = function (_a) {
25991
26125
  var _b = _a === void 0 ? {} : _a, _c = _b.stmtId, stmtId = _c === void 0 ? NO_STATEMENT_ID : _c, _d = _b.n, n = _d === void 0 ? FETCH_ALL$3 : _d;
25992
26126
  var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$3);
25993
- return new RequestMessage(PULL, [metadata], function () { return "PULL ".concat(neo4j_driver_core_1$s.json.stringify(metadata)); });
26127
+ return new RequestMessage(PULL, [metadata], function () { return "PULL ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
25994
26128
  };
25995
26129
  /**
25996
26130
  * Generates a new DISCARD message with additional metadata.
@@ -26001,7 +26135,7 @@
26001
26135
  RequestMessage.discard = function (_a) {
26002
26136
  var _b = _a === void 0 ? {} : _a, _c = _b.stmtId, stmtId = _c === void 0 ? NO_STATEMENT_ID : _c, _d = _b.n, n = _d === void 0 ? FETCH_ALL$3 : _d;
26003
26137
  var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$3);
26004
- return new RequestMessage(DISCARD, [metadata], function () { return "DISCARD ".concat(neo4j_driver_core_1$s.json.stringify(metadata)); });
26138
+ return new RequestMessage(DISCARD, [metadata], function () { return "DISCARD ".concat(neo4j_driver_core_1$t.json.stringify(metadata)); });
26005
26139
  };
26006
26140
  /**
26007
26141
  * Generate the ROUTE message, this message is used to fetch the routing table from the server
@@ -26016,7 +26150,7 @@
26016
26150
  if (bookmarks === void 0) { bookmarks = []; }
26017
26151
  if (databaseName === void 0) { databaseName = null; }
26018
26152
  return new RequestMessage(ROUTE, [routingContext, bookmarks, databaseName], function () {
26019
- return "ROUTE ".concat(neo4j_driver_core_1$s.json.stringify(routingContext), " ").concat(neo4j_driver_core_1$s.json.stringify(bookmarks), " ").concat(databaseName);
26153
+ return "ROUTE ".concat(neo4j_driver_core_1$t.json.stringify(routingContext), " ").concat(neo4j_driver_core_1$t.json.stringify(bookmarks), " ").concat(databaseName);
26020
26154
  });
26021
26155
  };
26022
26156
  /**
@@ -26041,7 +26175,7 @@
26041
26175
  dbContext.imp_user = databaseContext.impersonatedUser;
26042
26176
  }
26043
26177
  return new RequestMessage(ROUTE, [routingContext, bookmarks, dbContext], function () {
26044
- return "ROUTE ".concat(neo4j_driver_core_1$s.json.stringify(routingContext), " ").concat(neo4j_driver_core_1$s.json.stringify(bookmarks), " ").concat(neo4j_driver_core_1$s.json.stringify(dbContext));
26178
+ return "ROUTE ".concat(neo4j_driver_core_1$t.json.stringify(routingContext), " ").concat(neo4j_driver_core_1$t.json.stringify(bookmarks), " ").concat(neo4j_driver_core_1$t.json.stringify(dbContext));
26045
26179
  });
26046
26180
  };
26047
26181
  return RequestMessage;
@@ -26094,9 +26228,9 @@
26094
26228
  * @returns {Object} a metadata object.
26095
26229
  */
26096
26230
  function buildStreamMetadata(stmtId, n) {
26097
- var metadata = { n: (0, neo4j_driver_core_1$s.int)(n) };
26231
+ var metadata = { n: (0, neo4j_driver_core_1$t.int)(n) };
26098
26232
  if (stmtId !== NO_STATEMENT_ID) {
26099
- metadata.qid = (0, neo4j_driver_core_1$s.int)(stmtId);
26233
+ metadata.qid = (0, neo4j_driver_core_1$t.int)(stmtId);
26100
26234
  }
26101
26235
  return metadata;
26102
26236
  }
@@ -26132,8 +26266,8 @@
26132
26266
  Object.defineProperty(transformer, "__esModule", { value: true });
26133
26267
  transformer.TypeTransformer = void 0;
26134
26268
  var packstream_1$6 = packstream;
26135
- var neo4j_driver_core_1$r = lib$1;
26136
- var objectUtil = neo4j_driver_core_1$r.internal.objectUtil;
26269
+ var neo4j_driver_core_1$s = lib$1;
26270
+ var objectUtil = neo4j_driver_core_1$s.internal.objectUtil;
26137
26271
  /**
26138
26272
  * Class responsible for applying the expected {@link TypeTransformer} to
26139
26273
  * transform the driver types from and to {@link struct.Structure}
@@ -26278,10 +26412,10 @@
26278
26412
  return ar;
26279
26413
  };
26280
26414
  Object.defineProperty(boltProtocolV1_transformer, "__esModule", { value: true });
26281
- var neo4j_driver_core_1$q = lib$1;
26415
+ var neo4j_driver_core_1$r = lib$1;
26282
26416
  var packstream_1$5 = packstream;
26283
- var transformer_1$c = transformer;
26284
- var PROTOCOL_ERROR$2 = neo4j_driver_core_1$q.error.PROTOCOL_ERROR;
26417
+ var transformer_1$d = transformer;
26418
+ var PROTOCOL_ERROR$2 = neo4j_driver_core_1$r.error.PROTOCOL_ERROR;
26285
26419
  var NODE = 0x4e;
26286
26420
  var NODE_STRUCT_SIZE$1 = 3;
26287
26421
  var RELATIONSHIP = 0x52;
@@ -26295,16 +26429,16 @@
26295
26429
  * @returns {TypeTransformer}
26296
26430
  */
26297
26431
  function createNodeTransformer$1() {
26298
- return new transformer_1$c.TypeTransformer({
26432
+ return new transformer_1$d.TypeTransformer({
26299
26433
  signature: NODE,
26300
- isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$q.Node; },
26434
+ isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$r.Node; },
26301
26435
  toStructure: function (object) {
26302
- throw (0, neo4j_driver_core_1$q.newError)("It is not allowed to pass nodes in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
26436
+ throw (0, neo4j_driver_core_1$r.newError)("It is not allowed to pass nodes in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
26303
26437
  },
26304
26438
  fromStructure: function (struct) {
26305
26439
  packstream_1$5.structure.verifyStructSize('Node', NODE_STRUCT_SIZE$1, struct.size);
26306
26440
  var _a = __read$6(struct.fields, 3), identity = _a[0], labels = _a[1], properties = _a[2];
26307
- return new neo4j_driver_core_1$q.Node(identity, labels, properties);
26441
+ return new neo4j_driver_core_1$r.Node(identity, labels, properties);
26308
26442
  }
26309
26443
  });
26310
26444
  }
@@ -26313,16 +26447,16 @@
26313
26447
  * @returns {TypeTransformer}
26314
26448
  */
26315
26449
  function createRelationshipTransformer$1() {
26316
- return new transformer_1$c.TypeTransformer({
26450
+ return new transformer_1$d.TypeTransformer({
26317
26451
  signature: RELATIONSHIP,
26318
- isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$q.Relationship; },
26452
+ isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$r.Relationship; },
26319
26453
  toStructure: function (object) {
26320
- throw (0, neo4j_driver_core_1$q.newError)("It is not allowed to pass relationships in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
26454
+ throw (0, neo4j_driver_core_1$r.newError)("It is not allowed to pass relationships in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
26321
26455
  },
26322
26456
  fromStructure: function (struct) {
26323
26457
  packstream_1$5.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE$1, struct.size);
26324
26458
  var _a = __read$6(struct.fields, 5), identity = _a[0], startNodeIdentity = _a[1], endNodeIdentity = _a[2], type = _a[3], properties = _a[4];
26325
- return new neo4j_driver_core_1$q.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties);
26459
+ return new neo4j_driver_core_1$r.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties);
26326
26460
  }
26327
26461
  });
26328
26462
  }
@@ -26331,16 +26465,16 @@
26331
26465
  * @returns {TypeTransformer}
26332
26466
  */
26333
26467
  function createUnboundRelationshipTransformer$1() {
26334
- return new transformer_1$c.TypeTransformer({
26468
+ return new transformer_1$d.TypeTransformer({
26335
26469
  signature: UNBOUND_RELATIONSHIP,
26336
- isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$q.UnboundRelationship; },
26470
+ isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$r.UnboundRelationship; },
26337
26471
  toStructure: function (object) {
26338
- throw (0, neo4j_driver_core_1$q.newError)("It is not allowed to pass unbound relationships in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
26472
+ throw (0, neo4j_driver_core_1$r.newError)("It is not allowed to pass unbound relationships in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
26339
26473
  },
26340
26474
  fromStructure: function (struct) {
26341
26475
  packstream_1$5.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE$1, struct.size);
26342
26476
  var _a = __read$6(struct.fields, 3), identity = _a[0], type = _a[1], properties = _a[2];
26343
- return new neo4j_driver_core_1$q.UnboundRelationship(identity, type, properties);
26477
+ return new neo4j_driver_core_1$r.UnboundRelationship(identity, type, properties);
26344
26478
  }
26345
26479
  });
26346
26480
  }
@@ -26349,11 +26483,11 @@
26349
26483
  * @returns {TypeTransformer}
26350
26484
  */
26351
26485
  function createPathTransformer() {
26352
- return new transformer_1$c.TypeTransformer({
26486
+ return new transformer_1$d.TypeTransformer({
26353
26487
  signature: PATH,
26354
- isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$q.Path; },
26488
+ isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$r.Path; },
26355
26489
  toStructure: function (object) {
26356
- throw (0, neo4j_driver_core_1$q.newError)("It is not allowed to pass paths in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
26490
+ throw (0, neo4j_driver_core_1$r.newError)("It is not allowed to pass paths in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
26357
26491
  },
26358
26492
  fromStructure: function (struct) {
26359
26493
  packstream_1$5.structure.verifyStructSize('Path', PATH_STRUCT_SIZE, struct.size);
@@ -26362,11 +26496,11 @@
26362
26496
  var prevNode = nodes[0];
26363
26497
  for (var i = 0; i < sequence.length; i += 2) {
26364
26498
  var nextNode = nodes[sequence[i + 1]];
26365
- var relIndex = (0, neo4j_driver_core_1$q.toNumber)(sequence[i]);
26499
+ var relIndex = (0, neo4j_driver_core_1$r.toNumber)(sequence[i]);
26366
26500
  var rel = void 0;
26367
26501
  if (relIndex > 0) {
26368
26502
  rel = rels[relIndex - 1];
26369
- if (rel instanceof neo4j_driver_core_1$q.UnboundRelationship) {
26503
+ if (rel instanceof neo4j_driver_core_1$r.UnboundRelationship) {
26370
26504
  // To avoid duplication, relationships in a path do not contain
26371
26505
  // information about their start and end nodes, that's instead
26372
26506
  // inferred from the path sequence. This is us inferring (and,
@@ -26376,16 +26510,16 @@
26376
26510
  }
26377
26511
  else {
26378
26512
  rel = rels[-relIndex - 1];
26379
- if (rel instanceof neo4j_driver_core_1$q.UnboundRelationship) {
26513
+ if (rel instanceof neo4j_driver_core_1$r.UnboundRelationship) {
26380
26514
  // See above
26381
26515
  rels[-relIndex - 1] = rel = rel.bindTo(nextNode, prevNode);
26382
26516
  }
26383
26517
  }
26384
26518
  // Done hydrating one path segment.
26385
- segments.push(new neo4j_driver_core_1$q.PathSegment(prevNode, rel, nextNode));
26519
+ segments.push(new neo4j_driver_core_1$r.PathSegment(prevNode, rel, nextNode));
26386
26520
  prevNode = nextNode;
26387
26521
  }
26388
- return new neo4j_driver_core_1$q.Path(nodes[0], nodes[nodes.length - 1], segments);
26522
+ return new neo4j_driver_core_1$r.Path(nodes[0], nodes[nodes.length - 1], segments);
26389
26523
  }
26390
26524
  });
26391
26525
  }
@@ -26419,7 +26553,7 @@
26419
26553
  __setModuleDefault$2(result, mod);
26420
26554
  return result;
26421
26555
  };
26422
- var __importDefault$u = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
26556
+ var __importDefault$w = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
26423
26557
  return (mod && mod.__esModule) ? mod : { "default": mod };
26424
26558
  };
26425
26559
  Object.defineProperty(boltProtocolV1, "__esModule", { value: true });
@@ -26443,13 +26577,13 @@
26443
26577
  */
26444
26578
  var bolt_protocol_util_1$7 = boltProtocolUtil;
26445
26579
  var packstream_1$4 = packstream;
26446
- var request_message_1$8 = __importStar$2(requestMessage);
26447
- var stream_observers_1$8 = streamObservers;
26448
- var neo4j_driver_core_1$p = lib$1;
26449
- var bolt_protocol_v1_transformer_1$1 = __importDefault$u(boltProtocolV1_transformer);
26450
- var transformer_1$b = __importDefault$u(transformer);
26451
- var Bookmarks$3 = neo4j_driver_core_1$p.internal.bookmarks.Bookmarks, _a$8 = neo4j_driver_core_1$p.internal.constants, ACCESS_MODE_WRITE = _a$8.ACCESS_MODE_WRITE, BOLT_PROTOCOL_V1 = _a$8.BOLT_PROTOCOL_V1; neo4j_driver_core_1$p.internal.logger.Logger; var TxConfig$2 = neo4j_driver_core_1$p.internal.txConfig.TxConfig;
26452
- var BoltProtocol$a = /** @class */ (function () {
26580
+ var request_message_1$9 = __importStar$2(requestMessage);
26581
+ var stream_observers_1$9 = streamObservers;
26582
+ var neo4j_driver_core_1$q = lib$1;
26583
+ var bolt_protocol_v1_transformer_1$1 = __importDefault$w(boltProtocolV1_transformer);
26584
+ var transformer_1$c = __importDefault$w(transformer);
26585
+ var Bookmarks$3 = neo4j_driver_core_1$q.internal.bookmarks.Bookmarks, _a$8 = neo4j_driver_core_1$q.internal.constants, ACCESS_MODE_WRITE = _a$8.ACCESS_MODE_WRITE, BOLT_PROTOCOL_V1 = _a$8.BOLT_PROTOCOL_V1; neo4j_driver_core_1$q.internal.logger.Logger; var TxConfig$2 = neo4j_driver_core_1$q.internal.txConfig.TxConfig;
26586
+ var BoltProtocol$b = /** @class */ (function () {
26453
26587
  /**
26454
26588
  * @callback CreateResponseHandler Creates the response handler
26455
26589
  * @param {BoltProtocol} protocol The bolt protocol
@@ -26488,7 +26622,7 @@
26488
26622
  get: function () {
26489
26623
  var _this = this;
26490
26624
  if (this._transformer === undefined) {
26491
- this._transformer = new transformer_1$b.default(Object.values(bolt_protocol_v1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
26625
+ this._transformer = new transformer_1$c.default(Object.values(bolt_protocol_v1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
26492
26626
  }
26493
26627
  return this._transformer;
26494
26628
  },
@@ -26585,14 +26719,14 @@
26585
26719
  */
26586
26720
  BoltProtocol.prototype.initialize = function (_a) {
26587
26721
  var _this = this;
26588
- var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
26589
- var observer = new stream_observers_1$8.LoginObserver({
26722
+ var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
26723
+ var observer = new stream_observers_1$9.LoginObserver({
26590
26724
  onError: function (error) { return _this._onLoginError(error, onError); },
26591
26725
  onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, onComplete); }
26592
26726
  });
26593
26727
  // passing notification filter on this protocol version throws an error
26594
26728
  (0, bolt_protocol_util_1$7.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
26595
- this.write(request_message_1$8.default.init(userAgent, authToken), observer, true);
26729
+ this.write(request_message_1$9.default.init(userAgent, authToken), observer, true);
26596
26730
  return observer;
26597
26731
  };
26598
26732
  /**
@@ -26607,12 +26741,12 @@
26607
26741
  */
26608
26742
  BoltProtocol.prototype.logoff = function (_a) {
26609
26743
  var _b = _a === void 0 ? {} : _a, onComplete = _b.onComplete, onError = _b.onError; _b.flush;
26610
- var observer = new stream_observers_1$8.LogoffObserver({
26744
+ var observer = new stream_observers_1$9.LogoffObserver({
26611
26745
  onCompleted: onComplete,
26612
26746
  onError: onError
26613
26747
  });
26614
26748
  // TODO: Verify the Neo4j version in the message
26615
- var error = (0, neo4j_driver_core_1$p.newError)('Driver is connected to a database that does not support logoff. ' +
26749
+ var error = (0, neo4j_driver_core_1$q.newError)('Driver is connected to a database that does not support logoff. ' +
26616
26750
  'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
26617
26751
  // unsupported API was used, consider this a fatal error for the current connection
26618
26752
  this._onProtocolError(error.message);
@@ -26633,12 +26767,12 @@
26633
26767
  BoltProtocol.prototype.logon = function (_a) {
26634
26768
  var _this = this;
26635
26769
  var _b = _a === void 0 ? {} : _a, authToken = _b.authToken, onComplete = _b.onComplete, onError = _b.onError; _b.flush;
26636
- var observer = new stream_observers_1$8.LoginObserver({
26770
+ var observer = new stream_observers_1$9.LoginObserver({
26637
26771
  onCompleted: function () { return _this._onLoginCompleted({}, authToken, onComplete); },
26638
26772
  onError: function (error) { return _this._onLoginError(error, onError); }
26639
26773
  });
26640
26774
  // TODO: Verify the Neo4j version in the message
26641
- var error = (0, neo4j_driver_core_1$p.newError)('Driver is connected to a database that does not support logon. ' +
26775
+ var error = (0, neo4j_driver_core_1$q.newError)('Driver is connected to a database that does not support logon. ' +
26642
26776
  'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
26643
26777
  // unsupported API was used, consider this a fatal error for the current connection
26644
26778
  this._onProtocolError(error.message);
@@ -26750,7 +26884,7 @@
26750
26884
  */
26751
26885
  BoltProtocol.prototype.run = function (query, parameters, _a) {
26752
26886
  var _b = _a === void 0 ? {} : _a; _b.bookmarks; var txConfig = _b.txConfig, database = _b.database; _b.mode; var impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.highRecordWatermark, highRecordWatermark = _d === void 0 ? Number.MAX_VALUE : _d, _e = _b.lowRecordWatermark, lowRecordWatermark = _e === void 0 ? Number.MAX_VALUE : _e;
26753
- var observer = new stream_observers_1$8.ResultStreamObserver({
26887
+ var observer = new stream_observers_1$9.ResultStreamObserver({
26754
26888
  server: this._server,
26755
26889
  beforeKeys: beforeKeys,
26756
26890
  afterKeys: afterKeys,
@@ -26769,8 +26903,8 @@
26769
26903
  (0, bolt_protocol_util_1$7.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);
26770
26904
  // passing notification filter on this protocol version throws an error
26771
26905
  (0, bolt_protocol_util_1$7.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
26772
- this.write(request_message_1$8.default.run(query, parameters), observer, false);
26773
- this.write(request_message_1$8.default.pullAll(), observer, flush);
26906
+ this.write(request_message_1$9.default.run(query, parameters), observer, false);
26907
+ this.write(request_message_1$9.default.pullAll(), observer, flush);
26774
26908
  return observer;
26775
26909
  };
26776
26910
  Object.defineProperty(BoltProtocol.prototype, "currentFailure", {
@@ -26789,12 +26923,12 @@
26789
26923
  */
26790
26924
  BoltProtocol.prototype.reset = function (_a) {
26791
26925
  var _b = _a === void 0 ? {} : _a, onError = _b.onError, onComplete = _b.onComplete;
26792
- var observer = new stream_observers_1$8.ResetObserver({
26926
+ var observer = new stream_observers_1$9.ResetObserver({
26793
26927
  onProtocolError: this._onProtocolError,
26794
26928
  onError: onError,
26795
26929
  onComplete: onComplete
26796
26930
  });
26797
- this.write(request_message_1$8.default.reset(), observer, true);
26931
+ this.write(request_message_1$9.default.reset(), observer, true);
26798
26932
  return observer;
26799
26933
  };
26800
26934
  BoltProtocol.prototype._createPacker = function (chunker) {
@@ -26825,11 +26959,11 @@
26825
26959
  }
26826
26960
  };
26827
26961
  BoltProtocol.prototype.isLastMessageLogon = function () {
26828
- return this._lastMessageSignature === request_message_1$8.SIGNATURES.HELLO ||
26829
- this._lastMessageSignature === request_message_1$8.SIGNATURES.LOGON;
26962
+ return this._lastMessageSignature === request_message_1$9.SIGNATURES.HELLO ||
26963
+ this._lastMessageSignature === request_message_1$9.SIGNATURES.LOGON;
26830
26964
  };
26831
26965
  BoltProtocol.prototype.isLastMessageReset = function () {
26832
- return this._lastMessageSignature === request_message_1$8.SIGNATURES.RESET;
26966
+ return this._lastMessageSignature === request_message_1$9.SIGNATURES.RESET;
26833
26967
  };
26834
26968
  /**
26835
26969
  * Notifies faltal erros to the observers and mark the protocol in the fatal error state.
@@ -26910,7 +27044,7 @@
26910
27044
  };
26911
27045
  return BoltProtocol;
26912
27046
  }());
26913
- boltProtocolV1.default = BoltProtocol$a;
27047
+ boltProtocolV1.default = BoltProtocol$b;
26914
27048
 
26915
27049
  var boltProtocolV2 = {};
26916
27050
 
@@ -26938,17 +27072,17 @@
26938
27072
  * See the License for the specific language governing permissions and
26939
27073
  * limitations under the License.
26940
27074
  */
26941
- var neo4j_driver_core_1$o = lib$1;
26942
- var _a$7 = neo4j_driver_core_1$o.internal.temporalUtil, DAYS_0000_TO_1970 = _a$7.DAYS_0000_TO_1970, DAYS_PER_400_YEAR_CYCLE = _a$7.DAYS_PER_400_YEAR_CYCLE, NANOS_PER_HOUR = _a$7.NANOS_PER_HOUR, NANOS_PER_MINUTE = _a$7.NANOS_PER_MINUTE, NANOS_PER_SECOND = _a$7.NANOS_PER_SECOND, SECONDS_PER_DAY = _a$7.SECONDS_PER_DAY, floorDiv = _a$7.floorDiv, floorMod = _a$7.floorMod;
27075
+ var neo4j_driver_core_1$p = lib$1;
27076
+ var _a$7 = neo4j_driver_core_1$p.internal.temporalUtil, DAYS_0000_TO_1970 = _a$7.DAYS_0000_TO_1970, DAYS_PER_400_YEAR_CYCLE = _a$7.DAYS_PER_400_YEAR_CYCLE, NANOS_PER_HOUR = _a$7.NANOS_PER_HOUR, NANOS_PER_MINUTE = _a$7.NANOS_PER_MINUTE, NANOS_PER_SECOND = _a$7.NANOS_PER_SECOND, SECONDS_PER_DAY = _a$7.SECONDS_PER_DAY, floorDiv = _a$7.floorDiv, floorMod = _a$7.floorMod;
26943
27077
  /**
26944
27078
  * Converts given epoch day to a local date.
26945
27079
  * @param {Integer|number|string} epochDay the epoch day to convert.
26946
27080
  * @return {Date} the date representing the epoch day in years, months and days.
26947
27081
  */
26948
27082
  function epochDayToDate(epochDay) {
26949
- epochDay = (0, neo4j_driver_core_1$o.int)(epochDay);
27083
+ epochDay = (0, neo4j_driver_core_1$p.int)(epochDay);
26950
27084
  var zeroDay = epochDay.add(DAYS_0000_TO_1970).subtract(60);
26951
- var adjust = (0, neo4j_driver_core_1$o.int)(0);
27085
+ var adjust = (0, neo4j_driver_core_1$p.int)(0);
26952
27086
  if (zeroDay.lessThan(0)) {
26953
27087
  var adjustCycles = zeroDay
26954
27088
  .add(1)
@@ -26991,7 +27125,7 @@
26991
27125
  .div(10))
26992
27126
  .add(1);
26993
27127
  year = year.add(marchMonth.div(10));
26994
- return new neo4j_driver_core_1$o.Date(year, month, day);
27128
+ return new neo4j_driver_core_1$p.Date(year, month, day);
26995
27129
  }
26996
27130
  temporalFactory.epochDayToDate = epochDayToDate;
26997
27131
  /**
@@ -27000,14 +27134,14 @@
27000
27134
  * @return {LocalTime} the local time representing given nanoseconds of the day.
27001
27135
  */
27002
27136
  function nanoOfDayToLocalTime(nanoOfDay) {
27003
- nanoOfDay = (0, neo4j_driver_core_1$o.int)(nanoOfDay);
27137
+ nanoOfDay = (0, neo4j_driver_core_1$p.int)(nanoOfDay);
27004
27138
  var hour = nanoOfDay.div(NANOS_PER_HOUR);
27005
27139
  nanoOfDay = nanoOfDay.subtract(hour.multiply(NANOS_PER_HOUR));
27006
27140
  var minute = nanoOfDay.div(NANOS_PER_MINUTE);
27007
27141
  nanoOfDay = nanoOfDay.subtract(minute.multiply(NANOS_PER_MINUTE));
27008
27142
  var second = nanoOfDay.div(NANOS_PER_SECOND);
27009
27143
  var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));
27010
- return new neo4j_driver_core_1$o.LocalTime(hour, minute, second, nanosecond);
27144
+ return new neo4j_driver_core_1$p.LocalTime(hour, minute, second, nanosecond);
27011
27145
  }
27012
27146
  temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
27013
27147
  /**
@@ -27022,7 +27156,7 @@
27022
27156
  var nanoOfDay = secondsOfDay.multiply(NANOS_PER_SECOND).add(nano);
27023
27157
  var localDate = epochDayToDate(epochDay);
27024
27158
  var localTime = nanoOfDayToLocalTime(nanoOfDay);
27025
- return new neo4j_driver_core_1$o.LocalDateTime(localDate.year, localDate.month, localDate.day, localTime.hour, localTime.minute, localTime.second, localTime.nanosecond);
27159
+ return new neo4j_driver_core_1$p.LocalDateTime(localDate.year, localDate.month, localDate.day, localTime.hour, localTime.minute, localTime.second, localTime.nanosecond);
27026
27160
  }
27027
27161
  temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
27028
27162
 
@@ -27044,8 +27178,8 @@
27044
27178
  * See the License for the specific language governing permissions and
27045
27179
  * limitations under the License.
27046
27180
  */
27047
- var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
27048
- __assign$g = Object.assign || function(t) {
27181
+ var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
27182
+ __assign$i = Object.assign || function(t) {
27049
27183
  for (var s, i = 1, n = arguments.length; i < n; i++) {
27050
27184
  s = arguments[i];
27051
27185
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -27053,7 +27187,7 @@
27053
27187
  }
27054
27188
  return t;
27055
27189
  };
27056
- return __assign$g.apply(this, arguments);
27190
+ return __assign$i.apply(this, arguments);
27057
27191
  };
27058
27192
  var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
27059
27193
  var m = typeof Symbol === "function" && o[Symbol.iterator];
@@ -27071,16 +27205,16 @@
27071
27205
  }
27072
27206
  return ar;
27073
27207
  };
27074
- var __importDefault$t = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27208
+ var __importDefault$v = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27075
27209
  return (mod && mod.__esModule) ? mod : { "default": mod };
27076
27210
  };
27077
27211
  Object.defineProperty(boltProtocolV2_transformer, "__esModule", { value: true });
27078
- var neo4j_driver_core_1$n = lib$1;
27212
+ var neo4j_driver_core_1$o = lib$1;
27079
27213
  var packstream_1$3 = packstream;
27080
- var transformer_1$a = transformer;
27214
+ var transformer_1$b = transformer;
27081
27215
  var temporal_factory_1$1 = temporalFactory;
27082
- var bolt_protocol_v1_transformer_1 = __importDefault$t(boltProtocolV1_transformer);
27083
- var _a$6 = neo4j_driver_core_1$n.internal.temporalUtil, dateToEpochDay = _a$6.dateToEpochDay, localDateTimeToEpochSecond$1 = _a$6.localDateTimeToEpochSecond, localTimeToNanoOfDay = _a$6.localTimeToNanoOfDay;
27216
+ var bolt_protocol_v1_transformer_1 = __importDefault$v(boltProtocolV1_transformer);
27217
+ var _a$6 = neo4j_driver_core_1$o.internal.temporalUtil, dateToEpochDay = _a$6.dateToEpochDay, localDateTimeToEpochSecond$1 = _a$6.localDateTimeToEpochSecond, localTimeToNanoOfDay = _a$6.localTimeToNanoOfDay;
27084
27218
  var POINT_2D = 0x58;
27085
27219
  var POINT_2D_STRUCT_SIZE = 3;
27086
27220
  var POINT_3D = 0x59;
@@ -27104,18 +27238,18 @@
27104
27238
  * @returns {TypeTransformer}
27105
27239
  */
27106
27240
  function createPoint2DTransformer() {
27107
- return new transformer_1$a.TypeTransformer({
27241
+ return new transformer_1$b.TypeTransformer({
27108
27242
  signature: POINT_2D,
27109
- isTypeInstance: function (point) { return (0, neo4j_driver_core_1$n.isPoint)(point) && (point.z === null || point.z === undefined); },
27243
+ isTypeInstance: function (point) { return (0, neo4j_driver_core_1$o.isPoint)(point) && (point.z === null || point.z === undefined); },
27110
27244
  toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_2D, [
27111
- (0, neo4j_driver_core_1$n.int)(point.srid),
27245
+ (0, neo4j_driver_core_1$o.int)(point.srid),
27112
27246
  point.x,
27113
27247
  point.y
27114
27248
  ]); },
27115
27249
  fromStructure: function (struct) {
27116
27250
  packstream_1$3.structure.verifyStructSize('Point2D', POINT_2D_STRUCT_SIZE, struct.size);
27117
27251
  var _a = __read$5(struct.fields, 3), srid = _a[0], x = _a[1], y = _a[2];
27118
- return new neo4j_driver_core_1$n.Point(srid, x, y, undefined // z
27252
+ return new neo4j_driver_core_1$o.Point(srid, x, y, undefined // z
27119
27253
  );
27120
27254
  }
27121
27255
  });
@@ -27125,11 +27259,11 @@
27125
27259
  * @returns {TypeTransformer}
27126
27260
  */
27127
27261
  function createPoint3DTransformer() {
27128
- return new transformer_1$a.TypeTransformer({
27262
+ return new transformer_1$b.TypeTransformer({
27129
27263
  signature: POINT_3D,
27130
- isTypeInstance: function (point) { return (0, neo4j_driver_core_1$n.isPoint)(point) && point.z !== null && point.z !== undefined; },
27264
+ isTypeInstance: function (point) { return (0, neo4j_driver_core_1$o.isPoint)(point) && point.z !== null && point.z !== undefined; },
27131
27265
  toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_3D, [
27132
- (0, neo4j_driver_core_1$n.int)(point.srid),
27266
+ (0, neo4j_driver_core_1$o.int)(point.srid),
27133
27267
  point.x,
27134
27268
  point.y,
27135
27269
  point.z
@@ -27137,7 +27271,7 @@
27137
27271
  fromStructure: function (struct) {
27138
27272
  packstream_1$3.structure.verifyStructSize('Point3D', POINT_3D_STRUCT_SIZE, struct.size);
27139
27273
  var _a = __read$5(struct.fields, 4), srid = _a[0], x = _a[1], y = _a[2], z = _a[3];
27140
- return new neo4j_driver_core_1$n.Point(srid, x, y, z);
27274
+ return new neo4j_driver_core_1$o.Point(srid, x, y, z);
27141
27275
  }
27142
27276
  });
27143
27277
  }
@@ -27146,20 +27280,20 @@
27146
27280
  * @returns {TypeTransformer}
27147
27281
  */
27148
27282
  function createDurationTransformer() {
27149
- return new transformer_1$a.TypeTransformer({
27283
+ return new transformer_1$b.TypeTransformer({
27150
27284
  signature: DURATION,
27151
- isTypeInstance: neo4j_driver_core_1$n.isDuration,
27285
+ isTypeInstance: neo4j_driver_core_1$o.isDuration,
27152
27286
  toStructure: function (value) {
27153
- var months = (0, neo4j_driver_core_1$n.int)(value.months);
27154
- var days = (0, neo4j_driver_core_1$n.int)(value.days);
27155
- var seconds = (0, neo4j_driver_core_1$n.int)(value.seconds);
27156
- var nanoseconds = (0, neo4j_driver_core_1$n.int)(value.nanoseconds);
27287
+ var months = (0, neo4j_driver_core_1$o.int)(value.months);
27288
+ var days = (0, neo4j_driver_core_1$o.int)(value.days);
27289
+ var seconds = (0, neo4j_driver_core_1$o.int)(value.seconds);
27290
+ var nanoseconds = (0, neo4j_driver_core_1$o.int)(value.nanoseconds);
27157
27291
  return new packstream_1$3.structure.Structure(DURATION, [months, days, seconds, nanoseconds]);
27158
27292
  },
27159
27293
  fromStructure: function (struct) {
27160
27294
  packstream_1$3.structure.verifyStructSize('Duration', DURATION_STRUCT_SIZE, struct.size);
27161
27295
  var _a = __read$5(struct.fields, 4), months = _a[0], days = _a[1], seconds = _a[2], nanoseconds = _a[3];
27162
- return new neo4j_driver_core_1$n.Duration(months, days, seconds, nanoseconds);
27296
+ return new neo4j_driver_core_1$o.Duration(months, days, seconds, nanoseconds);
27163
27297
  }
27164
27298
  });
27165
27299
  }
@@ -27172,9 +27306,9 @@
27172
27306
  */
27173
27307
  function createLocalTimeTransformer(_a) {
27174
27308
  var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
27175
- return new transformer_1$a.TypeTransformer({
27309
+ return new transformer_1$b.TypeTransformer({
27176
27310
  signature: LOCAL_TIME,
27177
- isTypeInstance: neo4j_driver_core_1$n.isLocalTime,
27311
+ isTypeInstance: neo4j_driver_core_1$o.isLocalTime,
27178
27312
  toStructure: function (value) {
27179
27313
  var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
27180
27314
  return new packstream_1$3.structure.Structure(LOCAL_TIME, [nanoOfDay]);
@@ -27196,19 +27330,19 @@
27196
27330
  */
27197
27331
  function createTimeTransformer(_a) {
27198
27332
  var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
27199
- return new transformer_1$a.TypeTransformer({
27333
+ return new transformer_1$b.TypeTransformer({
27200
27334
  signature: TIME,
27201
- isTypeInstance: neo4j_driver_core_1$n.isTime,
27335
+ isTypeInstance: neo4j_driver_core_1$o.isTime,
27202
27336
  toStructure: function (value) {
27203
27337
  var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
27204
- var offsetSeconds = (0, neo4j_driver_core_1$n.int)(value.timeZoneOffsetSeconds);
27338
+ var offsetSeconds = (0, neo4j_driver_core_1$o.int)(value.timeZoneOffsetSeconds);
27205
27339
  return new packstream_1$3.structure.Structure(TIME, [nanoOfDay, offsetSeconds]);
27206
27340
  },
27207
27341
  fromStructure: function (struct) {
27208
27342
  packstream_1$3.structure.verifyStructSize('Time', TIME_STRUCT_SIZE, struct.size);
27209
27343
  var _a = __read$5(struct.fields, 2), nanoOfDay = _a[0], offsetSeconds = _a[1];
27210
27344
  var localTime = (0, temporal_factory_1$1.nanoOfDayToLocalTime)(nanoOfDay);
27211
- var result = new neo4j_driver_core_1$n.Time(localTime.hour, localTime.minute, localTime.second, localTime.nanosecond, offsetSeconds);
27345
+ var result = new neo4j_driver_core_1$o.Time(localTime.hour, localTime.minute, localTime.second, localTime.nanosecond, offsetSeconds);
27212
27346
  return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
27213
27347
  }
27214
27348
  });
@@ -27222,9 +27356,9 @@
27222
27356
  */
27223
27357
  function createDateTransformer(_a) {
27224
27358
  var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
27225
- return new transformer_1$a.TypeTransformer({
27359
+ return new transformer_1$b.TypeTransformer({
27226
27360
  signature: DATE,
27227
- isTypeInstance: neo4j_driver_core_1$n.isDate,
27361
+ isTypeInstance: neo4j_driver_core_1$o.isDate,
27228
27362
  toStructure: function (value) {
27229
27363
  var epochDay = dateToEpochDay(value.year, value.month, value.day);
27230
27364
  return new packstream_1$3.structure.Structure(DATE, [epochDay]);
@@ -27246,12 +27380,12 @@
27246
27380
  */
27247
27381
  function createLocalDateTimeTransformer(_a) {
27248
27382
  var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
27249
- return new transformer_1$a.TypeTransformer({
27383
+ return new transformer_1$b.TypeTransformer({
27250
27384
  signature: LOCAL_DATE_TIME,
27251
- isTypeInstance: neo4j_driver_core_1$n.isLocalDateTime,
27385
+ isTypeInstance: neo4j_driver_core_1$o.isLocalDateTime,
27252
27386
  toStructure: function (value) {
27253
27387
  var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
27254
- var nano = (0, neo4j_driver_core_1$n.int)(value.nanosecond);
27388
+ var nano = (0, neo4j_driver_core_1$o.int)(value.nanosecond);
27255
27389
  return new packstream_1$3.structure.Structure(LOCAL_DATE_TIME, [epochSecond, nano]);
27256
27390
  },
27257
27391
  fromStructure: function (struct) {
@@ -27271,12 +27405,12 @@
27271
27405
  */
27272
27406
  function createDateTimeWithZoneIdTransformer$1(_a) {
27273
27407
  var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
27274
- return new transformer_1$a.TypeTransformer({
27408
+ return new transformer_1$b.TypeTransformer({
27275
27409
  signature: DATE_TIME_WITH_ZONE_ID$1,
27276
- isTypeInstance: function (object) { return (0, neo4j_driver_core_1$n.isDateTime)(object) && object.timeZoneId != null; },
27410
+ isTypeInstance: function (object) { return (0, neo4j_driver_core_1$o.isDateTime)(object) && object.timeZoneId != null; },
27277
27411
  toStructure: function (value) {
27278
27412
  var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
27279
- var nano = (0, neo4j_driver_core_1$n.int)(value.nanosecond);
27413
+ var nano = (0, neo4j_driver_core_1$o.int)(value.nanosecond);
27280
27414
  var timeZoneId = value.timeZoneId;
27281
27415
  return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_ID$1, [epochSecond, nano, timeZoneId]);
27282
27416
  },
@@ -27284,7 +27418,7 @@
27284
27418
  packstream_1$3.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1, struct.size);
27285
27419
  var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
27286
27420
  var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
27287
- var result = new neo4j_driver_core_1$n.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, null, timeZoneId);
27421
+ var result = new neo4j_driver_core_1$o.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, null, timeZoneId);
27288
27422
  return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
27289
27423
  }
27290
27424
  });
@@ -27298,20 +27432,20 @@
27298
27432
  */
27299
27433
  function createDateTimeWithOffsetTransformer$1(_a) {
27300
27434
  var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
27301
- return new transformer_1$a.TypeTransformer({
27435
+ return new transformer_1$b.TypeTransformer({
27302
27436
  signature: DATE_TIME_WITH_ZONE_OFFSET$1,
27303
- isTypeInstance: function (object) { return (0, neo4j_driver_core_1$n.isDateTime)(object) && object.timeZoneId == null; },
27437
+ isTypeInstance: function (object) { return (0, neo4j_driver_core_1$o.isDateTime)(object) && object.timeZoneId == null; },
27304
27438
  toStructure: function (value) {
27305
27439
  var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
27306
- var nano = (0, neo4j_driver_core_1$n.int)(value.nanosecond);
27307
- var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$n.int)(value.timeZoneOffsetSeconds);
27440
+ var nano = (0, neo4j_driver_core_1$o.int)(value.nanosecond);
27441
+ var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$o.int)(value.timeZoneOffsetSeconds);
27308
27442
  return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET$1, [epochSecond, nano, timeZoneOffsetSeconds]);
27309
27443
  },
27310
27444
  fromStructure: function (struct) {
27311
27445
  packstream_1$3.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE$1, struct.size);
27312
27446
  var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
27313
27447
  var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
27314
- var result = new neo4j_driver_core_1$n.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);
27448
+ var result = new neo4j_driver_core_1$o.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);
27315
27449
  return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
27316
27450
  }
27317
27451
  });
@@ -27327,15 +27461,15 @@
27327
27461
  for (var prop in obj) {
27328
27462
  if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
27329
27463
  var value = obj[prop];
27330
- clone[prop] = (0, neo4j_driver_core_1$n.isInt)(value) ? convert(value) : value;
27464
+ clone[prop] = (0, neo4j_driver_core_1$o.isInt)(value) ? convert(value) : value;
27331
27465
  }
27332
27466
  }
27333
27467
  Object.freeze(clone);
27334
27468
  return clone;
27335
27469
  }
27336
- boltProtocolV2_transformer.default = __assign$g(__assign$g({}, bolt_protocol_v1_transformer_1.default), { createPoint2DTransformer: createPoint2DTransformer, createPoint3DTransformer: createPoint3DTransformer, createDurationTransformer: createDurationTransformer, createLocalTimeTransformer: createLocalTimeTransformer, createTimeTransformer: createTimeTransformer, createDateTransformer: createDateTransformer, createLocalDateTimeTransformer: createLocalDateTimeTransformer, createDateTimeWithZoneIdTransformer: createDateTimeWithZoneIdTransformer$1, createDateTimeWithOffsetTransformer: createDateTimeWithOffsetTransformer$1 });
27470
+ boltProtocolV2_transformer.default = __assign$i(__assign$i({}, bolt_protocol_v1_transformer_1.default), { createPoint2DTransformer: createPoint2DTransformer, createPoint3DTransformer: createPoint3DTransformer, createDurationTransformer: createDurationTransformer, createLocalTimeTransformer: createLocalTimeTransformer, createTimeTransformer: createTimeTransformer, createDateTransformer: createDateTransformer, createLocalDateTimeTransformer: createLocalDateTimeTransformer, createDateTimeWithZoneIdTransformer: createDateTimeWithZoneIdTransformer$1, createDateTimeWithOffsetTransformer: createDateTimeWithOffsetTransformer$1 });
27337
27471
 
27338
- var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
27472
+ var __extends$g = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
27339
27473
  var extendStatics = function (d, b) {
27340
27474
  extendStatics = Object.setPrototypeOf ||
27341
27475
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27350,7 +27484,7 @@
27350
27484
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27351
27485
  };
27352
27486
  })();
27353
- var __importDefault$s = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27487
+ var __importDefault$u = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27354
27488
  return (mod && mod.__esModule) ? mod : { "default": mod };
27355
27489
  };
27356
27490
  Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
@@ -27372,14 +27506,14 @@
27372
27506
  * See the License for the specific language governing permissions and
27373
27507
  * limitations under the License.
27374
27508
  */
27375
- var bolt_protocol_v1_1$1 = __importDefault$s(boltProtocolV1);
27376
- var packstream_1$2 = __importDefault$s(packstream);
27377
- var neo4j_driver_core_1$m = lib$1;
27378
- var bolt_protocol_v2_transformer_1$1 = __importDefault$s(boltProtocolV2_transformer);
27379
- var transformer_1$9 = __importDefault$s(transformer);
27380
- var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$m.internal.constants.BOLT_PROTOCOL_V2;
27381
- var BoltProtocol$9 = /** @class */ (function (_super) {
27382
- __extends$f(BoltProtocol, _super);
27509
+ var bolt_protocol_v1_1$1 = __importDefault$u(boltProtocolV1);
27510
+ var packstream_1$2 = __importDefault$u(packstream);
27511
+ var neo4j_driver_core_1$n = lib$1;
27512
+ var bolt_protocol_v2_transformer_1$1 = __importDefault$u(boltProtocolV2_transformer);
27513
+ var transformer_1$a = __importDefault$u(transformer);
27514
+ var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$n.internal.constants.BOLT_PROTOCOL_V2;
27515
+ var BoltProtocol$a = /** @class */ (function (_super) {
27516
+ __extends$g(BoltProtocol, _super);
27383
27517
  function BoltProtocol() {
27384
27518
  return _super !== null && _super.apply(this, arguments) || this;
27385
27519
  }
@@ -27393,7 +27527,7 @@
27393
27527
  get: function () {
27394
27528
  var _this = this;
27395
27529
  if (this._transformer === undefined) {
27396
- this._transformer = new transformer_1$9.default(Object.values(bolt_protocol_v2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
27530
+ this._transformer = new transformer_1$a.default(Object.values(bolt_protocol_v2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
27397
27531
  }
27398
27532
  return this._transformer;
27399
27533
  },
@@ -27409,7 +27543,7 @@
27409
27543
  });
27410
27544
  return BoltProtocol;
27411
27545
  }(bolt_protocol_v1_1$1.default));
27412
- boltProtocolV2.default = BoltProtocol$9;
27546
+ boltProtocolV2.default = BoltProtocol$a;
27413
27547
 
27414
27548
  var boltProtocolV3 = {};
27415
27549
 
@@ -27433,8 +27567,8 @@
27433
27567
  * See the License for the specific language governing permissions and
27434
27568
  * limitations under the License.
27435
27569
  */
27436
- var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
27437
- __assign$f = Object.assign || function(t) {
27570
+ var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
27571
+ __assign$h = Object.assign || function(t) {
27438
27572
  for (var s, i = 1, n = arguments.length; i < n; i++) {
27439
27573
  s = arguments[i];
27440
27574
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -27442,16 +27576,16 @@
27442
27576
  }
27443
27577
  return t;
27444
27578
  };
27445
- return __assign$f.apply(this, arguments);
27579
+ return __assign$h.apply(this, arguments);
27446
27580
  };
27447
- var __importDefault$r = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27581
+ var __importDefault$t = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27448
27582
  return (mod && mod.__esModule) ? mod : { "default": mod };
27449
27583
  };
27450
27584
  Object.defineProperty(boltProtocolV3_transformer, "__esModule", { value: true });
27451
- var bolt_protocol_v2_transformer_1 = __importDefault$r(boltProtocolV2_transformer);
27452
- boltProtocolV3_transformer.default = __assign$f({}, bolt_protocol_v2_transformer_1.default);
27585
+ var bolt_protocol_v2_transformer_1 = __importDefault$t(boltProtocolV2_transformer);
27586
+ boltProtocolV3_transformer.default = __assign$h({}, bolt_protocol_v2_transformer_1.default);
27453
27587
 
27454
- var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
27588
+ var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
27455
27589
  var extendStatics = function (d, b) {
27456
27590
  extendStatics = Object.setPrototypeOf ||
27457
27591
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27466,8 +27600,8 @@
27466
27600
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27467
27601
  };
27468
27602
  })();
27469
- var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
27470
- __assign$e = Object.assign || function(t) {
27603
+ var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
27604
+ __assign$g = Object.assign || function(t) {
27471
27605
  for (var s, i = 1, n = arguments.length; i < n; i++) {
27472
27606
  s = arguments[i];
27473
27607
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -27475,9 +27609,9 @@
27475
27609
  }
27476
27610
  return t;
27477
27611
  };
27478
- return __assign$e.apply(this, arguments);
27612
+ return __assign$g.apply(this, arguments);
27479
27613
  };
27480
- var __importDefault$q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27614
+ var __importDefault$s = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27481
27615
  return (mod && mod.__esModule) ? mod : { "default": mod };
27482
27616
  };
27483
27617
  Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
@@ -27499,19 +27633,19 @@
27499
27633
  * See the License for the specific language governing permissions and
27500
27634
  * limitations under the License.
27501
27635
  */
27502
- var bolt_protocol_v2_1$1 = __importDefault$q(boltProtocolV2);
27503
- var request_message_1$7 = __importDefault$q(requestMessage);
27636
+ var bolt_protocol_v2_1$1 = __importDefault$s(boltProtocolV2);
27637
+ var request_message_1$8 = __importDefault$s(requestMessage);
27504
27638
  var bolt_protocol_util_1$6 = boltProtocolUtil;
27505
- var stream_observers_1$7 = streamObservers;
27506
- var bolt_protocol_v3_transformer_1$1 = __importDefault$q(boltProtocolV3_transformer);
27507
- var transformer_1$8 = __importDefault$q(transformer);
27508
- var neo4j_driver_core_1$l = lib$1;
27509
- neo4j_driver_core_1$l.internal.bookmarks.Bookmarks; var BOLT_PROTOCOL_V3$2 = neo4j_driver_core_1$l.internal.constants.BOLT_PROTOCOL_V3, TxConfig$1 = neo4j_driver_core_1$l.internal.txConfig.TxConfig;
27639
+ var stream_observers_1$8 = streamObservers;
27640
+ var bolt_protocol_v3_transformer_1$1 = __importDefault$s(boltProtocolV3_transformer);
27641
+ var transformer_1$9 = __importDefault$s(transformer);
27642
+ var neo4j_driver_core_1$m = lib$1;
27643
+ neo4j_driver_core_1$m.internal.bookmarks.Bookmarks; var BOLT_PROTOCOL_V3$2 = neo4j_driver_core_1$m.internal.constants.BOLT_PROTOCOL_V3, TxConfig$1 = neo4j_driver_core_1$m.internal.txConfig.TxConfig;
27510
27644
  var CONTEXT$1 = 'context';
27511
27645
  var CALL_GET_ROUTING_TABLE = "CALL dbms.cluster.routing.getRoutingTable($".concat(CONTEXT$1, ")");
27512
- var noOpObserver = new stream_observers_1$7.StreamObserver();
27513
- var BoltProtocol$8 = /** @class */ (function (_super) {
27514
- __extends$e(BoltProtocol, _super);
27646
+ var noOpObserver = new stream_observers_1$8.StreamObserver();
27647
+ var BoltProtocol$9 = /** @class */ (function (_super) {
27648
+ __extends$f(BoltProtocol, _super);
27515
27649
  function BoltProtocol() {
27516
27650
  return _super !== null && _super.apply(this, arguments) || this;
27517
27651
  }
@@ -27526,7 +27660,7 @@
27526
27660
  get: function () {
27527
27661
  var _this = this;
27528
27662
  if (this._transformer === undefined) {
27529
- this._transformer = new transformer_1$8.default(Object.values(bolt_protocol_v3_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
27663
+ this._transformer = new transformer_1$9.default(Object.values(bolt_protocol_v3_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
27530
27664
  }
27531
27665
  return this._transformer;
27532
27666
  },
@@ -27550,22 +27684,22 @@
27550
27684
  };
27551
27685
  BoltProtocol.prototype.initialize = function (_a) {
27552
27686
  var _this = this;
27553
- var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
27554
- var observer = new stream_observers_1$7.LoginObserver({
27687
+ var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
27688
+ var observer = new stream_observers_1$8.LoginObserver({
27555
27689
  onError: function (error) { return _this._onLoginError(error, onError); },
27556
27690
  onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, authToken, onComplete); }
27557
27691
  });
27558
27692
  // passing notification filter on this protocol version throws an error
27559
27693
  (0, bolt_protocol_util_1$6.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
27560
- this.write(request_message_1$7.default.hello(userAgent, authToken), observer, true);
27694
+ this.write(request_message_1$8.default.hello(userAgent, authToken), observer, true);
27561
27695
  return observer;
27562
27696
  };
27563
27697
  BoltProtocol.prototype.prepareToClose = function () {
27564
- this.write(request_message_1$7.default.goodbye(), noOpObserver, true);
27698
+ this.write(request_message_1$8.default.goodbye(), noOpObserver, true);
27565
27699
  };
27566
27700
  BoltProtocol.prototype.beginTransaction = function (_a) {
27567
27701
  var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, mode = _b.mode, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;
27568
- var observer = new stream_observers_1$7.ResultStreamObserver({
27702
+ var observer = new stream_observers_1$8.ResultStreamObserver({
27569
27703
  server: this._server,
27570
27704
  beforeError: beforeError,
27571
27705
  afterError: afterError,
@@ -27579,12 +27713,12 @@
27579
27713
  (0, bolt_protocol_util_1$6.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);
27580
27714
  // passing notification filter on this protocol version throws an error
27581
27715
  (0, bolt_protocol_util_1$6.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
27582
- this.write(request_message_1$7.default.begin({ bookmarks: bookmarks, txConfig: txConfig, mode: mode }), observer, true);
27716
+ this.write(request_message_1$8.default.begin({ bookmarks: bookmarks, txConfig: txConfig, mode: mode }), observer, true);
27583
27717
  return observer;
27584
27718
  };
27585
27719
  BoltProtocol.prototype.commitTransaction = function (_a) {
27586
27720
  var _b = _a === void 0 ? {} : _a, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;
27587
- var observer = new stream_observers_1$7.ResultStreamObserver({
27721
+ var observer = new stream_observers_1$8.ResultStreamObserver({
27588
27722
  server: this._server,
27589
27723
  beforeError: beforeError,
27590
27724
  afterError: afterError,
@@ -27592,12 +27726,12 @@
27592
27726
  afterComplete: afterComplete
27593
27727
  });
27594
27728
  observer.prepareToHandleSingleResponse();
27595
- this.write(request_message_1$7.default.commit(), observer, true);
27729
+ this.write(request_message_1$8.default.commit(), observer, true);
27596
27730
  return observer;
27597
27731
  };
27598
27732
  BoltProtocol.prototype.rollbackTransaction = function (_a) {
27599
27733
  var _b = _a === void 0 ? {} : _a, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;
27600
- var observer = new stream_observers_1$7.ResultStreamObserver({
27734
+ var observer = new stream_observers_1$8.ResultStreamObserver({
27601
27735
  server: this._server,
27602
27736
  beforeError: beforeError,
27603
27737
  afterError: afterError,
@@ -27605,12 +27739,12 @@
27605
27739
  afterComplete: afterComplete
27606
27740
  });
27607
27741
  observer.prepareToHandleSingleResponse();
27608
- this.write(request_message_1$7.default.rollback(), observer, true);
27742
+ this.write(request_message_1$8.default.rollback(), observer, true);
27609
27743
  return observer;
27610
27744
  };
27611
27745
  BoltProtocol.prototype.run = function (query, parameters, _a) {
27612
27746
  var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, mode = _b.mode, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.highRecordWatermark, highRecordWatermark = _d === void 0 ? Number.MAX_VALUE : _d, _e = _b.lowRecordWatermark, lowRecordWatermark = _e === void 0 ? Number.MAX_VALUE : _e;
27613
- var observer = new stream_observers_1$7.ResultStreamObserver({
27747
+ var observer = new stream_observers_1$8.ResultStreamObserver({
27614
27748
  server: this._server,
27615
27749
  beforeKeys: beforeKeys,
27616
27750
  afterKeys: afterKeys,
@@ -27627,12 +27761,12 @@
27627
27761
  (0, bolt_protocol_util_1$6.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);
27628
27762
  // passing notification filter on this protocol version throws an error
27629
27763
  (0, bolt_protocol_util_1$6.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
27630
- this.write(request_message_1$7.default.runWithMetadata(query, parameters, {
27764
+ this.write(request_message_1$8.default.runWithMetadata(query, parameters, {
27631
27765
  bookmarks: bookmarks,
27632
27766
  txConfig: txConfig,
27633
27767
  mode: mode
27634
27768
  }), observer, false);
27635
- this.write(request_message_1$7.default.pullAll(), observer, flush);
27769
+ this.write(request_message_1$8.default.pullAll(), observer, flush);
27636
27770
  return observer;
27637
27771
  };
27638
27772
  /**
@@ -27653,8 +27787,8 @@
27653
27787
  BoltProtocol.prototype.requestRoutingInformation = function (_a) {
27654
27788
  var _b;
27655
27789
  var _c = _a.routingContext, routingContext = _c === void 0 ? {} : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;
27656
- var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT$1] = routingContext, _b), __assign$e(__assign$e({}, sessionContext), { txConfig: TxConfig$1.empty() }));
27657
- return new stream_observers_1$7.ProcedureRouteObserver({
27790
+ var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT$1] = routingContext, _b), __assign$g(__assign$g({}, sessionContext), { txConfig: TxConfig$1.empty() }));
27791
+ return new stream_observers_1$8.ProcedureRouteObserver({
27658
27792
  resultObserver: resultObserver,
27659
27793
  onProtocolError: this._onProtocolError,
27660
27794
  onError: onError,
@@ -27663,7 +27797,7 @@
27663
27797
  };
27664
27798
  return BoltProtocol;
27665
27799
  }(bolt_protocol_v2_1$1.default));
27666
- boltProtocolV3.default = BoltProtocol$8;
27800
+ boltProtocolV3.default = BoltProtocol$9;
27667
27801
 
27668
27802
  var boltProtocolV4x0 = {};
27669
27803
 
@@ -27687,8 +27821,8 @@
27687
27821
  * See the License for the specific language governing permissions and
27688
27822
  * limitations under the License.
27689
27823
  */
27690
- var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
27691
- __assign$d = Object.assign || function(t) {
27824
+ var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
27825
+ __assign$f = Object.assign || function(t) {
27692
27826
  for (var s, i = 1, n = arguments.length; i < n; i++) {
27693
27827
  s = arguments[i];
27694
27828
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -27696,16 +27830,16 @@
27696
27830
  }
27697
27831
  return t;
27698
27832
  };
27699
- return __assign$d.apply(this, arguments);
27833
+ return __assign$f.apply(this, arguments);
27700
27834
  };
27701
- var __importDefault$p = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27835
+ var __importDefault$r = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27702
27836
  return (mod && mod.__esModule) ? mod : { "default": mod };
27703
27837
  };
27704
27838
  Object.defineProperty(boltProtocolV4x0_transformer, "__esModule", { value: true });
27705
- var bolt_protocol_v3_transformer_1 = __importDefault$p(boltProtocolV3_transformer);
27706
- boltProtocolV4x0_transformer.default = __assign$d({}, bolt_protocol_v3_transformer_1.default);
27839
+ var bolt_protocol_v3_transformer_1 = __importDefault$r(boltProtocolV3_transformer);
27840
+ boltProtocolV4x0_transformer.default = __assign$f({}, bolt_protocol_v3_transformer_1.default);
27707
27841
 
27708
- var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
27842
+ var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
27709
27843
  var extendStatics = function (d, b) {
27710
27844
  extendStatics = Object.setPrototypeOf ||
27711
27845
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27720,8 +27854,8 @@
27720
27854
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27721
27855
  };
27722
27856
  })();
27723
- var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
27724
- __assign$c = Object.assign || function(t) {
27857
+ var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
27858
+ __assign$e = Object.assign || function(t) {
27725
27859
  for (var s, i = 1, n = arguments.length; i < n; i++) {
27726
27860
  s = arguments[i];
27727
27861
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -27729,9 +27863,9 @@
27729
27863
  }
27730
27864
  return t;
27731
27865
  };
27732
- return __assign$c.apply(this, arguments);
27866
+ return __assign$e.apply(this, arguments);
27733
27867
  };
27734
- var __importDefault$o = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27868
+ var __importDefault$q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27735
27869
  return (mod && mod.__esModule) ? mod : { "default": mod };
27736
27870
  };
27737
27871
  Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
@@ -27753,19 +27887,19 @@
27753
27887
  * See the License for the specific language governing permissions and
27754
27888
  * limitations under the License.
27755
27889
  */
27756
- var bolt_protocol_v3_1$1 = __importDefault$o(boltProtocolV3);
27757
- var request_message_1$6 = __importDefault$o(requestMessage);
27890
+ var bolt_protocol_v3_1$1 = __importDefault$q(boltProtocolV3);
27891
+ var request_message_1$7 = __importDefault$q(requestMessage);
27758
27892
  var bolt_protocol_util_1$5 = boltProtocolUtil;
27759
- var stream_observers_1$6 = streamObservers;
27760
- var bolt_protocol_v4x0_transformer_1$1 = __importDefault$o(boltProtocolV4x0_transformer);
27761
- var transformer_1$7 = __importDefault$o(transformer);
27762
- var neo4j_driver_core_1$k = lib$1;
27763
- neo4j_driver_core_1$k.internal.bookmarks.Bookmarks; var _a$5 = neo4j_driver_core_1$k.internal.constants, BOLT_PROTOCOL_V4_0$2 = _a$5.BOLT_PROTOCOL_V4_0, FETCH_ALL$2 = _a$5.FETCH_ALL, TxConfig = neo4j_driver_core_1$k.internal.txConfig.TxConfig;
27893
+ var stream_observers_1$7 = streamObservers;
27894
+ var bolt_protocol_v4x0_transformer_1$1 = __importDefault$q(boltProtocolV4x0_transformer);
27895
+ var transformer_1$8 = __importDefault$q(transformer);
27896
+ var neo4j_driver_core_1$l = lib$1;
27897
+ neo4j_driver_core_1$l.internal.bookmarks.Bookmarks; var _a$5 = neo4j_driver_core_1$l.internal.constants, BOLT_PROTOCOL_V4_0$2 = _a$5.BOLT_PROTOCOL_V4_0, FETCH_ALL$2 = _a$5.FETCH_ALL, TxConfig = neo4j_driver_core_1$l.internal.txConfig.TxConfig;
27764
27898
  var CONTEXT = 'context';
27765
27899
  var DATABASE = 'database';
27766
27900
  var CALL_GET_ROUTING_TABLE_MULTI_DB = "CALL dbms.routing.getRoutingTable($".concat(CONTEXT, ", $").concat(DATABASE, ")");
27767
- var BoltProtocol$7 = /** @class */ (function (_super) {
27768
- __extends$d(BoltProtocol, _super);
27901
+ var BoltProtocol$8 = /** @class */ (function (_super) {
27902
+ __extends$e(BoltProtocol, _super);
27769
27903
  function BoltProtocol() {
27770
27904
  return _super !== null && _super.apply(this, arguments) || this;
27771
27905
  }
@@ -27780,7 +27914,7 @@
27780
27914
  get: function () {
27781
27915
  var _this = this;
27782
27916
  if (this._transformer === undefined) {
27783
- this._transformer = new transformer_1$7.default(Object.values(bolt_protocol_v4x0_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
27917
+ this._transformer = new transformer_1$8.default(Object.values(bolt_protocol_v4x0_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
27784
27918
  }
27785
27919
  return this._transformer;
27786
27920
  },
@@ -27789,7 +27923,7 @@
27789
27923
  });
27790
27924
  BoltProtocol.prototype.beginTransaction = function (_a) {
27791
27925
  var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, mode = _b.mode, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;
27792
- var observer = new stream_observers_1$6.ResultStreamObserver({
27926
+ var observer = new stream_observers_1$7.ResultStreamObserver({
27793
27927
  server: this._server,
27794
27928
  beforeError: beforeError,
27795
27929
  afterError: afterError,
@@ -27801,12 +27935,12 @@
27801
27935
  (0, bolt_protocol_util_1$5.assertImpersonatedUserIsEmpty)(impersonatedUser, this._onProtocolError, observer);
27802
27936
  // passing notification filter on this protocol version throws an error
27803
27937
  (0, bolt_protocol_util_1$5.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
27804
- this.write(request_message_1$6.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode }), observer, true);
27938
+ this.write(request_message_1$7.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode }), observer, true);
27805
27939
  return observer;
27806
27940
  };
27807
27941
  BoltProtocol.prototype.run = function (query, parameters, _a) {
27808
27942
  var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, mode = _b.mode, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.reactive, reactive = _d === void 0 ? false : _d, _e = _b.fetchSize, fetchSize = _e === void 0 ? FETCH_ALL$2 : _e, _f = _b.highRecordWatermark, highRecordWatermark = _f === void 0 ? Number.MAX_VALUE : _f, _g = _b.lowRecordWatermark, lowRecordWatermark = _g === void 0 ? Number.MAX_VALUE : _g;
27809
- var observer = new stream_observers_1$6.ResultStreamObserver({
27943
+ var observer = new stream_observers_1$7.ResultStreamObserver({
27810
27944
  server: this._server,
27811
27945
  reactive: reactive,
27812
27946
  fetchSize: fetchSize,
@@ -27826,22 +27960,22 @@
27826
27960
  // passing notification filter on this protocol version throws an error
27827
27961
  (0, bolt_protocol_util_1$5.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
27828
27962
  var flushRun = reactive;
27829
- this.write(request_message_1$6.default.runWithMetadata(query, parameters, {
27963
+ this.write(request_message_1$7.default.runWithMetadata(query, parameters, {
27830
27964
  bookmarks: bookmarks,
27831
27965
  txConfig: txConfig,
27832
27966
  database: database,
27833
27967
  mode: mode
27834
27968
  }), observer, flushRun && flush);
27835
27969
  if (!reactive) {
27836
- this.write(request_message_1$6.default.pull({ n: fetchSize }), observer, flush);
27970
+ this.write(request_message_1$7.default.pull({ n: fetchSize }), observer, flush);
27837
27971
  }
27838
27972
  return observer;
27839
27973
  };
27840
27974
  BoltProtocol.prototype._requestMore = function (stmtId, n, observer) {
27841
- this.write(request_message_1$6.default.pull({ stmtId: stmtId, n: n }), observer, true);
27975
+ this.write(request_message_1$7.default.pull({ stmtId: stmtId, n: n }), observer, true);
27842
27976
  };
27843
27977
  BoltProtocol.prototype._requestDiscard = function (stmtId, observer) {
27844
- this.write(request_message_1$6.default.discard({ stmtId: stmtId }), observer, true);
27978
+ this.write(request_message_1$7.default.discard({ stmtId: stmtId }), observer, true);
27845
27979
  };
27846
27980
  BoltProtocol.prototype._noOp = function () { };
27847
27981
  /**
@@ -27865,8 +27999,8 @@
27865
27999
  var resultObserver = this.run(CALL_GET_ROUTING_TABLE_MULTI_DB, (_b = {},
27866
28000
  _b[CONTEXT] = routingContext,
27867
28001
  _b[DATABASE] = databaseName,
27868
- _b), __assign$c(__assign$c({}, sessionContext), { txConfig: TxConfig.empty() }));
27869
- return new stream_observers_1$6.ProcedureRouteObserver({
28002
+ _b), __assign$e(__assign$e({}, sessionContext), { txConfig: TxConfig.empty() }));
28003
+ return new stream_observers_1$7.ProcedureRouteObserver({
27870
28004
  resultObserver: resultObserver,
27871
28005
  onProtocolError: this._onProtocolError,
27872
28006
  onError: onError,
@@ -27875,7 +28009,7 @@
27875
28009
  };
27876
28010
  return BoltProtocol;
27877
28011
  }(bolt_protocol_v3_1$1.default));
27878
- boltProtocolV4x0.default = BoltProtocol$7;
28012
+ boltProtocolV4x0.default = BoltProtocol$8;
27879
28013
 
27880
28014
  var boltProtocolV4x1 = {};
27881
28015
 
@@ -27899,8 +28033,8 @@
27899
28033
  * See the License for the specific language governing permissions and
27900
28034
  * limitations under the License.
27901
28035
  */
27902
- var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
27903
- __assign$b = Object.assign || function(t) {
28036
+ var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28037
+ __assign$d = Object.assign || function(t) {
27904
28038
  for (var s, i = 1, n = arguments.length; i < n; i++) {
27905
28039
  s = arguments[i];
27906
28040
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -27908,16 +28042,16 @@
27908
28042
  }
27909
28043
  return t;
27910
28044
  };
27911
- return __assign$b.apply(this, arguments);
28045
+ return __assign$d.apply(this, arguments);
27912
28046
  };
27913
- var __importDefault$n = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28047
+ var __importDefault$p = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27914
28048
  return (mod && mod.__esModule) ? mod : { "default": mod };
27915
28049
  };
27916
28050
  Object.defineProperty(boltProtocolV4x1_transformer, "__esModule", { value: true });
27917
- var bolt_protocol_v4x0_transformer_1 = __importDefault$n(boltProtocolV4x0_transformer);
27918
- boltProtocolV4x1_transformer.default = __assign$b({}, bolt_protocol_v4x0_transformer_1.default);
28051
+ var bolt_protocol_v4x0_transformer_1 = __importDefault$p(boltProtocolV4x0_transformer);
28052
+ boltProtocolV4x1_transformer.default = __assign$d({}, bolt_protocol_v4x0_transformer_1.default);
27919
28053
 
27920
- var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
28054
+ var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
27921
28055
  var extendStatics = function (d, b) {
27922
28056
  extendStatics = Object.setPrototypeOf ||
27923
28057
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -27932,7 +28066,7 @@
27932
28066
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
27933
28067
  };
27934
28068
  })();
27935
- var __importDefault$m = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28069
+ var __importDefault$o = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
27936
28070
  return (mod && mod.__esModule) ? mod : { "default": mod };
27937
28071
  };
27938
28072
  Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
@@ -27954,16 +28088,16 @@
27954
28088
  * See the License for the specific language governing permissions and
27955
28089
  * limitations under the License.
27956
28090
  */
27957
- var bolt_protocol_v4x0_1$1 = __importDefault$m(boltProtocolV4x0);
27958
- var request_message_1$5 = __importDefault$m(requestMessage);
27959
- var stream_observers_1$5 = streamObservers;
27960
- var neo4j_driver_core_1$j = lib$1;
28091
+ var bolt_protocol_v4x0_1$1 = __importDefault$o(boltProtocolV4x0);
28092
+ var request_message_1$6 = __importDefault$o(requestMessage);
28093
+ var stream_observers_1$6 = streamObservers;
28094
+ var neo4j_driver_core_1$k = lib$1;
27961
28095
  var bolt_protocol_util_1$4 = boltProtocolUtil;
27962
- var bolt_protocol_v4x1_transformer_1$1 = __importDefault$m(boltProtocolV4x1_transformer);
27963
- var transformer_1$6 = __importDefault$m(transformer);
27964
- var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$j.internal.constants.BOLT_PROTOCOL_V4_1;
27965
- var BoltProtocol$6 = /** @class */ (function (_super) {
27966
- __extends$c(BoltProtocol, _super);
28096
+ var bolt_protocol_v4x1_transformer_1$1 = __importDefault$o(boltProtocolV4x1_transformer);
28097
+ var transformer_1$7 = __importDefault$o(transformer);
28098
+ var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$k.internal.constants.BOLT_PROTOCOL_V4_1;
28099
+ var BoltProtocol$7 = /** @class */ (function (_super) {
28100
+ __extends$d(BoltProtocol, _super);
27967
28101
  /**
27968
28102
  * @constructor
27969
28103
  * @param {Object} server the server informatio.
@@ -27993,7 +28127,7 @@
27993
28127
  get: function () {
27994
28128
  var _this = this;
27995
28129
  if (this._transformer === undefined) {
27996
- this._transformer = new transformer_1$6.default(Object.values(bolt_protocol_v4x1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
28130
+ this._transformer = new transformer_1$7.default(Object.values(bolt_protocol_v4x1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
27997
28131
  }
27998
28132
  return this._transformer;
27999
28133
  },
@@ -28002,19 +28136,19 @@
28002
28136
  });
28003
28137
  BoltProtocol.prototype.initialize = function (_a) {
28004
28138
  var _this = this;
28005
- var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
28006
- var observer = new stream_observers_1$5.LoginObserver({
28139
+ var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
28140
+ var observer = new stream_observers_1$6.LoginObserver({
28007
28141
  onError: function (error) { return _this._onLoginError(error, onError); },
28008
28142
  onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, authToken, onComplete); }
28009
28143
  });
28010
28144
  // passing notification filter on this protocol version throws an error
28011
28145
  (0, bolt_protocol_util_1$4.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
28012
- this.write(request_message_1$5.default.hello(userAgent, authToken, this._serversideRouting), observer, true);
28146
+ this.write(request_message_1$6.default.hello(userAgent, authToken, this._serversideRouting), observer, true);
28013
28147
  return observer;
28014
28148
  };
28015
28149
  return BoltProtocol;
28016
28150
  }(bolt_protocol_v4x0_1$1.default));
28017
- boltProtocolV4x1.default = BoltProtocol$6;
28151
+ boltProtocolV4x1.default = BoltProtocol$7;
28018
28152
 
28019
28153
  var boltProtocolV4x2 = {};
28020
28154
 
@@ -28038,8 +28172,8 @@
28038
28172
  * See the License for the specific language governing permissions and
28039
28173
  * limitations under the License.
28040
28174
  */
28041
- var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28042
- __assign$a = Object.assign || function(t) {
28175
+ var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28176
+ __assign$c = Object.assign || function(t) {
28043
28177
  for (var s, i = 1, n = arguments.length; i < n; i++) {
28044
28178
  s = arguments[i];
28045
28179
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -28047,16 +28181,16 @@
28047
28181
  }
28048
28182
  return t;
28049
28183
  };
28050
- return __assign$a.apply(this, arguments);
28184
+ return __assign$c.apply(this, arguments);
28051
28185
  };
28052
- var __importDefault$l = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28186
+ var __importDefault$n = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28053
28187
  return (mod && mod.__esModule) ? mod : { "default": mod };
28054
28188
  };
28055
28189
  Object.defineProperty(boltProtocolV4x2_transformer, "__esModule", { value: true });
28056
- var bolt_protocol_v4x1_transformer_1 = __importDefault$l(boltProtocolV4x1_transformer);
28057
- boltProtocolV4x2_transformer.default = __assign$a({}, bolt_protocol_v4x1_transformer_1.default);
28190
+ var bolt_protocol_v4x1_transformer_1 = __importDefault$n(boltProtocolV4x1_transformer);
28191
+ boltProtocolV4x2_transformer.default = __assign$c({}, bolt_protocol_v4x1_transformer_1.default);
28058
28192
 
28059
- var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
28193
+ var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
28060
28194
  var extendStatics = function (d, b) {
28061
28195
  extendStatics = Object.setPrototypeOf ||
28062
28196
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -28071,7 +28205,7 @@
28071
28205
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28072
28206
  };
28073
28207
  })();
28074
- var __importDefault$k = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28208
+ var __importDefault$m = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28075
28209
  return (mod && mod.__esModule) ? mod : { "default": mod };
28076
28210
  };
28077
28211
  Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
@@ -28093,13 +28227,13 @@
28093
28227
  * See the License for the specific language governing permissions and
28094
28228
  * limitations under the License.
28095
28229
  */
28096
- var bolt_protocol_v4x1_1$1 = __importDefault$k(boltProtocolV4x1);
28097
- var neo4j_driver_core_1$i = lib$1;
28098
- var bolt_protocol_v4x2_transformer_1$1 = __importDefault$k(boltProtocolV4x2_transformer);
28099
- var transformer_1$5 = __importDefault$k(transformer);
28100
- var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$i.internal.constants.BOLT_PROTOCOL_V4_2;
28101
- var BoltProtocol$5 = /** @class */ (function (_super) {
28102
- __extends$b(BoltProtocol, _super);
28230
+ var bolt_protocol_v4x1_1$1 = __importDefault$m(boltProtocolV4x1);
28231
+ var neo4j_driver_core_1$j = lib$1;
28232
+ var bolt_protocol_v4x2_transformer_1$1 = __importDefault$m(boltProtocolV4x2_transformer);
28233
+ var transformer_1$6 = __importDefault$m(transformer);
28234
+ var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$j.internal.constants.BOLT_PROTOCOL_V4_2;
28235
+ var BoltProtocol$6 = /** @class */ (function (_super) {
28236
+ __extends$c(BoltProtocol, _super);
28103
28237
  function BoltProtocol() {
28104
28238
  return _super !== null && _super.apply(this, arguments) || this;
28105
28239
  }
@@ -28114,7 +28248,7 @@
28114
28248
  get: function () {
28115
28249
  var _this = this;
28116
28250
  if (this._transformer === undefined) {
28117
- this._transformer = new transformer_1$5.default(Object.values(bolt_protocol_v4x2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
28251
+ this._transformer = new transformer_1$6.default(Object.values(bolt_protocol_v4x2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
28118
28252
  }
28119
28253
  return this._transformer;
28120
28254
  },
@@ -28123,7 +28257,7 @@
28123
28257
  });
28124
28258
  return BoltProtocol;
28125
28259
  }(bolt_protocol_v4x1_1$1.default));
28126
- boltProtocolV4x2.default = BoltProtocol$5;
28260
+ boltProtocolV4x2.default = BoltProtocol$6;
28127
28261
 
28128
28262
  var boltProtocolV4x3 = {};
28129
28263
 
@@ -28147,8 +28281,8 @@
28147
28281
  * See the License for the specific language governing permissions and
28148
28282
  * limitations under the License.
28149
28283
  */
28150
- var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28151
- __assign$9 = Object.assign || function(t) {
28284
+ var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28285
+ __assign$b = Object.assign || function(t) {
28152
28286
  for (var s, i = 1, n = arguments.length; i < n; i++) {
28153
28287
  s = arguments[i];
28154
28288
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -28156,14 +28290,14 @@
28156
28290
  }
28157
28291
  return t;
28158
28292
  };
28159
- return __assign$9.apply(this, arguments);
28293
+ return __assign$b.apply(this, arguments);
28160
28294
  };
28161
- var __importDefault$j = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28295
+ var __importDefault$l = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28162
28296
  return (mod && mod.__esModule) ? mod : { "default": mod };
28163
28297
  };
28164
28298
  Object.defineProperty(boltProtocolV4x3_transformer, "__esModule", { value: true });
28165
- var bolt_protocol_v4x2_transformer_1 = __importDefault$j(boltProtocolV4x2_transformer);
28166
- boltProtocolV4x3_transformer.default = __assign$9({}, bolt_protocol_v4x2_transformer_1.default);
28299
+ var bolt_protocol_v4x2_transformer_1 = __importDefault$l(boltProtocolV4x2_transformer);
28300
+ boltProtocolV4x3_transformer.default = __assign$b({}, bolt_protocol_v4x2_transformer_1.default);
28167
28301
 
28168
28302
  var boltProtocolV5x0_utc_transformer = {};
28169
28303
 
@@ -28187,8 +28321,8 @@
28187
28321
  * See the License for the specific language governing permissions and
28188
28322
  * limitations under the License.
28189
28323
  */
28190
- var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28191
- __assign$8 = Object.assign || function(t) {
28324
+ var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28325
+ __assign$a = Object.assign || function(t) {
28192
28326
  for (var s, i = 1, n = arguments.length; i < n; i++) {
28193
28327
  s = arguments[i];
28194
28328
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -28196,14 +28330,14 @@
28196
28330
  }
28197
28331
  return t;
28198
28332
  };
28199
- return __assign$8.apply(this, arguments);
28333
+ return __assign$a.apply(this, arguments);
28200
28334
  };
28201
- var __importDefault$i = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28335
+ var __importDefault$k = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28202
28336
  return (mod && mod.__esModule) ? mod : { "default": mod };
28203
28337
  };
28204
28338
  Object.defineProperty(boltProtocolV4x4_transformer, "__esModule", { value: true });
28205
- var bolt_protocol_v4x3_transformer_1$1 = __importDefault$i(boltProtocolV4x3_transformer);
28206
- boltProtocolV4x4_transformer.default = __assign$8({}, bolt_protocol_v4x3_transformer_1$1.default);
28339
+ var bolt_protocol_v4x3_transformer_1$1 = __importDefault$k(boltProtocolV4x3_transformer);
28340
+ boltProtocolV4x4_transformer.default = __assign$a({}, bolt_protocol_v4x3_transformer_1$1.default);
28207
28341
 
28208
28342
  /**
28209
28343
  * Copyright (c) "Neo4j"
@@ -28239,16 +28373,16 @@
28239
28373
  }
28240
28374
  return ar;
28241
28375
  };
28242
- var __importDefault$h = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28376
+ var __importDefault$j = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28243
28377
  return (mod && mod.__esModule) ? mod : { "default": mod };
28244
28378
  };
28245
28379
  Object.defineProperty(boltProtocolV5x0_utc_transformer, "__esModule", { value: true });
28246
28380
  var packstream_1$1 = packstream;
28247
- var neo4j_driver_core_1$h = lib$1;
28248
- var bolt_protocol_v4x4_transformer_1$2 = __importDefault$h(boltProtocolV4x4_transformer);
28381
+ var neo4j_driver_core_1$i = lib$1;
28382
+ var bolt_protocol_v4x4_transformer_1$2 = __importDefault$j(boltProtocolV4x4_transformer);
28249
28383
  var temporal_factory_1 = temporalFactory;
28250
28384
  var functional_1 = functional;
28251
- var localDateTimeToEpochSecond = neo4j_driver_core_1$h.internal.temporalUtil.localDateTimeToEpochSecond;
28385
+ var localDateTimeToEpochSecond = neo4j_driver_core_1$i.internal.temporalUtil.localDateTimeToEpochSecond;
28252
28386
  var DATE_TIME_WITH_ZONE_OFFSET = 0x49;
28253
28387
  var DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE = 3;
28254
28388
  var DATE_TIME_WITH_ZONE_ID = 0x69;
@@ -28262,7 +28396,7 @@
28262
28396
  packstream_1$1.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE, struct.size);
28263
28397
  var _a = __read$4(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
28264
28398
  var localDateTime = getTimeInZoneId(timeZoneId, epochSecond, nano);
28265
- var result = new neo4j_driver_core_1$h.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, (0, neo4j_driver_core_1$h.int)(nano), localDateTime.timeZoneOffsetSeconds, timeZoneId);
28399
+ var result = new neo4j_driver_core_1$i.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, (0, neo4j_driver_core_1$i.int)(nano), localDateTime.timeZoneOffsetSeconds, timeZoneId);
28266
28400
  return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
28267
28401
  },
28268
28402
  toStructure: function (value) {
@@ -28276,7 +28410,7 @@
28276
28410
  '2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.');
28277
28411
  }
28278
28412
  var utc = epochSecond.subtract(offset);
28279
- var nano = (0, neo4j_driver_core_1$h.int)(value.nanosecond);
28413
+ var nano = (0, neo4j_driver_core_1$i.int)(value.nanosecond);
28280
28414
  var timeZoneId = value.timeZoneId;
28281
28415
  return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_ID, [utc, nano, timeZoneId]);
28282
28416
  }
@@ -28330,9 +28464,9 @@
28330
28464
  hour12: false,
28331
28465
  era: 'narrow'
28332
28466
  });
28333
- var utc = (0, neo4j_driver_core_1$h.int)(epochSecond)
28467
+ var utc = (0, neo4j_driver_core_1$i.int)(epochSecond)
28334
28468
  .multiply(1000)
28335
- .add((0, neo4j_driver_core_1$h.int)(nano).div(1000000))
28469
+ .add((0, neo4j_driver_core_1$i.int)(nano).div(1000000))
28336
28470
  .toNumber();
28337
28471
  var formattedUtcParts = formatter.formatToParts(utc);
28338
28472
  var localDateTime = formattedUtcParts.reduce(function (obj, currentValue) {
@@ -28343,7 +28477,7 @@
28343
28477
  : functional_1.identity;
28344
28478
  }
28345
28479
  else if (currentValue.type !== 'literal') {
28346
- obj[currentValue.type] = (0, neo4j_driver_core_1$h.int)(currentValue.value);
28480
+ obj[currentValue.type] = (0, neo4j_driver_core_1$i.int)(currentValue.value);
28347
28481
  }
28348
28482
  return obj;
28349
28483
  }, {});
@@ -28360,17 +28494,17 @@
28360
28494
  signature: DATE_TIME_WITH_ZONE_OFFSET,
28361
28495
  toStructure: function (value) {
28362
28496
  var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
28363
- var nano = (0, neo4j_driver_core_1$h.int)(value.nanosecond);
28364
- var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$h.int)(value.timeZoneOffsetSeconds);
28497
+ var nano = (0, neo4j_driver_core_1$i.int)(value.nanosecond);
28498
+ var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$i.int)(value.timeZoneOffsetSeconds);
28365
28499
  var utcSecond = epochSecond.subtract(timeZoneOffsetSeconds);
28366
28500
  return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET, [utcSecond, nano, timeZoneOffsetSeconds]);
28367
28501
  },
28368
28502
  fromStructure: function (struct) {
28369
28503
  packstream_1$1.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE, struct.size);
28370
28504
  var _a = __read$4(struct.fields, 3), utcSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
28371
- var epochSecond = (0, neo4j_driver_core_1$h.int)(utcSecond).add(timeZoneOffsetSeconds);
28505
+ var epochSecond = (0, neo4j_driver_core_1$i.int)(utcSecond).add(timeZoneOffsetSeconds);
28372
28506
  var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
28373
- var result = new neo4j_driver_core_1$h.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);
28507
+ var result = new neo4j_driver_core_1$i.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);
28374
28508
  return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
28375
28509
  }
28376
28510
  });
@@ -28386,7 +28520,7 @@
28386
28520
  for (var prop in obj) {
28387
28521
  if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
28388
28522
  var value = obj[prop];
28389
- clone[prop] = (0, neo4j_driver_core_1$h.isInt)(value) ? convert(value) : value;
28523
+ clone[prop] = (0, neo4j_driver_core_1$i.isInt)(value) ? convert(value) : value;
28390
28524
  }
28391
28525
  }
28392
28526
  Object.freeze(clone);
@@ -28397,7 +28531,7 @@
28397
28531
  createDateTimeWithOffsetTransformer: createDateTimeWithOffsetTransformer
28398
28532
  };
28399
28533
 
28400
- var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
28534
+ var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
28401
28535
  var extendStatics = function (d, b) {
28402
28536
  extendStatics = Object.setPrototypeOf ||
28403
28537
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -28412,8 +28546,8 @@
28412
28546
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28413
28547
  };
28414
28548
  })();
28415
- var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28416
- __assign$7 = Object.assign || function(t) {
28549
+ var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28550
+ __assign$9 = Object.assign || function(t) {
28417
28551
  for (var s, i = 1, n = arguments.length; i < n; i++) {
28418
28552
  s = arguments[i];
28419
28553
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -28421,9 +28555,9 @@
28421
28555
  }
28422
28556
  return t;
28423
28557
  };
28424
- return __assign$7.apply(this, arguments);
28558
+ return __assign$9.apply(this, arguments);
28425
28559
  };
28426
- var __importDefault$g = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28560
+ var __importDefault$i = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28427
28561
  return (mod && mod.__esModule) ? mod : { "default": mod };
28428
28562
  };
28429
28563
  Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
@@ -28445,17 +28579,17 @@
28445
28579
  * See the License for the specific language governing permissions and
28446
28580
  * limitations under the License.
28447
28581
  */
28448
- var bolt_protocol_v4x2_1$1 = __importDefault$g(boltProtocolV4x2);
28449
- var request_message_1$4 = __importDefault$g(requestMessage);
28450
- var stream_observers_1$4 = streamObservers;
28582
+ var bolt_protocol_v4x2_1$1 = __importDefault$i(boltProtocolV4x2);
28583
+ var request_message_1$5 = __importDefault$i(requestMessage);
28584
+ var stream_observers_1$5 = streamObservers;
28451
28585
  var bolt_protocol_util_1$3 = boltProtocolUtil;
28452
- var bolt_protocol_v4x3_transformer_1 = __importDefault$g(boltProtocolV4x3_transformer);
28453
- var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$g(boltProtocolV5x0_utc_transformer);
28454
- var transformer_1$4 = __importDefault$g(transformer);
28455
- var neo4j_driver_core_1$g = lib$1;
28456
- var Bookmarks$2 = neo4j_driver_core_1$g.internal.bookmarks.Bookmarks, BOLT_PROTOCOL_V4_3 = neo4j_driver_core_1$g.internal.constants.BOLT_PROTOCOL_V4_3;
28457
- var BoltProtocol$4 = /** @class */ (function (_super) {
28458
- __extends$a(BoltProtocol, _super);
28586
+ var bolt_protocol_v4x3_transformer_1 = __importDefault$i(boltProtocolV4x3_transformer);
28587
+ var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$i(boltProtocolV5x0_utc_transformer);
28588
+ var transformer_1$5 = __importDefault$i(transformer);
28589
+ var neo4j_driver_core_1$h = lib$1;
28590
+ var Bookmarks$2 = neo4j_driver_core_1$h.internal.bookmarks.Bookmarks, BOLT_PROTOCOL_V4_3 = neo4j_driver_core_1$h.internal.constants.BOLT_PROTOCOL_V4_3;
28591
+ var BoltProtocol$5 = /** @class */ (function (_super) {
28592
+ __extends$b(BoltProtocol, _super);
28459
28593
  function BoltProtocol() {
28460
28594
  return _super !== null && _super.apply(this, arguments) || this;
28461
28595
  }
@@ -28470,7 +28604,7 @@
28470
28604
  get: function () {
28471
28605
  var _this = this;
28472
28606
  if (this._transformer === undefined) {
28473
- this._transformer = new transformer_1$4.default(Object.values(bolt_protocol_v4x3_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
28607
+ this._transformer = new transformer_1$5.default(Object.values(bolt_protocol_v4x3_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
28474
28608
  }
28475
28609
  return this._transformer;
28476
28610
  },
@@ -28491,13 +28625,13 @@
28491
28625
  */
28492
28626
  BoltProtocol.prototype.requestRoutingInformation = function (_a) {
28493
28627
  var _b = _a.routingContext, routingContext = _b === void 0 ? {} : _b, _c = _a.databaseName, databaseName = _c === void 0 ? null : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;
28494
- var observer = new stream_observers_1$4.RouteObserver({
28628
+ var observer = new stream_observers_1$5.RouteObserver({
28495
28629
  onProtocolError: this._onProtocolError,
28496
28630
  onError: onError,
28497
28631
  onCompleted: onCompleted
28498
28632
  });
28499
28633
  var bookmarks = sessionContext.bookmarks || Bookmarks$2.empty();
28500
- this.write(request_message_1$4.default.route(routingContext, bookmarks.values(), databaseName), observer, true);
28634
+ this.write(request_message_1$5.default.route(routingContext, bookmarks.values(), databaseName), observer, true);
28501
28635
  return observer;
28502
28636
  };
28503
28637
  /**
@@ -28513,8 +28647,8 @@
28513
28647
  */
28514
28648
  BoltProtocol.prototype.initialize = function (_a) {
28515
28649
  var _this = this;
28516
- var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
28517
- var observer = new stream_observers_1$4.LoginObserver({
28650
+ var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
28651
+ var observer = new stream_observers_1$5.LoginObserver({
28518
28652
  onError: function (error) { return _this._onLoginError(error, onError); },
28519
28653
  onCompleted: function (metadata) {
28520
28654
  if (metadata.patch_bolt !== undefined) {
@@ -28525,7 +28659,7 @@
28525
28659
  });
28526
28660
  // passing notification filter on this protocol version throws an error
28527
28661
  (0, bolt_protocol_util_1$3.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
28528
- this.write(request_message_1$4.default.hello(userAgent, authToken, this._serversideRouting, ['utc']), observer, true);
28662
+ this.write(request_message_1$5.default.hello(userAgent, authToken, this._serversideRouting, ['utc']), observer, true);
28529
28663
  return observer;
28530
28664
  };
28531
28665
  /**
@@ -28539,15 +28673,15 @@
28539
28673
  };
28540
28674
  BoltProtocol.prototype._applyUtcPatch = function () {
28541
28675
  var _this = this;
28542
- this._transformer = new transformer_1$4.default(Object.values(__assign$7(__assign$7({}, bolt_protocol_v4x3_transformer_1.default), bolt_protocol_v5x0_utc_transformer_1$2.default)).map(function (create) { return create(_this._config, _this._log); }));
28676
+ this._transformer = new transformer_1$5.default(Object.values(__assign$9(__assign$9({}, bolt_protocol_v4x3_transformer_1.default), bolt_protocol_v5x0_utc_transformer_1$2.default)).map(function (create) { return create(_this._config, _this._log); }));
28543
28677
  };
28544
28678
  return BoltProtocol;
28545
28679
  }(bolt_protocol_v4x2_1$1.default));
28546
- boltProtocolV4x3.default = BoltProtocol$4;
28680
+ boltProtocolV4x3.default = BoltProtocol$5;
28547
28681
 
28548
28682
  var boltProtocolV4x4 = {};
28549
28683
 
28550
- var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
28684
+ var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
28551
28685
  var extendStatics = function (d, b) {
28552
28686
  extendStatics = Object.setPrototypeOf ||
28553
28687
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -28562,8 +28696,8 @@
28562
28696
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28563
28697
  };
28564
28698
  })();
28565
- var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28566
- __assign$6 = Object.assign || function(t) {
28699
+ var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28700
+ __assign$8 = Object.assign || function(t) {
28567
28701
  for (var s, i = 1, n = arguments.length; i < n; i++) {
28568
28702
  s = arguments[i];
28569
28703
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -28571,9 +28705,9 @@
28571
28705
  }
28572
28706
  return t;
28573
28707
  };
28574
- return __assign$6.apply(this, arguments);
28708
+ return __assign$8.apply(this, arguments);
28575
28709
  };
28576
- var __importDefault$f = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28710
+ var __importDefault$h = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28577
28711
  return (mod && mod.__esModule) ? mod : { "default": mod };
28578
28712
  };
28579
28713
  Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
@@ -28595,17 +28729,17 @@
28595
28729
  * See the License for the specific language governing permissions and
28596
28730
  * limitations under the License.
28597
28731
  */
28598
- var bolt_protocol_v4x3_1$1 = __importDefault$f(boltProtocolV4x3);
28599
- var neo4j_driver_core_1$f = lib$1;
28600
- var request_message_1$3 = __importDefault$f(requestMessage);
28601
- var stream_observers_1$3 = streamObservers;
28732
+ var bolt_protocol_v4x3_1$1 = __importDefault$h(boltProtocolV4x3);
28733
+ var neo4j_driver_core_1$g = lib$1;
28734
+ var request_message_1$4 = __importDefault$h(requestMessage);
28735
+ var stream_observers_1$4 = streamObservers;
28602
28736
  var bolt_protocol_util_1$2 = boltProtocolUtil;
28603
- var bolt_protocol_v4x4_transformer_1$1 = __importDefault$f(boltProtocolV4x4_transformer);
28604
- var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$f(boltProtocolV5x0_utc_transformer);
28605
- var transformer_1$3 = __importDefault$f(transformer);
28606
- var _a$4 = neo4j_driver_core_1$f.internal.constants, BOLT_PROTOCOL_V4_4$2 = _a$4.BOLT_PROTOCOL_V4_4, FETCH_ALL$1 = _a$4.FETCH_ALL, Bookmarks$1 = neo4j_driver_core_1$f.internal.bookmarks.Bookmarks;
28607
- var BoltProtocol$3 = /** @class */ (function (_super) {
28608
- __extends$9(BoltProtocol, _super);
28737
+ var bolt_protocol_v4x4_transformer_1$1 = __importDefault$h(boltProtocolV4x4_transformer);
28738
+ var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$h(boltProtocolV5x0_utc_transformer);
28739
+ var transformer_1$4 = __importDefault$h(transformer);
28740
+ var _a$4 = neo4j_driver_core_1$g.internal.constants, BOLT_PROTOCOL_V4_4$2 = _a$4.BOLT_PROTOCOL_V4_4, FETCH_ALL$1 = _a$4.FETCH_ALL, Bookmarks$1 = neo4j_driver_core_1$g.internal.bookmarks.Bookmarks;
28741
+ var BoltProtocol$4 = /** @class */ (function (_super) {
28742
+ __extends$a(BoltProtocol, _super);
28609
28743
  function BoltProtocol() {
28610
28744
  return _super !== null && _super.apply(this, arguments) || this;
28611
28745
  }
@@ -28620,7 +28754,7 @@
28620
28754
  get: function () {
28621
28755
  var _this = this;
28622
28756
  if (this._transformer === undefined) {
28623
- this._transformer = new transformer_1$3.default(Object.values(bolt_protocol_v4x4_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
28757
+ this._transformer = new transformer_1$4.default(Object.values(bolt_protocol_v4x4_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
28624
28758
  }
28625
28759
  return this._transformer;
28626
28760
  },
@@ -28641,18 +28775,18 @@
28641
28775
  */
28642
28776
  BoltProtocol.prototype.requestRoutingInformation = function (_a) {
28643
28777
  var _b = _a.routingContext, routingContext = _b === void 0 ? {} : _b, _c = _a.databaseName, databaseName = _c === void 0 ? null : _c, _d = _a.impersonatedUser, impersonatedUser = _d === void 0 ? null : _d, _e = _a.sessionContext, sessionContext = _e === void 0 ? {} : _e, onError = _a.onError, onCompleted = _a.onCompleted;
28644
- var observer = new stream_observers_1$3.RouteObserver({
28778
+ var observer = new stream_observers_1$4.RouteObserver({
28645
28779
  onProtocolError: this._onProtocolError,
28646
28780
  onError: onError,
28647
28781
  onCompleted: onCompleted
28648
28782
  });
28649
28783
  var bookmarks = sessionContext.bookmarks || Bookmarks$1.empty();
28650
- this.write(request_message_1$3.default.routeV4x4(routingContext, bookmarks.values(), { databaseName: databaseName, impersonatedUser: impersonatedUser }), observer, true);
28784
+ this.write(request_message_1$4.default.routeV4x4(routingContext, bookmarks.values(), { databaseName: databaseName, impersonatedUser: impersonatedUser }), observer, true);
28651
28785
  return observer;
28652
28786
  };
28653
28787
  BoltProtocol.prototype.run = function (query, parameters, _a) {
28654
28788
  var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.reactive, reactive = _d === void 0 ? false : _d, _e = _b.fetchSize, fetchSize = _e === void 0 ? FETCH_ALL$1 : _e, _f = _b.highRecordWatermark, highRecordWatermark = _f === void 0 ? Number.MAX_VALUE : _f, _g = _b.lowRecordWatermark, lowRecordWatermark = _g === void 0 ? Number.MAX_VALUE : _g;
28655
- var observer = new stream_observers_1$3.ResultStreamObserver({
28789
+ var observer = new stream_observers_1$4.ResultStreamObserver({
28656
28790
  server: this._server,
28657
28791
  reactive: reactive,
28658
28792
  fetchSize: fetchSize,
@@ -28670,7 +28804,7 @@
28670
28804
  // passing notification filter on this protocol version throws an error
28671
28805
  (0, bolt_protocol_util_1$2.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
28672
28806
  var flushRun = reactive;
28673
- this.write(request_message_1$3.default.runWithMetadata(query, parameters, {
28807
+ this.write(request_message_1$4.default.runWithMetadata(query, parameters, {
28674
28808
  bookmarks: bookmarks,
28675
28809
  txConfig: txConfig,
28676
28810
  database: database,
@@ -28678,13 +28812,13 @@
28678
28812
  impersonatedUser: impersonatedUser
28679
28813
  }), observer, flushRun && flush);
28680
28814
  if (!reactive) {
28681
- this.write(request_message_1$3.default.pull({ n: fetchSize }), observer, flush);
28815
+ this.write(request_message_1$4.default.pull({ n: fetchSize }), observer, flush);
28682
28816
  }
28683
28817
  return observer;
28684
28818
  };
28685
28819
  BoltProtocol.prototype.beginTransaction = function (_a) {
28686
28820
  var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;
28687
- var observer = new stream_observers_1$3.ResultStreamObserver({
28821
+ var observer = new stream_observers_1$4.ResultStreamObserver({
28688
28822
  server: this._server,
28689
28823
  beforeError: beforeError,
28690
28824
  afterError: afterError,
@@ -28694,16 +28828,16 @@
28694
28828
  observer.prepareToHandleSingleResponse();
28695
28829
  // passing notification filter on this protocol version throws an error
28696
28830
  (0, bolt_protocol_util_1$2.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
28697
- this.write(request_message_1$3.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode, impersonatedUser: impersonatedUser }), observer, true);
28831
+ this.write(request_message_1$4.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode, impersonatedUser: impersonatedUser }), observer, true);
28698
28832
  return observer;
28699
28833
  };
28700
28834
  BoltProtocol.prototype._applyUtcPatch = function () {
28701
28835
  var _this = this;
28702
- this._transformer = new transformer_1$3.default(Object.values(__assign$6(__assign$6({}, bolt_protocol_v4x4_transformer_1$1.default), bolt_protocol_v5x0_utc_transformer_1$1.default)).map(function (create) { return create(_this._config, _this._log); }));
28836
+ this._transformer = new transformer_1$4.default(Object.values(__assign$8(__assign$8({}, bolt_protocol_v4x4_transformer_1$1.default), bolt_protocol_v5x0_utc_transformer_1$1.default)).map(function (create) { return create(_this._config, _this._log); }));
28703
28837
  };
28704
28838
  return BoltProtocol;
28705
28839
  }(bolt_protocol_v4x3_1$1.default));
28706
- boltProtocolV4x4.default = BoltProtocol$3;
28840
+ boltProtocolV4x4.default = BoltProtocol$4;
28707
28841
 
28708
28842
  var boltProtocolV5x0 = {};
28709
28843
 
@@ -28727,8 +28861,8 @@
28727
28861
  * See the License for the specific language governing permissions and
28728
28862
  * limitations under the License.
28729
28863
  */
28730
- var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28731
- __assign$5 = Object.assign || function(t) {
28864
+ var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28865
+ __assign$7 = Object.assign || function(t) {
28732
28866
  for (var s, i = 1, n = arguments.length; i < n; i++) {
28733
28867
  s = arguments[i];
28734
28868
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -28736,7 +28870,7 @@
28736
28870
  }
28737
28871
  return t;
28738
28872
  };
28739
- return __assign$5.apply(this, arguments);
28873
+ return __assign$7.apply(this, arguments);
28740
28874
  };
28741
28875
  var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
28742
28876
  var m = typeof Symbol === "function" && o[Symbol.iterator];
@@ -28754,14 +28888,14 @@
28754
28888
  }
28755
28889
  return ar;
28756
28890
  };
28757
- var __importDefault$e = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28891
+ var __importDefault$g = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28758
28892
  return (mod && mod.__esModule) ? mod : { "default": mod };
28759
28893
  };
28760
28894
  Object.defineProperty(boltProtocolV5x0_transformer, "__esModule", { value: true });
28761
28895
  var packstream_1 = packstream;
28762
- var neo4j_driver_core_1$e = lib$1;
28763
- var bolt_protocol_v4x4_transformer_1 = __importDefault$e(boltProtocolV4x4_transformer);
28764
- var bolt_protocol_v5x0_utc_transformer_1 = __importDefault$e(boltProtocolV5x0_utc_transformer);
28896
+ var neo4j_driver_core_1$f = lib$1;
28897
+ var bolt_protocol_v4x4_transformer_1 = __importDefault$g(boltProtocolV4x4_transformer);
28898
+ var bolt_protocol_v5x0_utc_transformer_1 = __importDefault$g(boltProtocolV5x0_utc_transformer);
28765
28899
  var NODE_STRUCT_SIZE = 4;
28766
28900
  var RELATIONSHIP_STRUCT_SIZE = 8;
28767
28901
  var UNBOUND_RELATIONSHIP_STRUCT_SIZE = 4;
@@ -28776,7 +28910,7 @@
28776
28910
  fromStructure: function (struct) {
28777
28911
  packstream_1.structure.verifyStructSize('Node', NODE_STRUCT_SIZE, struct.size);
28778
28912
  var _a = __read$3(struct.fields, 4), identity = _a[0], lables = _a[1], properties = _a[2], elementId = _a[3];
28779
- return new neo4j_driver_core_1$e.Node(identity, lables, properties, elementId);
28913
+ return new neo4j_driver_core_1$f.Node(identity, lables, properties, elementId);
28780
28914
  }
28781
28915
  });
28782
28916
  }
@@ -28791,7 +28925,7 @@
28791
28925
  fromStructure: function (struct) {
28792
28926
  packstream_1.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE, struct.size);
28793
28927
  var _a = __read$3(struct.fields, 8), identity = _a[0], startNodeIdentity = _a[1], endNodeIdentity = _a[2], type = _a[3], properties = _a[4], elementId = _a[5], startNodeElementId = _a[6], endNodeElementId = _a[7];
28794
- return new neo4j_driver_core_1$e.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties, elementId, startNodeElementId, endNodeElementId);
28928
+ return new neo4j_driver_core_1$f.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties, elementId, startNodeElementId, endNodeElementId);
28795
28929
  }
28796
28930
  });
28797
28931
  }
@@ -28806,13 +28940,13 @@
28806
28940
  fromStructure: function (struct) {
28807
28941
  packstream_1.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE, struct.size);
28808
28942
  var _a = __read$3(struct.fields, 4), identity = _a[0], type = _a[1], properties = _a[2], elementId = _a[3];
28809
- return new neo4j_driver_core_1$e.UnboundRelationship(identity, type, properties, elementId);
28943
+ return new neo4j_driver_core_1$f.UnboundRelationship(identity, type, properties, elementId);
28810
28944
  }
28811
28945
  });
28812
28946
  }
28813
- boltProtocolV5x0_transformer.default = __assign$5(__assign$5(__assign$5({}, bolt_protocol_v4x4_transformer_1.default), bolt_protocol_v5x0_utc_transformer_1.default), { createNodeTransformer: createNodeTransformer, createRelationshipTransformer: createRelationshipTransformer, createUnboundRelationshipTransformer: createUnboundRelationshipTransformer });
28947
+ boltProtocolV5x0_transformer.default = __assign$7(__assign$7(__assign$7({}, bolt_protocol_v4x4_transformer_1.default), bolt_protocol_v5x0_utc_transformer_1.default), { createNodeTransformer: createNodeTransformer, createRelationshipTransformer: createRelationshipTransformer, createUnboundRelationshipTransformer: createUnboundRelationshipTransformer });
28814
28948
 
28815
- var __extends$8 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
28949
+ var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
28816
28950
  var extendStatics = function (d, b) {
28817
28951
  extendStatics = Object.setPrototypeOf ||
28818
28952
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -28827,7 +28961,7 @@
28827
28961
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28828
28962
  };
28829
28963
  })();
28830
- var __importDefault$d = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28964
+ var __importDefault$f = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28831
28965
  return (mod && mod.__esModule) ? mod : { "default": mod };
28832
28966
  };
28833
28967
  Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
@@ -28849,16 +28983,16 @@
28849
28983
  * See the License for the specific language governing permissions and
28850
28984
  * limitations under the License.
28851
28985
  */
28852
- var bolt_protocol_v4x4_1$1 = __importDefault$d(boltProtocolV4x4);
28986
+ var bolt_protocol_v4x4_1$1 = __importDefault$f(boltProtocolV4x4);
28853
28987
  var bolt_protocol_util_1$1 = boltProtocolUtil;
28854
- var bolt_protocol_v5x0_transformer_1$1 = __importDefault$d(boltProtocolV5x0_transformer);
28855
- var transformer_1$2 = __importDefault$d(transformer);
28856
- var request_message_1$2 = __importDefault$d(requestMessage);
28857
- var stream_observers_1$2 = streamObservers;
28858
- var neo4j_driver_core_1$d = lib$1;
28859
- var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$d.internal.constants.BOLT_PROTOCOL_V5_0;
28860
- var BoltProtocol$2 = /** @class */ (function (_super) {
28861
- __extends$8(BoltProtocol, _super);
28988
+ var bolt_protocol_v5x0_transformer_1$1 = __importDefault$f(boltProtocolV5x0_transformer);
28989
+ var transformer_1$3 = __importDefault$f(transformer);
28990
+ var request_message_1$3 = __importDefault$f(requestMessage);
28991
+ var stream_observers_1$3 = streamObservers;
28992
+ var neo4j_driver_core_1$e = lib$1;
28993
+ var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$e.internal.constants.BOLT_PROTOCOL_V5_0;
28994
+ var BoltProtocol$3 = /** @class */ (function (_super) {
28995
+ __extends$9(BoltProtocol, _super);
28862
28996
  function BoltProtocol() {
28863
28997
  return _super !== null && _super.apply(this, arguments) || this;
28864
28998
  }
@@ -28873,7 +29007,7 @@
28873
29007
  get: function () {
28874
29008
  var _this = this;
28875
29009
  if (this._transformer === undefined) {
28876
- this._transformer = new transformer_1$2.default(Object.values(bolt_protocol_v5x0_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
29010
+ this._transformer = new transformer_1$3.default(Object.values(bolt_protocol_v5x0_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
28877
29011
  }
28878
29012
  return this._transformer;
28879
29013
  },
@@ -28893,19 +29027,19 @@
28893
29027
  */
28894
29028
  BoltProtocol.prototype.initialize = function (_a) {
28895
29029
  var _this = this;
28896
- var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
28897
- var observer = new stream_observers_1$2.LoginObserver({
29030
+ var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
29031
+ var observer = new stream_observers_1$3.LoginObserver({
28898
29032
  onError: function (error) { return _this._onLoginError(error, onError); },
28899
29033
  onCompleted: function (metadata) { return _this._onLoginCompleted(metadata, authToken, onComplete); }
28900
29034
  });
28901
29035
  // passing notification filter on this protocol version throws an error
28902
29036
  (0, bolt_protocol_util_1$1.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
28903
- this.write(request_message_1$2.default.hello(userAgent, authToken, this._serversideRouting), observer, true);
29037
+ this.write(request_message_1$3.default.hello(userAgent, authToken, this._serversideRouting), observer, true);
28904
29038
  return observer;
28905
29039
  };
28906
29040
  return BoltProtocol;
28907
29041
  }(bolt_protocol_v4x4_1$1.default));
28908
- boltProtocolV5x0.default = BoltProtocol$2;
29042
+ boltProtocolV5x0.default = BoltProtocol$3;
28909
29043
 
28910
29044
  var boltProtocolV5x1 = {};
28911
29045
 
@@ -28929,8 +29063,8 @@
28929
29063
  * See the License for the specific language governing permissions and
28930
29064
  * limitations under the License.
28931
29065
  */
28932
- var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28933
- __assign$4 = Object.assign || function(t) {
29066
+ var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
29067
+ __assign$6 = Object.assign || function(t) {
28934
29068
  for (var s, i = 1, n = arguments.length; i < n; i++) {
28935
29069
  s = arguments[i];
28936
29070
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -28938,16 +29072,16 @@
28938
29072
  }
28939
29073
  return t;
28940
29074
  };
28941
- return __assign$4.apply(this, arguments);
29075
+ return __assign$6.apply(this, arguments);
28942
29076
  };
28943
- var __importDefault$c = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
29077
+ var __importDefault$e = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28944
29078
  return (mod && mod.__esModule) ? mod : { "default": mod };
28945
29079
  };
28946
29080
  Object.defineProperty(boltProtocolV5x1_transformer, "__esModule", { value: true });
28947
- var bolt_protocol_v5x0_transformer_1 = __importDefault$c(boltProtocolV5x0_transformer);
28948
- boltProtocolV5x1_transformer.default = __assign$4({}, bolt_protocol_v5x0_transformer_1.default);
29081
+ var bolt_protocol_v5x0_transformer_1 = __importDefault$e(boltProtocolV5x0_transformer);
29082
+ boltProtocolV5x1_transformer.default = __assign$6({}, bolt_protocol_v5x0_transformer_1.default);
28949
29083
 
28950
- var __extends$7 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
29084
+ var __extends$8 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
28951
29085
  var extendStatics = function (d, b) {
28952
29086
  extendStatics = Object.setPrototypeOf ||
28953
29087
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -28962,8 +29096,8 @@
28962
29096
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28963
29097
  };
28964
29098
  })();
28965
- var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
28966
- __assign$3 = Object.assign || function(t) {
29099
+ var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
29100
+ __assign$5 = Object.assign || function(t) {
28967
29101
  for (var s, i = 1, n = arguments.length; i < n; i++) {
28968
29102
  s = arguments[i];
28969
29103
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -28971,9 +29105,9 @@
28971
29105
  }
28972
29106
  return t;
28973
29107
  };
28974
- return __assign$3.apply(this, arguments);
29108
+ return __assign$5.apply(this, arguments);
28975
29109
  };
28976
- var __importDefault$b = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
29110
+ var __importDefault$d = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
28977
29111
  return (mod && mod.__esModule) ? mod : { "default": mod };
28978
29112
  };
28979
29113
  Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
@@ -28995,16 +29129,16 @@
28995
29129
  * See the License for the specific language governing permissions and
28996
29130
  * limitations under the License.
28997
29131
  */
28998
- var bolt_protocol_v5x0_1$1 = __importDefault$b(boltProtocolV5x0);
29132
+ var bolt_protocol_v5x0_1$1 = __importDefault$d(boltProtocolV5x0);
28999
29133
  var bolt_protocol_util_1 = boltProtocolUtil;
29000
- var bolt_protocol_v5x1_transformer_1$1 = __importDefault$b(boltProtocolV5x1_transformer);
29001
- var transformer_1$1 = __importDefault$b(transformer);
29002
- var request_message_1$1 = __importDefault$b(requestMessage);
29003
- var stream_observers_1$1 = streamObservers;
29004
- var neo4j_driver_core_1$c = lib$1;
29005
- var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$c.internal.constants.BOLT_PROTOCOL_V5_1;
29006
- var BoltProtocol$1 = /** @class */ (function (_super) {
29007
- __extends$7(BoltProtocol, _super);
29134
+ var bolt_protocol_v5x1_transformer_1$1 = __importDefault$d(boltProtocolV5x1_transformer);
29135
+ var transformer_1$2 = __importDefault$d(transformer);
29136
+ var request_message_1$2 = __importDefault$d(requestMessage);
29137
+ var stream_observers_1$2 = streamObservers;
29138
+ var neo4j_driver_core_1$d = lib$1;
29139
+ var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$d.internal.constants.BOLT_PROTOCOL_V5_1;
29140
+ var BoltProtocol$2 = /** @class */ (function (_super) {
29141
+ __extends$8(BoltProtocol, _super);
29008
29142
  function BoltProtocol() {
29009
29143
  return _super !== null && _super.apply(this, arguments) || this;
29010
29144
  }
@@ -29019,7 +29153,7 @@
29019
29153
  get: function () {
29020
29154
  var _this = this;
29021
29155
  if (this._transformer === undefined) {
29022
- this._transformer = new transformer_1$1.default(Object.values(bolt_protocol_v5x1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
29156
+ this._transformer = new transformer_1$2.default(Object.values(bolt_protocol_v5x1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
29023
29157
  }
29024
29158
  return this._transformer;
29025
29159
  },
@@ -29046,9 +29180,9 @@
29046
29180
  */
29047
29181
  BoltProtocol.prototype.initialize = function (_a) {
29048
29182
  var _this = this;
29049
- var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
29183
+ var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
29050
29184
  var state = {};
29051
- var observer = new stream_observers_1$1.LoginObserver({
29185
+ var observer = new stream_observers_1$2.LoginObserver({
29052
29186
  onError: function (error) { return _this._onLoginError(error, onError); },
29053
29187
  onCompleted: function (metadata) {
29054
29188
  state.metadata = metadata;
@@ -29057,10 +29191,10 @@
29057
29191
  });
29058
29192
  // passing notification filter on this protocol version throws an error
29059
29193
  (0, bolt_protocol_util_1.assertNotificationFilterIsEmpty)(notificationFilter, this._onProtocolError, observer);
29060
- this.write(request_message_1$1.default.hello5x1(userAgent, this._serversideRouting), observer, false);
29194
+ this.write(request_message_1$2.default.hello5x1(userAgent, this._serversideRouting), observer, false);
29061
29195
  return this.logon({
29062
29196
  authToken: authToken,
29063
- onComplete: function (metadata) { return onComplete(__assign$3(__assign$3({}, metadata), state.metadata)); },
29197
+ onComplete: function (metadata) { return onComplete(__assign$5(__assign$5({}, metadata), state.metadata)); },
29064
29198
  onError: onError,
29065
29199
  flush: true
29066
29200
  });
@@ -29079,11 +29213,11 @@
29079
29213
  BoltProtocol.prototype.logon = function (_a) {
29080
29214
  var _this = this;
29081
29215
  var _b = _a === void 0 ? {} : _a, authToken = _b.authToken, onComplete = _b.onComplete, onError = _b.onError, flush = _b.flush;
29082
- var observer = new stream_observers_1$1.LoginObserver({
29216
+ var observer = new stream_observers_1$2.LoginObserver({
29083
29217
  onCompleted: function () { return _this._onLoginCompleted(null, authToken, onComplete); },
29084
29218
  onError: function (error) { return _this._onLoginError(error, onError); }
29085
29219
  });
29086
- this.write(request_message_1$1.default.logon(authToken), observer, flush);
29220
+ this.write(request_message_1$2.default.logon(authToken), observer, flush);
29087
29221
  return observer;
29088
29222
  };
29089
29223
  /**
@@ -29098,16 +29232,16 @@
29098
29232
  */
29099
29233
  BoltProtocol.prototype.logoff = function (_a) {
29100
29234
  var _b = _a === void 0 ? {} : _a, onComplete = _b.onComplete, onError = _b.onError, flush = _b.flush;
29101
- var observer = new stream_observers_1$1.LogoffObserver({
29235
+ var observer = new stream_observers_1$2.LogoffObserver({
29102
29236
  onCompleted: onComplete,
29103
29237
  onError: onError
29104
29238
  });
29105
- this.write(request_message_1$1.default.logoff(), observer, flush);
29239
+ this.write(request_message_1$2.default.logoff(), observer, flush);
29106
29240
  return observer;
29107
29241
  };
29108
29242
  return BoltProtocol;
29109
29243
  }(bolt_protocol_v5x0_1$1.default));
29110
- boltProtocolV5x1.default = BoltProtocol$1;
29244
+ boltProtocolV5x1.default = BoltProtocol$2;
29111
29245
 
29112
29246
  var boltProtocolV5x2 = {};
29113
29247
 
@@ -29131,8 +29265,8 @@
29131
29265
  * See the License for the specific language governing permissions and
29132
29266
  * limitations under the License.
29133
29267
  */
29134
- var __assign$2 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
29135
- __assign$2 = Object.assign || function(t) {
29268
+ var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
29269
+ __assign$4 = Object.assign || function(t) {
29136
29270
  for (var s, i = 1, n = arguments.length; i < n; i++) {
29137
29271
  s = arguments[i];
29138
29272
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -29140,16 +29274,16 @@
29140
29274
  }
29141
29275
  return t;
29142
29276
  };
29143
- return __assign$2.apply(this, arguments);
29277
+ return __assign$4.apply(this, arguments);
29144
29278
  };
29145
- var __importDefault$a = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
29279
+ var __importDefault$c = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
29146
29280
  return (mod && mod.__esModule) ? mod : { "default": mod };
29147
29281
  };
29148
29282
  Object.defineProperty(boltProtocolV5x2_transformer, "__esModule", { value: true });
29149
- var bolt_protocol_v5x1_transformer_1 = __importDefault$a(boltProtocolV5x1_transformer);
29150
- boltProtocolV5x2_transformer.default = __assign$2({}, bolt_protocol_v5x1_transformer_1.default);
29283
+ var bolt_protocol_v5x1_transformer_1 = __importDefault$c(boltProtocolV5x1_transformer);
29284
+ boltProtocolV5x2_transformer.default = __assign$4({}, bolt_protocol_v5x1_transformer_1.default);
29151
29285
 
29152
- var __extends$6 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
29286
+ var __extends$7 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
29153
29287
  var extendStatics = function (d, b) {
29154
29288
  extendStatics = Object.setPrototypeOf ||
29155
29289
  ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
@@ -29164,8 +29298,8 @@
29164
29298
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
29165
29299
  };
29166
29300
  })();
29167
- var __assign$1 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
29168
- __assign$1 = Object.assign || function(t) {
29301
+ var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
29302
+ __assign$3 = Object.assign || function(t) {
29169
29303
  for (var s, i = 1, n = arguments.length; i < n; i++) {
29170
29304
  s = arguments[i];
29171
29305
  for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
@@ -29173,9 +29307,9 @@
29173
29307
  }
29174
29308
  return t;
29175
29309
  };
29176
- return __assign$1.apply(this, arguments);
29310
+ return __assign$3.apply(this, arguments);
29177
29311
  };
29178
- var __importDefault$9 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
29312
+ var __importDefault$b = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
29179
29313
  return (mod && mod.__esModule) ? mod : { "default": mod };
29180
29314
  };
29181
29315
  Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
@@ -29197,15 +29331,15 @@
29197
29331
  * See the License for the specific language governing permissions and
29198
29332
  * limitations under the License.
29199
29333
  */
29200
- var bolt_protocol_v5x1_1$1 = __importDefault$9(boltProtocolV5x1);
29201
- var bolt_protocol_v5x2_transformer_1 = __importDefault$9(boltProtocolV5x2_transformer);
29202
- var transformer_1 = __importDefault$9(transformer);
29203
- var request_message_1 = __importDefault$9(requestMessage);
29204
- var stream_observers_1 = streamObservers;
29205
- var neo4j_driver_core_1$b = lib$1;
29206
- var _a$3 = neo4j_driver_core_1$b.internal.constants, BOLT_PROTOCOL_V5_2 = _a$3.BOLT_PROTOCOL_V5_2, FETCH_ALL = _a$3.FETCH_ALL;
29207
- var BoltProtocol = /** @class */ (function (_super) {
29208
- __extends$6(BoltProtocol, _super);
29334
+ var bolt_protocol_v5x1_1$1 = __importDefault$b(boltProtocolV5x1);
29335
+ var bolt_protocol_v5x2_transformer_1$1 = __importDefault$b(boltProtocolV5x2_transformer);
29336
+ var transformer_1$1 = __importDefault$b(transformer);
29337
+ var request_message_1$1 = __importDefault$b(requestMessage);
29338
+ var stream_observers_1$1 = streamObservers;
29339
+ var neo4j_driver_core_1$c = lib$1;
29340
+ var _a$3 = neo4j_driver_core_1$c.internal.constants, BOLT_PROTOCOL_V5_2 = _a$3.BOLT_PROTOCOL_V5_2, FETCH_ALL = _a$3.FETCH_ALL;
29341
+ var BoltProtocol$1 = /** @class */ (function (_super) {
29342
+ __extends$7(BoltProtocol, _super);
29209
29343
  function BoltProtocol() {
29210
29344
  return _super !== null && _super.apply(this, arguments) || this;
29211
29345
  }
@@ -29220,7 +29354,7 @@
29220
29354
  get: function () {
29221
29355
  var _this = this;
29222
29356
  if (this._transformer === undefined) {
29223
- this._transformer = new transformer_1.default(Object.values(bolt_protocol_v5x2_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
29357
+ this._transformer = new transformer_1$1.default(Object.values(bolt_protocol_v5x2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
29224
29358
  }
29225
29359
  return this._transformer;
29226
29360
  },
@@ -29239,6 +29373,7 @@
29239
29373
  *
29240
29374
  * @param {Object} args The params
29241
29375
  * @param {string} args.userAgent The user agent
29376
+ * @param {string} args.boltAgent The bolt agent
29242
29377
  * @param {any} args.authToken The auth token
29243
29378
  * @param {NotificationFilter} args.notificationFilter The notification filters.
29244
29379
  * @param {function(error)} args.onError On error callback
@@ -29247,26 +29382,28 @@
29247
29382
  */
29248
29383
  BoltProtocol.prototype.initialize = function (_a) {
29249
29384
  var _this = this;
29250
- var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
29385
+ var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent; _b.boltAgent; var authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
29251
29386
  var state = {};
29252
- var observer = new stream_observers_1.LoginObserver({
29387
+ var observer = new stream_observers_1$1.LoginObserver({
29253
29388
  onError: function (error) { return _this._onLoginError(error, onError); },
29254
29389
  onCompleted: function (metadata) {
29255
29390
  state.metadata = metadata;
29256
29391
  return _this._onLoginCompleted(metadata);
29257
29392
  }
29258
29393
  });
29259
- this.write(request_message_1.default.hello5x2(userAgent, notificationFilter, this._serversideRouting), observer, false);
29394
+ this.write(
29395
+ // if useragent is null then for all versions before 5.3 it should be bolt agent by default
29396
+ request_message_1$1.default.hello5x2(userAgent, notificationFilter, this._serversideRouting), observer, false);
29260
29397
  return this.logon({
29261
29398
  authToken: authToken,
29262
- onComplete: function (metadata) { return onComplete(__assign$1(__assign$1({}, metadata), state.metadata)); },
29399
+ onComplete: function (metadata) { return onComplete(__assign$3(__assign$3({}, metadata), state.metadata)); },
29263
29400
  onError: onError,
29264
29401
  flush: true
29265
29402
  });
29266
29403
  };
29267
29404
  BoltProtocol.prototype.beginTransaction = function (_a) {
29268
29405
  var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete;
29269
- var observer = new stream_observers_1.ResultStreamObserver({
29406
+ var observer = new stream_observers_1$1.ResultStreamObserver({
29270
29407
  server: this._server,
29271
29408
  beforeError: beforeError,
29272
29409
  afterError: afterError,
@@ -29274,12 +29411,12 @@
29274
29411
  afterComplete: afterComplete
29275
29412
  });
29276
29413
  observer.prepareToHandleSingleResponse();
29277
- this.write(request_message_1.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode, impersonatedUser: impersonatedUser, notificationFilter: notificationFilter }), observer, true);
29414
+ this.write(request_message_1$1.default.begin({ bookmarks: bookmarks, txConfig: txConfig, database: database, mode: mode, impersonatedUser: impersonatedUser, notificationFilter: notificationFilter }), observer, true);
29278
29415
  return observer;
29279
29416
  };
29280
29417
  BoltProtocol.prototype.run = function (query, parameters, _a) {
29281
29418
  var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter, beforeKeys = _b.beforeKeys, afterKeys = _b.afterKeys, beforeError = _b.beforeError, afterError = _b.afterError, beforeComplete = _b.beforeComplete, afterComplete = _b.afterComplete, _c = _b.flush, flush = _c === void 0 ? true : _c, _d = _b.reactive, reactive = _d === void 0 ? false : _d, _e = _b.fetchSize, fetchSize = _e === void 0 ? FETCH_ALL : _e, _f = _b.highRecordWatermark, highRecordWatermark = _f === void 0 ? Number.MAX_VALUE : _f, _g = _b.lowRecordWatermark, lowRecordWatermark = _g === void 0 ? Number.MAX_VALUE : _g;
29282
- var observer = new stream_observers_1.ResultStreamObserver({
29419
+ var observer = new stream_observers_1$1.ResultStreamObserver({
29283
29420
  server: this._server,
29284
29421
  reactive: reactive,
29285
29422
  fetchSize: fetchSize,
@@ -29295,7 +29432,7 @@
29295
29432
  lowRecordWatermark: lowRecordWatermark
29296
29433
  });
29297
29434
  var flushRun = reactive;
29298
- this.write(request_message_1.default.runWithMetadata(query, parameters, {
29435
+ this.write(request_message_1$1.default.runWithMetadata(query, parameters, {
29299
29436
  bookmarks: bookmarks,
29300
29437
  txConfig: txConfig,
29301
29438
  database: database,
@@ -29304,13 +29441,165 @@
29304
29441
  notificationFilter: notificationFilter
29305
29442
  }), observer, flushRun && flush);
29306
29443
  if (!reactive) {
29307
- this.write(request_message_1.default.pull({ n: fetchSize }), observer, flush);
29444
+ this.write(request_message_1$1.default.pull({ n: fetchSize }), observer, flush);
29308
29445
  }
29309
29446
  return observer;
29310
29447
  };
29311
29448
  return BoltProtocol;
29312
29449
  }(bolt_protocol_v5x1_1$1.default));
29313
- boltProtocolV5x2.default = BoltProtocol;
29450
+ boltProtocolV5x2.default = BoltProtocol$1;
29451
+
29452
+ var boltProtocolV5x3 = {};
29453
+
29454
+ var boltProtocolV5x3_transformer = {};
29455
+
29456
+ /**
29457
+ * Copyright (c) "Neo4j"
29458
+ * Neo4j Sweden AB [http://neo4j.com]
29459
+ *
29460
+ * This file is part of Neo4j.
29461
+ *
29462
+ * Licensed under the Apache License, Version 2.0 (the "License");
29463
+ * you may not use this file except in compliance with the License.
29464
+ * You may obtain a copy of the License at
29465
+ *
29466
+ * http://www.apache.org/licenses/LICENSE-2.0
29467
+ *
29468
+ * Unless required by applicable law or agreed to in writing, software
29469
+ * distributed under the License is distributed on an "AS IS" BASIS,
29470
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29471
+ * See the License for the specific language governing permissions and
29472
+ * limitations under the License.
29473
+ */
29474
+ var __assign$2 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
29475
+ __assign$2 = Object.assign || function(t) {
29476
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
29477
+ s = arguments[i];
29478
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
29479
+ t[p] = s[p];
29480
+ }
29481
+ return t;
29482
+ };
29483
+ return __assign$2.apply(this, arguments);
29484
+ };
29485
+ var __importDefault$a = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
29486
+ return (mod && mod.__esModule) ? mod : { "default": mod };
29487
+ };
29488
+ Object.defineProperty(boltProtocolV5x3_transformer, "__esModule", { value: true });
29489
+ var bolt_protocol_v5x2_transformer_1 = __importDefault$a(boltProtocolV5x2_transformer);
29490
+ boltProtocolV5x3_transformer.default = __assign$2({}, bolt_protocol_v5x2_transformer_1.default);
29491
+
29492
+ var __extends$6 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
29493
+ var extendStatics = function (d, b) {
29494
+ extendStatics = Object.setPrototypeOf ||
29495
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
29496
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
29497
+ return extendStatics(d, b);
29498
+ };
29499
+ return function (d, b) {
29500
+ if (typeof b !== "function" && b !== null)
29501
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
29502
+ extendStatics(d, b);
29503
+ function __() { this.constructor = d; }
29504
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
29505
+ };
29506
+ })();
29507
+ var __assign$1 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
29508
+ __assign$1 = Object.assign || function(t) {
29509
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
29510
+ s = arguments[i];
29511
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
29512
+ t[p] = s[p];
29513
+ }
29514
+ return t;
29515
+ };
29516
+ return __assign$1.apply(this, arguments);
29517
+ };
29518
+ var __importDefault$9 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
29519
+ return (mod && mod.__esModule) ? mod : { "default": mod };
29520
+ };
29521
+ Object.defineProperty(boltProtocolV5x3, "__esModule", { value: true });
29522
+ /**
29523
+ * Copyright (c) "Neo4j"
29524
+ * Neo4j Sweden AB [http://neo4j.com]
29525
+ *
29526
+ * This file is part of Neo4j.
29527
+ *
29528
+ * Licensed under the Apache License, Version 2.0 (the "License");
29529
+ * you may not use this file except in compliance with the License.
29530
+ * You may obtain a copy of the License at
29531
+ *
29532
+ * http://www.apache.org/licenses/LICENSE-2.0
29533
+ *
29534
+ * Unless required by applicable law or agreed to in writing, software
29535
+ * distributed under the License is distributed on an "AS IS" BASIS,
29536
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
29537
+ * See the License for the specific language governing permissions and
29538
+ * limitations under the License.
29539
+ */
29540
+ var bolt_protocol_v5x2_1$1 = __importDefault$9(boltProtocolV5x2);
29541
+ var bolt_protocol_v5x3_transformer_1 = __importDefault$9(boltProtocolV5x3_transformer);
29542
+ var transformer_1 = __importDefault$9(transformer);
29543
+ var request_message_1 = __importDefault$9(requestMessage);
29544
+ var stream_observers_1 = streamObservers;
29545
+ var neo4j_driver_core_1$b = lib$1;
29546
+ var BOLT_PROTOCOL_V5_3 = neo4j_driver_core_1$b.internal.constants.BOLT_PROTOCOL_V5_3;
29547
+ var BoltProtocol = /** @class */ (function (_super) {
29548
+ __extends$6(BoltProtocol, _super);
29549
+ function BoltProtocol() {
29550
+ return _super !== null && _super.apply(this, arguments) || this;
29551
+ }
29552
+ Object.defineProperty(BoltProtocol.prototype, "version", {
29553
+ get: function () {
29554
+ return BOLT_PROTOCOL_V5_3;
29555
+ },
29556
+ enumerable: false,
29557
+ configurable: true
29558
+ });
29559
+ Object.defineProperty(BoltProtocol.prototype, "transformer", {
29560
+ get: function () {
29561
+ var _this = this;
29562
+ if (this._transformer === undefined) {
29563
+ this._transformer = new transformer_1.default(Object.values(bolt_protocol_v5x3_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
29564
+ }
29565
+ return this._transformer;
29566
+ },
29567
+ enumerable: false,
29568
+ configurable: true
29569
+ });
29570
+ /**
29571
+ * Initialize a connection with the server
29572
+ *
29573
+ * @param {Object} args The params
29574
+ * @param {string} args.userAgent The user agent
29575
+ * @param {any} args.authToken The auth token
29576
+ * @param {NotificationFilter} args.notificationFilter The notification filters.
29577
+ * @param {function(error)} args.onError On error callback
29578
+ * @param {function(onComplete)} args.onComplete On complete callback
29579
+ * @returns {LoginObserver} The Login observer
29580
+ */
29581
+ BoltProtocol.prototype.initialize = function (_a) {
29582
+ var _this = this;
29583
+ var _b = _a === void 0 ? {} : _a, userAgent = _b.userAgent, boltAgent = _b.boltAgent, authToken = _b.authToken, notificationFilter = _b.notificationFilter, onError = _b.onError, onComplete = _b.onComplete;
29584
+ var state = {};
29585
+ var observer = new stream_observers_1.LoginObserver({
29586
+ onError: function (error) { return _this._onLoginError(error, onError); },
29587
+ onCompleted: function (metadata) {
29588
+ state.metadata = metadata;
29589
+ return _this._onLoginCompleted(metadata);
29590
+ }
29591
+ });
29592
+ this.write(request_message_1.default.hello5x3(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
29593
+ return this.logon({
29594
+ authToken: authToken,
29595
+ onComplete: function (metadata) { return onComplete(__assign$1(__assign$1({}, metadata), state.metadata)); },
29596
+ onError: onError,
29597
+ flush: true
29598
+ });
29599
+ };
29600
+ return BoltProtocol;
29601
+ }(bolt_protocol_v5x2_1$1.default));
29602
+ boltProtocolV5x3.default = BoltProtocol;
29314
29603
 
29315
29604
  var responseHandler = {};
29316
29605
 
@@ -29555,6 +29844,7 @@
29555
29844
  var bolt_protocol_v5x0_1 = __importDefault$8(boltProtocolV5x0);
29556
29845
  var bolt_protocol_v5x1_1 = __importDefault$8(boltProtocolV5x1);
29557
29846
  var bolt_protocol_v5x2_1 = __importDefault$8(boltProtocolV5x2);
29847
+ var bolt_protocol_v5x3_1 = __importDefault$8(boltProtocolV5x3);
29558
29848
  var response_handler_1 = __importDefault$8(responseHandler);
29559
29849
  /**
29560
29850
  * Creates a protocol with a given version
@@ -29621,6 +29911,8 @@
29621
29911
  return new bolt_protocol_v5x1_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
29622
29912
  case 5.2:
29623
29913
  return new bolt_protocol_v5x2_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
29914
+ case 5.3:
29915
+ return new bolt_protocol_v5x3_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
29624
29916
  default:
29625
29917
  throw (0, neo4j_driver_core_1$9.newError)('Unknown Bolt protocol version: ' + version);
29626
29918
  }
@@ -30500,10 +30792,12 @@
30500
30792
  /**
30501
30793
  * Connect to the target address, negotiate Bolt protocol and send initialization message.
30502
30794
  * @param {string} userAgent the user agent for this driver.
30795
+ * @param {string} boltAgent the bolt agent for this driver.
30503
30796
  * @param {Object} authToken the object containing auth information.
30797
+ * @param {boolean} shouldWaitReAuth whether ot not the connection will wait for re-authentication to happen
30504
30798
  * @return {Promise<Connection>} promise resolved with the current connection if connection is successful. Rejected promise otherwise.
30505
30799
  */
30506
- Connection.prototype.connect = function (userAgent, authToken) {
30800
+ Connection.prototype.connect = function (userAgent, boltAgent, authToken, shouldWaitReAuth) {
30507
30801
  throw new Error('not implemented');
30508
30802
  };
30509
30803
  /**
@@ -30766,10 +31060,12 @@
30766
31060
  /**
30767
31061
  * Send initialization message.
30768
31062
  * @param {string} userAgent the user agent for this driver.
31063
+ * @param {string} boltAgent the bolt agent for this driver.
30769
31064
  * @param {Object} authToken the object containing auth information.
31065
+ * @param {boolean} waitReAuth whether ot not the connection will wait for re-authentication to happen
30770
31066
  * @return {Promise<Connection>} promise resolved with the current connection if connection is successful. Rejected promise otherwise.
30771
31067
  */
30772
- ChannelConnection.prototype.connect = function (userAgent, authToken, waitReAuth) {
31068
+ ChannelConnection.prototype.connect = function (userAgent, boltAgent, authToken, waitReAuth) {
30773
31069
  return __awaiter$4(this, void 0, void 0, function () {
30774
31070
  var _this = this;
30775
31071
  return __generator$4(this, function (_a) {
@@ -30780,7 +31076,7 @@
30780
31076
  }
30781
31077
  this._authToken = authToken;
30782
31078
  if (!!this._protocol.initialized) return [3 /*break*/, 2];
30783
- return [4 /*yield*/, this._initialize(userAgent, authToken)];
31079
+ return [4 /*yield*/, this._initialize(userAgent, boltAgent, authToken)];
30784
31080
  case 1: return [2 /*return*/, _a.sent()];
30785
31081
  case 2:
30786
31082
  if (!waitReAuth) return [3 /*break*/, 4];
@@ -30807,15 +31103,17 @@
30807
31103
  /**
30808
31104
  * Perform protocol-specific initialization which includes authentication.
30809
31105
  * @param {string} userAgent the user agent for this driver.
31106
+ * @param {string} boltAgent the bolt agent for this driver.
30810
31107
  * @param {Object} authToken the object containing auth information.
30811
31108
  * @return {Promise<Connection>} promise resolved with the current connection if initialization is successful. Rejected promise otherwise.
30812
31109
  */
30813
- ChannelConnection.prototype._initialize = function (userAgent, authToken) {
31110
+ ChannelConnection.prototype._initialize = function (userAgent, boltAgent, authToken) {
30814
31111
  var _this = this;
30815
31112
  var self = this;
30816
31113
  return new Promise(function (resolve, reject) {
30817
31114
  _this._protocol.initialize({
30818
31115
  userAgent: userAgent,
31116
+ boltAgent: boltAgent,
30819
31117
  authToken: authToken,
30820
31118
  notificationFilter: _this._notificationFilter,
30821
31119
  onError: function (err) { return reject(err); },
@@ -31190,8 +31488,8 @@
31190
31488
  DelegateConnection.prototype.protocol = function () {
31191
31489
  return this._delegate.protocol();
31192
31490
  };
31193
- DelegateConnection.prototype.connect = function (userAgent, authToken, waitReAuth) {
31194
- return this._delegate.connect(userAgent, authToken, waitReAuth);
31491
+ DelegateConnection.prototype.connect = function (userAgent, boltAgent, authToken, waitReAuth) {
31492
+ return this._delegate.connect(userAgent, boltAgent, authToken, waitReAuth);
31195
31493
  };
31196
31494
  DelegateConnection.prototype.write = function (message, observer, flush) {
31197
31495
  return this._delegate.write(message, observer, flush);
@@ -31423,11 +31721,12 @@
31423
31721
  */
31424
31722
  var AuthenticationProvider = /** @class */ (function () {
31425
31723
  function AuthenticationProvider(_a) {
31426
- var authTokenManager = _a.authTokenManager, userAgent = _a.userAgent;
31724
+ var authTokenManager = _a.authTokenManager, userAgent = _a.userAgent, boltAgent = _a.boltAgent;
31427
31725
  this._authTokenManager = authTokenManager || (0, neo4j_driver_core_1$4.expirationBasedAuthTokenManager)({
31428
31726
  tokenProvider: function () { }
31429
31727
  });
31430
31728
  this._userAgent = userAgent;
31729
+ this._boltAgent = boltAgent;
31431
31730
  }
31432
31731
  AuthenticationProvider.prototype.authenticate = function (_a) {
31433
31732
  var connection = _a.connection, auth = _a.auth, skipReAuth = _a.skipReAuth, waitReAuth = _a.waitReAuth, forceReAuth = _a.forceReAuth;
@@ -31440,14 +31739,14 @@
31440
31739
  shouldReAuth = connection.supportsReAuth === true && ((!lang_1$1.object.equals(connection.authToken, auth) && skipReAuth !== true) ||
31441
31740
  forceReAuth === true);
31442
31741
  if (!(connection.authToken == null || shouldReAuth)) return [3 /*break*/, 2];
31443
- return [4 /*yield*/, connection.connect(this._userAgent, auth, waitReAuth || false)];
31742
+ return [4 /*yield*/, connection.connect(this._userAgent, this._boltAgent, auth, waitReAuth || false)];
31444
31743
  case 1: return [2 /*return*/, _b.sent()];
31445
31744
  case 2: return [2 /*return*/, connection];
31446
31745
  case 3: return [4 /*yield*/, this._authTokenManager.getToken()];
31447
31746
  case 4:
31448
31747
  authToken = _b.sent();
31449
31748
  if (!!lang_1$1.object.equals(authToken, connection.authToken)) return [3 /*break*/, 6];
31450
- return [4 /*yield*/, connection.connect(this._userAgent, authToken)];
31749
+ return [4 /*yield*/, connection.connect(this._userAgent, this._boltAgent, authToken, false)];
31451
31750
  case 5: return [2 /*return*/, _b.sent()];
31452
31751
  case 6: return [2 /*return*/, connection];
31453
31752
  }
@@ -31604,7 +31903,7 @@
31604
31903
  var PooledConnectionProvider = /** @class */ (function (_super) {
31605
31904
  __extends$2(PooledConnectionProvider, _super);
31606
31905
  function PooledConnectionProvider(_a, createChannelConnectionHook) {
31607
- var id = _a.id, config = _a.config, log = _a.log, userAgent = _a.userAgent, authTokenManager = _a.authTokenManager, _b = _a.newPool, newPool = _b === void 0 ? function () {
31906
+ var id = _a.id, config = _a.config, log = _a.log, userAgent = _a.userAgent, boltAgent = _a.boltAgent, authTokenManager = _a.authTokenManager, _b = _a.newPool, newPool = _b === void 0 ? function () {
31608
31907
  var args = [];
31609
31908
  for (var _i = 0; _i < arguments.length; _i++) {
31610
31909
  args[_i] = arguments[_i];
@@ -31617,7 +31916,9 @@
31617
31916
  _this._config = config;
31618
31917
  _this._log = log;
31619
31918
  _this._authTokenManager = authTokenManager;
31620
- _this._authenticationProvider = new authentication_provider_1.default({ authTokenManager: authTokenManager, userAgent: userAgent });
31919
+ _this._authenticationProvider = new authentication_provider_1.default({ authTokenManager: authTokenManager, userAgent: userAgent, boltAgent: boltAgent });
31920
+ _this._userAgent = userAgent;
31921
+ _this._boltAgent = boltAgent;
31621
31922
  _this._createChannelConnection =
31622
31923
  createChannelConnectionHook ||
31623
31924
  (function (address) {
@@ -31633,7 +31934,6 @@
31633
31934
  config: pool_1.PoolConfig.fromDriverConfig(config),
31634
31935
  log: _this._log
31635
31936
  });
31636
- _this._userAgent = userAgent;
31637
31937
  _this._openConnections = {};
31638
31938
  return _this;
31639
31939
  }
@@ -31952,8 +32252,8 @@
31952
32252
  var DirectConnectionProvider = /** @class */ (function (_super) {
31953
32253
  __extends$1(DirectConnectionProvider, _super);
31954
32254
  function DirectConnectionProvider(_a) {
31955
- var id = _a.id, config = _a.config, log = _a.log, address = _a.address, userAgent = _a.userAgent, authTokenManager = _a.authTokenManager, newPool = _a.newPool;
31956
- var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, authTokenManager: authTokenManager, newPool: newPool }) || this;
32255
+ var id = _a.id, config = _a.config, log = _a.log, address = _a.address, userAgent = _a.userAgent, boltAgent = _a.boltAgent, authTokenManager = _a.authTokenManager, newPool = _a.newPool;
32256
+ var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, boltAgent: boltAgent, authTokenManager: authTokenManager, newPool: newPool }) || this;
31957
32257
  _this._address = address;
31958
32258
  return _this;
31959
32259
  }
@@ -32596,8 +32896,8 @@
32596
32896
  var RoutingConnectionProvider = /** @class */ (function (_super) {
32597
32897
  __extends(RoutingConnectionProvider, _super);
32598
32898
  function RoutingConnectionProvider(_a) {
32599
- var id = _a.id, address = _a.address, routingContext = _a.routingContext, hostNameResolver = _a.hostNameResolver, config = _a.config, log = _a.log, userAgent = _a.userAgent, authTokenManager = _a.authTokenManager, routingTablePurgeDelay = _a.routingTablePurgeDelay, newPool = _a.newPool;
32600
- var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, authTokenManager: authTokenManager, newPool: newPool }, function (address) {
32899
+ var id = _a.id, address = _a.address, routingContext = _a.routingContext, hostNameResolver = _a.hostNameResolver, config = _a.config, log = _a.log, userAgent = _a.userAgent, boltAgent = _a.boltAgent, authTokenManager = _a.authTokenManager, routingTablePurgeDelay = _a.routingTablePurgeDelay, newPool = _a.newPool;
32900
+ var _this = _super.call(this, { id: id, config: config, log: log, userAgent: userAgent, boltAgent: boltAgent, authTokenManager: authTokenManager, newPool: newPool }, function (address) {
32601
32901
  return (0, connection_1.createChannelConnection)(address, _this._config, _this._createConnectionErrorHandler(), _this._log, _this._routingContext);
32602
32902
  }) || this;
32603
32903
  _this._routingContext = __assign(__assign({}, routingContext), { address: address.toString() });
@@ -33524,6 +33824,7 @@
33524
33824
  var result_rx_1 = __importDefault(resultRx);
33525
33825
  exports.RxResult = result_rx_1.default;
33526
33826
  var _a = neo4j_driver_core_1.internal.util, ENCRYPTION_ON = _a.ENCRYPTION_ON, assertString = _a.assertString, isEmptyObjectOrNull = _a.isEmptyObjectOrNull, ServerAddress = neo4j_driver_core_1.internal.serverAddress.ServerAddress, urlUtil = neo4j_driver_core_1.internal.urlUtil;
33827
+ var USER_AGENT = 'neo4j-javascript/' + version_1.default;
33527
33828
  function isAuthTokenManager(value) {
33528
33829
  return typeof value === 'object' &&
33529
33830
  value != null &&
@@ -33723,6 +34024,7 @@
33723
34024
  var authTokenManager = createAuthManager(authToken);
33724
34025
  // Use default user agent or user agent specified by user.
33725
34026
  config.userAgent = config.userAgent || USER_AGENT;
34027
+ config.boltAgent = neo4j_driver_core_1.internal.boltAgent.fromVersion('neo4j-javascript/' + version_1.default);
33726
34028
  var address = ServerAddress.fromUrl(parsedUrl.hostAndPort);
33727
34029
  var meta = {
33728
34030
  address: address,
@@ -33741,6 +34043,7 @@
33741
34043
  authTokenManager: authTokenManager,
33742
34044
  address: address,
33743
34045
  userAgent: config.userAgent,
34046
+ boltAgent: config.boltAgent,
33744
34047
  routingContext: parsedUrl.query
33745
34048
  });
33746
34049
  };
@@ -33756,7 +34059,8 @@
33756
34059
  log: log,
33757
34060
  authTokenManager: authTokenManager,
33758
34061
  address: address,
33759
- userAgent: config.userAgent
34062
+ userAgent: config.userAgent,
34063
+ boltAgent: config.boltAgent
33760
34064
  });
33761
34065
  };
33762
34066
  }
@@ -33797,7 +34101,6 @@
33797
34101
  });
33798
34102
  }
33799
34103
  exports.hasReachableServer = hasReachableServer;
33800
- var USER_AGENT = 'neo4j-javascript/' + version_1.default;
33801
34104
  /**
33802
34105
  * Object containing predefined logging configurations. These are expected to be used as values of the driver config's `logging` property.
33803
34106
  * @property {function(level: ?string): object} console the function to create a logging config that prints all messages to `console.log` with