neo4j-driver 5.14.0 → 5.16.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.
@@ -14,9 +14,7 @@ var error = {};
14
14
 
15
15
  /**
16
16
  * Copyright (c) "Neo4j"
17
- * Neo4j Sweden AB [http://neo4j.com]
18
- *
19
- * This file is part of Neo4j.
17
+ * Neo4j Sweden AB [https://neo4j.com]
20
18
  *
21
19
  * Licensed under the Apache License, Version 2.0 (the "License");
22
20
  * you may not use this file except in compliance with the License.
@@ -167,9 +165,7 @@ var integer = {};
167
165
 
168
166
  /**
169
167
  * Copyright (c) "Neo4j"
170
- * Neo4j Sweden AB [http://neo4j.com]
171
- *
172
- * This file is part of Neo4j.
168
+ * Neo4j Sweden AB [https://neo4j.com]
173
169
  *
174
170
  * Licensed under the Apache License, Version 2.0 (the "License");
175
171
  * you may not use this file except in compliance with the License.
@@ -804,10 +800,11 @@ var Integer = /** @class */ (function () {
804
800
  */
805
801
  Integer.prototype.shiftRight = function (numBits) {
806
802
  var bitsCount = Integer.toNumber(numBits);
803
+ var numBitNum = Integer.toNumber(numBits);
807
804
  if ((bitsCount &= 63) === 0) {
808
805
  return Integer.ZERO;
809
806
  }
810
- else if (numBits < 32) {
807
+ else if (numBitNum < 32) {
811
808
  return Integer.fromBits((this.low >>> bitsCount) | (this.high << (32 - bitsCount)), this.high >> bitsCount);
812
809
  }
813
810
  else {
@@ -1188,9 +1185,7 @@ Object.defineProperty(objectUtil$2, "__esModule", { value: true });
1188
1185
  objectUtil$2.getBrokenObjectReason = objectUtil$2.isBrokenObject = objectUtil$2.createBrokenObject = void 0;
1189
1186
  /**
1190
1187
  * Copyright (c) "Neo4j"
1191
- * Neo4j Sweden AB [http://neo4j.com]
1192
- *
1193
- * This file is part of Neo4j.
1188
+ * Neo4j Sweden AB [https://neo4j.com]
1194
1189
  *
1195
1190
  * Licensed under the Apache License, Version 2.0 (the "License");
1196
1191
  * you may not use this file except in compliance with the License.
@@ -1272,9 +1267,7 @@ objectUtil$2.getBrokenObjectReason = getBrokenObjectReason;
1272
1267
 
1273
1268
  /**
1274
1269
  * Copyright (c) "Neo4j"
1275
- * Neo4j Sweden AB [http://neo4j.com]
1276
- *
1277
- * This file is part of Neo4j.
1270
+ * Neo4j Sweden AB [https://neo4j.com]
1278
1271
  *
1279
1272
  * Licensed under the Apache License, Version 2.0 (the "License");
1280
1273
  * you may not use this file except in compliance with the License.
@@ -1328,9 +1321,7 @@ Object.defineProperty(util$4, "__esModule", { value: true });
1328
1321
  util$4.ENCRYPTION_OFF = util$4.ENCRYPTION_ON = util$4.equals = util$4.validateQueryAndParameters = util$4.assertValidDate = util$4.assertNumberOrInteger = util$4.assertNumber = util$4.assertString = util$4.assertObject = util$4.isString = util$4.isObject = util$4.isEmptyObjectOrNull = void 0;
1329
1322
  /**
1330
1323
  * Copyright (c) "Neo4j"
1331
- * Neo4j Sweden AB [http://neo4j.com]
1332
- *
1333
- * This file is part of Neo4j.
1324
+ * Neo4j Sweden AB [https://neo4j.com]
1334
1325
  *
1335
1326
  * Licensed under the Apache License, Version 2.0 (the "License");
1336
1327
  * you may not use this file except in compliance with the License.
@@ -1568,9 +1559,7 @@ util$4.equals = equals$1;
1568
1559
  (function (exports) {
1569
1560
  /**
1570
1561
  * Copyright (c) "Neo4j"
1571
- * Neo4j Sweden AB [http://neo4j.com]
1572
- *
1573
- * This file is part of Neo4j.
1562
+ * Neo4j Sweden AB [https://neo4j.com]
1574
1563
  *
1575
1564
  * Licensed under the Apache License, Version 2.0 (the "License");
1576
1565
  * you may not use this file except in compliance with the License.
@@ -2123,9 +2112,7 @@ function add(x, y) {
2123
2112
 
2124
2113
  /**
2125
2114
  * Copyright (c) "Neo4j"
2126
- * Neo4j Sweden AB [http://neo4j.com]
2127
- *
2128
- * This file is part of Neo4j.
2115
+ * Neo4j Sweden AB [https://neo4j.com]
2129
2116
  *
2130
2117
  * Licensed under the Apache License, Version 2.0 (the "License");
2131
2118
  * you may not use this file except in compliance with the License.
@@ -3102,9 +3089,7 @@ var record = {};
3102
3089
 
3103
3090
  /**
3104
3091
  * Copyright (c) "Neo4j"
3105
- * Neo4j Sweden AB [http://neo4j.com]
3106
- *
3107
- * This file is part of Neo4j.
3092
+ * Neo4j Sweden AB [https://neo4j.com]
3108
3093
  *
3109
3094
  * Licensed under the Apache License, Version 2.0 (the "License");
3110
3095
  * you may not use this file except in compliance with the License.
@@ -3118,7 +3103,7 @@ var record = {};
3118
3103
  * See the License for the specific language governing permissions and
3119
3104
  * limitations under the License.
3120
3105
  */
3121
- var __generator$k = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
3106
+ var __generator$l = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
3122
3107
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
3123
3108
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
3124
3109
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -3286,7 +3271,7 @@ var Record = /** @class */ (function () {
3286
3271
  */
3287
3272
  Record.prototype.entries = function () {
3288
3273
  var i;
3289
- return __generator$k(this, function (_a) {
3274
+ return __generator$l(this, function (_a) {
3290
3275
  switch (_a.label) {
3291
3276
  case 0:
3292
3277
  i = 0;
@@ -3312,7 +3297,7 @@ var Record = /** @class */ (function () {
3312
3297
  */
3313
3298
  Record.prototype.values = function () {
3314
3299
  var i;
3315
- return __generator$k(this, function (_a) {
3300
+ return __generator$l(this, function (_a) {
3316
3301
  switch (_a.label) {
3317
3302
  case 0:
3318
3303
  i = 0;
@@ -3338,7 +3323,7 @@ var Record = /** @class */ (function () {
3338
3323
  */
3339
3324
  Record.prototype[Symbol.iterator] = function () {
3340
3325
  var i;
3341
- return __generator$k(this, function (_a) {
3326
+ return __generator$l(this, function (_a) {
3342
3327
  switch (_a.label) {
3343
3328
  case 0:
3344
3329
  i = 0;
@@ -3431,9 +3416,7 @@ Object.defineProperty(spatialTypes, "__esModule", { value: true });
3431
3416
  spatialTypes.isPoint = spatialTypes.Point = void 0;
3432
3417
  /**
3433
3418
  * Copyright (c) "Neo4j"
3434
- * Neo4j Sweden AB [http://neo4j.com]
3435
- *
3436
- * This file is part of Neo4j.
3419
+ * Neo4j Sweden AB [https://neo4j.com]
3437
3420
  *
3438
3421
  * Licensed under the Apache License, Version 2.0 (the "License");
3439
3422
  * you may not use this file except in compliance with the License.
@@ -3519,9 +3502,7 @@ var resultSummary = {};
3519
3502
 
3520
3503
  /**
3521
3504
  * Copyright (c) "Neo4j"
3522
- * Neo4j Sweden AB [http://neo4j.com]
3523
- *
3524
- * This file is part of Neo4j.
3505
+ * Neo4j Sweden AB [https://neo4j.com]
3525
3506
  *
3526
3507
  * Licensed under the Apache License, Version 2.0 (the "License");
3527
3508
  * you may not use this file except in compliance with the License.
@@ -4202,9 +4183,7 @@ var observers = {};
4202
4183
 
4203
4184
  /**
4204
4185
  * Copyright (c) "Neo4j"
4205
- * Neo4j Sweden AB [http://neo4j.com]
4206
- *
4207
- * This file is part of Neo4j.
4186
+ * Neo4j Sweden AB [https://neo4j.com]
4208
4187
  *
4209
4188
  * Licensed under the Apache License, Version 2.0 (the "License");
4210
4189
  * you may not use this file except in compliance with the License.
@@ -4295,9 +4274,7 @@ var bookmarks$1 = {};
4295
4274
 
4296
4275
  /**
4297
4276
  * Copyright (c) "Neo4j"
4298
- * Neo4j Sweden AB [http://neo4j.com]
4299
- *
4300
- * This file is part of Neo4j.
4277
+ * Neo4j Sweden AB [https://neo4j.com]
4301
4278
  *
4302
4279
  * Licensed under the Apache License, Version 2.0 (the "License");
4303
4280
  * you may not use this file except in compliance with the License.
@@ -4463,9 +4440,7 @@ var constants$1 = {};
4463
4440
 
4464
4441
  /**
4465
4442
  * Copyright (c) "Neo4j"
4466
- * Neo4j Sweden AB [http://neo4j.com]
4467
- *
4468
- * This file is part of Neo4j.
4443
+ * Neo4j Sweden AB [https://neo4j.com]
4469
4444
  *
4470
4445
  * Licensed under the Apache License, Version 2.0 (the "License");
4471
4446
  * you may not use this file except in compliance with the License.
@@ -4546,14 +4521,12 @@ var __extends$M = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
4546
4521
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4547
4522
  };
4548
4523
  })();
4549
- var _a$e;
4524
+ var _a$f;
4550
4525
  Object.defineProperty(logger$1, "__esModule", { value: true });
4551
4526
  logger$1.Logger = void 0;
4552
4527
  /**
4553
4528
  * Copyright (c) "Neo4j"
4554
- * Neo4j Sweden AB [http://neo4j.com]
4555
- *
4556
- * This file is part of Neo4j.
4529
+ * Neo4j Sweden AB [https://neo4j.com]
4557
4530
  *
4558
4531
  * Licensed under the Apache License, Version 2.0 (the "License");
4559
4532
  * you may not use this file except in compliance with the License.
@@ -4573,12 +4546,12 @@ var WARN = 'warn';
4573
4546
  var INFO = 'info';
4574
4547
  var DEBUG = 'debug';
4575
4548
  var DEFAULT_LEVEL = INFO;
4576
- var levels = (_a$e = {},
4577
- _a$e[ERROR] = 0,
4578
- _a$e[WARN] = 1,
4579
- _a$e[INFO] = 2,
4580
- _a$e[DEBUG] = 3,
4581
- _a$e);
4549
+ var levels = (_a$f = {},
4550
+ _a$f[ERROR] = 0,
4551
+ _a$f[WARN] = 1,
4552
+ _a$f[INFO] = 2,
4553
+ _a$f[DEBUG] = 3,
4554
+ _a$f);
4582
4555
  /**
4583
4556
  * Logger used by the driver to notify about various internal events. Single logger should be used per driver.
4584
4557
  */
@@ -4747,9 +4720,7 @@ function extractConfiguredLogger(loggingConfig) {
4747
4720
 
4748
4721
  /**
4749
4722
  * Copyright (c) "Neo4j"
4750
- * Neo4j Sweden AB [http://neo4j.com]
4751
- *
4752
- * This file is part of Neo4j.
4723
+ * Neo4j Sweden AB [https://neo4j.com]
4753
4724
  *
4754
4725
  * Licensed under the Apache License, Version 2.0 (the "License");
4755
4726
  * you may not use this file except in compliance with the License.
@@ -4779,7 +4750,7 @@ var __extends$L = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
4779
4750
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
4780
4751
  };
4781
4752
  })();
4782
- var __awaiter$h = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
4753
+ var __awaiter$i = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
4783
4754
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4784
4755
  return new (P || (P = Promise))(function (resolve, reject) {
4785
4756
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -4788,7 +4759,7 @@ var __awaiter$h = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
4788
4759
  step((generator = generator.apply(thisArg, _arguments || [])).next());
4789
4760
  });
4790
4761
  };
4791
- var __generator$j = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
4762
+ var __generator$k = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
4792
4763
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
4793
4764
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
4794
4765
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -4885,10 +4856,10 @@ var ConnectionHolder = /** @class */ (function () {
4885
4856
  return true;
4886
4857
  };
4887
4858
  ConnectionHolder.prototype._createConnectionPromise = function (connectionProvider) {
4888
- return __awaiter$h(this, void 0, void 0, function () {
4859
+ return __awaiter$i(this, void 0, void 0, function () {
4889
4860
  var _a, _b;
4890
4861
  var _c;
4891
- return __generator$j(this, function (_d) {
4862
+ return __generator$k(this, function (_d) {
4892
4863
  switch (_d.label) {
4893
4864
  case 0:
4894
4865
  _b = (_a = connectionProvider).acquireConnection;
@@ -4908,8 +4879,8 @@ var ConnectionHolder = /** @class */ (function () {
4908
4879
  });
4909
4880
  };
4910
4881
  ConnectionHolder.prototype._getBookmarks = function () {
4911
- return __awaiter$h(this, void 0, void 0, function () {
4912
- return __generator$j(this, function (_a) {
4882
+ return __awaiter$i(this, void 0, void 0, function () {
4883
+ return __generator$k(this, function (_a) {
4913
4884
  switch (_a.label) {
4914
4885
  case 0: return [4 /*yield*/, this._getConnectionAcquistionBookmarks()];
4915
4886
  case 1: return [2 /*return*/, _a.sent()];
@@ -5055,8 +5026,8 @@ var EmptyConnectionHolder = /** @class */ (function (_super) {
5055
5026
  return true;
5056
5027
  };
5057
5028
  EmptyConnectionHolder.prototype.getConnection = function () {
5058
- return __awaiter$h(this, void 0, void 0, function () {
5059
- return __generator$j(this, function (_a) {
5029
+ return __awaiter$i(this, void 0, void 0, function () {
5030
+ return __generator$k(this, function (_a) {
5060
5031
  switch (_a.label) {
5061
5032
  case 0: return [4 /*yield*/, Promise.reject((0, error_1$7.newError)('This connection holder does not serve connections'))];
5062
5033
  case 1: return [2 /*return*/, _a.sent()];
@@ -5065,8 +5036,8 @@ var EmptyConnectionHolder = /** @class */ (function (_super) {
5065
5036
  });
5066
5037
  };
5067
5038
  EmptyConnectionHolder.prototype.releaseConnection = function () {
5068
- return __awaiter$h(this, void 0, void 0, function () {
5069
- return __generator$j(this, function (_a) {
5039
+ return __awaiter$i(this, void 0, void 0, function () {
5040
+ return __generator$k(this, function (_a) {
5070
5041
  switch (_a.label) {
5071
5042
  case 0: return [4 /*yield*/, Promise.resolve(null)];
5072
5043
  case 1: return [2 /*return*/, _a.sent()];
@@ -5075,8 +5046,8 @@ var EmptyConnectionHolder = /** @class */ (function (_super) {
5075
5046
  });
5076
5047
  };
5077
5048
  EmptyConnectionHolder.prototype.close = function () {
5078
- return __awaiter$h(this, void 0, void 0, function () {
5079
- return __generator$j(this, function (_a) {
5049
+ return __awaiter$i(this, void 0, void 0, function () {
5050
+ return __generator$k(this, function (_a) {
5080
5051
  switch (_a.label) {
5081
5052
  case 0: return [4 /*yield*/, Promise.resolve(null)];
5082
5053
  case 1: return [2 /*return*/, _a.sent()];
@@ -5102,9 +5073,7 @@ var txConfig$1 = {};
5102
5073
 
5103
5074
  /**
5104
5075
  * Copyright (c) "Neo4j"
5105
- * Neo4j Sweden AB [http://neo4j.com]
5106
- *
5107
- * This file is part of Neo4j.
5076
+ * Neo4j Sweden AB [https://neo4j.com]
5108
5077
  *
5109
5078
  * Licensed under the Apache License, Version 2.0 (the "License");
5110
5079
  * you may not use this file except in compliance with the License.
@@ -5234,7 +5203,7 @@ var __assign$m = (commonjsGlobal && commonjsGlobal.__assign) || function () {
5234
5203
  };
5235
5204
  return __assign$m.apply(this, arguments);
5236
5205
  };
5237
- var __awaiter$g = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
5206
+ var __awaiter$h = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
5238
5207
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
5239
5208
  return new (P || (P = Promise))(function (resolve, reject) {
5240
5209
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -5243,7 +5212,7 @@ var __awaiter$g = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
5243
5212
  step((generator = generator.apply(thisArg, _arguments || [])).next());
5244
5213
  });
5245
5214
  };
5246
- var __generator$i = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
5215
+ var __generator$j = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
5247
5216
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
5248
5217
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
5249
5218
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -5299,9 +5268,7 @@ Object.defineProperty(transactionExecutor$1, "__esModule", { value: true });
5299
5268
  transactionExecutor$1.TransactionExecutor = void 0;
5300
5269
  /**
5301
5270
  * Copyright (c) "Neo4j"
5302
- * Neo4j Sweden AB [http://neo4j.com]
5303
- *
5304
- * This file is part of Neo4j.
5271
+ * Neo4j Sweden AB [https://neo4j.com]
5305
5272
  *
5306
5273
  * Licensed under the Apache License, Version 2.0 (the "License");
5307
5274
  * you may not use this file except in compliance with the License.
@@ -5394,10 +5361,10 @@ var TransactionExecutor = /** @class */ (function () {
5394
5361
  });
5395
5362
  };
5396
5363
  TransactionExecutor.prototype._executeTransactionInsidePromise = function (transactionCreator, transactionWork, resolve, reject, transactionWrapper, executionContext) {
5397
- return __awaiter$g(this, void 0, void 0, function () {
5364
+ return __awaiter$h(this, void 0, void 0, function () {
5398
5365
  var tx, txPromise, _a, error_2, wrap, wrappedTx, resultPromise;
5399
5366
  var _this = this;
5400
- return __generator$i(this, function (_b) {
5367
+ return __generator$j(this, function (_b) {
5401
5368
  switch (_b.label) {
5402
5369
  case 0:
5403
5370
  _b.trys.push([0, 4, , 5]);
@@ -5513,9 +5480,7 @@ var urlUtil$2 = {};
5513
5480
 
5514
5481
  /**
5515
5482
  * Copyright (c) "Neo4j"
5516
- * Neo4j Sweden AB [http://neo4j.com]
5517
- *
5518
- * This file is part of Neo4j.
5483
+ * Neo4j Sweden AB [https://neo4j.com]
5519
5484
  *
5520
5485
  * Licensed under the Apache License, Version 2.0 (the "License");
5521
5486
  * you may not use this file except in compliance with the License.
@@ -5838,9 +5803,7 @@ Object.defineProperty(serverAddress$1, "__esModule", { value: true });
5838
5803
  serverAddress$1.ServerAddress = void 0;
5839
5804
  /**
5840
5805
  * Copyright (c) "Neo4j"
5841
- * Neo4j Sweden AB [http://neo4j.com]
5842
- *
5843
- * This file is part of Neo4j.
5806
+ * Neo4j Sweden AB [https://neo4j.com]
5844
5807
  *
5845
5808
  * Licensed under the Apache License, Version 2.0 (the "License");
5846
5809
  * you may not use this file except in compliance with the License.
@@ -5899,9 +5862,7 @@ var baseHostNameResolver = {};
5899
5862
 
5900
5863
  /**
5901
5864
  * Copyright (c) "Neo4j"
5902
- * Neo4j Sweden AB [http://neo4j.com]
5903
- *
5904
- * This file is part of Neo4j.
5865
+ * Neo4j Sweden AB [https://neo4j.com]
5905
5866
  *
5906
5867
  * Licensed under the Apache License, Version 2.0 (the "License");
5907
5868
  * you may not use this file except in compliance with the License.
@@ -5938,9 +5899,7 @@ var configuredCustomResolver = {};
5938
5899
  Object.defineProperty(configuredCustomResolver, "__esModule", { value: true });
5939
5900
  /**
5940
5901
  * Copyright (c) "Neo4j"
5941
- * Neo4j Sweden AB [http://neo4j.com]
5942
- *
5943
- * This file is part of Neo4j.
5902
+ * Neo4j Sweden AB [https://neo4j.com]
5944
5903
  *
5945
5904
  * Licensed under the Apache License, Version 2.0 (the "License");
5946
5905
  * you may not use this file except in compliance with the License.
@@ -5987,9 +5946,7 @@ Object.defineProperty(resolver$1, "__esModule", { value: true });
5987
5946
  resolver$1.ConfiguredCustomResolver = resolver$1.BaseHostNameResolver = void 0;
5988
5947
  /**
5989
5948
  * Copyright (c) "Neo4j"
5990
- * Neo4j Sweden AB [http://neo4j.com]
5991
- *
5992
- * This file is part of Neo4j.
5949
+ * Neo4j Sweden AB [https://neo4j.com]
5993
5950
  *
5994
5951
  * Licensed under the Apache License, Version 2.0 (the "License");
5995
5952
  * you may not use this file except in compliance with the License.
@@ -6014,9 +5971,7 @@ var boltAgent$1 = {};
6014
5971
 
6015
5972
  /**
6016
5973
  * Copyright (c) "Neo4j"
6017
- * Neo4j Sweden AB [http://neo4j.com]
6018
- *
6019
- * This file is part of Neo4j.
5974
+ * Neo4j Sweden AB [https://neo4j.com]
6020
5975
  *
6021
5976
  * Licensed under the Apache License, Version 2.0 (the "License");
6022
5977
  * you may not use this file except in compliance with the License.
@@ -6066,9 +6021,7 @@ boltAgent$1.fromVersion = fromVersion;
6066
6021
  (function (exports) {
6067
6022
  /**
6068
6023
  * Copyright (c) "Neo4j"
6069
- * Neo4j Sweden AB [http://neo4j.com]
6070
- *
6071
- * This file is part of Neo4j.
6024
+ * Neo4j Sweden AB [https://neo4j.com]
6072
6025
  *
6073
6026
  * Licensed under the Apache License, Version 2.0 (the "License");
6074
6027
  * you may not use this file except in compliance with the License.
@@ -6102,9 +6055,7 @@ __exportStar(boltAgent$1, exports);
6102
6055
 
6103
6056
  /**
6104
6057
  * Copyright (c) "Neo4j"
6105
- * Neo4j Sweden AB [http://neo4j.com]
6106
- *
6107
- * This file is part of Neo4j.
6058
+ * Neo4j Sweden AB [https://neo4j.com]
6108
6059
  *
6109
6060
  * Licensed under the Apache License, Version 2.0 (the "License");
6110
6061
  * you may not use this file except in compliance with the License.
@@ -6174,9 +6125,7 @@ internal.boltAgent = boltAgent;
6174
6125
 
6175
6126
  /**
6176
6127
  * Copyright (c) "Neo4j"
6177
- * Neo4j Sweden AB [http://neo4j.com]
6178
- *
6179
- * This file is part of Neo4j.
6128
+ * Neo4j Sweden AB [https://neo4j.com]
6180
6129
  *
6181
6130
  * Licensed under the Apache License, Version 2.0 (the "License");
6182
6131
  * you may not use this file except in compliance with the License.
@@ -6190,7 +6139,7 @@ internal.boltAgent = boltAgent;
6190
6139
  * See the License for the specific language governing permissions and
6191
6140
  * limitations under the License.
6192
6141
  */
6193
- var __awaiter$f = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
6142
+ var __awaiter$g = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
6194
6143
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
6195
6144
  return new (P || (P = Promise))(function (resolve, reject) {
6196
6145
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -6199,7 +6148,7 @@ var __awaiter$f = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
6199
6148
  step((generator = generator.apply(thisArg, _arguments || [])).next());
6200
6149
  });
6201
6150
  };
6202
- var __generator$h = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
6151
+ var __generator$i = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
6203
6152
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
6204
6153
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
6205
6154
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -6229,6 +6178,7 @@ var __generator$h = (commonjsGlobal && commonjsGlobal.__generator) || function (
6229
6178
  var __importDefault$T = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
6230
6179
  return (mod && mod.__esModule) ? mod : { "default": mod };
6231
6180
  };
6181
+ var _a$e;
6232
6182
  Object.defineProperty(result, "__esModule", { value: true });
6233
6183
  /* eslint-disable @typescript-eslint/promise-function-async */
6234
6184
  var result_summary_1 = __importDefault$T(resultSummary);
@@ -6275,6 +6225,14 @@ var Result = /** @class */ (function () {
6275
6225
  */
6276
6226
  function Result(streamObserverPromise, query, parameters, connectionHolder, watermarks) {
6277
6227
  if (watermarks === void 0) { watermarks = { high: Number.MAX_VALUE, low: Number.MAX_VALUE }; }
6228
+ /**
6229
+ * Called when finally the result is done
6230
+ *
6231
+ * *Should not be combined with {@link Result#subscribe} function.*
6232
+ * @param {function()|null} onfinally - function when the promise finished
6233
+ * @return {Promise} promise.
6234
+ */
6235
+ this[_a$e] = 'Result';
6278
6236
  this._stack = captureStacktrace();
6279
6237
  this._streamObserverPromise = streamObserverPromise;
6280
6238
  this._p = null;
@@ -6389,11 +6347,11 @@ var Result = /** @class */ (function () {
6389
6347
  }
6390
6348
  var state = { paused: true, firstRun: true, finished: false };
6391
6349
  var controlFlow = function () {
6392
- var _a, _b;
6350
+ var _b, _c;
6393
6351
  if (state.streaming == null) {
6394
6352
  return;
6395
6353
  }
6396
- var size = (_b = (_a = state.queuedObserver) === null || _a === void 0 ? void 0 : _a.size) !== null && _b !== void 0 ? _b : 0;
6354
+ var size = (_c = (_b = state.queuedObserver) === null || _b === void 0 ? void 0 : _b.size) !== null && _c !== void 0 ? _c : 0;
6397
6355
  var queueSizeIsOverHighOrEqualWatermark = size >= _this._watermarks.high;
6398
6356
  var queueSizeIsBellowOrEqualLowWatermark = size <= _this._watermarks.low;
6399
6357
  if (queueSizeIsOverHighOrEqualWatermark && !state.paused) {
@@ -6406,19 +6364,19 @@ var Result = /** @class */ (function () {
6406
6364
  state.streaming.resume();
6407
6365
  }
6408
6366
  };
6409
- var initializeObserver = function () { return __awaiter$f(_this, void 0, void 0, function () {
6410
- var _a;
6411
- return __generator$h(this, function (_b) {
6412
- switch (_b.label) {
6367
+ var initializeObserver = function () { return __awaiter$g(_this, void 0, void 0, function () {
6368
+ var _b;
6369
+ return __generator$i(this, function (_c) {
6370
+ switch (_c.label) {
6413
6371
  case 0:
6414
6372
  if (!(state.queuedObserver === undefined)) return [3 /*break*/, 2];
6415
6373
  state.queuedObserver = this._createQueuedResultObserver(controlFlow);
6416
- _a = state;
6374
+ _b = state;
6417
6375
  return [4 /*yield*/, this._subscribe(state.queuedObserver, true).catch(function () { return undefined; })];
6418
6376
  case 1:
6419
- _a.streaming = _b.sent();
6377
+ _b.streaming = _c.sent();
6420
6378
  controlFlow();
6421
- _b.label = 2;
6379
+ _c.label = 2;
6422
6380
  case 2: return [2 /*return*/, state.queuedObserver];
6423
6381
  }
6424
6382
  });
@@ -6430,10 +6388,10 @@ var Result = /** @class */ (function () {
6430
6388
  return true;
6431
6389
  };
6432
6390
  return {
6433
- next: function () { return __awaiter$f(_this, void 0, void 0, function () {
6391
+ next: function () { return __awaiter$g(_this, void 0, void 0, function () {
6434
6392
  var queuedObserver, next;
6435
- return __generator$h(this, function (_a) {
6436
- switch (_a.label) {
6393
+ return __generator$i(this, function (_b) {
6394
+ switch (_b.label) {
6437
6395
  case 0:
6438
6396
  if (state.finished) {
6439
6397
  if (assertSummary(state.summary)) {
@@ -6442,10 +6400,10 @@ var Result = /** @class */ (function () {
6442
6400
  }
6443
6401
  return [4 /*yield*/, initializeObserver()];
6444
6402
  case 1:
6445
- queuedObserver = _a.sent();
6403
+ queuedObserver = _b.sent();
6446
6404
  return [4 /*yield*/, queuedObserver.dequeue()];
6447
6405
  case 2:
6448
- next = _a.sent();
6406
+ next = _b.sent();
6449
6407
  if (next.done === true) {
6450
6408
  state.finished = next.done;
6451
6409
  state.summary = next.value;
@@ -6454,24 +6412,24 @@ var Result = /** @class */ (function () {
6454
6412
  }
6455
6413
  });
6456
6414
  }); },
6457
- return: function (value) { return __awaiter$f(_this, void 0, void 0, function () {
6415
+ return: function (value) { return __awaiter$g(_this, void 0, void 0, function () {
6458
6416
  var queuedObserver, last;
6459
- var _a;
6460
- return __generator$h(this, function (_b) {
6461
- switch (_b.label) {
6417
+ var _b;
6418
+ return __generator$i(this, function (_c) {
6419
+ switch (_c.label) {
6462
6420
  case 0:
6463
6421
  if (state.finished) {
6464
6422
  if (assertSummary(state.summary)) {
6465
6423
  return [2 /*return*/, { done: true, value: value !== null && value !== void 0 ? value : state.summary }];
6466
6424
  }
6467
6425
  }
6468
- (_a = state.streaming) === null || _a === void 0 ? void 0 : _a.cancel();
6426
+ (_b = state.streaming) === null || _b === void 0 ? void 0 : _b.cancel();
6469
6427
  return [4 /*yield*/, initializeObserver()];
6470
6428
  case 1:
6471
- queuedObserver = _b.sent();
6429
+ queuedObserver = _c.sent();
6472
6430
  return [4 /*yield*/, queuedObserver.dequeueUntilDone()];
6473
6431
  case 2:
6474
- last = _b.sent();
6432
+ last = _c.sent();
6475
6433
  state.finished = true;
6476
6434
  last.value = value !== null && value !== void 0 ? value : last.value;
6477
6435
  state.summary = last.value;
@@ -6479,10 +6437,10 @@ var Result = /** @class */ (function () {
6479
6437
  }
6480
6438
  });
6481
6439
  }); },
6482
- peek: function () { return __awaiter$f(_this, void 0, void 0, function () {
6440
+ peek: function () { return __awaiter$g(_this, void 0, void 0, function () {
6483
6441
  var queuedObserver;
6484
- return __generator$h(this, function (_a) {
6485
- switch (_a.label) {
6442
+ return __generator$i(this, function (_b) {
6443
+ switch (_b.label) {
6486
6444
  case 0:
6487
6445
  if (state.finished) {
6488
6446
  if (assertSummary(state.summary)) {
@@ -6491,9 +6449,9 @@ var Result = /** @class */ (function () {
6491
6449
  }
6492
6450
  return [4 /*yield*/, initializeObserver()];
6493
6451
  case 1:
6494
- queuedObserver = _a.sent();
6452
+ queuedObserver = _b.sent();
6495
6453
  return [4 /*yield*/, queuedObserver.head()];
6496
- case 2: return [2 /*return*/, _a.sent()];
6454
+ case 2: return [2 /*return*/, _b.sent()];
6497
6455
  }
6498
6456
  });
6499
6457
  }); }
@@ -6584,10 +6542,10 @@ var Result = /** @class */ (function () {
6584
6542
  */
6585
6543
  Result.prototype._decorateObserver = function (observer) {
6586
6544
  var _this = this;
6587
- var _a, _b, _c;
6588
- var onCompletedOriginal = (_a = observer.onCompleted) !== null && _a !== void 0 ? _a : DEFAULT_ON_COMPLETED;
6589
- var onErrorOriginal = (_b = observer.onError) !== null && _b !== void 0 ? _b : DEFAULT_ON_ERROR;
6590
- var onKeysOriginal = (_c = observer.onKeys) !== null && _c !== void 0 ? _c : DEFAULT_ON_KEYS;
6545
+ var _b, _c, _d;
6546
+ var onCompletedOriginal = (_b = observer.onCompleted) !== null && _b !== void 0 ? _b : DEFAULT_ON_COMPLETED;
6547
+ var onErrorOriginal = (_c = observer.onError) !== null && _c !== void 0 ? _c : DEFAULT_ON_ERROR;
6548
+ var onKeysOriginal = (_d = observer.onKeys) !== null && _d !== void 0 ? _d : DEFAULT_ON_KEYS;
6591
6549
  var onCompletedWrapper = function (metadata) {
6592
6550
  _this._releaseConnectionAndGetSummary(metadata).then(function (summary) {
6593
6551
  if (_this._summary !== null) {
@@ -6636,9 +6594,9 @@ var Result = /** @class */ (function () {
6636
6594
  * @returns
6637
6595
  */
6638
6596
  Result.prototype._releaseConnectionAndGetSummary = function (metadata) {
6639
- var _a = internal_1$1.util.validateQueryAndParameters(this._query, this._parameters, {
6597
+ var _b = internal_1$1.util.validateQueryAndParameters(this._query, this._parameters, {
6640
6598
  skipAsserts: true
6641
- }), query = _a.validatedQuery, parameters = _a.params;
6599
+ }), query = _b.validatedQuery, parameters = _b.params;
6642
6600
  var connectionHolder = this._connectionHolder;
6643
6601
  return connectionHolder
6644
6602
  .getConnection()
@@ -6674,14 +6632,14 @@ var Result = /** @class */ (function () {
6674
6632
  return elementOrError instanceof Error;
6675
6633
  }
6676
6634
  function dequeue() {
6677
- var _a;
6678
- return __awaiter$f(this, void 0, void 0, function () {
6635
+ var _b;
6636
+ return __awaiter$g(this, void 0, void 0, function () {
6679
6637
  var element;
6680
- return __generator$h(this, function (_b) {
6681
- switch (_b.label) {
6638
+ return __generator$i(this, function (_c) {
6639
+ switch (_c.label) {
6682
6640
  case 0:
6683
6641
  if (buffer.length > 0) {
6684
- element = (_a = buffer.shift()) !== null && _a !== void 0 ? _a : (0, error_1$4.newError)('Unexpected empty buffer', error_1$4.PROTOCOL_ERROR);
6642
+ element = (_b = buffer.shift()) !== null && _b !== void 0 ? _b : (0, error_1$4.newError)('Unexpected empty buffer', error_1$4.PROTOCOL_ERROR);
6685
6643
  onQueueSizeChanged();
6686
6644
  if (isError(element)) {
6687
6645
  throw element;
@@ -6690,7 +6648,7 @@ var Result = /** @class */ (function () {
6690
6648
  }
6691
6649
  promiseHolder.resolvable = createResolvablePromise();
6692
6650
  return [4 /*yield*/, promiseHolder.resolvable.promise];
6693
- case 1: return [2 /*return*/, _b.sent()];
6651
+ case 1: return [2 /*return*/, _c.sent()];
6694
6652
  }
6695
6653
  });
6696
6654
  });
@@ -6724,14 +6682,14 @@ var Result = /** @class */ (function () {
6724
6682
  }
6725
6683
  },
6726
6684
  dequeue: dequeue,
6727
- dequeueUntilDone: function () { return __awaiter$f(_this, void 0, void 0, function () {
6685
+ dequeueUntilDone: function () { return __awaiter$g(_this, void 0, void 0, function () {
6728
6686
  var element;
6729
- return __generator$h(this, function (_a) {
6730
- switch (_a.label) {
6687
+ return __generator$i(this, function (_b) {
6688
+ switch (_b.label) {
6731
6689
  case 0:
6732
6690
  return [4 /*yield*/, dequeue()];
6733
6691
  case 1:
6734
- element = _a.sent();
6692
+ element = _b.sent();
6735
6693
  if (element.done === true) {
6736
6694
  return [2 /*return*/, element];
6737
6695
  }
@@ -6740,10 +6698,10 @@ var Result = /** @class */ (function () {
6740
6698
  }
6741
6699
  });
6742
6700
  }); },
6743
- head: function () { return __awaiter$f(_this, void 0, void 0, function () {
6701
+ head: function () { return __awaiter$g(_this, void 0, void 0, function () {
6744
6702
  var element, element, error_3;
6745
- return __generator$h(this, function (_a) {
6746
- switch (_a.label) {
6703
+ return __generator$i(this, function (_b) {
6704
+ switch (_b.label) {
6747
6705
  case 0:
6748
6706
  if (buffer.length > 0) {
6749
6707
  element = buffer[0];
@@ -6753,16 +6711,16 @@ var Result = /** @class */ (function () {
6753
6711
  return [2 /*return*/, element];
6754
6712
  }
6755
6713
  promiseHolder.resolvable = createResolvablePromise();
6756
- _a.label = 1;
6714
+ _b.label = 1;
6757
6715
  case 1:
6758
- _a.trys.push([1, 3, 4, 5]);
6716
+ _b.trys.push([1, 3, 4, 5]);
6759
6717
  return [4 /*yield*/, promiseHolder.resolvable.promise];
6760
6718
  case 2:
6761
- element = _a.sent();
6719
+ element = _b.sent();
6762
6720
  buffer.unshift(element);
6763
6721
  return [2 /*return*/, element];
6764
6722
  case 3:
6765
- error_3 = _a.sent();
6723
+ error_3 = _b.sent();
6766
6724
  buffer.unshift(error_3);
6767
6725
  throw error_3;
6768
6726
  case 4:
@@ -6780,6 +6738,7 @@ var Result = /** @class */ (function () {
6780
6738
  };
6781
6739
  return Result;
6782
6740
  }());
6741
+ _a$e = Symbol.toStringTag;
6783
6742
  function captureStacktrace() {
6784
6743
  var error = new Error('');
6785
6744
  if (error.stack != null) {
@@ -6807,9 +6766,7 @@ var resultEager = {};
6807
6766
 
6808
6767
  /**
6809
6768
  * Copyright (c) "Neo4j"
6810
- * Neo4j Sweden AB [http://neo4j.com]
6811
- *
6812
- * This file is part of Neo4j.
6769
+ * Neo4j Sweden AB [https://neo4j.com]
6813
6770
  *
6814
6771
  * Licensed under the Apache License, Version 2.0 (the "License");
6815
6772
  * you may not use this file except in compliance with the License.
@@ -6860,9 +6817,7 @@ var connectionProvider$1 = {};
6860
6817
 
6861
6818
  /**
6862
6819
  * Copyright (c) "Neo4j"
6863
- * Neo4j Sweden AB [http://neo4j.com]
6864
- *
6865
- * This file is part of Neo4j.
6820
+ * Neo4j Sweden AB [https://neo4j.com]
6866
6821
  *
6867
6822
  * Licensed under the Apache License, Version 2.0 (the "License");
6868
6823
  * you may not use this file except in compliance with the License.
@@ -7013,9 +6968,7 @@ var connection$2 = {};
7013
6968
 
7014
6969
  /**
7015
6970
  * Copyright (c) "Neo4j"
7016
- * Neo4j Sweden AB [http://neo4j.com]
7017
- *
7018
- * This file is part of Neo4j.
6971
+ * Neo4j Sweden AB [https://neo4j.com]
7019
6972
  *
7020
6973
  * Licensed under the Apache License, Version 2.0 (the "License");
7021
6974
  * you may not use this file except in compliance with the License.
@@ -7077,9 +7030,7 @@ var transaction = {};
7077
7030
 
7078
7031
  /**
7079
7032
  * Copyright (c) "Neo4j"
7080
- * Neo4j Sweden AB [http://neo4j.com]
7081
- *
7082
- * This file is part of Neo4j.
7033
+ * Neo4j Sweden AB [https://neo4j.com]
7083
7034
  *
7084
7035
  * Licensed under the Apache License, Version 2.0 (the "License");
7085
7036
  * you may not use this file except in compliance with the License.
@@ -7093,7 +7044,7 @@ var transaction = {};
7093
7044
  * See the License for the specific language governing permissions and
7094
7045
  * limitations under the License.
7095
7046
  */
7096
- var __awaiter$e = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
7047
+ var __awaiter$f = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
7097
7048
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
7098
7049
  return new (P || (P = Promise))(function (resolve, reject) {
7099
7050
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -7102,7 +7053,7 @@ var __awaiter$e = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
7102
7053
  step((generator = generator.apply(thisArg, _arguments || [])).next());
7103
7054
  });
7104
7055
  };
7105
- var __generator$g = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
7056
+ var __generator$h = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
7106
7057
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
7107
7058
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
7108
7059
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -7198,10 +7149,10 @@ var Transaction = /** @class */ (function () {
7198
7149
  var _this = this;
7199
7150
  this._connectionHolder
7200
7151
  .getConnection()
7201
- .then(function (connection) { return __awaiter$e(_this, void 0, void 0, function () {
7152
+ .then(function (connection) { return __awaiter$f(_this, void 0, void 0, function () {
7202
7153
  var _a;
7203
7154
  var _this = this;
7204
- return __generator$g(this, function (_b) {
7155
+ return __generator$h(this, function (_b) {
7205
7156
  switch (_b.label) {
7206
7157
  case 0:
7207
7158
  this._onConnection();
@@ -7339,8 +7290,8 @@ var Transaction = /** @class */ (function () {
7339
7290
  * @returns {Promise<void>} An empty promise if closed successfully or error if any error happened during
7340
7291
  */
7341
7292
  Transaction.prototype.close = function () {
7342
- return __awaiter$e(this, void 0, void 0, function () {
7343
- return __generator$g(this, function (_a) {
7293
+ return __awaiter$f(this, void 0, void 0, function () {
7294
+ return __generator$h(this, function (_a) {
7344
7295
  switch (_a.label) {
7345
7296
  case 0:
7346
7297
  if (!this.isOpen()) return [3 /*break*/, 2];
@@ -7353,6 +7304,11 @@ var Transaction = /** @class */ (function () {
7353
7304
  });
7354
7305
  });
7355
7306
  };
7307
+ // eslint-disable-next-line
7308
+ // @ts-ignore
7309
+ Transaction.prototype[Symbol.asyncDispose] = function () {
7310
+ return this.close();
7311
+ };
7356
7312
  Transaction.prototype._onErrorCallback = function (error) {
7357
7313
  // error will be "acknowledged" by sending a RESET message
7358
7314
  // database will then forget about this transaction and cleanup all corresponding resources
@@ -7604,9 +7560,7 @@ var transactionManaged = {};
7604
7560
 
7605
7561
  /**
7606
7562
  * Copyright (c) "Neo4j"
7607
- * Neo4j Sweden AB [http://neo4j.com]
7608
- *
7609
- * This file is part of Neo4j.
7563
+ * Neo4j Sweden AB [https://neo4j.com]
7610
7564
  *
7611
7565
  * Licensed under the Apache License, Version 2.0 (the "License");
7612
7566
  * you may not use this file except in compliance with the License.
@@ -7666,9 +7620,7 @@ var transactionPromise = {};
7666
7620
 
7667
7621
  /**
7668
7622
  * Copyright (c) "Neo4j"
7669
- * Neo4j Sweden AB [http://neo4j.com]
7670
- *
7671
- * This file is part of Neo4j.
7623
+ * Neo4j Sweden AB [https://neo4j.com]
7672
7624
  *
7673
7625
  * Licensed under the Apache License, Version 2.0 (the "License");
7674
7626
  * you may not use this file except in compliance with the License.
@@ -7847,9 +7799,7 @@ var session = {};
7847
7799
 
7848
7800
  /**
7849
7801
  * Copyright (c) "Neo4j"
7850
- * Neo4j Sweden AB [http://neo4j.com]
7851
- *
7852
- * This file is part of Neo4j.
7802
+ * Neo4j Sweden AB [https://neo4j.com]
7853
7803
  *
7854
7804
  * Licensed under the Apache License, Version 2.0 (the "License");
7855
7805
  * you may not use this file except in compliance with the License.
@@ -7863,7 +7813,7 @@ var session = {};
7863
7813
  * See the License for the specific language governing permissions and
7864
7814
  * limitations under the License.
7865
7815
  */
7866
- var __awaiter$d = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
7816
+ var __awaiter$e = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
7867
7817
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
7868
7818
  return new (P || (P = Promise))(function (resolve, reject) {
7869
7819
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -7872,7 +7822,7 @@ var __awaiter$d = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
7872
7822
  step((generator = generator.apply(thisArg, _arguments || [])).next());
7873
7823
  });
7874
7824
  };
7875
- var __generator$f = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
7825
+ var __generator$g = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
7876
7826
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
7877
7827
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
7878
7828
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -8025,10 +7975,10 @@ var Session = /** @class */ (function () {
8025
7975
  var autoCommitTxConfig = (transactionConfig != null)
8026
7976
  ? new tx_config_1.TxConfig(transactionConfig, this._log)
8027
7977
  : tx_config_1.TxConfig.empty();
8028
- var result = this._run(validatedQuery, params, function (connection) { return __awaiter$d(_this, void 0, void 0, function () {
7978
+ var result = this._run(validatedQuery, params, function (connection) { return __awaiter$e(_this, void 0, void 0, function () {
8029
7979
  var bookmarks;
8030
7980
  var _this = this;
8031
- return __generator$f(this, function (_a) {
7981
+ return __generator$g(this, function (_a) {
8032
7982
  switch (_a.label) {
8033
7983
  case 0: return [4 /*yield*/, this._bookmarks()];
8034
7984
  case 1:
@@ -8072,8 +8022,8 @@ var Session = /** @class */ (function () {
8072
8022
  Session.prototype._acquireConnection = function (connectionConsumer) {
8073
8023
  var _this = this;
8074
8024
  var _a = this._acquireAndConsumeConnection(connectionConsumer), connectionHolder = _a.connectionHolder, resultPromise = _a.resultPromise;
8075
- return resultPromise.then(function (result) { return __awaiter$d(_this, void 0, void 0, function () {
8076
- return __generator$f(this, function (_a) {
8025
+ return resultPromise.then(function (result) { return __awaiter$e(_this, void 0, void 0, function () {
8026
+ return __generator$g(this, function (_a) {
8077
8027
  switch (_a.label) {
8078
8028
  case 0: return [4 /*yield*/, connectionHolder.releaseConnection()];
8079
8029
  case 1:
@@ -8198,9 +8148,9 @@ var Session = /** @class */ (function () {
8198
8148
  };
8199
8149
  Session.prototype._bookmarks = function () {
8200
8150
  var _a;
8201
- return __awaiter$d(this, void 0, void 0, function () {
8151
+ return __awaiter$e(this, void 0, void 0, function () {
8202
8152
  var bookmarks;
8203
- return __generator$f(this, function (_b) {
8153
+ return __generator$g(this, function (_b) {
8204
8154
  switch (_b.label) {
8205
8155
  case 0: return [4 /*yield*/, ((_a = this._bookmarkManager) === null || _a === void 0 ? void 0 : _a.getBookmarks())];
8206
8156
  case 1:
@@ -8323,9 +8273,9 @@ var Session = /** @class */ (function () {
8323
8273
  };
8324
8274
  Session.prototype._getConnectionAcquistionBookmarks = function () {
8325
8275
  var _a;
8326
- return __awaiter$d(this, void 0, void 0, function () {
8276
+ return __awaiter$e(this, void 0, void 0, function () {
8327
8277
  var bookmarks;
8328
- return __generator$f(this, function (_b) {
8278
+ return __generator$g(this, function (_b) {
8329
8279
  switch (_b.label) {
8330
8280
  case 0: return [4 /*yield*/, ((_a = this._bookmarkManager) === null || _a === void 0 ? void 0 : _a.getBookmarks())];
8331
8281
  case 1:
@@ -8357,8 +8307,8 @@ var Session = /** @class */ (function () {
8357
8307
  * @return {Promise}
8358
8308
  */
8359
8309
  Session.prototype.close = function () {
8360
- return __awaiter$d(this, void 0, void 0, function () {
8361
- return __generator$f(this, function (_a) {
8310
+ return __awaiter$e(this, void 0, void 0, function () {
8311
+ return __generator$g(this, function (_a) {
8362
8312
  switch (_a.label) {
8363
8313
  case 0:
8364
8314
  if (!this._open) return [3 /*break*/, 3];
@@ -8377,6 +8327,11 @@ var Session = /** @class */ (function () {
8377
8327
  });
8378
8328
  });
8379
8329
  };
8330
+ // eslint-disable-next-line
8331
+ // @ts-ignore
8332
+ Session.prototype[Symbol.asyncDispose] = function () {
8333
+ return this.close();
8334
+ };
8380
8335
  Session.prototype._connectionHolderWithMode = function (mode) {
8381
8336
  if (mode === constants_1$2.ACCESS_MODE_READ) {
8382
8337
  return this._readConnectionHolder;
@@ -8453,9 +8408,7 @@ var bookmarkManager$1 = {};
8453
8408
 
8454
8409
  /**
8455
8410
  * Copyright (c) "Neo4j"
8456
- * Neo4j Sweden AB [http://neo4j.com]
8457
- *
8458
- * This file is part of Neo4j.
8411
+ * Neo4j Sweden AB [https://neo4j.com]
8459
8412
  *
8460
8413
  * Licensed under the Apache License, Version 2.0 (the "License");
8461
8414
  * you may not use this file except in compliance with the License.
@@ -8469,7 +8422,7 @@ var bookmarkManager$1 = {};
8469
8422
  * See the License for the specific language governing permissions and
8470
8423
  * limitations under the License.
8471
8424
  */
8472
- var __awaiter$c = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
8425
+ var __awaiter$d = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
8473
8426
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
8474
8427
  return new (P || (P = Promise))(function (resolve, reject) {
8475
8428
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -8478,7 +8431,7 @@ var __awaiter$c = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
8478
8431
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8479
8432
  });
8480
8433
  };
8481
- var __generator$e = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
8434
+ var __generator$f = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
8482
8435
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
8483
8436
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
8484
8437
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -8567,8 +8520,8 @@ var BookmarkManager = /** @class */ (function () {
8567
8520
  * @returns {void}
8568
8521
  */
8569
8522
  BookmarkManager.prototype.updateBookmarks = function (previousBookmarks, newBookmarks) {
8570
- return __awaiter$c(this, void 0, void 0, function () {
8571
- return __generator$e(this, function (_a) {
8523
+ return __awaiter$d(this, void 0, void 0, function () {
8524
+ return __generator$f(this, function (_a) {
8572
8525
  throw new Error('Not implemented');
8573
8526
  });
8574
8527
  });
@@ -8579,8 +8532,8 @@ var BookmarkManager = /** @class */ (function () {
8579
8532
  * @returns {Iterable<string>} The set of bookmarks
8580
8533
  */
8581
8534
  BookmarkManager.prototype.getBookmarks = function () {
8582
- return __awaiter$c(this, void 0, void 0, function () {
8583
- return __generator$e(this, function (_a) {
8535
+ return __awaiter$d(this, void 0, void 0, function () {
8536
+ return __generator$f(this, function (_a) {
8584
8537
  throw new Error('Not implemented');
8585
8538
  });
8586
8539
  });
@@ -8616,10 +8569,10 @@ var Neo4jBookmarkManager = /** @class */ (function () {
8616
8569
  this._bookmarksConsumer = _bookmarksConsumer;
8617
8570
  }
8618
8571
  Neo4jBookmarkManager.prototype.updateBookmarks = function (previousBookmarks, newBookmarks) {
8619
- return __awaiter$c(this, void 0, void 0, function () {
8572
+ return __awaiter$d(this, void 0, void 0, function () {
8620
8573
  var bookmarks, previousBookmarks_1, previousBookmarks_1_1, bm, newBookmarks_1, newBookmarks_1_1, bm;
8621
8574
  var e_1, _a, e_2, _b;
8622
- return __generator$e(this, function (_c) {
8575
+ return __generator$f(this, function (_c) {
8623
8576
  switch (_c.label) {
8624
8577
  case 0:
8625
8578
  bookmarks = this._bookmarks;
@@ -8661,10 +8614,10 @@ var Neo4jBookmarkManager = /** @class */ (function () {
8661
8614
  };
8662
8615
  Neo4jBookmarkManager.prototype.getBookmarks = function () {
8663
8616
  var _a;
8664
- return __awaiter$c(this, void 0, void 0, function () {
8617
+ return __awaiter$d(this, void 0, void 0, function () {
8665
8618
  var bookmarks, suppliedBookmarks, suppliedBookmarks_1, suppliedBookmarks_1_1, bm;
8666
8619
  var e_3, _b;
8667
- return __generator$e(this, function (_c) {
8620
+ return __generator$f(this, function (_c) {
8668
8621
  switch (_c.label) {
8669
8622
  case 0:
8670
8623
  bookmarks = new Set(this._bookmarks);
@@ -8698,9 +8651,7 @@ var resultTransformers$1 = {};
8698
8651
 
8699
8652
  /**
8700
8653
  * Copyright (c) "Neo4j"
8701
- * Neo4j Sweden AB [http://neo4j.com]
8702
- *
8703
- * This file is part of Neo4j.
8654
+ * Neo4j Sweden AB [https://neo4j.com]
8704
8655
  *
8705
8656
  * Licensed under the Apache License, Version 2.0 (the "License");
8706
8657
  * you may not use this file except in compliance with the License.
@@ -8714,7 +8665,7 @@ var resultTransformers$1 = {};
8714
8665
  * See the License for the specific language governing permissions and
8715
8666
  * limitations under the License.
8716
8667
  */
8717
- var __awaiter$b = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
8668
+ var __awaiter$c = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
8718
8669
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
8719
8670
  return new (P || (P = Promise))(function (resolve, reject) {
8720
8671
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -8723,7 +8674,7 @@ var __awaiter$b = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
8723
8674
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8724
8675
  });
8725
8676
  };
8726
- var __generator$d = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
8677
+ var __generator$e = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
8727
8678
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
8728
8679
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
8729
8680
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -8757,9 +8708,9 @@ Object.defineProperty(resultTransformers$1, "__esModule", { value: true });
8757
8708
  var result_eager_1 = __importDefault$P(resultEager);
8758
8709
  var error_1$1 = error;
8759
8710
  function createEagerResultFromResult(result) {
8760
- return __awaiter$b(this, void 0, void 0, function () {
8711
+ return __awaiter$c(this, void 0, void 0, function () {
8761
8712
  var _a, summary, records, keys;
8762
- return __generator$d(this, function (_b) {
8713
+ return __generator$e(this, function (_b) {
8763
8714
  switch (_b.label) {
8764
8715
  case 0: return [4 /*yield*/, result];
8765
8716
  case 1:
@@ -8873,8 +8824,8 @@ var ResultTransformers = /** @class */ (function () {
8873
8824
  if (config == null || (config.collect == null && config.map == null)) {
8874
8825
  throw (0, error_1$1.newError)('Requires a map or/and a collect functions.');
8875
8826
  }
8876
- return function (result) { return __awaiter$b(_this, void 0, void 0, function () {
8877
- return __generator$d(this, function (_a) {
8827
+ return function (result) { return __awaiter$c(_this, void 0, void 0, function () {
8828
+ return __generator$e(this, function (_a) {
8878
8829
  switch (_a.label) {
8879
8830
  case 0: return [4 /*yield*/, new Promise(function (resolve, reject) {
8880
8831
  var state = { records: [], keys: [] };
@@ -8925,9 +8876,7 @@ var queryExecutor = {};
8925
8876
 
8926
8877
  /**
8927
8878
  * Copyright (c) "Neo4j"
8928
- * Neo4j Sweden AB [http://neo4j.com]
8929
- *
8930
- * This file is part of Neo4j.
8879
+ * Neo4j Sweden AB [https://neo4j.com]
8931
8880
  *
8932
8881
  * Licensed under the Apache License, Version 2.0 (the "License");
8933
8882
  * you may not use this file except in compliance with the License.
@@ -8941,7 +8890,7 @@ var queryExecutor = {};
8941
8890
  * See the License for the specific language governing permissions and
8942
8891
  * limitations under the License.
8943
8892
  */
8944
- var __awaiter$a = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
8893
+ var __awaiter$b = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
8945
8894
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
8946
8895
  return new (P || (P = Promise))(function (resolve, reject) {
8947
8896
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -8950,7 +8899,7 @@ var __awaiter$a = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
8950
8899
  step((generator = generator.apply(thisArg, _arguments || [])).next());
8951
8900
  });
8952
8901
  };
8953
- var __generator$c = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
8902
+ var __generator$d = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
8954
8903
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
8955
8904
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
8956
8905
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -8984,10 +8933,10 @@ var QueryExecutor = /** @class */ (function () {
8984
8933
  this._createSession = _createSession;
8985
8934
  }
8986
8935
  QueryExecutor.prototype.execute = function (config, query, parameters) {
8987
- return __awaiter$a(this, void 0, void 0, function () {
8936
+ return __awaiter$b(this, void 0, void 0, function () {
8988
8937
  var session, executeInTransaction;
8989
8938
  var _this = this;
8990
- return __generator$c(this, function (_a) {
8939
+ return __generator$d(this, function (_a) {
8991
8940
  switch (_a.label) {
8992
8941
  case 0:
8993
8942
  session = this._createSession({
@@ -9003,9 +8952,9 @@ var QueryExecutor = /** @class */ (function () {
9003
8952
  executeInTransaction = config.routing === 'READ'
9004
8953
  ? session.executeRead.bind(session)
9005
8954
  : session.executeWrite.bind(session);
9006
- return [4 /*yield*/, executeInTransaction(function (tx) { return __awaiter$a(_this, void 0, void 0, function () {
8955
+ return [4 /*yield*/, executeInTransaction(function (tx) { return __awaiter$b(_this, void 0, void 0, function () {
9007
8956
  var result;
9008
- return __generator$c(this, function (_a) {
8957
+ return __generator$d(this, function (_a) {
9009
8958
  switch (_a.label) {
9010
8959
  case 0:
9011
8960
  result = tx.run(query, parameters);
@@ -9013,7 +8962,7 @@ var QueryExecutor = /** @class */ (function () {
9013
8962
  case 1: return [2 /*return*/, _a.sent()];
9014
8963
  }
9015
8964
  });
9016
- }); })];
8965
+ }); }, config.transactionConfig)];
9017
8966
  case 2: return [2 /*return*/, _a.sent()];
9018
8967
  case 3: return [4 /*yield*/, session.close()];
9019
8968
  case 4:
@@ -9028,7 +8977,7 @@ var QueryExecutor = /** @class */ (function () {
9028
8977
  }());
9029
8978
  queryExecutor.default = QueryExecutor;
9030
8979
 
9031
- var __awaiter$9 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
8980
+ var __awaiter$a = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
9032
8981
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9033
8982
  return new (P || (P = Promise))(function (resolve, reject) {
9034
8983
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9037,7 +8986,7 @@ var __awaiter$9 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
9037
8986
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9038
8987
  });
9039
8988
  };
9040
- var __generator$b = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
8989
+ var __generator$c = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
9041
8990
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
9042
8991
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
9043
8992
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -9366,9 +9315,16 @@ var QueryConfig = /** @class */ (function () {
9366
9315
  * By default, it uses the driver's non mutable driver level bookmark manager. See, {@link Driver.executeQueryBookmarkManager}
9367
9316
  *
9368
9317
  * Can be set to null to disable causal chaining.
9369
- * @type {BookmarkManager|null}
9318
+ * @type {BookmarkManager|undefined|null}
9370
9319
  */
9371
9320
  this.bookmarkManager = undefined;
9321
+ /**
9322
+ * Configuration for all transactions started to execute the query.
9323
+ *
9324
+ * @type {TransactionConfig|undefined}
9325
+ *
9326
+ */
9327
+ this.transactionConfig = undefined;
9372
9328
  }
9373
9329
  return QueryConfig;
9374
9330
  }());
@@ -9507,9 +9463,9 @@ var Driver$1 = /** @class */ (function () {
9507
9463
  Driver.prototype.executeQuery = function (query, parameters, config) {
9508
9464
  var _a, _b, _c;
9509
9465
  if (config === void 0) { config = {}; }
9510
- return __awaiter$9(this, void 0, void 0, function () {
9466
+ return __awaiter$a(this, void 0, void 0, function () {
9511
9467
  var bookmarkManager, resultTransformer, routingConfig;
9512
- return __generator$b(this, function (_d) {
9468
+ return __generator$c(this, function (_d) {
9513
9469
  switch (_d.label) {
9514
9470
  case 0:
9515
9471
  bookmarkManager = config.bookmarkManager === null ? undefined : ((_a = config.bookmarkManager) !== null && _a !== void 0 ? _a : this.executeQueryBookmarkManager);
@@ -9523,7 +9479,8 @@ var Driver$1 = /** @class */ (function () {
9523
9479
  bookmarkManager: bookmarkManager,
9524
9480
  routing: routingConfig,
9525
9481
  database: config.database,
9526
- impersonatedUser: config.impersonatedUser
9482
+ impersonatedUser: config.impersonatedUser,
9483
+ transactionConfig: config.transactionConfig
9527
9484
  }, query, parameters)];
9528
9485
  case 1: return [2 /*return*/, _d.sent()];
9529
9486
  }
@@ -9559,9 +9516,9 @@ var Driver$1 = /** @class */ (function () {
9559
9516
  */
9560
9517
  Driver.prototype.verifyAuthentication = function (_a) {
9561
9518
  var _b = _a === void 0 ? {} : _a, database = _b.database, auth = _b.auth;
9562
- return __awaiter$9(this, void 0, void 0, function () {
9519
+ return __awaiter$a(this, void 0, void 0, function () {
9563
9520
  var connectionProvider;
9564
- return __generator$b(this, function (_c) {
9521
+ return __generator$c(this, function (_c) {
9565
9522
  switch (_c.label) {
9566
9523
  case 0:
9567
9524
  connectionProvider = this._getOrCreateConnectionProvider();
@@ -9723,6 +9680,11 @@ var Driver$1 = /** @class */ (function () {
9723
9680
  }
9724
9681
  return Promise.resolve();
9725
9682
  };
9683
+ // eslint-disable-next-line
9684
+ // @ts-ignore
9685
+ Driver.prototype[Symbol.asyncDispose] = function () {
9686
+ return this.close();
9687
+ };
9726
9688
  /**
9727
9689
  * @protected
9728
9690
  * @returns {void}
@@ -9793,6 +9755,8 @@ function sanitizeConfig(config) {
9793
9755
  config.connectionAcquisitionTimeout = sanitizeIntValue(config.connectionAcquisitionTimeout, constants_1.DEFAULT_POOL_ACQUISITION_TIMEOUT);
9794
9756
  config.fetchSize = validateFetchSizeValue$1(config.fetchSize, DEFAULT_FETCH_SIZE);
9795
9757
  config.connectionTimeout = extractConnectionTimeout(config);
9758
+ config.connectionLivenessCheckTimeout =
9759
+ validateConnectionLivenessCheckTimeoutSizeValue(config.connectionLivenessCheckTimeout);
9796
9760
  }
9797
9761
  /**
9798
9762
  * @private
@@ -9846,6 +9810,19 @@ function extractConnectionTimeout(config) {
9846
9810
  return configuredTimeout;
9847
9811
  }
9848
9812
  }
9813
+ /**
9814
+ * @private
9815
+ */
9816
+ function validateConnectionLivenessCheckTimeoutSizeValue(rawValue) {
9817
+ if (rawValue == null) {
9818
+ return undefined;
9819
+ }
9820
+ var connectionLivenessCheckTimeout = parseInt(rawValue, 10);
9821
+ if (connectionLivenessCheckTimeout < 0 || Number.isNaN(connectionLivenessCheckTimeout)) {
9822
+ throw new Error("The connectionLivenessCheckTimeout can only be a positive value or 0 for always. However connectionLivenessCheckTimeout = ".concat(connectionLivenessCheckTimeout));
9823
+ }
9824
+ return connectionLivenessCheckTimeout;
9825
+ }
9849
9826
  /**
9850
9827
  * @private
9851
9828
  * @returns {ConfiguredCustomResolver} new custom resolver that wraps the passed-in resolver function.
@@ -9860,9 +9837,7 @@ var auth$1 = {};
9860
9837
 
9861
9838
  /**
9862
9839
  * Copyright (c) "Neo4j"
9863
- * Neo4j Sweden AB [http://neo4j.com]
9864
- *
9865
- * This file is part of Neo4j.
9840
+ * Neo4j Sweden AB [https://neo4j.com]
9866
9841
  *
9867
9842
  * Licensed under the Apache License, Version 2.0 (the "License");
9868
9843
  * you may not use this file except in compliance with the License.
@@ -9948,9 +9923,7 @@ var authTokenManager = {};
9948
9923
 
9949
9924
  /**
9950
9925
  * Copyright (c) "Neo4j"
9951
- * Neo4j Sweden AB [http://neo4j.com]
9952
- *
9953
- * This file is part of Neo4j.
9926
+ * Neo4j Sweden AB [https://neo4j.com]
9954
9927
  *
9955
9928
  * Licensed under the Apache License, Version 2.0 (the "License");
9956
9929
  * you may not use this file except in compliance with the License.
@@ -9964,7 +9937,7 @@ var authTokenManager = {};
9964
9937
  * See the License for the specific language governing permissions and
9965
9938
  * limitations under the License.
9966
9939
  */
9967
- var __awaiter$8 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
9940
+ var __awaiter$9 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
9968
9941
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
9969
9942
  return new (P || (P = Promise))(function (resolve, reject) {
9970
9943
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -9973,7 +9946,7 @@ var __awaiter$8 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
9973
9946
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9974
9947
  });
9975
9948
  };
9976
- var __generator$a = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
9949
+ var __generator$b = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
9977
9950
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
9978
9951
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
9979
9952
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -10113,9 +10086,9 @@ var AuthTokenManagers = /** @class */ (function () {
10113
10086
  if (typeof tokenProvider !== 'function') {
10114
10087
  throw new TypeError("tokenProvider should be function, but got: ".concat(typeof tokenProvider));
10115
10088
  }
10116
- return new ExpirationBasedAuthTokenManager(function () { return __awaiter$8(_this, void 0, void 0, function () {
10089
+ return new ExpirationBasedAuthTokenManager(function () { return __awaiter$9(_this, void 0, void 0, function () {
10117
10090
  var _a;
10118
- return __generator$a(this, function (_b) {
10091
+ return __generator$b(this, function (_b) {
10119
10092
  switch (_b.label) {
10120
10093
  case 0:
10121
10094
  _a = {};
@@ -10171,8 +10144,8 @@ var ExpirationBasedAuthTokenManager = /** @class */ (function () {
10171
10144
  }
10172
10145
  ExpirationBasedAuthTokenManager.prototype.getToken = function () {
10173
10146
  var _a;
10174
- return __awaiter$8(this, void 0, void 0, function () {
10175
- return __generator$a(this, function (_b) {
10147
+ return __awaiter$9(this, void 0, void 0, function () {
10148
+ return __generator$b(this, function (_b) {
10176
10149
  switch (_b.label) {
10177
10150
  case 0:
10178
10151
  if (!(this._currentAuthData === undefined ||
@@ -10221,9 +10194,9 @@ var ExpirationBasedAuthTokenManager = /** @class */ (function () {
10221
10194
  }
10222
10195
  };
10223
10196
  ExpirationBasedAuthTokenManager.prototype._refreshAuthToken = function () {
10224
- return __awaiter$8(this, void 0, void 0, function () {
10197
+ return __awaiter$9(this, void 0, void 0, function () {
10225
10198
  var _this = this;
10226
- return __generator$a(this, function (_a) {
10199
+ return __generator$b(this, function (_a) {
10227
10200
  switch (_a.label) {
10228
10201
  case 0: return [4 /*yield*/, new Promise(function (resolve, reject) {
10229
10202
  _this._scheduleRefreshAuthToken({
@@ -10255,9 +10228,7 @@ var types$1 = {};
10255
10228
 
10256
10229
  /**
10257
10230
  * Copyright (c) "Neo4j"
10258
- * Neo4j Sweden AB [http://neo4j.com]
10259
- *
10260
- * This file is part of Neo4j.
10231
+ * Neo4j Sweden AB [https://neo4j.com]
10261
10232
  *
10262
10233
  * Licensed under the Apache License, Version 2.0 (the "License");
10263
10234
  * you may not use this file except in compliance with the License.
@@ -10391,6 +10362,32 @@ var Config = /** @class */ (function () {
10391
10362
  * @type {number|undefined}
10392
10363
  */
10393
10364
  this.maxTransactionRetryTime = 30000; // 30 seconds
10365
+ /**
10366
+ * Specify the maximum time in milliseconds the connection can be idle without needing
10367
+ * to perform a liveness check on acquire from the pool.
10368
+ *
10369
+ * Pooled connections that have been idle in the pool for longer than this
10370
+ * timeout will be tested before they are used again, to ensure they are still live.
10371
+ * If this option is set too low, an additional network call will be incurred
10372
+ * when acquiring a connection, which causes a performance hit.
10373
+ *
10374
+ * If this is set high, you may receive sessions that are backed by no longer
10375
+ * live connections, which will lead to exceptions in your application.
10376
+ * Assuming the database is running, these exceptions will go away if you retry
10377
+ * acquiring sessions.
10378
+ *
10379
+ * Hence, this parameter tunes a balance between the likelihood of your application
10380
+ * seeing connection problems, and performance.
10381
+ *
10382
+ * You normally should not need to tune this parameter. No connection liveliness
10383
+ * check is done by default. Value 0 means connections will always be tested for
10384
+ * validity and negative values mean connections will never be tested.
10385
+ *
10386
+ * **Default**: ```undefined``` (Disabled)
10387
+ *
10388
+ * @type {number|undefined}
10389
+ */
10390
+ this.connectionLivenessCheckTimeout = undefined; // Disabled
10394
10391
  /**
10395
10392
  * Specify socket connection timeout in milliseconds.
10396
10393
  *
@@ -10528,9 +10525,7 @@ types$1.InternalConfig = InternalConfig;
10528
10525
  (function (exports) {
10529
10526
  /**
10530
10527
  * Copyright (c) "Neo4j"
10531
- * Neo4j Sweden AB [http://neo4j.com]
10532
- *
10533
- * This file is part of Neo4j.
10528
+ * Neo4j Sweden AB [https://neo4j.com]
10534
10529
  *
10535
10530
  * Licensed under the Apache License, Version 2.0 (the "License");
10536
10531
  * you may not use this file except in compliance with the License.
@@ -13145,7 +13140,7 @@ isIterable$2.isIterable = isIterable$1;
13145
13140
 
13146
13141
  var isReadableStreamLike$1 = {};
13147
13142
 
13148
- var __generator$9 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
13143
+ var __generator$a = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
13149
13144
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13150
13145
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13151
13146
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -13190,7 +13185,7 @@ var isFunction_1$g = isFunction$1;
13190
13185
  function readableStreamLikeToAsyncGenerator(readableStream) {
13191
13186
  return __asyncGenerator(this, arguments, function readableStreamLikeToAsyncGenerator_1() {
13192
13187
  var reader, _a, value, done;
13193
- return __generator$9(this, function (_b) {
13188
+ return __generator$a(this, function (_b) {
13194
13189
  switch (_b.label) {
13195
13190
  case 0:
13196
13191
  reader = readableStream.getReader();
@@ -13225,7 +13220,7 @@ function isReadableStreamLike(obj) {
13225
13220
  }
13226
13221
  isReadableStreamLike$1.isReadableStreamLike = isReadableStreamLike;
13227
13222
 
13228
- var __awaiter$7 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
13223
+ var __awaiter$8 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
13229
13224
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
13230
13225
  return new (P || (P = Promise))(function (resolve, reject) {
13231
13226
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -13234,7 +13229,7 @@ var __awaiter$7 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
13234
13229
  step((generator = generator.apply(thisArg, _arguments || [])).next());
13235
13230
  });
13236
13231
  };
13237
- var __generator$8 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
13232
+ var __generator$9 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
13238
13233
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13239
13234
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13240
13235
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -13387,9 +13382,9 @@ innerFrom$1.fromReadableStreamLike = fromReadableStreamLike;
13387
13382
  function process(asyncIterable, subscriber) {
13388
13383
  var asyncIterable_1, asyncIterable_1_1;
13389
13384
  var e_2, _a;
13390
- return __awaiter$7(this, void 0, void 0, function () {
13385
+ return __awaiter$8(this, void 0, void 0, function () {
13391
13386
  var value, e_2_1;
13392
- return __generator$8(this, function (_b) {
13387
+ return __generator$9(this, function (_b) {
13393
13388
  switch (_b.label) {
13394
13389
  case 0:
13395
13390
  _b.trys.push([0, 5, 6, 11]);
@@ -14568,7 +14563,7 @@ fromEventPattern$1.fromEventPattern = fromEventPattern;
14568
14563
 
14569
14564
  var generate$1 = {};
14570
14565
 
14571
- var __generator$7 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
14566
+ var __generator$8 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
14572
14567
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
14573
14568
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14574
14569
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -14620,7 +14615,7 @@ function generate(initialStateOrOptions, condition, iterate, resultSelectorOrSch
14620
14615
  }
14621
14616
  function gen() {
14622
14617
  var state;
14623
- return __generator$7(this, function (_a) {
14618
+ return __generator$8(this, function (_a) {
14624
14619
  switch (_a.label) {
14625
14620
  case 0:
14626
14621
  state = initialState;
@@ -18715,7 +18710,7 @@ Object.defineProperty(exports, "zipWith", { enumerable: true, get: function () {
18715
18710
 
18716
18711
  var resultRx = {};
18717
18712
 
18718
- var __awaiter$6 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
18713
+ var __awaiter$7 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
18719
18714
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
18720
18715
  return new (P || (P = Promise))(function (resolve, reject) {
18721
18716
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -18724,7 +18719,7 @@ var __awaiter$6 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
18724
18719
  step((generator = generator.apply(thisArg, _arguments || [])).next());
18725
18720
  });
18726
18721
  };
18727
- var __generator$6 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
18722
+ var __generator$7 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
18728
18723
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
18729
18724
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
18730
18725
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -18754,9 +18749,7 @@ var __generator$6 = (commonjsGlobal && commonjsGlobal.__generator) || function (
18754
18749
  Object.defineProperty(resultRx, "__esModule", { value: true });
18755
18750
  /**
18756
18751
  * Copyright (c) "Neo4j"
18757
- * Neo4j Sweden AB [http://neo4j.com]
18758
- *
18759
- * This file is part of Neo4j.
18752
+ * Neo4j Sweden AB [https://neo4j.com]
18760
18753
  *
18761
18754
  * Licensed under the Apache License, Version 2.0 (the "License");
18762
18755
  * you may not use this file except in compliance with the License.
@@ -18942,9 +18935,9 @@ var RxResult = /** @class */ (function () {
18942
18935
  return this._records;
18943
18936
  }
18944
18937
  this._records = createFullyControlledSubject(result[Symbol.asyncIterator](), {
18945
- complete: function () { return __awaiter$6(_this, void 0, void 0, function () {
18938
+ complete: function () { return __awaiter$7(_this, void 0, void 0, function () {
18946
18939
  var _a, _b;
18947
- return __generator$6(this, function (_c) {
18940
+ return __generator$7(this, function (_c) {
18948
18941
  switch (_c.label) {
18949
18942
  case 0:
18950
18943
  this._state = States.COMPLETED;
@@ -18971,9 +18964,9 @@ function createFullyControlledSubject(iterator, completeObserver, streamControl)
18971
18964
  var _this = this;
18972
18965
  if (streamControl === void 0) { streamControl = new StreamControl(); }
18973
18966
  var subject = new rxjs_1$3.Subject();
18974
- var pushNextValue = function (result) { return __awaiter$6(_this, void 0, void 0, function () {
18967
+ var pushNextValue = function (result) { return __awaiter$7(_this, void 0, void 0, function () {
18975
18968
  var _a, done, value, error_1;
18976
- return __generator$6(this, function (_b) {
18969
+ return __generator$7(this, function (_b) {
18977
18970
  switch (_b.label) {
18978
18971
  case 0:
18979
18972
  _b.trys.push([0, 2, 3, 4]);
@@ -19006,8 +18999,8 @@ function createFullyControlledSubject(iterator, completeObserver, streamControl)
19006
18999
  });
19007
19000
  }); };
19008
19001
  function push(value) {
19009
- return __awaiter$6(this, void 0, void 0, function () {
19010
- return __generator$6(this, function (_a) {
19002
+ return __awaiter$7(this, void 0, void 0, function () {
19003
+ return __generator$7(this, function (_a) {
19011
19004
  switch (_a.label) {
19012
19005
  case 0: return [4 /*yield*/, pushNextValue(iterator.next(value))];
19013
19006
  case 1:
@@ -19023,7 +19016,7 @@ function createFullyControlledSubject(iterator, completeObserver, streamControl)
19023
19016
  }
19024
19017
  var StreamControl = /** @class */ (function () {
19025
19018
  function StreamControl(push) {
19026
- if (push === void 0) { push = function () { return __awaiter$6(_this, void 0, void 0, function () { return __generator$6(this, function (_a) {
19019
+ if (push === void 0) { push = function () { return __awaiter$7(_this, void 0, void 0, function () { return __generator$7(this, function (_a) {
19027
19020
  return [2 /*return*/];
19028
19021
  }); }); }; }
19029
19022
  var _this = this;
@@ -19052,9 +19045,9 @@ var StreamControl = /** @class */ (function () {
19052
19045
  configurable: true
19053
19046
  });
19054
19047
  StreamControl.prototype.resume = function () {
19055
- return __awaiter$6(this, void 0, void 0, function () {
19048
+ return __awaiter$7(this, void 0, void 0, function () {
19056
19049
  var wasPaused;
19057
- return __generator$6(this, function (_a) {
19050
+ return __generator$7(this, function (_a) {
19058
19051
  switch (_a.label) {
19059
19052
  case 0:
19060
19053
  wasPaused = this._paused;
@@ -19070,8 +19063,8 @@ var StreamControl = /** @class */ (function () {
19070
19063
  });
19071
19064
  };
19072
19065
  StreamControl.prototype.push = function () {
19073
- return __awaiter$6(this, void 0, void 0, function () {
19074
- return __generator$6(this, function (_a) {
19066
+ return __awaiter$7(this, void 0, void 0, function () {
19067
+ return __generator$7(this, function (_a) {
19075
19068
  switch (_a.label) {
19076
19069
  case 0:
19077
19070
  this.pause();
@@ -19102,9 +19095,7 @@ var __importDefault$M = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
19102
19095
  Object.defineProperty(transactionRx, "__esModule", { value: true });
19103
19096
  /**
19104
19097
  * Copyright (c) "Neo4j"
19105
- * Neo4j Sweden AB [http://neo4j.com]
19106
- *
19107
- * This file is part of Neo4j.
19098
+ * Neo4j Sweden AB [https://neo4j.com]
19108
19099
  *
19109
19100
  * Licensed under the Apache License, Version 2.0 (the "License");
19110
19101
  * you may not use this file except in compliance with the License.
@@ -19226,9 +19217,7 @@ var __importDefault$L = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
19226
19217
  Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
19227
19218
  /**
19228
19219
  * Copyright (c) "Neo4j"
19229
- * Neo4j Sweden AB [http://neo4j.com]
19230
- *
19231
- * This file is part of Neo4j.
19220
+ * Neo4j Sweden AB [https://neo4j.com]
19232
19221
  *
19233
19222
  * Licensed under the Apache License, Version 2.0 (the "License");
19234
19223
  * you may not use this file except in compliance with the License.
@@ -19288,9 +19277,7 @@ var retryLogicRx = {};
19288
19277
 
19289
19278
  /**
19290
19279
  * Copyright (c) "Neo4j"
19291
- * Neo4j Sweden AB [http://neo4j.com]
19292
- *
19293
- * This file is part of Neo4j.
19280
+ * Neo4j Sweden AB [https://neo4j.com]
19294
19281
  *
19295
19282
  * Licensed under the Apache License, Version 2.0 (the "License");
19296
19283
  * you may not use this file except in compliance with the License.
@@ -19382,9 +19369,7 @@ var __importDefault$K = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
19382
19369
  Object.defineProperty(sessionRx, "__esModule", { value: true });
19383
19370
  /**
19384
19371
  * Copyright (c) "Neo4j"
19385
- * Neo4j Sweden AB [http://neo4j.com]
19386
- *
19387
- * This file is part of Neo4j.
19372
+ * Neo4j Sweden AB [https://neo4j.com]
19388
19373
  *
19389
19374
  * Licensed under the Apache License, Version 2.0 (the "License");
19390
19375
  * you may not use this file except in compliance with the License.
@@ -19532,6 +19517,9 @@ var RxSession = /** @class */ (function () {
19532
19517
  .catch(function (err) { return observer.error(err); });
19533
19518
  });
19534
19519
  };
19520
+ RxSession.prototype[Symbol.asyncDispose] = function () {
19521
+ return this.close();
19522
+ };
19535
19523
  /**
19536
19524
  * Returns the bookmarks received following the last successfully completed query, which is executed
19537
19525
  * either in an {@link RxTransaction} obtained from this session instance or directly through one of
@@ -19627,9 +19615,7 @@ function _createRetryLogic(config) {
19627
19615
 
19628
19616
  /**
19629
19617
  * Copyright (c) "Neo4j"
19630
- * Neo4j Sweden AB [http://neo4j.com]
19631
- *
19632
- * This file is part of Neo4j.
19618
+ * Neo4j Sweden AB [https://neo4j.com]
19633
19619
  *
19634
19620
  * Licensed under the Apache License, Version 2.0 (the "License");
19635
19621
  * you may not use this file except in compliance with the License.
@@ -19742,9 +19728,7 @@ var version$1 = {};
19742
19728
 
19743
19729
  /**
19744
19730
  * Copyright (c) "Neo4j"
19745
- * Neo4j Sweden AB [http://neo4j.com]
19746
- *
19747
- * This file is part of Neo4j.
19731
+ * Neo4j Sweden AB [https://neo4j.com]
19748
19732
  *
19749
19733
  * Licensed under the Apache License, Version 2.0 (the "License");
19750
19734
  * you may not use this file except in compliance with the License.
@@ -19767,7 +19751,7 @@ Object.defineProperty(version$1, "__esModule", { value: true });
19767
19751
  // This is set up this way to keep the version in the code in
19768
19752
  // sync with the npm package version, and to allow the build
19769
19753
  // system to control version names at packaging time.
19770
- version$1.default = '5.14.0';
19754
+ version$1.default = '5.16.0';
19771
19755
 
19772
19756
  var lib = {};
19773
19757
 
@@ -19777,9 +19761,7 @@ var loadBalancingStrategy = {};
19777
19761
 
19778
19762
  /**
19779
19763
  * Copyright (c) "Neo4j"
19780
- * Neo4j Sweden AB [http://neo4j.com]
19781
- *
19782
- * This file is part of Neo4j.
19764
+ * Neo4j Sweden AB [https://neo4j.com]
19783
19765
  *
19784
19766
  * Licensed under the Apache License, Version 2.0 (the "License");
19785
19767
  * you may not use this file except in compliance with the License.
@@ -19826,9 +19808,7 @@ var roundRobinArrayIndex = {};
19826
19808
 
19827
19809
  /**
19828
19810
  * Copyright (c) "Neo4j"
19829
- * Neo4j Sweden AB [http://neo4j.com]
19830
- *
19831
- * This file is part of Neo4j.
19811
+ * Neo4j Sweden AB [https://neo4j.com]
19832
19812
  *
19833
19813
  * Licensed under the Apache License, Version 2.0 (the "License");
19834
19814
  * you may not use this file except in compliance with the License.
@@ -19892,9 +19872,7 @@ var __importDefault$I = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
19892
19872
  Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value: true });
19893
19873
  /**
19894
19874
  * Copyright (c) "Neo4j"
19895
- * Neo4j Sweden AB [http://neo4j.com]
19896
- *
19897
- * This file is part of Neo4j.
19875
+ * Neo4j Sweden AB [https://neo4j.com]
19898
19876
  *
19899
19877
  * Licensed under the Apache License, Version 2.0 (the "License");
19900
19878
  * you may not use this file except in compliance with the License.
@@ -19974,9 +19952,7 @@ Object.defineProperty(loadBalancing, "__esModule", { value: true });
19974
19952
  loadBalancing.LeastConnectedLoadBalancingStrategy = loadBalancing.LoadBalancingStrategy = void 0;
19975
19953
  /**
19976
19954
  * Copyright (c) "Neo4j"
19977
- * Neo4j Sweden AB [http://neo4j.com]
19978
- *
19979
- * This file is part of Neo4j.
19955
+ * Neo4j Sweden AB [https://neo4j.com]
19980
19956
  *
19981
19957
  * Licensed under the Apache License, Version 2.0 (the "License");
19982
19958
  * you may not use this file except in compliance with the License.
@@ -22363,9 +22339,7 @@ var baseBuf = {};
22363
22339
 
22364
22340
  /**
22365
22341
  * Copyright (c) "Neo4j"
22366
- * Neo4j Sweden AB [http://neo4j.com]
22367
- *
22368
- * This file is part of Neo4j.
22342
+ * Neo4j Sweden AB [https://neo4j.com]
22369
22343
  *
22370
22344
  * Licensed under the Apache License, Version 2.0 (the "License");
22371
22345
  * you may not use this file except in compliance with the License.
@@ -22745,9 +22719,7 @@ var SliceBuffer = /** @class */ (function (_super) {
22745
22719
 
22746
22720
  /**
22747
22721
  * Copyright (c) "Neo4j"
22748
- * Neo4j Sweden AB [http://neo4j.com]
22749
- *
22750
- * This file is part of Neo4j.
22722
+ * Neo4j Sweden AB [https://neo4j.com]
22751
22723
  *
22752
22724
  * Licensed under the Apache License, Version 2.0 (the "License");
22753
22725
  * you may not use this file except in compliance with the License.
@@ -22772,9 +22744,7 @@ buf.default = base_buf_1$1.default;
22772
22744
 
22773
22745
  /**
22774
22746
  * Copyright (c) "Neo4j"
22775
- * Neo4j Sweden AB [http://neo4j.com]
22776
- *
22777
- * This file is part of Neo4j.
22747
+ * Neo4j Sweden AB [https://neo4j.com]
22778
22748
  *
22779
22749
  * Licensed under the Apache License, Version 2.0 (the "License");
22780
22750
  * you may not use this file except in compliance with the License.
@@ -22885,9 +22855,7 @@ var __importDefault$E = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
22885
22855
  Object.defineProperty(browserChannel, "__esModule", { value: true });
22886
22856
  /**
22887
22857
  * Copyright (c) "Neo4j"
22888
- * Neo4j Sweden AB [http://neo4j.com]
22889
- *
22890
- * This file is part of Neo4j.
22858
+ * Neo4j Sweden AB [https://neo4j.com]
22891
22859
  *
22892
22860
  * Licensed under the Apache License, Version 2.0 (the "License");
22893
22861
  * you may not use this file except in compliance with the License.
@@ -22929,6 +22897,7 @@ var WebSocketChannel = /** @class */ (function () {
22929
22897
  this._receiveTimeout = null;
22930
22898
  this._receiveTimeoutStarted = false;
22931
22899
  this._receiveTimeoutId = null;
22900
+ this._closingPromise = null;
22932
22901
  var _a = determineWebSocketScheme(config, protocolSupplier), scheme = _a.scheme, error = _a.error;
22933
22902
  if (error) {
22934
22903
  this._error = error;
@@ -23026,18 +22995,23 @@ var WebSocketChannel = /** @class */ (function () {
23026
22995
  */
23027
22996
  WebSocketChannel.prototype.close = function () {
23028
22997
  var _this = this;
23029
- return new Promise(function (resolve, reject) {
23030
- _this._clearConnectionTimeout();
23031
- if (_this._ws && _this._ws.readyState !== WS_CLOSED) {
23032
- _this._open = false;
23033
- _this.stopReceiveTimeout();
23034
- _this._ws.onclose = function () { return resolve(); };
23035
- _this._ws.close();
23036
- }
23037
- else {
23038
- resolve();
23039
- }
23040
- });
22998
+ if (this._closingPromise === null) {
22999
+ this._closingPromise = new Promise(function (resolve, reject) {
23000
+ _this._clearConnectionTimeout();
23001
+ if (_this._ws && _this._ws.readyState !== WS_CLOSED) {
23002
+ _this._open = false;
23003
+ _this.stopReceiveTimeout();
23004
+ _this._ws.onclose = function () {
23005
+ resolve();
23006
+ };
23007
+ _this._ws.close();
23008
+ }
23009
+ else {
23010
+ resolve();
23011
+ }
23012
+ });
23013
+ }
23014
+ return this._closingPromise;
23041
23015
  };
23042
23016
  /**
23043
23017
  * Setup the receive timeout for the channel.
@@ -23253,9 +23227,7 @@ var browserHostNameResolver = {};
23253
23227
 
23254
23228
  /**
23255
23229
  * Copyright (c) "Neo4j"
23256
- * Neo4j Sweden AB [http://neo4j.com]
23257
- *
23258
- * This file is part of Neo4j.
23230
+ * Neo4j Sweden AB [https://neo4j.com]
23259
23231
  *
23260
23232
  * Licensed under the Apache License, Version 2.0 (the "License");
23261
23233
  * you may not use this file except in compliance with the License.
@@ -23301,9 +23273,7 @@ browserHostNameResolver.default = BrowserHostNameResolver;
23301
23273
 
23302
23274
  /**
23303
23275
  * Copyright (c) "Neo4j"
23304
- * Neo4j Sweden AB [http://neo4j.com]
23305
- *
23306
- * This file is part of Neo4j.
23276
+ * Neo4j Sweden AB [https://neo4j.com]
23307
23277
  *
23308
23278
  * Licensed under the Apache License, Version 2.0 (the "License");
23309
23279
  * you may not use this file except in compliance with the License.
@@ -23343,9 +23313,7 @@ var combinedBuf = {};
23343
23313
 
23344
23314
  /**
23345
23315
  * Copyright (c) "Neo4j"
23346
- * Neo4j Sweden AB [http://neo4j.com]
23347
- *
23348
- * This file is part of Neo4j.
23316
+ * Neo4j Sweden AB [https://neo4j.com]
23349
23317
  *
23350
23318
  * Licensed under the Apache License, Version 2.0 (the "License");
23351
23319
  * you may not use this file except in compliance with the License.
@@ -23433,9 +23401,7 @@ combinedBuf.default = CombinedBuffer;
23433
23401
 
23434
23402
  /**
23435
23403
  * Copyright (c) "Neo4j"
23436
- * Neo4j Sweden AB [http://neo4j.com]
23437
- *
23438
- * This file is part of Neo4j.
23404
+ * Neo4j Sweden AB [https://neo4j.com]
23439
23405
  *
23440
23406
  * Licensed under the Apache License, Version 2.0 (the "License");
23441
23407
  * you may not use this file except in compliance with the License.
@@ -23648,9 +23614,7 @@ var channelConfig = {};
23648
23614
 
23649
23615
  /**
23650
23616
  * Copyright (c) "Neo4j"
23651
- * Neo4j Sweden AB [http://neo4j.com]
23652
- *
23653
- * This file is part of Neo4j.
23617
+ * Neo4j Sweden AB [https://neo4j.com]
23654
23618
  *
23655
23619
  * Licensed under the Apache License, Version 2.0 (the "License");
23656
23620
  * you may not use this file except in compliance with the License.
@@ -24073,9 +24037,7 @@ function simpleEnd(buf) {
24073
24037
 
24074
24038
  /**
24075
24039
  * Copyright (c) "Neo4j"
24076
- * Neo4j Sweden AB [http://neo4j.com]
24077
- *
24078
- * This file is part of Neo4j.
24040
+ * Neo4j Sweden AB [https://neo4j.com]
24079
24041
  *
24080
24042
  * Licensed under the Apache License, Version 2.0 (the "License");
24081
24043
  * you may not use this file except in compliance with the License.
@@ -24165,9 +24127,7 @@ utf8.default = {
24165
24127
  (function (exports) {
24166
24128
  /**
24167
24129
  * Copyright (c) "Neo4j"
24168
- * Neo4j Sweden AB [http://neo4j.com]
24169
- *
24170
- * This file is part of Neo4j.
24130
+ * Neo4j Sweden AB [https://neo4j.com]
24171
24131
  *
24172
24132
  * Licensed under the Apache License, Version 2.0 (the "License");
24173
24133
  * you may not use this file except in compliance with the License.
@@ -24212,9 +24172,7 @@ Object.defineProperty(exports, "utf8", { enumerable: true, get: function () { re
24212
24172
 
24213
24173
  /**
24214
24174
  * Copyright (c) "Neo4j"
24215
- * Neo4j Sweden AB [http://neo4j.com]
24216
- *
24217
- * This file is part of Neo4j.
24175
+ * Neo4j Sweden AB [https://neo4j.com]
24218
24176
  *
24219
24177
  * Licensed under the Apache License, Version 2.0 (the "License");
24220
24178
  * you may not use this file except in compliance with the License.
@@ -24365,9 +24323,7 @@ var __importDefault$A = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
24365
24323
  Object.defineProperty(routingTableRaw, "__esModule", { value: true });
24366
24324
  /**
24367
24325
  * Copyright (c) "Neo4j"
24368
- * Neo4j Sweden AB [http://neo4j.com]
24369
- *
24370
- * This file is part of Neo4j.
24326
+ * Neo4j Sweden AB [https://neo4j.com]
24371
24327
  *
24372
24328
  * Licensed under the Apache License, Version 2.0 (the "License");
24373
24329
  * you may not use this file except in compliance with the License.
@@ -24593,9 +24549,7 @@ Object.defineProperty(streamObservers, "__esModule", { value: true });
24593
24549
  streamObservers.TelemetryObserver = streamObservers.ProcedureRouteObserver = streamObservers.RouteObserver = streamObservers.CompletedObserver = streamObservers.FailedObserver = streamObservers.ResetObserver = streamObservers.LogoffObserver = streamObservers.LoginObserver = streamObservers.ResultStreamObserver = streamObservers.StreamObserver = void 0;
24594
24550
  /**
24595
24551
  * Copyright (c) "Neo4j"
24596
- * Neo4j Sweden AB [http://neo4j.com]
24597
- *
24598
- * This file is part of Neo4j.
24552
+ * Neo4j Sweden AB [https://neo4j.com]
24599
24553
  *
24600
24554
  * Licensed under the Apache License, Version 2.0 (the "License");
24601
24555
  * you may not use this file except in compliance with the License.
@@ -25246,9 +25200,7 @@ Object.defineProperty(boltProtocolUtil, "__esModule", { value: true });
25246
25200
  boltProtocolUtil.assertNotificationFilterIsEmpty = boltProtocolUtil.assertImpersonatedUserIsEmpty = boltProtocolUtil.assertTxConfigIsEmpty = boltProtocolUtil.assertDatabaseIsEmpty = void 0;
25247
25201
  /**
25248
25202
  * Copyright (c) "Neo4j"
25249
- * Neo4j Sweden AB [http://neo4j.com]
25250
- *
25251
- * This file is part of Neo4j.
25203
+ * Neo4j Sweden AB [https://neo4j.com]
25252
25204
  *
25253
25205
  * Licensed under the Apache License, Version 2.0 (the "License");
25254
25206
  * you may not use this file except in compliance with the License.
@@ -25346,9 +25298,7 @@ var functional = {};
25346
25298
 
25347
25299
  /**
25348
25300
  * Copyright (c) "Neo4j"
25349
- * Neo4j Sweden AB [http://neo4j.com]
25350
- *
25351
- * This file is part of Neo4j.
25301
+ * Neo4j Sweden AB [https://neo4j.com]
25352
25302
  *
25353
25303
  * Licensed under the Apache License, Version 2.0 (the "License");
25354
25304
  * you may not use this file except in compliance with the License.
@@ -25409,9 +25359,7 @@ var object = {};
25409
25359
 
25410
25360
  /**
25411
25361
  * Copyright (c) "Neo4j"
25412
- * Neo4j Sweden AB [http://neo4j.com]
25413
- *
25414
- * This file is part of Neo4j.
25362
+ * Neo4j Sweden AB [https://neo4j.com]
25415
25363
  *
25416
25364
  * Licensed under the Apache License, Version 2.0 (the "License");
25417
25365
  * you may not use this file except in compliance with the License.
@@ -25475,9 +25423,7 @@ object.equals = equals;
25475
25423
 
25476
25424
  /**
25477
25425
  * Copyright (c) "Neo4j"
25478
- * Neo4j Sweden AB [http://neo4j.com]
25479
- *
25480
- * This file is part of Neo4j.
25426
+ * Neo4j Sweden AB [https://neo4j.com]
25481
25427
  *
25482
25428
  * Licensed under the Apache License, Version 2.0 (the "License");
25483
25429
  * you may not use this file except in compliance with the License.
@@ -25523,9 +25469,7 @@ var structure$1 = {};
25523
25469
 
25524
25470
  /**
25525
25471
  * Copyright (c) "Neo4j"
25526
- * Neo4j Sweden AB [http://neo4j.com]
25527
- *
25528
- * This file is part of Neo4j.
25472
+ * Neo4j Sweden AB [https://neo4j.com]
25529
25473
  *
25530
25474
  * Licensed under the Apache License, Version 2.0 (the "License");
25531
25475
  * you may not use this file except in compliance with the License.
@@ -25586,9 +25530,7 @@ Object.defineProperty(packstreamV1, "__esModule", { value: true });
25586
25530
  packstreamV1.Unpacker = packstreamV1.Packer = void 0;
25587
25531
  /**
25588
25532
  * Copyright (c) "Neo4j"
25589
- * Neo4j Sweden AB [http://neo4j.com]
25590
- *
25591
- * This file is part of Neo4j.
25533
+ * Neo4j Sweden AB [https://neo4j.com]
25592
25534
  *
25593
25535
  * Licensed under the Apache License, Version 2.0 (the "License");
25594
25536
  * you may not use this file except in compliance with the License.
@@ -26153,9 +26095,7 @@ var packstreamV2 = {};
26153
26095
 
26154
26096
  /**
26155
26097
  * Copyright (c) "Neo4j"
26156
- * Neo4j Sweden AB [http://neo4j.com]
26157
- *
26158
- * This file is part of Neo4j.
26098
+ * Neo4j Sweden AB [https://neo4j.com]
26159
26099
  *
26160
26100
  * Licensed under the Apache License, Version 2.0 (the "License");
26161
26101
  * you may not use this file except in compliance with the License.
@@ -26239,9 +26179,7 @@ packstreamV2.Unpacker = Unpacker;
26239
26179
 
26240
26180
  /**
26241
26181
  * Copyright (c) "Neo4j"
26242
- * Neo4j Sweden AB [http://neo4j.com]
26243
- *
26244
- * This file is part of Neo4j.
26182
+ * Neo4j Sweden AB [https://neo4j.com]
26245
26183
  *
26246
26184
  * Licensed under the Apache License, Version 2.0 (the "License");
26247
26185
  * you may not use this file except in compliance with the License.
@@ -26292,9 +26230,7 @@ var requestMessage = {};
26292
26230
 
26293
26231
  /**
26294
26232
  * Copyright (c) "Neo4j"
26295
- * Neo4j Sweden AB [http://neo4j.com]
26296
- *
26297
- * This file is part of Neo4j.
26233
+ * Neo4j Sweden AB [https://neo4j.com]
26298
26234
  *
26299
26235
  * Licensed under the Apache License, Version 2.0 (the "License");
26300
26236
  * you may not use this file except in compliance with the License.
@@ -26689,9 +26625,7 @@ var transformer = {};
26689
26625
 
26690
26626
  /**
26691
26627
  * Copyright (c) "Neo4j"
26692
- * Neo4j Sweden AB [http://neo4j.com]
26693
- *
26694
- * This file is part of Neo4j.
26628
+ * Neo4j Sweden AB [https://neo4j.com]
26695
26629
  *
26696
26630
  * Licensed under the Apache License, Version 2.0 (the "License");
26697
26631
  * you may not use this file except in compliance with the License.
@@ -26821,9 +26755,7 @@ transformer.TypeTransformer = TypeTransformer;
26821
26755
 
26822
26756
  /**
26823
26757
  * Copyright (c) "Neo4j"
26824
- * Neo4j Sweden AB [http://neo4j.com]
26825
- *
26826
- * This file is part of Neo4j.
26758
+ * Neo4j Sweden AB [https://neo4j.com]
26827
26759
  *
26828
26760
  * Licensed under the Apache License, Version 2.0 (the "License");
26829
26761
  * you may not use this file except in compliance with the License.
@@ -27001,9 +26933,7 @@ var __importDefault$y = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
27001
26933
  Object.defineProperty(boltProtocolV1, "__esModule", { value: true });
27002
26934
  /**
27003
26935
  * Copyright (c) "Neo4j"
27004
- * Neo4j Sweden AB [http://neo4j.com]
27005
- *
27006
- * This file is part of Neo4j.
26936
+ * Neo4j Sweden AB [https://neo4j.com]
27007
26937
  *
27008
26938
  * Licensed under the Apache License, Version 2.0 (the "License");
27009
26939
  * you may not use this file except in compliance with the License.
@@ -27517,9 +27447,7 @@ Object.defineProperty(temporalFactory, "__esModule", { value: true });
27517
27447
  temporalFactory.epochSecondAndNanoToLocalDateTime = temporalFactory.nanoOfDayToLocalTime = temporalFactory.epochDayToDate = void 0;
27518
27448
  /**
27519
27449
  * Copyright (c) "Neo4j"
27520
- * Neo4j Sweden AB [http://neo4j.com]
27521
- *
27522
- * This file is part of Neo4j.
27450
+ * Neo4j Sweden AB [https://neo4j.com]
27523
27451
  *
27524
27452
  * Licensed under the Apache License, Version 2.0 (the "License");
27525
27453
  * you may not use this file except in compliance with the License.
@@ -27623,9 +27551,7 @@ temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDat
27623
27551
 
27624
27552
  /**
27625
27553
  * Copyright (c) "Neo4j"
27626
- * Neo4j Sweden AB [http://neo4j.com]
27627
- *
27628
- * This file is part of Neo4j.
27554
+ * Neo4j Sweden AB [https://neo4j.com]
27629
27555
  *
27630
27556
  * Licensed under the Apache License, Version 2.0 (the "License");
27631
27557
  * you may not use this file except in compliance with the License.
@@ -27951,9 +27877,7 @@ var __importDefault$w = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
27951
27877
  Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
27952
27878
  /**
27953
27879
  * Copyright (c) "Neo4j"
27954
- * Neo4j Sweden AB [http://neo4j.com]
27955
- *
27956
- * This file is part of Neo4j.
27880
+ * Neo4j Sweden AB [https://neo4j.com]
27957
27881
  *
27958
27882
  * Licensed under the Apache License, Version 2.0 (the "License");
27959
27883
  * you may not use this file except in compliance with the License.
@@ -28012,9 +27936,7 @@ var boltProtocolV3_transformer = {};
28012
27936
 
28013
27937
  /**
28014
27938
  * Copyright (c) "Neo4j"
28015
- * Neo4j Sweden AB [http://neo4j.com]
28016
- *
28017
- * This file is part of Neo4j.
27939
+ * Neo4j Sweden AB [https://neo4j.com]
28018
27940
  *
28019
27941
  * Licensed under the Apache License, Version 2.0 (the "License");
28020
27942
  * you may not use this file except in compliance with the License.
@@ -28078,9 +28000,7 @@ var __importDefault$u = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
28078
28000
  Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
28079
28001
  /**
28080
28002
  * Copyright (c) "Neo4j"
28081
- * Neo4j Sweden AB [http://neo4j.com]
28082
- *
28083
- * This file is part of Neo4j.
28003
+ * Neo4j Sweden AB [https://neo4j.com]
28084
28004
  *
28085
28005
  * Licensed under the Apache License, Version 2.0 (the "License");
28086
28006
  * you may not use this file except in compliance with the License.
@@ -28266,9 +28186,7 @@ var boltProtocolV4x0_transformer = {};
28266
28186
 
28267
28187
  /**
28268
28188
  * Copyright (c) "Neo4j"
28269
- * Neo4j Sweden AB [http://neo4j.com]
28270
- *
28271
- * This file is part of Neo4j.
28189
+ * Neo4j Sweden AB [https://neo4j.com]
28272
28190
  *
28273
28191
  * Licensed under the Apache License, Version 2.0 (the "License");
28274
28192
  * you may not use this file except in compliance with the License.
@@ -28332,9 +28250,7 @@ var __importDefault$s = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
28332
28250
  Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
28333
28251
  /**
28334
28252
  * Copyright (c) "Neo4j"
28335
- * Neo4j Sweden AB [http://neo4j.com]
28336
- *
28337
- * This file is part of Neo4j.
28253
+ * Neo4j Sweden AB [https://neo4j.com]
28338
28254
  *
28339
28255
  * Licensed under the Apache License, Version 2.0 (the "License");
28340
28256
  * you may not use this file except in compliance with the License.
@@ -28478,9 +28394,7 @@ var boltProtocolV4x1_transformer = {};
28478
28394
 
28479
28395
  /**
28480
28396
  * Copyright (c) "Neo4j"
28481
- * Neo4j Sweden AB [http://neo4j.com]
28482
- *
28483
- * This file is part of Neo4j.
28397
+ * Neo4j Sweden AB [https://neo4j.com]
28484
28398
  *
28485
28399
  * Licensed under the Apache License, Version 2.0 (the "License");
28486
28400
  * you may not use this file except in compliance with the License.
@@ -28533,9 +28447,7 @@ var __importDefault$q = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
28533
28447
  Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
28534
28448
  /**
28535
28449
  * Copyright (c) "Neo4j"
28536
- * Neo4j Sweden AB [http://neo4j.com]
28537
- *
28538
- * This file is part of Neo4j.
28450
+ * Neo4j Sweden AB [https://neo4j.com]
28539
28451
  *
28540
28452
  * Licensed under the Apache License, Version 2.0 (the "License");
28541
28453
  * you may not use this file except in compliance with the License.
@@ -28617,9 +28529,7 @@ var boltProtocolV4x2_transformer = {};
28617
28529
 
28618
28530
  /**
28619
28531
  * Copyright (c) "Neo4j"
28620
- * Neo4j Sweden AB [http://neo4j.com]
28621
- *
28622
- * This file is part of Neo4j.
28532
+ * Neo4j Sweden AB [https://neo4j.com]
28623
28533
  *
28624
28534
  * Licensed under the Apache License, Version 2.0 (the "License");
28625
28535
  * you may not use this file except in compliance with the License.
@@ -28672,9 +28582,7 @@ var __importDefault$o = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
28672
28582
  Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
28673
28583
  /**
28674
28584
  * Copyright (c) "Neo4j"
28675
- * Neo4j Sweden AB [http://neo4j.com]
28676
- *
28677
- * This file is part of Neo4j.
28585
+ * Neo4j Sweden AB [https://neo4j.com]
28678
28586
  *
28679
28587
  * Licensed under the Apache License, Version 2.0 (the "License");
28680
28588
  * you may not use this file except in compliance with the License.
@@ -28726,9 +28634,7 @@ var boltProtocolV4x3_transformer = {};
28726
28634
 
28727
28635
  /**
28728
28636
  * Copyright (c) "Neo4j"
28729
- * Neo4j Sweden AB [http://neo4j.com]
28730
- *
28731
- * This file is part of Neo4j.
28637
+ * Neo4j Sweden AB [https://neo4j.com]
28732
28638
  *
28733
28639
  * Licensed under the Apache License, Version 2.0 (the "License");
28734
28640
  * you may not use this file except in compliance with the License.
@@ -28766,9 +28672,7 @@ var boltProtocolV4x4_transformer = {};
28766
28672
 
28767
28673
  /**
28768
28674
  * Copyright (c) "Neo4j"
28769
- * Neo4j Sweden AB [http://neo4j.com]
28770
- *
28771
- * This file is part of Neo4j.
28675
+ * Neo4j Sweden AB [https://neo4j.com]
28772
28676
  *
28773
28677
  * Licensed under the Apache License, Version 2.0 (the "License");
28774
28678
  * you may not use this file except in compliance with the License.
@@ -28802,9 +28706,7 @@ boltProtocolV4x4_transformer.default = __assign$b({}, bolt_protocol_v4x3_transfo
28802
28706
 
28803
28707
  /**
28804
28708
  * Copyright (c) "Neo4j"
28805
- * Neo4j Sweden AB [http://neo4j.com]
28806
- *
28807
- * This file is part of Neo4j.
28709
+ * Neo4j Sweden AB [https://neo4j.com]
28808
28710
  *
28809
28711
  * Licensed under the Apache License, Version 2.0 (the "License");
28810
28712
  * you may not use this file except in compliance with the License.
@@ -29027,9 +28929,7 @@ var __importDefault$k = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
29027
28929
  Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
29028
28930
  /**
29029
28931
  * Copyright (c) "Neo4j"
29030
- * Neo4j Sweden AB [http://neo4j.com]
29031
- *
29032
- * This file is part of Neo4j.
28932
+ * Neo4j Sweden AB [https://neo4j.com]
29033
28933
  *
29034
28934
  * Licensed under the Apache License, Version 2.0 (the "License");
29035
28935
  * you may not use this file except in compliance with the License.
@@ -29177,9 +29077,7 @@ var __importDefault$j = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
29177
29077
  Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
29178
29078
  /**
29179
29079
  * Copyright (c) "Neo4j"
29180
- * Neo4j Sweden AB [http://neo4j.com]
29181
- *
29182
- * This file is part of Neo4j.
29080
+ * Neo4j Sweden AB [https://neo4j.com]
29183
29081
  *
29184
29082
  * Licensed under the Apache License, Version 2.0 (the "License");
29185
29083
  * you may not use this file except in compliance with the License.
@@ -29309,9 +29207,7 @@ var boltProtocolV5x0_transformer = {};
29309
29207
 
29310
29208
  /**
29311
29209
  * Copyright (c) "Neo4j"
29312
- * Neo4j Sweden AB [http://neo4j.com]
29313
- *
29314
- * This file is part of Neo4j.
29210
+ * Neo4j Sweden AB [https://neo4j.com]
29315
29211
  *
29316
29212
  * Licensed under the Apache License, Version 2.0 (the "License");
29317
29213
  * you may not use this file except in compliance with the License.
@@ -29431,9 +29327,7 @@ var __importDefault$h = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
29431
29327
  Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
29432
29328
  /**
29433
29329
  * Copyright (c) "Neo4j"
29434
- * Neo4j Sweden AB [http://neo4j.com]
29435
- *
29436
- * This file is part of Neo4j.
29330
+ * Neo4j Sweden AB [https://neo4j.com]
29437
29331
  *
29438
29332
  * Licensed under the Apache License, Version 2.0 (the "License");
29439
29333
  * you may not use this file except in compliance with the License.
@@ -29511,9 +29405,7 @@ var boltProtocolV5x1_transformer = {};
29511
29405
 
29512
29406
  /**
29513
29407
  * Copyright (c) "Neo4j"
29514
- * Neo4j Sweden AB [http://neo4j.com]
29515
- *
29516
- * This file is part of Neo4j.
29408
+ * Neo4j Sweden AB [https://neo4j.com]
29517
29409
  *
29518
29410
  * Licensed under the Apache License, Version 2.0 (the "License");
29519
29411
  * you may not use this file except in compliance with the License.
@@ -29577,9 +29469,7 @@ var __importDefault$f = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
29577
29469
  Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
29578
29470
  /**
29579
29471
  * Copyright (c) "Neo4j"
29580
- * Neo4j Sweden AB [http://neo4j.com]
29581
- *
29582
- * This file is part of Neo4j.
29472
+ * Neo4j Sweden AB [https://neo4j.com]
29583
29473
  *
29584
29474
  * Licensed under the Apache License, Version 2.0 (the "License");
29585
29475
  * you may not use this file except in compliance with the License.
@@ -29713,9 +29603,7 @@ var boltProtocolV5x2_transformer = {};
29713
29603
 
29714
29604
  /**
29715
29605
  * Copyright (c) "Neo4j"
29716
- * Neo4j Sweden AB [http://neo4j.com]
29717
- *
29718
- * This file is part of Neo4j.
29606
+ * Neo4j Sweden AB [https://neo4j.com]
29719
29607
  *
29720
29608
  * Licensed under the Apache License, Version 2.0 (the "License");
29721
29609
  * you may not use this file except in compliance with the License.
@@ -29779,9 +29667,7 @@ var __importDefault$d = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
29779
29667
  Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
29780
29668
  /**
29781
29669
  * Copyright (c) "Neo4j"
29782
- * Neo4j Sweden AB [http://neo4j.com]
29783
- *
29784
- * This file is part of Neo4j.
29670
+ * Neo4j Sweden AB [https://neo4j.com]
29785
29671
  *
29786
29672
  * Licensed under the Apache License, Version 2.0 (the "License");
29787
29673
  * you may not use this file except in compliance with the License.
@@ -29919,9 +29805,7 @@ var boltProtocolV5x3_transformer = {};
29919
29805
 
29920
29806
  /**
29921
29807
  * Copyright (c) "Neo4j"
29922
- * Neo4j Sweden AB [http://neo4j.com]
29923
- *
29924
- * This file is part of Neo4j.
29808
+ * Neo4j Sweden AB [https://neo4j.com]
29925
29809
  *
29926
29810
  * Licensed under the Apache License, Version 2.0 (the "License");
29927
29811
  * you may not use this file except in compliance with the License.
@@ -29985,9 +29869,7 @@ var __importDefault$b = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
29985
29869
  Object.defineProperty(boltProtocolV5x3, "__esModule", { value: true });
29986
29870
  /**
29987
29871
  * Copyright (c) "Neo4j"
29988
- * Neo4j Sweden AB [http://neo4j.com]
29989
- *
29990
- * This file is part of Neo4j.
29872
+ * Neo4j Sweden AB [https://neo4j.com]
29991
29873
  *
29992
29874
  * Licensed under the Apache License, Version 2.0 (the "License");
29993
29875
  * you may not use this file except in compliance with the License.
@@ -30071,9 +29953,7 @@ var boltProtocolV5x4_transformer = {};
30071
29953
 
30072
29954
  /**
30073
29955
  * Copyright (c) "Neo4j"
30074
- * Neo4j Sweden AB [http://neo4j.com]
30075
- *
30076
- * This file is part of Neo4j.
29956
+ * Neo4j Sweden AB [https://neo4j.com]
30077
29957
  *
30078
29958
  * Licensed under the Apache License, Version 2.0 (the "License");
30079
29959
  * you may not use this file except in compliance with the License.
@@ -30126,9 +30006,7 @@ var __importDefault$9 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
30126
30006
  Object.defineProperty(boltProtocolV5x4, "__esModule", { value: true });
30127
30007
  /**
30128
30008
  * Copyright (c) "Neo4j"
30129
- * Neo4j Sweden AB [http://neo4j.com]
30130
- *
30131
- * This file is part of Neo4j.
30009
+ * Neo4j Sweden AB [https://neo4j.com]
30132
30010
  *
30133
30011
  * Licensed under the Apache License, Version 2.0 (the "License");
30134
30012
  * you may not use this file except in compliance with the License.
@@ -30198,9 +30076,7 @@ var responseHandler = {};
30198
30076
  Object.defineProperty(responseHandler, "__esModule", { value: true });
30199
30077
  /**
30200
30078
  * Copyright (c) "Neo4j"
30201
- * Neo4j Sweden AB [http://neo4j.com]
30202
- *
30203
- * This file is part of Neo4j.
30079
+ * Neo4j Sweden AB [https://neo4j.com]
30204
30080
  *
30205
30081
  * Licensed under the Apache License, Version 2.0 (the "License");
30206
30082
  * you may not use this file except in compliance with the License.
@@ -30271,7 +30147,7 @@ var ResponseHandler = /** @class */ (function () {
30271
30147
  this._log = log;
30272
30148
  this._transformMetadata = transformMetadata || NO_OP_IDENTITY;
30273
30149
  this._observer = Object.assign({
30274
- onPendingObserversChange: NO_OP,
30150
+ onObserversCountChange: NO_OP,
30275
30151
  onError: NO_OP,
30276
30152
  onFailure: NO_OP,
30277
30153
  onErrorApplyTransformation: NO_OP_IDENTITY
@@ -30347,8 +30223,15 @@ var ResponseHandler = /** @class */ (function () {
30347
30223
  */
30348
30224
  ResponseHandler.prototype._updateCurrentObserver = function () {
30349
30225
  this._currentObserver = this._pendingObservers.shift();
30350
- this._observer.onPendingObserversChange(this._pendingObservers.length);
30226
+ this._observer.onObserversCountChange(this._observersCount);
30351
30227
  };
30228
+ Object.defineProperty(ResponseHandler.prototype, "_observersCount", {
30229
+ get: function () {
30230
+ return this._currentObserver == null ? this._pendingObservers.length : this._pendingObservers.length + 1;
30231
+ },
30232
+ enumerable: false,
30233
+ configurable: true
30234
+ });
30352
30235
  ResponseHandler.prototype._queueObserver = function (observer) {
30353
30236
  observer = observer || NO_OP_OBSERVER;
30354
30237
  observer.onCompleted = observer.onCompleted || NO_OP;
@@ -30360,7 +30243,7 @@ var ResponseHandler = /** @class */ (function () {
30360
30243
  else {
30361
30244
  this._pendingObservers.push(observer);
30362
30245
  }
30363
- this._observer.onPendingObserversChange(this._pendingObservers.length);
30246
+ this._observer.onObserversCountChange(this._observersCount);
30364
30247
  return true;
30365
30248
  };
30366
30249
  ResponseHandler.prototype._notifyErrorToObservers = function (error) {
@@ -30404,9 +30287,7 @@ function _standardizeCode(code) {
30404
30287
 
30405
30288
  /**
30406
30289
  * Copyright (c) "Neo4j"
30407
- * Neo4j Sweden AB [http://neo4j.com]
30408
- *
30409
- * This file is part of Neo4j.
30290
+ * Neo4j Sweden AB [https://neo4j.com]
30410
30291
  *
30411
30292
  * Licensed under the Apache License, Version 2.0 (the "License");
30412
30293
  * you may not use this file except in compliance with the License.
@@ -30535,9 +30416,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
30535
30416
  exports.RawRoutingTable = exports.BoltProtocol = void 0;
30536
30417
  /**
30537
30418
  * Copyright (c) "Neo4j"
30538
- * Neo4j Sweden AB [http://neo4j.com]
30539
- *
30540
- * This file is part of Neo4j.
30419
+ * Neo4j Sweden AB [https://neo4j.com]
30541
30420
  *
30542
30421
  * Licensed under the Apache License, Version 2.0 (the "License");
30543
30422
  * you may not use this file except in compliance with the License.
@@ -30570,9 +30449,7 @@ var poolConfig = {};
30570
30449
 
30571
30450
  /**
30572
30451
  * Copyright (c) "Neo4j"
30573
- * Neo4j Sweden AB [http://neo4j.com]
30574
- *
30575
- * This file is part of Neo4j.
30452
+ * Neo4j Sweden AB [https://neo4j.com]
30576
30453
  *
30577
30454
  * Licensed under the Apache License, Version 2.0 (the "License");
30578
30455
  * you may not use this file except in compliance with the License.
@@ -30625,9 +30502,7 @@ var pool = {};
30625
30502
 
30626
30503
  /**
30627
30504
  * Copyright (c) "Neo4j"
30628
- * Neo4j Sweden AB [http://neo4j.com]
30629
- *
30630
- * This file is part of Neo4j.
30505
+ * Neo4j Sweden AB [https://neo4j.com]
30631
30506
  *
30632
30507
  * Licensed under the Apache License, Version 2.0 (the "License");
30633
30508
  * you may not use this file except in compliance with the License.
@@ -30641,7 +30516,7 @@ var pool = {};
30641
30516
  * See the License for the specific language governing permissions and
30642
30517
  * limitations under the License.
30643
30518
  */
30644
- var __awaiter$5 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
30519
+ var __awaiter$6 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
30645
30520
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
30646
30521
  return new (P || (P = Promise))(function (resolve, reject) {
30647
30522
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -30650,7 +30525,7 @@ var __awaiter$5 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
30650
30525
  step((generator = generator.apply(thisArg, _arguments || [])).next());
30651
30526
  });
30652
30527
  };
30653
- var __generator$5 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
30528
+ var __generator$6 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
30654
30529
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
30655
30530
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
30656
30531
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -30782,9 +30657,9 @@ var Pool = /** @class */ (function () {
30782
30657
  * @returns {Promise<void>} A promise that is resolved when the resources are purged
30783
30658
  */
30784
30659
  Pool.prototype.close = function () {
30785
- return __awaiter$5(this, void 0, void 0, function () {
30660
+ return __awaiter$6(this, void 0, void 0, function () {
30786
30661
  var _this = this;
30787
- return __generator$5(this, function (_a) {
30662
+ return __generator$6(this, function (_a) {
30788
30663
  switch (_a.label) {
30789
30664
  case 0:
30790
30665
  this._closed = true;
@@ -30843,10 +30718,10 @@ var Pool = /** @class */ (function () {
30843
30718
  return pool;
30844
30719
  };
30845
30720
  Pool.prototype._acquire = function (acquisitionContext, address, requireNew) {
30846
- return __awaiter$5(this, void 0, void 0, function () {
30721
+ return __awaiter$6(this, void 0, void 0, function () {
30847
30722
  var key, pool, resource_1, numConnections, resource, numConnections, resource_2;
30848
30723
  var _this = this;
30849
- return __generator$5(this, function (_a) {
30724
+ return __generator$6(this, function (_a) {
30850
30725
  switch (_a.label) {
30851
30726
  case 0:
30852
30727
  if (this._closed) {
@@ -30923,10 +30798,10 @@ var Pool = /** @class */ (function () {
30923
30798
  });
30924
30799
  };
30925
30800
  Pool.prototype._release = function (address, resource, pool) {
30926
- return __awaiter$5(this, void 0, void 0, function () {
30801
+ return __awaiter$6(this, void 0, void 0, function () {
30927
30802
  var key;
30928
30803
  var _this = this;
30929
- return __generator$5(this, function (_a) {
30804
+ return __generator$6(this, function (_a) {
30930
30805
  switch (_a.label) {
30931
30806
  case 0:
30932
30807
  key = address.asKey();
@@ -30989,9 +30864,9 @@ var Pool = /** @class */ (function () {
30989
30864
  });
30990
30865
  };
30991
30866
  Pool.prototype._purgeKey = function (key) {
30992
- return __awaiter$5(this, void 0, void 0, function () {
30867
+ return __awaiter$6(this, void 0, void 0, function () {
30993
30868
  var pool, destructionList, resource;
30994
- return __generator$5(this, function (_a) {
30869
+ return __generator$6(this, function (_a) {
30995
30870
  switch (_a.label) {
30996
30871
  case 0:
30997
30872
  pool = this._pools[key];
@@ -31186,9 +31061,7 @@ pool.default = Pool;
31186
31061
  (function (exports) {
31187
31062
  /**
31188
31063
  * Copyright (c) "Neo4j"
31189
- * Neo4j Sweden AB [http://neo4j.com]
31190
- *
31191
- * This file is part of Neo4j.
31064
+ * Neo4j Sweden AB [https://neo4j.com]
31192
31065
  *
31193
31066
  * Licensed under the Apache License, Version 2.0 (the "License");
31194
31067
  * you may not use this file except in compliance with the License.
@@ -31245,9 +31118,7 @@ var connectionProviderSingle = {};
31245
31118
 
31246
31119
  /**
31247
31120
  * Copyright (c) "Neo4j"
31248
- * Neo4j Sweden AB [http://neo4j.com]
31249
- *
31250
- * This file is part of Neo4j.
31121
+ * Neo4j Sweden AB [https://neo4j.com]
31251
31122
  *
31252
31123
  * Licensed under the Apache License, Version 2.0 (the "License");
31253
31124
  * you may not use this file except in compliance with the License.
@@ -31366,6 +31237,23 @@ var Connection = /** @class */ (function (_super) {
31366
31237
  enumerable: false,
31367
31238
  configurable: true
31368
31239
  });
31240
+ Object.defineProperty(Connection.prototype, "creationTimestamp", {
31241
+ get: function () {
31242
+ throw new Error('not implemented');
31243
+ },
31244
+ enumerable: false,
31245
+ configurable: true
31246
+ });
31247
+ Object.defineProperty(Connection.prototype, "idleTimestamp", {
31248
+ get: function () {
31249
+ throw new Error('not implemented');
31250
+ },
31251
+ set: function (value) {
31252
+ throw new Error('not implemented');
31253
+ },
31254
+ enumerable: false,
31255
+ configurable: true
31256
+ });
31369
31257
  /**
31370
31258
  * @returns {BoltProtocol} the underlying bolt protocol assigned to this connection
31371
31259
  */
@@ -31450,9 +31338,7 @@ var connectionChannel = {};
31450
31338
 
31451
31339
  /**
31452
31340
  * Copyright (c) "Neo4j"
31453
- * Neo4j Sweden AB [http://neo4j.com]
31454
- *
31455
- * This file is part of Neo4j.
31341
+ * Neo4j Sweden AB [https://neo4j.com]
31456
31342
  *
31457
31343
  * Licensed under the Apache License, Version 2.0 (the "License");
31458
31344
  * you may not use this file except in compliance with the License.
@@ -31481,7 +31367,7 @@ var __extends$4 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
31481
31367
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
31482
31368
  };
31483
31369
  })();
31484
- var __awaiter$4 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
31370
+ var __awaiter$5 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
31485
31371
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
31486
31372
  return new (P || (P = Promise))(function (resolve, reject) {
31487
31373
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -31490,7 +31376,7 @@ var __awaiter$4 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
31490
31376
  step((generator = generator.apply(thisArg, _arguments || [])).next());
31491
31377
  });
31492
31378
  };
31493
- var __generator$4 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
31379
+ var __generator$5 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
31494
31380
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
31495
31381
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
31496
31382
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -31559,7 +31445,7 @@ function createChannelConnection(address, config, errorHandler, log, serversideR
31559
31445
  server: conn.server,
31560
31446
  log: conn.logger,
31561
31447
  observer: {
31562
- onPendingObserversChange: conn._handleOngoingRequestsNumberChange.bind(conn),
31448
+ onObserversCountChange: conn._handleOngoingRequestsNumberChange.bind(conn),
31563
31449
  onError: conn._handleFatalError.bind(conn),
31564
31450
  onFailure: conn._resetOnFailure.bind(conn),
31565
31451
  onProtocolError: conn._handleProtocolError.bind(conn),
@@ -31599,12 +31485,13 @@ var ChannelConnection = /** @class */ (function (_super) {
31599
31485
  if (serversideRouting === void 0) { serversideRouting = null; }
31600
31486
  var _this = _super.call(this, errorHandler) || this;
31601
31487
  _this._authToken = null;
31488
+ _this._idle = false;
31602
31489
  _this._reseting = false;
31603
31490
  _this._resetObservers = [];
31604
31491
  _this._id = idGenerator++;
31605
31492
  _this._address = address;
31606
31493
  _this._server = { address: address.asHostPort() };
31607
- _this.creationTimestamp = Date.now();
31494
+ _this._creationTimestamp = Date.now();
31608
31495
  _this._disableLosslessIntegers = disableLosslessIntegers;
31609
31496
  _this._ch = channel;
31610
31497
  _this._chunker = chunker;
@@ -31693,6 +31580,23 @@ var ChannelConnection = /** @class */ (function (_super) {
31693
31580
  enumerable: false,
31694
31581
  configurable: true
31695
31582
  });
31583
+ Object.defineProperty(ChannelConnection.prototype, "idleTimestamp", {
31584
+ get: function () {
31585
+ return this._idleTimestamp;
31586
+ },
31587
+ set: function (value) {
31588
+ this._idleTimestamp = value;
31589
+ },
31590
+ enumerable: false,
31591
+ configurable: true
31592
+ });
31593
+ Object.defineProperty(ChannelConnection.prototype, "creationTimestamp", {
31594
+ get: function () {
31595
+ return this._creationTimestamp;
31596
+ },
31597
+ enumerable: false,
31598
+ configurable: true
31599
+ });
31696
31600
  /**
31697
31601
  * Send initialization message.
31698
31602
  * @param {string} userAgent the user agent for this driver.
@@ -31702,9 +31606,9 @@ var ChannelConnection = /** @class */ (function (_super) {
31702
31606
  * @return {Promise<Connection>} promise resolved with the current connection if connection is successful. Rejected promise otherwise.
31703
31607
  */
31704
31608
  ChannelConnection.prototype.connect = function (userAgent, boltAgent, authToken, waitReAuth) {
31705
- return __awaiter$4(this, void 0, void 0, function () {
31609
+ return __awaiter$5(this, void 0, void 0, function () {
31706
31610
  var _this = this;
31707
- return __generator$4(this, function (_a) {
31611
+ return __generator$5(this, function (_a) {
31708
31612
  switch (_a.label) {
31709
31613
  case 0:
31710
31614
  if (this._protocol.initialized && !this._protocol.supportsReAuth) {
@@ -31850,7 +31754,24 @@ var ChannelConnection = /** @class */ (function (_super) {
31850
31754
  this._protocol.notifyFatalError(this._error);
31851
31755
  };
31852
31756
  /**
31853
- * This method still here because it's used by the {@link PooledConnectionProvider}
31757
+ * This method is used by the {@link PooledConnectionProvider}
31758
+ *
31759
+ * @param {any} observer
31760
+ */
31761
+ ChannelConnection.prototype._setIdle = function (observer) {
31762
+ this._idle = true;
31763
+ this._ch.stopReceiveTimeout();
31764
+ this._protocol.queueObserverIfProtocolIsNotBroken(observer);
31765
+ };
31766
+ /**
31767
+ * This method is used by the {@link PooledConnectionProvider}
31768
+ */
31769
+ ChannelConnection.prototype._unsetIdle = function () {
31770
+ this._idle = false;
31771
+ this._updateCurrentObserver();
31772
+ };
31773
+ /**
31774
+ * This method still here because of the connection-channel.tests.js
31854
31775
  *
31855
31776
  * @param {any} observer
31856
31777
  */
@@ -31858,7 +31779,7 @@ var ChannelConnection = /** @class */ (function (_super) {
31858
31779
  return this._protocol.queueObserverIfProtocolIsNotBroken(observer);
31859
31780
  };
31860
31781
  ChannelConnection.prototype.hasOngoingObservableRequests = function () {
31861
- return this._protocol.hasOngoingObservableRequests();
31782
+ return !this._idle && this._protocol.hasOngoingObservableRequests();
31862
31783
  };
31863
31784
  /**
31864
31785
  * Send a RESET-message to the database. Message is immediately flushed to the network.
@@ -31949,6 +31870,9 @@ var ChannelConnection = /** @class */ (function (_super) {
31949
31870
  * @param {number} requestsNumber Ongoing requests number
31950
31871
  */
31951
31872
  ChannelConnection.prototype._handleOngoingRequestsNumberChange = function (requestsNumber) {
31873
+ if (this._idle) {
31874
+ return;
31875
+ }
31952
31876
  if (requestsNumber === 0) {
31953
31877
  this._ch.stopReceiveTimeout();
31954
31878
  }
@@ -31961,8 +31885,8 @@ var ChannelConnection = /** @class */ (function (_super) {
31961
31885
  * @returns {Promise<void>} - A promise that will be resolved when the underlying channel is closed.
31962
31886
  */
31963
31887
  ChannelConnection.prototype.close = function () {
31964
- return __awaiter$4(this, void 0, void 0, function () {
31965
- return __generator$4(this, function (_a) {
31888
+ return __awaiter$5(this, void 0, void 0, function () {
31889
+ return __generator$5(this, function (_a) {
31966
31890
  switch (_a.label) {
31967
31891
  case 0:
31968
31892
  if (this._log.isDebugEnabled()) {
@@ -32013,9 +31937,7 @@ var connectionDelegate = {};
32013
31937
 
32014
31938
  /**
32015
31939
  * Copyright (c) "Neo4j"
32016
- * Neo4j Sweden AB [http://neo4j.com]
32017
- *
32018
- * This file is part of Neo4j.
31940
+ * Neo4j Sweden AB [https://neo4j.com]
32019
31941
  *
32020
31942
  * Licensed under the Apache License, Version 2.0 (the "License");
32021
31943
  * you may not use this file except in compliance with the License.
@@ -32137,6 +32059,23 @@ var DelegateConnection = /** @class */ (function (_super) {
32137
32059
  enumerable: false,
32138
32060
  configurable: true
32139
32061
  });
32062
+ Object.defineProperty(DelegateConnection.prototype, "creationTimestamp", {
32063
+ get: function () {
32064
+ return this._delegate.creationTimestamp;
32065
+ },
32066
+ enumerable: false,
32067
+ configurable: true
32068
+ });
32069
+ Object.defineProperty(DelegateConnection.prototype, "idleTimestamp", {
32070
+ get: function () {
32071
+ return this._delegate.idleTimestamp;
32072
+ },
32073
+ set: function (value) {
32074
+ this._delegate.idleTimestamp = value;
32075
+ },
32076
+ enumerable: false,
32077
+ configurable: true
32078
+ });
32140
32079
  DelegateConnection.prototype.isOpen = function () {
32141
32080
  return this._delegate.isOpen();
32142
32081
  };
@@ -32172,9 +32111,7 @@ var connectionErrorHandler = {};
32172
32111
 
32173
32112
  /**
32174
32113
  * Copyright (c) "Neo4j"
32175
- * Neo4j Sweden AB [http://neo4j.com]
32176
- *
32177
- * This file is part of Neo4j.
32114
+ * Neo4j Sweden AB [https://neo4j.com]
32178
32115
  *
32179
32116
  * Licensed under the Apache License, Version 2.0 (the "License");
32180
32117
  * you may not use this file except in compliance with the License.
@@ -32257,9 +32194,7 @@ function noOpHandler(error) {
32257
32194
  (function (exports) {
32258
32195
  /**
32259
32196
  * Copyright (c) "Neo4j"
32260
- * Neo4j Sweden AB [http://neo4j.com]
32261
- *
32262
- * This file is part of Neo4j.
32197
+ * Neo4j Sweden AB [https://neo4j.com]
32263
32198
  *
32264
32199
  * Licensed under the Apache License, Version 2.0 (the "License");
32265
32200
  * you may not use this file except in compliance with the License.
@@ -32317,9 +32252,7 @@ var authenticationProvider = {};
32317
32252
 
32318
32253
  /**
32319
32254
  * Copyright (c) "Neo4j"
32320
- * Neo4j Sweden AB [http://neo4j.com]
32321
- *
32322
- * This file is part of Neo4j.
32255
+ * Neo4j Sweden AB [https://neo4j.com]
32323
32256
  *
32324
32257
  * Licensed under the Apache License, Version 2.0 (the "License");
32325
32258
  * you may not use this file except in compliance with the License.
@@ -32333,7 +32266,7 @@ var authenticationProvider = {};
32333
32266
  * See the License for the specific language governing permissions and
32334
32267
  * limitations under the License.
32335
32268
  */
32336
- var __awaiter$3 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
32269
+ var __awaiter$4 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
32337
32270
  function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32338
32271
  return new (P || (P = Promise))(function (resolve, reject) {
32339
32272
  function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
@@ -32342,7 +32275,7 @@ var __awaiter$3 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (this
32342
32275
  step((generator = generator.apply(thisArg, _arguments || [])).next());
32343
32276
  });
32344
32277
  };
32345
- var __generator$3 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
32278
+ var __generator$4 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
32346
32279
  var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
32347
32280
  return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
32348
32281
  function verb(n) { return function (v) { return step([n, v]); }; }
@@ -32384,9 +32317,9 @@ var AuthenticationProvider = /** @class */ (function () {
32384
32317
  }
32385
32318
  AuthenticationProvider.prototype.authenticate = function (_a) {
32386
32319
  var connection = _a.connection, auth = _a.auth, skipReAuth = _a.skipReAuth, waitReAuth = _a.waitReAuth, forceReAuth = _a.forceReAuth;
32387
- return __awaiter$3(this, void 0, void 0, function () {
32320
+ return __awaiter$4(this, void 0, void 0, function () {
32388
32321
  var shouldReAuth, authToken;
32389
- return __generator$3(this, function (_b) {
32322
+ return __generator$4(this, function (_b) {
32390
32323
  switch (_b.label) {
32391
32324
  case 0:
32392
32325
  if (!(auth != null)) return [3 /*break*/, 3];
@@ -32419,11 +32352,109 @@ var AuthenticationProvider = /** @class */ (function () {
32419
32352
  }());
32420
32353
  authenticationProvider.default = AuthenticationProvider;
32421
32354
 
32355
+ var livenessCheckProvider = {};
32356
+
32357
+ var __awaiter$3 = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
32358
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32359
+ return new (P || (P = Promise))(function (resolve, reject) {
32360
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
32361
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
32362
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
32363
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
32364
+ });
32365
+ };
32366
+ var __generator$3 = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
32367
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
32368
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
32369
+ function verb(n) { return function (v) { return step([n, v]); }; }
32370
+ function step(op) {
32371
+ if (f) throw new TypeError("Generator is already executing.");
32372
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
32373
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
32374
+ if (y = 0, t) op = [op[0] & 2, t.value];
32375
+ switch (op[0]) {
32376
+ case 0: case 1: t = op; break;
32377
+ case 4: _.label++; return { value: op[1], done: false };
32378
+ case 5: _.label++; y = op[1]; op = [0]; continue;
32379
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
32380
+ default:
32381
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
32382
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
32383
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
32384
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
32385
+ if (t[2]) _.ops.pop();
32386
+ _.trys.pop(); continue;
32387
+ }
32388
+ op = body.call(thisArg, _);
32389
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
32390
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
32391
+ }
32392
+ };
32393
+ Object.defineProperty(livenessCheckProvider, "__esModule", { value: true });
32422
32394
  /**
32423
32395
  * Copyright (c) "Neo4j"
32424
- * Neo4j Sweden AB [http://neo4j.com]
32396
+ * Neo4j Sweden AB [https://neo4j.com]
32397
+ *
32398
+ * Licensed under the Apache License, Version 2.0 (the "License");
32399
+ * you may not use this file except in compliance with the License.
32400
+ * You may obtain a copy of the License at
32401
+ *
32402
+ * http://www.apache.org/licenses/LICENSE-2.0
32425
32403
  *
32426
- * This file is part of Neo4j.
32404
+ * Unless required by applicable law or agreed to in writing, software
32405
+ * distributed under the License is distributed on an "AS IS" BASIS,
32406
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32407
+ * See the License for the specific language governing permissions and
32408
+ * limitations under the License.
32409
+ */
32410
+ var LivenessCheckProvider = /** @class */ (function () {
32411
+ function LivenessCheckProvider(_a) {
32412
+ var connectionLivenessCheckTimeout = _a.connectionLivenessCheckTimeout;
32413
+ this._connectionLivenessCheckTimeout = connectionLivenessCheckTimeout;
32414
+ }
32415
+ /**
32416
+ * Checks connection liveness with configured params.
32417
+ *
32418
+ * @param {Connection} connection
32419
+ * @returns {Promise<true>} If liveness checks succeed, throws otherwise
32420
+ */
32421
+ LivenessCheckProvider.prototype.check = function (connection) {
32422
+ return __awaiter$3(this, void 0, void 0, function () {
32423
+ var idleFor;
32424
+ return __generator$3(this, function (_a) {
32425
+ switch (_a.label) {
32426
+ case 0:
32427
+ if (this._isCheckDisabled || this._isNewlyCreatedConnection(connection)) {
32428
+ return [2 /*return*/, true];
32429
+ }
32430
+ idleFor = Date.now() - connection.idleTimestamp;
32431
+ if (!(this._connectionLivenessCheckTimeout === 0 ||
32432
+ idleFor > this._connectionLivenessCheckTimeout)) return [3 /*break*/, 2];
32433
+ return [4 /*yield*/, connection.resetAndFlush()
32434
+ .then(function () { return true; })];
32435
+ case 1: return [2 /*return*/, _a.sent()];
32436
+ case 2: return [2 /*return*/, true];
32437
+ }
32438
+ });
32439
+ });
32440
+ };
32441
+ Object.defineProperty(LivenessCheckProvider.prototype, "_isCheckDisabled", {
32442
+ get: function () {
32443
+ return this._connectionLivenessCheckTimeout == null || this._connectionLivenessCheckTimeout < 0;
32444
+ },
32445
+ enumerable: false,
32446
+ configurable: true
32447
+ });
32448
+ LivenessCheckProvider.prototype._isNewlyCreatedConnection = function (connection) {
32449
+ return connection.authToken == null;
32450
+ };
32451
+ return LivenessCheckProvider;
32452
+ }());
32453
+ livenessCheckProvider.default = LivenessCheckProvider;
32454
+
32455
+ /**
32456
+ * Copyright (c) "Neo4j"
32457
+ * Neo4j Sweden AB [https://neo4j.com]
32427
32458
  *
32428
32459
  * Licensed under the Apache License, Version 2.0 (the "License");
32429
32460
  * you may not use this file except in compliance with the License.
@@ -32545,6 +32576,7 @@ var pool_1 = __importStar$1(pool$1);
32545
32576
  var neo4j_driver_core_1$3 = lib$1;
32546
32577
  var authentication_provider_1 = __importDefault$4(authenticationProvider);
32547
32578
  var lang_1$1 = lang;
32579
+ var liveness_check_provider_1 = __importDefault$4(livenessCheckProvider);
32548
32580
  var SERVICE_UNAVAILABLE$2 = neo4j_driver_core_1$3.error.SERVICE_UNAVAILABLE;
32549
32581
  var AUTHENTICATION_ERRORS = [
32550
32582
  'Neo.ClientError.Security.CredentialsExpired',
@@ -32568,6 +32600,7 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
32568
32600
  _this._config = config;
32569
32601
  _this._log = log;
32570
32602
  _this._authenticationProvider = new authentication_provider_1.default({ authTokenManager: authTokenManager, userAgent: userAgent, boltAgent: boltAgent });
32603
+ _this._livenessCheckProvider = new liveness_check_provider_1.default({ connectionLivenessCheckTimeout: config.connectionLivenessCheckTimeout });
32571
32604
  _this._userAgent = userAgent;
32572
32605
  _this._boltAgent = boltAgent;
32573
32606
  _this._createChannelConnection =
@@ -32601,6 +32634,7 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
32601
32634
  var auth = _a.auth;
32602
32635
  return this._createChannelConnection(address).then(function (connection) {
32603
32636
  connection.release = function () {
32637
+ connection.idleTimestamp = Date.now();
32604
32638
  return release(address, connection);
32605
32639
  };
32606
32640
  _this._openConnections[connection.id] = connection;
@@ -32616,7 +32650,7 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
32616
32650
  PooledConnectionProvider.prototype._validateConnectionOnAcquire = function (_a, conn) {
32617
32651
  var auth = _a.auth, skipReAuth = _a.skipReAuth;
32618
32652
  return __awaiter$2(this, void 0, void 0, function () {
32619
- var error_1;
32653
+ var error_1, error_2;
32620
32654
  return __generator$2(this, function (_b) {
32621
32655
  switch (_b.label) {
32622
32656
  case 0:
@@ -32626,15 +32660,25 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
32626
32660
  _b.label = 1;
32627
32661
  case 1:
32628
32662
  _b.trys.push([1, 3, , 4]);
32629
- return [4 /*yield*/, this._authenticationProvider.authenticate({ connection: conn, auth: auth, skipReAuth: skipReAuth })];
32663
+ return [4 /*yield*/, this._livenessCheckProvider.check(conn)];
32630
32664
  case 2:
32631
32665
  _b.sent();
32632
- return [2 /*return*/, true];
32666
+ return [3 /*break*/, 4];
32633
32667
  case 3:
32634
32668
  error_1 = _b.sent();
32635
- this._log.debug("The connection ".concat(conn.id, " is not valid because of an error ").concat(error_1.code, " '").concat(error_1.message, "'"));
32669
+ this._log.debug("The connection ".concat(conn.id, " is not alive because of an error ").concat(error_1.code, " '").concat(error_1.message, "'"));
32636
32670
  return [2 /*return*/, false];
32637
- case 4: return [2 /*return*/];
32671
+ case 4:
32672
+ _b.trys.push([4, 6, , 7]);
32673
+ return [4 /*yield*/, this._authenticationProvider.authenticate({ connection: conn, auth: auth, skipReAuth: skipReAuth })];
32674
+ case 5:
32675
+ _b.sent();
32676
+ return [2 /*return*/, true];
32677
+ case 6:
32678
+ error_2 = _b.sent();
32679
+ this._log.debug("The connection ".concat(conn.id, " is not valid because of an error ").concat(error_2.code, " '").concat(error_2.message, "'"));
32680
+ return [2 /*return*/, false];
32681
+ case 7: return [2 /*return*/];
32638
32682
  }
32639
32683
  });
32640
32684
  });
@@ -32704,7 +32748,7 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
32704
32748
  PooledConnectionProvider.prototype._verifyAuthentication = function (_a) {
32705
32749
  var getAddress = _a.getAddress, auth = _a.auth;
32706
32750
  return __awaiter$2(this, void 0, void 0, function () {
32707
- var connectionsToRelease, address, connection, lastMessageIsNotLogin, stickyConnection, error_2;
32751
+ var connectionsToRelease, address, connection, lastMessageIsNotLogin, stickyConnection, error_3;
32708
32752
  return __generator$2(this, function (_b) {
32709
32753
  switch (_b.label) {
32710
32754
  case 0:
@@ -32738,11 +32782,11 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
32738
32782
  _b.label = 7;
32739
32783
  case 7: return [2 /*return*/, true];
32740
32784
  case 8:
32741
- error_2 = _b.sent();
32742
- if (AUTHENTICATION_ERRORS.includes(error_2.code)) {
32785
+ error_3 = _b.sent();
32786
+ if (AUTHENTICATION_ERRORS.includes(error_3.code)) {
32743
32787
  return [2 /*return*/, false];
32744
32788
  }
32745
- throw error_2;
32789
+ throw error_3;
32746
32790
  case 9: return [4 /*yield*/, Promise.all(connectionsToRelease.map(function (conn) { return conn.release(); }))];
32747
32791
  case 10:
32748
32792
  _b.sent();
@@ -32798,10 +32842,10 @@ var PooledConnectionProvider = /** @class */ (function (_super) {
32798
32842
  });
32799
32843
  };
32800
32844
  PooledConnectionProvider._installIdleObserverOnConnection = function (conn, observer) {
32801
- conn._queueObserver(observer);
32845
+ conn._setIdle(observer);
32802
32846
  };
32803
32847
  PooledConnectionProvider._removeIdleObserverOnConnection = function (conn) {
32804
- conn._updateCurrentObserver();
32848
+ conn._unsetIdle();
32805
32849
  };
32806
32850
  PooledConnectionProvider.prototype._handleSecurityError = function (error, address, connection) {
32807
32851
  var handled = this._authenticationProvider.handleError({ connection: connection, code: error.code });
@@ -32824,9 +32868,7 @@ var connectionProviderDirect = {};
32824
32868
 
32825
32869
  /**
32826
32870
  * Copyright (c) "Neo4j"
32827
- * Neo4j Sweden AB [http://neo4j.com]
32828
- *
32829
- * This file is part of Neo4j.
32871
+ * Neo4j Sweden AB [https://neo4j.com]
32830
32872
  *
32831
32873
  * Licensed under the Apache License, Version 2.0 (the "License");
32832
32874
  * you may not use this file except in compliance with the License.
@@ -33079,9 +33121,7 @@ Object.defineProperty(routingTable, "__esModule", { value: true });
33079
33121
  routingTable.createValidRoutingTable = void 0;
33080
33122
  /**
33081
33123
  * Copyright (c) "Neo4j"
33082
- * Neo4j Sweden AB [http://neo4j.com]
33083
- *
33084
- * This file is part of Neo4j.
33124
+ * Neo4j Sweden AB [https://neo4j.com]
33085
33125
  *
33086
33126
  * Licensed under the Apache License, Version 2.0 (the "License");
33087
33127
  * you may not use this file except in compliance with the License.
@@ -33294,9 +33334,7 @@ var __importDefault$2 = (commonjsGlobal && commonjsGlobal.__importDefault) || fu
33294
33334
  Object.defineProperty(rediscovery, "__esModule", { value: true });
33295
33335
  /**
33296
33336
  * Copyright (c) "Neo4j"
33297
- * Neo4j Sweden AB [http://neo4j.com]
33298
- *
33299
- * This file is part of Neo4j.
33337
+ * Neo4j Sweden AB [https://neo4j.com]
33300
33338
  *
33301
33339
  * Licensed under the Apache License, Version 2.0 (the "License");
33302
33340
  * you may not use this file except in compliance with the License.
@@ -33362,9 +33400,7 @@ rediscovery.default = Rediscovery;
33362
33400
 
33363
33401
  /**
33364
33402
  * Copyright (c) "Neo4j"
33365
- * Neo4j Sweden AB [http://neo4j.com]
33366
- *
33367
- * This file is part of Neo4j.
33403
+ * Neo4j Sweden AB [https://neo4j.com]
33368
33404
  *
33369
33405
  * Licensed under the Apache License, Version 2.0 (the "License");
33370
33406
  * you may not use this file except in compliance with the License.
@@ -33391,9 +33427,7 @@ rediscovery$1.default = rediscovery_1$1.default;
33391
33427
 
33392
33428
  /**
33393
33429
  * Copyright (c) "Neo4j"
33394
- * Neo4j Sweden AB [http://neo4j.com]
33395
- *
33396
- * This file is part of Neo4j.
33430
+ * Neo4j Sweden AB [https://neo4j.com]
33397
33431
  *
33398
33432
  * Licensed under the Apache License, Version 2.0 (the "License");
33399
33433
  * you may not use this file except in compliance with the License.
@@ -34272,9 +34306,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
34272
34306
  exports.RoutingConnectionProvider = exports.DirectConnectionProvider = exports.PooledConnectionProvider = exports.SingleConnectionProvider = void 0;
34273
34307
  /**
34274
34308
  * Copyright (c) "Neo4j"
34275
- * Neo4j Sweden AB [http://neo4j.com]
34276
- *
34277
- * This file is part of Neo4j.
34309
+ * Neo4j Sweden AB [https://neo4j.com]
34278
34310
  *
34279
34311
  * Licensed under the Apache License, Version 2.0 (the "License");
34280
34312
  * you may not use this file except in compliance with the License.
@@ -34301,9 +34333,7 @@ Object.defineProperty(exports, "RoutingConnectionProvider", { enumerable: true,
34301
34333
  (function (exports) {
34302
34334
  /**
34303
34335
  * Copyright (c) "Neo4j"
34304
- * Neo4j Sweden AB [http://neo4j.com]
34305
- *
34306
- * This file is part of Neo4j.
34336
+ * Neo4j Sweden AB [https://neo4j.com]
34307
34337
  *
34308
34338
  * Licensed under the Apache License, Version 2.0 (the "License");
34309
34339
  * you may not use this file except in compliance with the License.
@@ -34399,9 +34429,7 @@ exports.Path = exports.UnboundRelationship = exports.Relationship = exports.Node
34399
34429
  exports.notificationFilterMinimumSeverityLevel = exports.notificationFilterDisabledCategory = exports.notificationSeverityLevel = exports.notificationCategory = exports.resultTransformers = exports.bookmarkManager = exports.DateTime = exports.LocalDateTime = exports.Date = exports.Time = exports.LocalTime = exports.Duration = exports.Integer = exports.Point = exports.PathSegment = void 0;
34400
34430
  /**
34401
34431
  * Copyright (c) "Neo4j"
34402
- * Neo4j Sweden AB [http://neo4j.com]
34403
- *
34404
- * This file is part of Neo4j.
34432
+ * Neo4j Sweden AB [https://neo4j.com]
34405
34433
  *
34406
34434
  * Licensed under the Apache License, Version 2.0 (the "License");
34407
34435
  * you may not use this file except in compliance with the License.