neo4j-driver 5.22.0 → 5.23.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.
- package/lib/browser/neo4j-web.esm.js +736 -635
- package/lib/browser/neo4j-web.esm.min.js +1 -1
- package/lib/browser/neo4j-web.js +736 -635
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
|
@@ -28,7 +28,7 @@ var error = {};
|
|
|
28
28
|
* See the License for the specific language governing permissions and
|
|
29
29
|
* limitations under the License.
|
|
30
30
|
*/
|
|
31
|
-
var __extends$
|
|
31
|
+
var __extends$Q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
32
32
|
var extendStatics = function (d, b) {
|
|
33
33
|
extendStatics = Object.setPrototypeOf ||
|
|
34
34
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -75,7 +75,7 @@ var NOT_AVAILABLE$1 = 'N/A';
|
|
|
75
75
|
* Class for all errors thrown/returned by the driver.
|
|
76
76
|
*/
|
|
77
77
|
var Neo4jError = /** @class */ (function (_super) {
|
|
78
|
-
__extends$
|
|
78
|
+
__extends$Q(Neo4jError, _super);
|
|
79
79
|
/**
|
|
80
80
|
* @constructor
|
|
81
81
|
* @param {string} message - the error message
|
|
@@ -3838,7 +3838,7 @@ var constants$1 = {};
|
|
|
3838
3838
|
* limitations under the License.
|
|
3839
3839
|
*/
|
|
3840
3840
|
Object.defineProperty(constants$1, "__esModule", { value: true });
|
|
3841
|
-
constants$1.TELEMETRY_APIS = constants$1.BOLT_PROTOCOL_V5_5 = constants$1.BOLT_PROTOCOL_V5_4 = constants$1.BOLT_PROTOCOL_V5_3 = constants$1.BOLT_PROTOCOL_V5_2 = constants$1.BOLT_PROTOCOL_V5_1 = constants$1.BOLT_PROTOCOL_V5_0 = constants$1.BOLT_PROTOCOL_V4_4 = constants$1.BOLT_PROTOCOL_V4_3 = constants$1.BOLT_PROTOCOL_V4_2 = constants$1.BOLT_PROTOCOL_V4_1 = constants$1.BOLT_PROTOCOL_V4_0 = constants$1.BOLT_PROTOCOL_V3 = constants$1.BOLT_PROTOCOL_V2 = constants$1.BOLT_PROTOCOL_V1 = constants$1.DEFAULT_POOL_MAX_SIZE = constants$1.DEFAULT_POOL_ACQUISITION_TIMEOUT = constants$1.DEFAULT_CONNECTION_TIMEOUT_MILLIS = constants$1.ACCESS_MODE_WRITE = constants$1.ACCESS_MODE_READ = constants$1.FETCH_ALL = void 0;
|
|
3841
|
+
constants$1.TELEMETRY_APIS = constants$1.BOLT_PROTOCOL_V5_6 = constants$1.BOLT_PROTOCOL_V5_5 = constants$1.BOLT_PROTOCOL_V5_4 = constants$1.BOLT_PROTOCOL_V5_3 = constants$1.BOLT_PROTOCOL_V5_2 = constants$1.BOLT_PROTOCOL_V5_1 = constants$1.BOLT_PROTOCOL_V5_0 = constants$1.BOLT_PROTOCOL_V4_4 = constants$1.BOLT_PROTOCOL_V4_3 = constants$1.BOLT_PROTOCOL_V4_2 = constants$1.BOLT_PROTOCOL_V4_1 = constants$1.BOLT_PROTOCOL_V4_0 = constants$1.BOLT_PROTOCOL_V3 = constants$1.BOLT_PROTOCOL_V2 = constants$1.BOLT_PROTOCOL_V1 = constants$1.DEFAULT_POOL_MAX_SIZE = constants$1.DEFAULT_POOL_ACQUISITION_TIMEOUT = constants$1.DEFAULT_CONNECTION_TIMEOUT_MILLIS = constants$1.ACCESS_MODE_WRITE = constants$1.ACCESS_MODE_READ = constants$1.FETCH_ALL = void 0;
|
|
3842
3842
|
var FETCH_ALL$7 = -1;
|
|
3843
3843
|
constants$1.FETCH_ALL = FETCH_ALL$7;
|
|
3844
3844
|
var DEFAULT_POOL_ACQUISITION_TIMEOUT = 60 * 1000; // 60 seconds
|
|
@@ -3879,6 +3879,8 @@ var BOLT_PROTOCOL_V5_4$1 = 5.4;
|
|
|
3879
3879
|
constants$1.BOLT_PROTOCOL_V5_4 = BOLT_PROTOCOL_V5_4$1;
|
|
3880
3880
|
var BOLT_PROTOCOL_V5_5$1 = 5.5;
|
|
3881
3881
|
constants$1.BOLT_PROTOCOL_V5_5 = BOLT_PROTOCOL_V5_5$1;
|
|
3882
|
+
var BOLT_PROTOCOL_V5_6$1 = 5.6;
|
|
3883
|
+
constants$1.BOLT_PROTOCOL_V5_6 = BOLT_PROTOCOL_V5_6$1;
|
|
3882
3884
|
var TELEMETRY_APIS$1 = {
|
|
3883
3885
|
MANAGED_TRANSACTION: 0,
|
|
3884
3886
|
UNMANAGED_TRANSACTION: 1,
|
|
@@ -3891,7 +3893,7 @@ var connectionHolder$1 = {};
|
|
|
3891
3893
|
|
|
3892
3894
|
var logger$1 = {};
|
|
3893
3895
|
|
|
3894
|
-
var __extends$
|
|
3896
|
+
var __extends$P = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
3895
3897
|
var extendStatics = function (d, b) {
|
|
3896
3898
|
extendStatics = Object.setPrototypeOf ||
|
|
3897
3899
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -4039,7 +4041,7 @@ var Logger$2 = /** @class */ (function () {
|
|
|
4039
4041
|
}());
|
|
4040
4042
|
logger$1.Logger = Logger$2;
|
|
4041
4043
|
var NoOpLogger = /** @class */ (function (_super) {
|
|
4042
|
-
__extends$
|
|
4044
|
+
__extends$P(NoOpLogger, _super);
|
|
4043
4045
|
function NoOpLogger() {
|
|
4044
4046
|
return _super.call(this, INFO, function (level, message) { }) || this;
|
|
4045
4047
|
}
|
|
@@ -4120,7 +4122,7 @@ function extractConfiguredLogger(loggingConfig) {
|
|
|
4120
4122
|
* limitations under the License.
|
|
4121
4123
|
*/
|
|
4122
4124
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
4123
|
-
var __extends$
|
|
4125
|
+
var __extends$O = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
4124
4126
|
var extendStatics = function (d, b) {
|
|
4125
4127
|
extendStatics = Object.setPrototypeOf ||
|
|
4126
4128
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -4338,7 +4340,7 @@ connectionHolder$1.ConnectionHolder = ConnectionHolder;
|
|
|
4338
4340
|
* releasing or initilizing
|
|
4339
4341
|
*/
|
|
4340
4342
|
var ReadOnlyConnectionHolder = /** @class */ (function (_super) {
|
|
4341
|
-
__extends$
|
|
4343
|
+
__extends$O(ReadOnlyConnectionHolder, _super);
|
|
4342
4344
|
/**
|
|
4343
4345
|
* Constructor
|
|
4344
4346
|
* @param {ConnectionHolder} connectionHolder the connection holder which will treat the requests
|
|
@@ -4393,7 +4395,7 @@ var ReadOnlyConnectionHolder = /** @class */ (function (_super) {
|
|
|
4393
4395
|
connectionHolder$1.ReadOnlyConnectionHolder = ReadOnlyConnectionHolder;
|
|
4394
4396
|
connectionHolder$1.default = ReadOnlyConnectionHolder;
|
|
4395
4397
|
var EmptyConnectionHolder = /** @class */ (function (_super) {
|
|
4396
|
-
__extends$
|
|
4398
|
+
__extends$O(EmptyConnectionHolder, _super);
|
|
4397
4399
|
function EmptyConnectionHolder() {
|
|
4398
4400
|
return _super.call(this, {
|
|
4399
4401
|
// Empty logger
|
|
@@ -4577,8 +4579,8 @@ function assertValidConfig(config) {
|
|
|
4577
4579
|
|
|
4578
4580
|
var transactionExecutor$1 = {};
|
|
4579
4581
|
|
|
4580
|
-
var __assign$
|
|
4581
|
-
__assign$
|
|
4582
|
+
var __assign$r = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
4583
|
+
__assign$r = Object.assign || function(t) {
|
|
4582
4584
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4583
4585
|
s = arguments[i];
|
|
4584
4586
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -4586,7 +4588,7 @@ var __assign$q = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
4586
4588
|
}
|
|
4587
4589
|
return t;
|
|
4588
4590
|
};
|
|
4589
|
-
return __assign$
|
|
4591
|
+
return __assign$r.apply(this, arguments);
|
|
4590
4592
|
};
|
|
4591
4593
|
var __awaiter$j = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
4592
4594
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
@@ -4754,7 +4756,7 @@ var TransactionExecutor = /** @class */ (function () {
|
|
|
4754
4756
|
case 0:
|
|
4755
4757
|
_b.trys.push([0, 4, , 5]);
|
|
4756
4758
|
txPromise = transactionCreator((executionContext === null || executionContext === void 0 ? void 0 : executionContext.apiTransactionConfig) != null
|
|
4757
|
-
? __assign$
|
|
4759
|
+
? __assign$r({}, executionContext === null || executionContext === void 0 ? void 0 : executionContext.apiTransactionConfig) : undefined);
|
|
4758
4760
|
if (!this.pipelineBegin) return [3 /*break*/, 1];
|
|
4759
4761
|
_a = txPromise;
|
|
4760
4762
|
return [3 /*break*/, 3];
|
|
@@ -4879,8 +4881,8 @@ var urlUtil$2 = {};
|
|
|
4879
4881
|
* See the License for the specific language governing permissions and
|
|
4880
4882
|
* limitations under the License.
|
|
4881
4883
|
*/
|
|
4882
|
-
var __assign$
|
|
4883
|
-
__assign$
|
|
4884
|
+
var __assign$q = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
4885
|
+
__assign$q = Object.assign || function(t) {
|
|
4884
4886
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4885
4887
|
s = arguments[i];
|
|
4886
4888
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -4888,7 +4890,7 @@ var __assign$p = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
4888
4890
|
}
|
|
4889
4891
|
return t;
|
|
4890
4892
|
};
|
|
4891
|
-
return __assign$
|
|
4893
|
+
return __assign$q.apply(this, arguments);
|
|
4892
4894
|
};
|
|
4893
4895
|
var __read$t = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
4894
4896
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -5150,7 +5152,7 @@ function uriJsParse(value) {
|
|
|
5150
5152
|
// Parse authority and path
|
|
5151
5153
|
if (value.startsWith('//')) {
|
|
5152
5154
|
parts = partition(value.substr(2), '/');
|
|
5153
|
-
parsed = __assign$
|
|
5155
|
+
parsed = __assign$q(__assign$q({}, parsed), parseAuthority(parts[0]));
|
|
5154
5156
|
parsed.path = parts[1] + parts[2];
|
|
5155
5157
|
}
|
|
5156
5158
|
else {
|
|
@@ -5324,7 +5326,7 @@ var ConfiguredCustomResolver = /** @class */ (function () {
|
|
|
5324
5326
|
}());
|
|
5325
5327
|
configuredCustomResolver.default = ConfiguredCustomResolver;
|
|
5326
5328
|
|
|
5327
|
-
var __importDefault$
|
|
5329
|
+
var __importDefault$X = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
5328
5330
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5329
5331
|
};
|
|
5330
5332
|
Object.defineProperty(resolver$1, "__esModule", { value: true });
|
|
@@ -5345,9 +5347,9 @@ resolver$1.ConfiguredCustomResolver = resolver$1.BaseHostNameResolver = void 0;
|
|
|
5345
5347
|
* See the License for the specific language governing permissions and
|
|
5346
5348
|
* limitations under the License.
|
|
5347
5349
|
*/
|
|
5348
|
-
var base_host_name_resolver_1 = __importDefault$
|
|
5350
|
+
var base_host_name_resolver_1 = __importDefault$X(baseHostNameResolver);
|
|
5349
5351
|
resolver$1.BaseHostNameResolver = base_host_name_resolver_1.default;
|
|
5350
|
-
var configured_custom_resolver_1$1 = __importDefault$
|
|
5352
|
+
var configured_custom_resolver_1$1 = __importDefault$X(configuredCustomResolver);
|
|
5351
5353
|
resolver$1.ConfiguredCustomResolver = configured_custom_resolver_1$1.default;
|
|
5352
5354
|
|
|
5353
5355
|
var browser$1 = {};
|
|
@@ -5510,8 +5512,8 @@ internal.boltAgent = boltAgent;
|
|
|
5510
5512
|
|
|
5511
5513
|
var notification = {};
|
|
5512
5514
|
|
|
5513
|
-
var __assign$
|
|
5514
|
-
__assign$
|
|
5515
|
+
var __assign$p = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5516
|
+
__assign$p = Object.assign || function(t) {
|
|
5515
5517
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5516
5518
|
s = arguments[i];
|
|
5517
5519
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -5519,7 +5521,7 @@ var __assign$o = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
5519
5521
|
}
|
|
5520
5522
|
return t;
|
|
5521
5523
|
};
|
|
5522
|
-
return __assign$
|
|
5524
|
+
return __assign$p.apply(this, arguments);
|
|
5523
5525
|
};
|
|
5524
5526
|
var __createBinding$7 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5525
5527
|
if (k2 === undefined) k2 = k;
|
|
@@ -5920,7 +5922,7 @@ function polyfillNotification(status) {
|
|
|
5920
5922
|
return new Notification$1({
|
|
5921
5923
|
code: status.neo4j_code,
|
|
5922
5924
|
title: status.title,
|
|
5923
|
-
description: status.
|
|
5925
|
+
description: status.description,
|
|
5924
5926
|
severity: (_a = status.diagnostic_record) === null || _a === void 0 ? void 0 : _a._severity,
|
|
5925
5927
|
category: (_b = status.diagnostic_record) === null || _b === void 0 ? void 0 : _b._classification,
|
|
5926
5928
|
position: (_c = status.diagnostic_record) === null || _c === void 0 ? void 0 : _c._position
|
|
@@ -5940,7 +5942,7 @@ function polyfillGqlStatusObject(notification) {
|
|
|
5940
5942
|
status_description: (_a = notification.description) !== null && _a !== void 0 ? _a : defaultStatus.status_description,
|
|
5941
5943
|
neo4j_code: notification.code,
|
|
5942
5944
|
title: notification.title,
|
|
5943
|
-
diagnostic_record: __assign$
|
|
5945
|
+
diagnostic_record: __assign$p({}, rawPolyfilledDiagnosticRecord)
|
|
5944
5946
|
};
|
|
5945
5947
|
if (notification.severity != null) {
|
|
5946
5948
|
polyfilledRawObj.diagnostic_record._severity = notification.severity;
|
|
@@ -5976,7 +5978,7 @@ var staticGqlStatusObjects = {
|
|
|
5976
5978
|
status_description: 'note: no data',
|
|
5977
5979
|
diagnostic_record: rawPolyfilledDiagnosticRecord
|
|
5978
5980
|
}),
|
|
5979
|
-
NO_DATA_UNKNOWN_SUBCONDITION: new GqlStatusObject(__assign$
|
|
5981
|
+
NO_DATA_UNKNOWN_SUBCONDITION: new GqlStatusObject(__assign$p(__assign$p({}, unknownGqlStatus.NO_DATA), { diagnostic_record: rawPolyfilledDiagnosticRecord })),
|
|
5980
5982
|
OMITTED_RESULT: new GqlStatusObject({
|
|
5981
5983
|
gql_status: '00001',
|
|
5982
5984
|
status_description: 'note: successful completion - omitted result',
|
|
@@ -6647,13 +6649,13 @@ var __generator$k = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
6647
6649
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
6648
6650
|
}
|
|
6649
6651
|
};
|
|
6650
|
-
var __importDefault$
|
|
6652
|
+
var __importDefault$W = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
6651
6653
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6652
6654
|
};
|
|
6653
6655
|
var _a$f;
|
|
6654
6656
|
Object.defineProperty(result, "__esModule", { value: true });
|
|
6655
6657
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
6656
|
-
var result_summary_1 = __importDefault$
|
|
6658
|
+
var result_summary_1 = __importDefault$W(resultSummary);
|
|
6657
6659
|
var internal_1$1 = internal;
|
|
6658
6660
|
var error_1$4 = error;
|
|
6659
6661
|
var EMPTY_CONNECTION_HOLDER = internal_1$1.connectionHolder.EMPTY_CONNECTION_HOLDER;
|
|
@@ -7597,7 +7599,7 @@ var __generator$j = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
7597
7599
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
7598
7600
|
}
|
|
7599
7601
|
};
|
|
7600
|
-
var __importDefault$
|
|
7602
|
+
var __importDefault$V = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
7601
7603
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
7602
7604
|
};
|
|
7603
7605
|
Object.defineProperty(transaction, "__esModule", { value: true });
|
|
@@ -7608,7 +7610,7 @@ var bookmarks_1$2 = bookmarks$1;
|
|
|
7608
7610
|
var tx_config_1$1 = txConfig$1;
|
|
7609
7611
|
var observers_1$1 = observers;
|
|
7610
7612
|
var error_1$3 = error;
|
|
7611
|
-
var result_1$1 = __importDefault$
|
|
7613
|
+
var result_1$1 = __importDefault$V(result);
|
|
7612
7614
|
/**
|
|
7613
7615
|
* Represents a transaction in the Neo4j database.
|
|
7614
7616
|
*
|
|
@@ -8156,7 +8158,7 @@ var transactionPromise = {};
|
|
|
8156
8158
|
* See the License for the specific language governing permissions and
|
|
8157
8159
|
* limitations under the License.
|
|
8158
8160
|
*/
|
|
8159
|
-
var __extends$
|
|
8161
|
+
var __extends$N = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
8160
8162
|
var extendStatics = function (d, b) {
|
|
8161
8163
|
extendStatics = Object.setPrototypeOf ||
|
|
8162
8164
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -8171,8 +8173,8 @@ var __extends$M = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
8171
8173
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
8172
8174
|
};
|
|
8173
8175
|
})();
|
|
8174
|
-
var __assign$
|
|
8175
|
-
__assign$
|
|
8176
|
+
var __assign$o = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
8177
|
+
__assign$o = Object.assign || function(t) {
|
|
8176
8178
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
8177
8179
|
s = arguments[i];
|
|
8178
8180
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -8180,15 +8182,15 @@ var __assign$n = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
8180
8182
|
}
|
|
8181
8183
|
return t;
|
|
8182
8184
|
};
|
|
8183
|
-
return __assign$
|
|
8185
|
+
return __assign$o.apply(this, arguments);
|
|
8184
8186
|
};
|
|
8185
|
-
var __importDefault$
|
|
8187
|
+
var __importDefault$U = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8186
8188
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8187
8189
|
};
|
|
8188
8190
|
var _a$e;
|
|
8189
8191
|
Object.defineProperty(transactionPromise, "__esModule", { value: true });
|
|
8190
8192
|
/* eslint-disable @typescript-eslint/promise-function-async */
|
|
8191
|
-
var transaction_1 = __importDefault$
|
|
8193
|
+
var transaction_1 = __importDefault$U(transaction);
|
|
8192
8194
|
/**
|
|
8193
8195
|
* Represents a {@link Promise<Transaction>} object and a {@link Transaction} object.
|
|
8194
8196
|
*
|
|
@@ -8200,7 +8202,7 @@ var transaction_1 = __importDefault$T(transaction);
|
|
|
8200
8202
|
* @access public
|
|
8201
8203
|
*/
|
|
8202
8204
|
var TransactionPromise = /** @class */ (function (_super) {
|
|
8203
|
-
__extends$
|
|
8205
|
+
__extends$N(TransactionPromise, _super);
|
|
8204
8206
|
/**
|
|
8205
8207
|
* @constructor
|
|
8206
8208
|
* @param {object} args
|
|
@@ -8281,7 +8283,7 @@ var TransactionPromise = /** @class */ (function (_super) {
|
|
|
8281
8283
|
* @access private
|
|
8282
8284
|
*/
|
|
8283
8285
|
TransactionPromise.prototype._toTransaction = function () {
|
|
8284
|
-
return __assign$
|
|
8286
|
+
return __assign$o(__assign$o({}, this), { run: _super.prototype.run.bind(this), commit: _super.prototype.commit.bind(this), rollback: _super.prototype.rollback.bind(this), close: _super.prototype.close.bind(this), isOpen: _super.prototype.isOpen.bind(this), _begin: this._begin.bind(this) });
|
|
8285
8287
|
};
|
|
8286
8288
|
/**
|
|
8287
8289
|
* @access private
|
|
@@ -8396,7 +8398,7 @@ var __spreadArray$l = (commonjsGlobal && commonjsGlobal.__spreadArray) || functi
|
|
|
8396
8398
|
}
|
|
8397
8399
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
8398
8400
|
};
|
|
8399
|
-
var __importDefault$
|
|
8401
|
+
var __importDefault$T = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
8400
8402
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8401
8403
|
};
|
|
8402
8404
|
Object.defineProperty(session, "__esModule", { value: true });
|
|
@@ -8405,13 +8407,13 @@ var observers_1 = observers;
|
|
|
8405
8407
|
var util_1$1 = util$4;
|
|
8406
8408
|
var constants_1$2 = constants$1;
|
|
8407
8409
|
var error_1$2 = error;
|
|
8408
|
-
var result_1 = __importDefault$
|
|
8410
|
+
var result_1 = __importDefault$T(result);
|
|
8409
8411
|
var connection_holder_1 = connectionHolder$1;
|
|
8410
8412
|
var transaction_executor_1 = transactionExecutor$1;
|
|
8411
8413
|
var bookmarks_1$1 = bookmarks$1;
|
|
8412
8414
|
var tx_config_1 = txConfig$1;
|
|
8413
|
-
var transaction_promise_1 = __importDefault$
|
|
8414
|
-
var transaction_managed_1 = __importDefault$
|
|
8415
|
+
var transaction_promise_1 = __importDefault$T(transactionPromise);
|
|
8416
|
+
var transaction_managed_1 = __importDefault$T(transactionManaged);
|
|
8415
8417
|
/**
|
|
8416
8418
|
* A Session instance is used for handling the connection and
|
|
8417
8419
|
* sending queries through the connection.
|
|
@@ -9223,11 +9225,11 @@ var __generator$g = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
9223
9225
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
9224
9226
|
}
|
|
9225
9227
|
};
|
|
9226
|
-
var __importDefault$
|
|
9228
|
+
var __importDefault$S = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
9227
9229
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9228
9230
|
};
|
|
9229
9231
|
Object.defineProperty(resultTransformers$1, "__esModule", { value: true });
|
|
9230
|
-
var result_eager_1 = __importDefault$
|
|
9232
|
+
var result_eager_1 = __importDefault$S(resultEager);
|
|
9231
9233
|
var error_1$1 = error;
|
|
9232
9234
|
/**
|
|
9233
9235
|
* Protocol for transforming {@link Result}.
|
|
@@ -9736,20 +9738,20 @@ var __generator$e = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
9736
9738
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
9737
9739
|
}
|
|
9738
9740
|
};
|
|
9739
|
-
var __importDefault$
|
|
9741
|
+
var __importDefault$R = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
9740
9742
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9741
9743
|
};
|
|
9742
9744
|
Object.defineProperty(driver, "__esModule", { value: true });
|
|
9743
9745
|
driver.QueryConfig = driver.SessionConfig = driver.routing = driver.WRITE = driver.READ = driver.Driver = void 0;
|
|
9744
9746
|
var bookmarks_1 = bookmarks$1;
|
|
9745
|
-
var configured_custom_resolver_1 = __importDefault$
|
|
9747
|
+
var configured_custom_resolver_1 = __importDefault$R(configuredCustomResolver);
|
|
9746
9748
|
var constants_1 = constants$1;
|
|
9747
9749
|
var logger_1 = logger$1;
|
|
9748
|
-
var session_1 = __importDefault$
|
|
9750
|
+
var session_1 = __importDefault$R(session);
|
|
9749
9751
|
var util_1 = util$4;
|
|
9750
9752
|
var bookmark_manager_1 = bookmarkManager$1;
|
|
9751
|
-
var result_transformers_1 = __importDefault$
|
|
9752
|
-
var query_executor_1 = __importDefault$
|
|
9753
|
+
var result_transformers_1 = __importDefault$R(resultTransformers$1);
|
|
9754
|
+
var query_executor_1 = __importDefault$R(queryExecutor);
|
|
9753
9755
|
var error_1 = error;
|
|
9754
9756
|
var DEFAULT_MAX_CONNECTION_LIFETIME = 60 * 60 * 1000; // 1 hour
|
|
9755
9757
|
/**
|
|
@@ -10734,12 +10736,12 @@ var __generator$d = (commonjsGlobal && commonjsGlobal.__generator) || function (
|
|
|
10734
10736
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
10735
10737
|
}
|
|
10736
10738
|
};
|
|
10737
|
-
var __importDefault$
|
|
10739
|
+
var __importDefault$Q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
10738
10740
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10739
10741
|
};
|
|
10740
10742
|
Object.defineProperty(authTokenManager, "__esModule", { value: true });
|
|
10741
10743
|
authTokenManager.staticAuthTokenManager = authTokenManager.authTokenManagers = authTokenManager.AuthTokenAndExpiration = void 0;
|
|
10742
|
-
var auth_1 = __importDefault$
|
|
10744
|
+
var auth_1 = __importDefault$Q(auth$1);
|
|
10743
10745
|
var internal_1 = internal;
|
|
10744
10746
|
/**
|
|
10745
10747
|
* Interface for the piece of software responsible for keeping track of current active {@link AuthToken} across the driver.
|
|
@@ -11003,7 +11005,7 @@ var types$1 = {};
|
|
|
11003
11005
|
* See the License for the specific language governing permissions and
|
|
11004
11006
|
* limitations under the License.
|
|
11005
11007
|
*/
|
|
11006
|
-
var __extends$
|
|
11008
|
+
var __extends$M = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11007
11009
|
var extendStatics = function (d, b) {
|
|
11008
11010
|
extendStatics = Object.setPrototypeOf ||
|
|
11009
11011
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11286,7 +11288,7 @@ var Config = /** @class */ (function () {
|
|
|
11286
11288
|
}());
|
|
11287
11289
|
types$1.Config = Config;
|
|
11288
11290
|
var InternalConfig = /** @class */ (function (_super) {
|
|
11289
|
-
__extends$
|
|
11291
|
+
__extends$M(InternalConfig, _super);
|
|
11290
11292
|
function InternalConfig() {
|
|
11291
11293
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11292
11294
|
}
|
|
@@ -11312,7 +11314,7 @@ var clientCertificate = {};
|
|
|
11312
11314
|
* See the License for the specific language governing permissions and
|
|
11313
11315
|
* limitations under the License.
|
|
11314
11316
|
*/
|
|
11315
|
-
var __extends$
|
|
11317
|
+
var __extends$L = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
11316
11318
|
var extendStatics = function (d, b) {
|
|
11317
11319
|
extendStatics = Object.setPrototypeOf ||
|
|
11318
11320
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -11327,8 +11329,8 @@ var __extends$K = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
11327
11329
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
11328
11330
|
};
|
|
11329
11331
|
})();
|
|
11330
|
-
var __assign$
|
|
11331
|
-
__assign$
|
|
11332
|
+
var __assign$n = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
11333
|
+
__assign$n = Object.assign || function(t) {
|
|
11332
11334
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
11333
11335
|
s = arguments[i];
|
|
11334
11336
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -11336,7 +11338,7 @@ var __assign$m = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
11336
11338
|
}
|
|
11337
11339
|
return t;
|
|
11338
11340
|
};
|
|
11339
|
-
return __assign$
|
|
11341
|
+
return __assign$n.apply(this, arguments);
|
|
11340
11342
|
};
|
|
11341
11343
|
var __createBinding$6 = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11342
11344
|
if (k2 === undefined) k2 = k;
|
|
@@ -11462,7 +11464,7 @@ clientCertificate.ClientCertificateProvider = ClientCertificateProvider;
|
|
|
11462
11464
|
* @since 5.19
|
|
11463
11465
|
*/
|
|
11464
11466
|
var RotatingClientCertificateProvider = /** @class */ (function (_super) {
|
|
11465
|
-
__extends$
|
|
11467
|
+
__extends$L(RotatingClientCertificateProvider, _super);
|
|
11466
11468
|
function RotatingClientCertificateProvider() {
|
|
11467
11469
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11468
11470
|
}
|
|
@@ -11502,7 +11504,7 @@ var ClientCertificateProviders = /** @class */ (function () {
|
|
|
11502
11504
|
if (initialCertificate == null || !isClientClientCertificate(initialCertificate)) {
|
|
11503
11505
|
throw new TypeError("initialCertificate should be ClientCertificate, but got ".concat(json.stringify(initialCertificate)));
|
|
11504
11506
|
}
|
|
11505
|
-
var certificate = __assign$
|
|
11507
|
+
var certificate = __assign$n({}, initialCertificate);
|
|
11506
11508
|
return new InternalRotatingClientCertificateProvider(certificate);
|
|
11507
11509
|
};
|
|
11508
11510
|
return ClientCertificateProviders;
|
|
@@ -11535,7 +11537,7 @@ function resolveCertificateProvider(input) {
|
|
|
11535
11537
|
return input;
|
|
11536
11538
|
}
|
|
11537
11539
|
if (isClientClientCertificate(input)) {
|
|
11538
|
-
var certificate_1 = __assign$
|
|
11540
|
+
var certificate_1 = __assign$n({}, input);
|
|
11539
11541
|
return {
|
|
11540
11542
|
getClientCertificate: function () { return certificate_1; },
|
|
11541
11543
|
hasUpdate: function () { return false; }
|
|
@@ -11657,7 +11659,7 @@ var InternalRotatingClientCertificateProvider = /** @class */ (function () {
|
|
|
11657
11659
|
if (!isClientClientCertificate(certificate)) {
|
|
11658
11660
|
throw new TypeError("certificate should be ClientCertificate, but got ".concat(json.stringify(certificate)));
|
|
11659
11661
|
}
|
|
11660
|
-
this._certificate = __assign$
|
|
11662
|
+
this._certificate = __assign$n({}, certificate);
|
|
11661
11663
|
this._updated = true;
|
|
11662
11664
|
};
|
|
11663
11665
|
return InternalRotatingClientCertificateProvider;
|
|
@@ -12655,7 +12657,7 @@ lift.operate = operate;
|
|
|
12655
12657
|
|
|
12656
12658
|
var OperatorSubscriber$1 = {};
|
|
12657
12659
|
|
|
12658
|
-
var __extends$
|
|
12660
|
+
var __extends$K = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12659
12661
|
var extendStatics = function (d, b) {
|
|
12660
12662
|
extendStatics = Object.setPrototypeOf ||
|
|
12661
12663
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12678,7 +12680,7 @@ function createOperatorSubscriber(destination, onNext, onComplete, onError, onFi
|
|
|
12678
12680
|
}
|
|
12679
12681
|
OperatorSubscriber$1.createOperatorSubscriber = createOperatorSubscriber;
|
|
12680
12682
|
var OperatorSubscriber = (function (_super) {
|
|
12681
|
-
__extends$
|
|
12683
|
+
__extends$K(OperatorSubscriber, _super);
|
|
12682
12684
|
function OperatorSubscriber(destination, onNext, onComplete, onError, onFinalize, shouldUnsubscribe) {
|
|
12683
12685
|
var _this = _super.call(this, destination) || this;
|
|
12684
12686
|
_this.onFinalize = onFinalize;
|
|
@@ -12762,7 +12764,7 @@ function refCount() {
|
|
|
12762
12764
|
}
|
|
12763
12765
|
refCount$1.refCount = refCount;
|
|
12764
12766
|
|
|
12765
|
-
var __extends$
|
|
12767
|
+
var __extends$J = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12766
12768
|
var extendStatics = function (d, b) {
|
|
12767
12769
|
extendStatics = Object.setPrototypeOf ||
|
|
12768
12770
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -12785,7 +12787,7 @@ var refCount_1 = refCount$1;
|
|
|
12785
12787
|
var OperatorSubscriber_1$U = OperatorSubscriber$1;
|
|
12786
12788
|
var lift_1$13 = lift;
|
|
12787
12789
|
var ConnectableObservable = (function (_super) {
|
|
12788
|
-
__extends$
|
|
12790
|
+
__extends$J(ConnectableObservable, _super);
|
|
12789
12791
|
function ConnectableObservable(source, subjectFactory) {
|
|
12790
12792
|
var _this = _super.call(this) || this;
|
|
12791
12793
|
_this.source = source;
|
|
@@ -12972,7 +12974,7 @@ ObjectUnsubscribedError.ObjectUnsubscribedError = createErrorClass_1$4.createErr
|
|
|
12972
12974
|
};
|
|
12973
12975
|
});
|
|
12974
12976
|
|
|
12975
|
-
var __extends$
|
|
12977
|
+
var __extends$I = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
12976
12978
|
var extendStatics = function (d, b) {
|
|
12977
12979
|
extendStatics = Object.setPrototypeOf ||
|
|
12978
12980
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13006,7 +13008,7 @@ var ObjectUnsubscribedError_1 = ObjectUnsubscribedError;
|
|
|
13006
13008
|
var arrRemove_1$6 = arrRemove$1;
|
|
13007
13009
|
var errorContext_1 = errorContext$1;
|
|
13008
13010
|
var Subject = (function (_super) {
|
|
13009
|
-
__extends$
|
|
13011
|
+
__extends$I(Subject, _super);
|
|
13010
13012
|
function Subject() {
|
|
13011
13013
|
var _this = _super.call(this) || this;
|
|
13012
13014
|
_this.closed = false;
|
|
@@ -13134,7 +13136,7 @@ var Subject = (function (_super) {
|
|
|
13134
13136
|
}(Observable_1$l.Observable));
|
|
13135
13137
|
Subject$1.Subject = Subject;
|
|
13136
13138
|
var AnonymousSubject = (function (_super) {
|
|
13137
|
-
__extends$
|
|
13139
|
+
__extends$I(AnonymousSubject, _super);
|
|
13138
13140
|
function AnonymousSubject(destination, source) {
|
|
13139
13141
|
var _this = _super.call(this) || this;
|
|
13140
13142
|
_this.destination = destination;
|
|
@@ -13163,7 +13165,7 @@ Subject$1.AnonymousSubject = AnonymousSubject;
|
|
|
13163
13165
|
|
|
13164
13166
|
var BehaviorSubject$1 = {};
|
|
13165
13167
|
|
|
13166
|
-
var __extends$
|
|
13168
|
+
var __extends$H = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13167
13169
|
var extendStatics = function (d, b) {
|
|
13168
13170
|
extendStatics = Object.setPrototypeOf ||
|
|
13169
13171
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13182,7 +13184,7 @@ Object.defineProperty(BehaviorSubject$1, "__esModule", { value: true });
|
|
|
13182
13184
|
BehaviorSubject$1.BehaviorSubject = void 0;
|
|
13183
13185
|
var Subject_1$e = Subject$1;
|
|
13184
13186
|
var BehaviorSubject = (function (_super) {
|
|
13185
|
-
__extends$
|
|
13187
|
+
__extends$H(BehaviorSubject, _super);
|
|
13186
13188
|
function BehaviorSubject(_value) {
|
|
13187
13189
|
var _this = _super.call(this) || this;
|
|
13188
13190
|
_this._value = _value;
|
|
@@ -13231,7 +13233,7 @@ exports.dateTimestampProvider = {
|
|
|
13231
13233
|
|
|
13232
13234
|
}(dateTimestampProvider));
|
|
13233
13235
|
|
|
13234
|
-
var __extends$
|
|
13236
|
+
var __extends$G = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13235
13237
|
var extendStatics = function (d, b) {
|
|
13236
13238
|
extendStatics = Object.setPrototypeOf ||
|
|
13237
13239
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13251,7 +13253,7 @@ ReplaySubject$1.ReplaySubject = void 0;
|
|
|
13251
13253
|
var Subject_1$d = Subject$1;
|
|
13252
13254
|
var dateTimestampProvider_1$2 = dateTimestampProvider;
|
|
13253
13255
|
var ReplaySubject = (function (_super) {
|
|
13254
|
-
__extends$
|
|
13256
|
+
__extends$G(ReplaySubject, _super);
|
|
13255
13257
|
function ReplaySubject(_bufferSize, _windowTime, _timestampProvider) {
|
|
13256
13258
|
if (_bufferSize === void 0) { _bufferSize = Infinity; }
|
|
13257
13259
|
if (_windowTime === void 0) { _windowTime = Infinity; }
|
|
@@ -13307,7 +13309,7 @@ ReplaySubject$1.ReplaySubject = ReplaySubject;
|
|
|
13307
13309
|
|
|
13308
13310
|
var AsyncSubject$1 = {};
|
|
13309
13311
|
|
|
13310
|
-
var __extends$
|
|
13312
|
+
var __extends$F = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13311
13313
|
var extendStatics = function (d, b) {
|
|
13312
13314
|
extendStatics = Object.setPrototypeOf ||
|
|
13313
13315
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13326,7 +13328,7 @@ Object.defineProperty(AsyncSubject$1, "__esModule", { value: true });
|
|
|
13326
13328
|
AsyncSubject$1.AsyncSubject = void 0;
|
|
13327
13329
|
var Subject_1$c = Subject$1;
|
|
13328
13330
|
var AsyncSubject = (function (_super) {
|
|
13329
|
-
__extends$
|
|
13331
|
+
__extends$F(AsyncSubject, _super);
|
|
13330
13332
|
function AsyncSubject() {
|
|
13331
13333
|
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
13332
13334
|
_this._value = null;
|
|
@@ -13370,7 +13372,7 @@ var AsyncAction$1 = {};
|
|
|
13370
13372
|
|
|
13371
13373
|
var Action$1 = {};
|
|
13372
13374
|
|
|
13373
|
-
var __extends$
|
|
13375
|
+
var __extends$E = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13374
13376
|
var extendStatics = function (d, b) {
|
|
13375
13377
|
extendStatics = Object.setPrototypeOf ||
|
|
13376
13378
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13389,7 +13391,7 @@ Object.defineProperty(Action$1, "__esModule", { value: true });
|
|
|
13389
13391
|
Action$1.Action = void 0;
|
|
13390
13392
|
var Subscription_1$5 = Subscription$1;
|
|
13391
13393
|
var Action = (function (_super) {
|
|
13392
|
-
__extends$
|
|
13394
|
+
__extends$E(Action, _super);
|
|
13393
13395
|
function Action(scheduler, work) {
|
|
13394
13396
|
return _super.call(this) || this;
|
|
13395
13397
|
}
|
|
@@ -13447,7 +13449,7 @@ exports.intervalProvider = {
|
|
|
13447
13449
|
|
|
13448
13450
|
}(intervalProvider));
|
|
13449
13451
|
|
|
13450
|
-
var __extends$
|
|
13452
|
+
var __extends$D = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13451
13453
|
var extendStatics = function (d, b) {
|
|
13452
13454
|
extendStatics = Object.setPrototypeOf ||
|
|
13453
13455
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13468,7 +13470,7 @@ var Action_1 = Action$1;
|
|
|
13468
13470
|
var intervalProvider_1 = intervalProvider;
|
|
13469
13471
|
var arrRemove_1$5 = arrRemove$1;
|
|
13470
13472
|
var AsyncAction = (function (_super) {
|
|
13471
|
-
__extends$
|
|
13473
|
+
__extends$D(AsyncAction, _super);
|
|
13472
13474
|
function AsyncAction(scheduler, work) {
|
|
13473
13475
|
var _this = _super.call(this, scheduler, work) || this;
|
|
13474
13476
|
_this.scheduler = scheduler;
|
|
@@ -13633,7 +13635,7 @@ exports.immediateProvider = {
|
|
|
13633
13635
|
|
|
13634
13636
|
}(immediateProvider));
|
|
13635
13637
|
|
|
13636
|
-
var __extends$
|
|
13638
|
+
var __extends$C = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13637
13639
|
var extendStatics = function (d, b) {
|
|
13638
13640
|
extendStatics = Object.setPrototypeOf ||
|
|
13639
13641
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13653,7 +13655,7 @@ AsapAction$1.AsapAction = void 0;
|
|
|
13653
13655
|
var AsyncAction_1$3 = AsyncAction$1;
|
|
13654
13656
|
var immediateProvider_1 = immediateProvider;
|
|
13655
13657
|
var AsapAction = (function (_super) {
|
|
13656
|
-
__extends$
|
|
13658
|
+
__extends$C(AsapAction, _super);
|
|
13657
13659
|
function AsapAction(scheduler, work) {
|
|
13658
13660
|
var _this = _super.call(this, scheduler, work) || this;
|
|
13659
13661
|
_this.scheduler = scheduler;
|
|
@@ -13711,7 +13713,7 @@ var Scheduler = (function () {
|
|
|
13711
13713
|
}());
|
|
13712
13714
|
Scheduler$1.Scheduler = Scheduler;
|
|
13713
13715
|
|
|
13714
|
-
var __extends$
|
|
13716
|
+
var __extends$B = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13715
13717
|
var extendStatics = function (d, b) {
|
|
13716
13718
|
extendStatics = Object.setPrototypeOf ||
|
|
13717
13719
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13730,7 +13732,7 @@ Object.defineProperty(AsyncScheduler$1, "__esModule", { value: true });
|
|
|
13730
13732
|
AsyncScheduler$1.AsyncScheduler = void 0;
|
|
13731
13733
|
var Scheduler_1 = Scheduler$1;
|
|
13732
13734
|
var AsyncScheduler = (function (_super) {
|
|
13733
|
-
__extends$
|
|
13735
|
+
__extends$B(AsyncScheduler, _super);
|
|
13734
13736
|
function AsyncScheduler(SchedulerAction, now) {
|
|
13735
13737
|
if (now === void 0) { now = Scheduler_1.Scheduler.now; }
|
|
13736
13738
|
var _this = _super.call(this, SchedulerAction, now) || this;
|
|
@@ -13763,7 +13765,7 @@ var AsyncScheduler = (function (_super) {
|
|
|
13763
13765
|
}(Scheduler_1.Scheduler));
|
|
13764
13766
|
AsyncScheduler$1.AsyncScheduler = AsyncScheduler;
|
|
13765
13767
|
|
|
13766
|
-
var __extends$
|
|
13768
|
+
var __extends$A = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13767
13769
|
var extendStatics = function (d, b) {
|
|
13768
13770
|
extendStatics = Object.setPrototypeOf ||
|
|
13769
13771
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13782,7 +13784,7 @@ Object.defineProperty(AsapScheduler$1, "__esModule", { value: true });
|
|
|
13782
13784
|
AsapScheduler$1.AsapScheduler = void 0;
|
|
13783
13785
|
var AsyncScheduler_1$3 = AsyncScheduler$1;
|
|
13784
13786
|
var AsapScheduler = (function (_super) {
|
|
13785
|
-
__extends$
|
|
13787
|
+
__extends$A(AsapScheduler, _super);
|
|
13786
13788
|
function AsapScheduler() {
|
|
13787
13789
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
13788
13790
|
}
|
|
@@ -13836,7 +13838,7 @@ var queue = {};
|
|
|
13836
13838
|
|
|
13837
13839
|
var QueueAction$1 = {};
|
|
13838
13840
|
|
|
13839
|
-
var __extends$
|
|
13841
|
+
var __extends$z = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13840
13842
|
var extendStatics = function (d, b) {
|
|
13841
13843
|
extendStatics = Object.setPrototypeOf ||
|
|
13842
13844
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13855,7 +13857,7 @@ Object.defineProperty(QueueAction$1, "__esModule", { value: true });
|
|
|
13855
13857
|
QueueAction$1.QueueAction = void 0;
|
|
13856
13858
|
var AsyncAction_1$2 = AsyncAction$1;
|
|
13857
13859
|
var QueueAction = (function (_super) {
|
|
13858
|
-
__extends$
|
|
13860
|
+
__extends$z(QueueAction, _super);
|
|
13859
13861
|
function QueueAction(scheduler, work) {
|
|
13860
13862
|
var _this = _super.call(this, scheduler, work) || this;
|
|
13861
13863
|
_this.scheduler = scheduler;
|
|
@@ -13889,7 +13891,7 @@ QueueAction$1.QueueAction = QueueAction;
|
|
|
13889
13891
|
|
|
13890
13892
|
var QueueScheduler$1 = {};
|
|
13891
13893
|
|
|
13892
|
-
var __extends$
|
|
13894
|
+
var __extends$y = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13893
13895
|
var extendStatics = function (d, b) {
|
|
13894
13896
|
extendStatics = Object.setPrototypeOf ||
|
|
13895
13897
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13908,7 +13910,7 @@ Object.defineProperty(QueueScheduler$1, "__esModule", { value: true });
|
|
|
13908
13910
|
QueueScheduler$1.QueueScheduler = void 0;
|
|
13909
13911
|
var AsyncScheduler_1$2 = AsyncScheduler$1;
|
|
13910
13912
|
var QueueScheduler = (function (_super) {
|
|
13911
|
-
__extends$
|
|
13913
|
+
__extends$y(QueueScheduler, _super);
|
|
13912
13914
|
function QueueScheduler() {
|
|
13913
13915
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
13914
13916
|
}
|
|
@@ -13930,7 +13932,7 @@ var animationFrame = {};
|
|
|
13930
13932
|
|
|
13931
13933
|
var AnimationFrameAction$1 = {};
|
|
13932
13934
|
|
|
13933
|
-
var __extends$
|
|
13935
|
+
var __extends$x = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13934
13936
|
var extendStatics = function (d, b) {
|
|
13935
13937
|
extendStatics = Object.setPrototypeOf ||
|
|
13936
13938
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -13950,7 +13952,7 @@ AnimationFrameAction$1.AnimationFrameAction = void 0;
|
|
|
13950
13952
|
var AsyncAction_1$1 = AsyncAction$1;
|
|
13951
13953
|
var animationFrameProvider_1 = animationFrameProvider;
|
|
13952
13954
|
var AnimationFrameAction = (function (_super) {
|
|
13953
|
-
__extends$
|
|
13955
|
+
__extends$x(AnimationFrameAction, _super);
|
|
13954
13956
|
function AnimationFrameAction(scheduler, work) {
|
|
13955
13957
|
var _this = _super.call(this, scheduler, work) || this;
|
|
13956
13958
|
_this.scheduler = scheduler;
|
|
@@ -13984,7 +13986,7 @@ AnimationFrameAction$1.AnimationFrameAction = AnimationFrameAction;
|
|
|
13984
13986
|
|
|
13985
13987
|
var AnimationFrameScheduler$1 = {};
|
|
13986
13988
|
|
|
13987
|
-
var __extends$
|
|
13989
|
+
var __extends$w = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
13988
13990
|
var extendStatics = function (d, b) {
|
|
13989
13991
|
extendStatics = Object.setPrototypeOf ||
|
|
13990
13992
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14003,7 +14005,7 @@ Object.defineProperty(AnimationFrameScheduler$1, "__esModule", { value: true });
|
|
|
14003
14005
|
AnimationFrameScheduler$1.AnimationFrameScheduler = void 0;
|
|
14004
14006
|
var AsyncScheduler_1$1 = AsyncScheduler$1;
|
|
14005
14007
|
var AnimationFrameScheduler = (function (_super) {
|
|
14006
|
-
__extends$
|
|
14008
|
+
__extends$w(AnimationFrameScheduler, _super);
|
|
14007
14009
|
function AnimationFrameScheduler() {
|
|
14008
14010
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
14009
14011
|
}
|
|
@@ -14043,7 +14045,7 @@ exports.animationFrame = exports.animationFrameScheduler;
|
|
|
14043
14045
|
|
|
14044
14046
|
var VirtualTimeScheduler$1 = {};
|
|
14045
14047
|
|
|
14046
|
-
var __extends$
|
|
14048
|
+
var __extends$v = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
14047
14049
|
var extendStatics = function (d, b) {
|
|
14048
14050
|
extendStatics = Object.setPrototypeOf ||
|
|
14049
14051
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -14064,7 +14066,7 @@ var AsyncAction_1 = AsyncAction$1;
|
|
|
14064
14066
|
var Subscription_1$4 = Subscription$1;
|
|
14065
14067
|
var AsyncScheduler_1 = AsyncScheduler$1;
|
|
14066
14068
|
var VirtualTimeScheduler = (function (_super) {
|
|
14067
|
-
__extends$
|
|
14069
|
+
__extends$v(VirtualTimeScheduler, _super);
|
|
14068
14070
|
function VirtualTimeScheduler(schedulerActionCtor, maxFrames) {
|
|
14069
14071
|
if (schedulerActionCtor === void 0) { schedulerActionCtor = VirtualAction; }
|
|
14070
14072
|
if (maxFrames === void 0) { maxFrames = Infinity; }
|
|
@@ -14097,7 +14099,7 @@ var VirtualTimeScheduler = (function (_super) {
|
|
|
14097
14099
|
}(AsyncScheduler_1.AsyncScheduler));
|
|
14098
14100
|
VirtualTimeScheduler$1.VirtualTimeScheduler = VirtualTimeScheduler;
|
|
14099
14101
|
var VirtualAction = (function (_super) {
|
|
14100
|
-
__extends$
|
|
14102
|
+
__extends$v(VirtualAction, _super);
|
|
14101
14103
|
function VirtualAction(scheduler, work, index) {
|
|
14102
14104
|
if (index === void 0) { index = (scheduler.index += 1); }
|
|
14103
14105
|
var _this = _super.call(this, scheduler, work) || this;
|
|
@@ -19919,7 +19921,7 @@ Object.defineProperty(resultRx, "__esModule", { value: true });
|
|
|
19919
19921
|
* limitations under the License.
|
|
19920
19922
|
*/
|
|
19921
19923
|
/* eslint-disable-next-line no-unused-vars */
|
|
19922
|
-
var neo4j_driver_core_1$
|
|
19924
|
+
var neo4j_driver_core_1$L = lib$1;
|
|
19923
19925
|
var rxjs_1$3 = cjs;
|
|
19924
19926
|
var operators_1$2 = operators;
|
|
19925
19927
|
var States = {
|
|
@@ -20053,7 +20055,7 @@ var RxResult = /** @class */ (function () {
|
|
|
20053
20055
|
});
|
|
20054
20056
|
}
|
|
20055
20057
|
else if (recordsObserver) {
|
|
20056
|
-
recordsObserver.error((0, neo4j_driver_core_1$
|
|
20058
|
+
recordsObserver.error((0, neo4j_driver_core_1$L.newError)('Streaming has already started/consumed with a previous records or summary subscription.'));
|
|
20057
20059
|
}
|
|
20058
20060
|
return function () {
|
|
20059
20061
|
subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
@@ -20244,7 +20246,7 @@ var StreamControl = /** @class */ (function () {
|
|
|
20244
20246
|
|
|
20245
20247
|
var transactionRx = {};
|
|
20246
20248
|
|
|
20247
|
-
var __importDefault$
|
|
20249
|
+
var __importDefault$P = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
20248
20250
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20249
20251
|
};
|
|
20250
20252
|
Object.defineProperty(transactionRx, "__esModule", { value: true });
|
|
@@ -20265,9 +20267,9 @@ Object.defineProperty(transactionRx, "__esModule", { value: true });
|
|
|
20265
20267
|
* limitations under the License.
|
|
20266
20268
|
*/
|
|
20267
20269
|
var rxjs_1$2 = cjs;
|
|
20268
|
-
var result_rx_1$1 = __importDefault$
|
|
20270
|
+
var result_rx_1$1 = __importDefault$P(resultRx);
|
|
20269
20271
|
// eslint-disable-next-line no-unused-vars
|
|
20270
|
-
__importDefault$
|
|
20272
|
+
__importDefault$P(lib$1);
|
|
20271
20273
|
/**
|
|
20272
20274
|
* A reactive transaction, which provides the same functionality as {@link Transaction} but through a Reactive API.
|
|
20273
20275
|
*/
|
|
@@ -20366,7 +20368,7 @@ transactionRx.default = RxTransaction;
|
|
|
20366
20368
|
|
|
20367
20369
|
var transactionManagedRx = {};
|
|
20368
20370
|
|
|
20369
|
-
var __importDefault$
|
|
20371
|
+
var __importDefault$O = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
20370
20372
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20371
20373
|
};
|
|
20372
20374
|
Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
|
|
@@ -20387,9 +20389,9 @@ Object.defineProperty(transactionManagedRx, "__esModule", { value: true });
|
|
|
20387
20389
|
* limitations under the License.
|
|
20388
20390
|
*/
|
|
20389
20391
|
// eslint-disable-next-line no-unused-vars
|
|
20390
|
-
__importDefault$
|
|
20392
|
+
__importDefault$O(resultRx);
|
|
20391
20393
|
// eslint-disable-next-line no-unused-vars
|
|
20392
|
-
__importDefault$
|
|
20394
|
+
__importDefault$O(transactionRx);
|
|
20393
20395
|
/**
|
|
20394
20396
|
* Represents a rx transaction that is managed by the transaction executor.
|
|
20395
20397
|
*
|
|
@@ -20447,13 +20449,13 @@ var retryLogicRx = {};
|
|
|
20447
20449
|
* limitations under the License.
|
|
20448
20450
|
*/
|
|
20449
20451
|
Object.defineProperty(retryLogicRx, "__esModule", { value: true });
|
|
20450
|
-
var neo4j_driver_core_1$
|
|
20452
|
+
var neo4j_driver_core_1$K = lib$1;
|
|
20451
20453
|
// eslint-disable-next-line no-unused-vars
|
|
20452
20454
|
var rxjs_1$1 = cjs;
|
|
20453
20455
|
var operators_1$1 = operators;
|
|
20454
20456
|
// eslint-disable-next-line no-unused-vars
|
|
20455
|
-
neo4j_driver_core_1$
|
|
20456
|
-
var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$
|
|
20457
|
+
neo4j_driver_core_1$K.internal.logger.Logger;
|
|
20458
|
+
var SERVICE_UNAVAILABLE$5 = neo4j_driver_core_1$K.error.SERVICE_UNAVAILABLE;
|
|
20457
20459
|
var DEFAULT_MAX_RETRY_TIME_MS = 30 * 1000; // 30 seconds
|
|
20458
20460
|
var DEFAULT_INITIAL_RETRY_DELAY_MS = 1000; // 1 seconds
|
|
20459
20461
|
var DEFAULT_RETRY_DELAY_MULTIPLIER = 2.0;
|
|
@@ -20484,13 +20486,13 @@ var RxRetryLogic = /** @class */ (function () {
|
|
|
20484
20486
|
var retryCount = 1;
|
|
20485
20487
|
var delayDuration = _this._initialDelay;
|
|
20486
20488
|
return failedWork.pipe((0, operators_1$1.mergeMap)(function (err) {
|
|
20487
|
-
if (!(0, neo4j_driver_core_1$
|
|
20489
|
+
if (!(0, neo4j_driver_core_1$K.isRetriableError)(err)) {
|
|
20488
20490
|
return (0, rxjs_1$1.throwError)(function () { return err; });
|
|
20489
20491
|
}
|
|
20490
20492
|
handledExceptions.push(err);
|
|
20491
20493
|
if (retryCount >= 2 &&
|
|
20492
20494
|
Date.now() - startTime >= _this._maxRetryTimeout) {
|
|
20493
|
-
var error_1 = (0, neo4j_driver_core_1$
|
|
20495
|
+
var error_1 = (0, neo4j_driver_core_1$K.newError)("Failed after retried for ".concat(retryCount, " times in ").concat(_this._maxRetryTimeout, " ms. Make sure that your database is online and retry again."), SERVICE_UNAVAILABLE$5);
|
|
20494
20496
|
error_1.seenErrors = handledExceptions;
|
|
20495
20497
|
return (0, rxjs_1$1.throwError)(function () { return error_1; });
|
|
20496
20498
|
}
|
|
@@ -20518,7 +20520,7 @@ function valueOrDefault$1(value, defaultValue) {
|
|
|
20518
20520
|
return defaultValue;
|
|
20519
20521
|
}
|
|
20520
20522
|
|
|
20521
|
-
var __importDefault$
|
|
20523
|
+
var __importDefault$N = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
20522
20524
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20523
20525
|
};
|
|
20524
20526
|
Object.defineProperty(sessionRx, "__esModule", { value: true });
|
|
@@ -20540,13 +20542,13 @@ Object.defineProperty(sessionRx, "__esModule", { value: true });
|
|
|
20540
20542
|
*/
|
|
20541
20543
|
var rxjs_1 = cjs;
|
|
20542
20544
|
var operators_1 = operators;
|
|
20543
|
-
var result_rx_1 = __importDefault$
|
|
20545
|
+
var result_rx_1 = __importDefault$N(resultRx);
|
|
20544
20546
|
// eslint-disable-next-line no-unused-vars
|
|
20545
|
-
var neo4j_driver_core_1$
|
|
20546
|
-
var transaction_rx_1 = __importDefault$
|
|
20547
|
-
var transaction_managed_rx_1 = __importDefault$
|
|
20548
|
-
var retry_logic_rx_1 = __importDefault$
|
|
20549
|
-
var _a$d = neo4j_driver_core_1$
|
|
20547
|
+
var neo4j_driver_core_1$J = lib$1;
|
|
20548
|
+
var transaction_rx_1 = __importDefault$N(transactionRx);
|
|
20549
|
+
var transaction_managed_rx_1 = __importDefault$N(transactionManagedRx);
|
|
20550
|
+
var retry_logic_rx_1 = __importDefault$N(retryLogicRx);
|
|
20551
|
+
var _a$d = neo4j_driver_core_1$J.internal.constants, ACCESS_MODE_READ$1 = _a$d.ACCESS_MODE_READ, ACCESS_MODE_WRITE$1 = _a$d.ACCESS_MODE_WRITE, TELEMETRY_APIS = _a$d.TELEMETRY_APIS, TxConfig$3 = neo4j_driver_core_1$J.internal.txConfig.TxConfig;
|
|
20550
20552
|
/**
|
|
20551
20553
|
* A Reactive session, which provides the same functionality as {@link Session} but through a Reactive API.
|
|
20552
20554
|
*/
|
|
@@ -20784,7 +20786,7 @@ function _createRetryLogic(config) {
|
|
|
20784
20786
|
* See the License for the specific language governing permissions and
|
|
20785
20787
|
* limitations under the License.
|
|
20786
20788
|
*/
|
|
20787
|
-
var __extends$
|
|
20789
|
+
var __extends$u = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
20788
20790
|
var extendStatics = function (d, b) {
|
|
20789
20791
|
extendStatics = Object.setPrototypeOf ||
|
|
20790
20792
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -20799,15 +20801,15 @@ var __extends$t = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
20799
20801
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
20800
20802
|
};
|
|
20801
20803
|
})();
|
|
20802
|
-
var __importDefault$
|
|
20804
|
+
var __importDefault$M = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
20803
20805
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
20804
20806
|
};
|
|
20805
20807
|
Object.defineProperty(driver$1, "__esModule", { value: true });
|
|
20806
20808
|
driver$1.WRITE = driver$1.READ = driver$1.Driver = void 0;
|
|
20807
|
-
var neo4j_driver_core_1$
|
|
20808
|
-
var session_rx_1 = __importDefault$
|
|
20809
|
-
var FETCH_ALL$6 = neo4j_driver_core_1$
|
|
20810
|
-
var READ$2 = neo4j_driver_core_1$
|
|
20809
|
+
var neo4j_driver_core_1$I = lib$1;
|
|
20810
|
+
var session_rx_1 = __importDefault$M(sessionRx);
|
|
20811
|
+
var FETCH_ALL$6 = neo4j_driver_core_1$I.internal.constants.FETCH_ALL;
|
|
20812
|
+
var READ$2 = neo4j_driver_core_1$I.driver.READ, WRITE$2 = neo4j_driver_core_1$I.driver.WRITE;
|
|
20811
20813
|
driver$1.READ = READ$2;
|
|
20812
20814
|
driver$1.WRITE = WRITE$2;
|
|
20813
20815
|
/**
|
|
@@ -20821,7 +20823,7 @@ driver$1.WRITE = WRITE$2;
|
|
|
20821
20823
|
* @access public
|
|
20822
20824
|
*/
|
|
20823
20825
|
var Driver = /** @class */ (function (_super) {
|
|
20824
|
-
__extends$
|
|
20826
|
+
__extends$u(Driver, _super);
|
|
20825
20827
|
function Driver() {
|
|
20826
20828
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
20827
20829
|
}
|
|
@@ -20860,7 +20862,7 @@ var Driver = /** @class */ (function (_super) {
|
|
|
20860
20862
|
});
|
|
20861
20863
|
};
|
|
20862
20864
|
return Driver;
|
|
20863
|
-
}(neo4j_driver_core_1$
|
|
20865
|
+
}(neo4j_driver_core_1$I.Driver));
|
|
20864
20866
|
driver$1.Driver = Driver;
|
|
20865
20867
|
/**
|
|
20866
20868
|
* @private
|
|
@@ -20906,7 +20908,7 @@ Object.defineProperty(version$1, "__esModule", { value: true });
|
|
|
20906
20908
|
// This is set up this way to keep the version in the code in
|
|
20907
20909
|
// sync with the npm package version, and to allow the build
|
|
20908
20910
|
// system to control version names at packaging time.
|
|
20909
|
-
version$1.default = '5.
|
|
20911
|
+
version$1.default = '5.23.0';
|
|
20910
20912
|
|
|
20911
20913
|
var lib = {};
|
|
20912
20914
|
|
|
@@ -21006,7 +21008,7 @@ var RoundRobinArrayIndex = /** @class */ (function () {
|
|
|
21006
21008
|
}());
|
|
21007
21009
|
roundRobinArrayIndex.default = RoundRobinArrayIndex;
|
|
21008
21010
|
|
|
21009
|
-
var __extends$
|
|
21011
|
+
var __extends$t = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
21010
21012
|
var extendStatics = function (d, b) {
|
|
21011
21013
|
extendStatics = Object.setPrototypeOf ||
|
|
21012
21014
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -21021,7 +21023,7 @@ var __extends$s = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
21021
21023
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
21022
21024
|
};
|
|
21023
21025
|
})();
|
|
21024
|
-
var __importDefault$
|
|
21026
|
+
var __importDefault$L = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21025
21027
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21026
21028
|
};
|
|
21027
21029
|
Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value: true });
|
|
@@ -21041,10 +21043,10 @@ Object.defineProperty(leastConnectedLoadBalancingStrategy, "__esModule", { value
|
|
|
21041
21043
|
* See the License for the specific language governing permissions and
|
|
21042
21044
|
* limitations under the License.
|
|
21043
21045
|
*/
|
|
21044
|
-
var round_robin_array_index_1 = __importDefault$
|
|
21045
|
-
var load_balancing_strategy_1$1 = __importDefault$
|
|
21046
|
+
var round_robin_array_index_1 = __importDefault$L(roundRobinArrayIndex);
|
|
21047
|
+
var load_balancing_strategy_1$1 = __importDefault$L(loadBalancingStrategy);
|
|
21046
21048
|
var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
|
|
21047
|
-
__extends$
|
|
21049
|
+
__extends$t(LeastConnectedLoadBalancingStrategy, _super);
|
|
21048
21050
|
/**
|
|
21049
21051
|
* @constructor
|
|
21050
21052
|
* @param {Pool} connectionPool the connection pool of this driver.
|
|
@@ -21100,7 +21102,7 @@ var LeastConnectedLoadBalancingStrategy = /** @class */ (function (_super) {
|
|
|
21100
21102
|
}(load_balancing_strategy_1$1.default));
|
|
21101
21103
|
leastConnectedLoadBalancingStrategy.default = LeastConnectedLoadBalancingStrategy;
|
|
21102
21104
|
|
|
21103
|
-
var __importDefault$
|
|
21105
|
+
var __importDefault$K = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
21104
21106
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21105
21107
|
};
|
|
21106
21108
|
Object.defineProperty(loadBalancing, "__esModule", { value: true });
|
|
@@ -21121,9 +21123,9 @@ loadBalancing.LeastConnectedLoadBalancingStrategy = loadBalancing.LoadBalancingS
|
|
|
21121
21123
|
* See the License for the specific language governing permissions and
|
|
21122
21124
|
* limitations under the License.
|
|
21123
21125
|
*/
|
|
21124
|
-
var load_balancing_strategy_1 = __importDefault$
|
|
21126
|
+
var load_balancing_strategy_1 = __importDefault$K(loadBalancingStrategy);
|
|
21125
21127
|
loadBalancing.LoadBalancingStrategy = load_balancing_strategy_1.default;
|
|
21126
|
-
var least_connected_load_balancing_strategy_1 = __importDefault$
|
|
21128
|
+
var least_connected_load_balancing_strategy_1 = __importDefault$K(leastConnectedLoadBalancingStrategy);
|
|
21127
21129
|
loadBalancing.LeastConnectedLoadBalancingStrategy = least_connected_load_balancing_strategy_1.default;
|
|
21128
21130
|
loadBalancing.default = least_connected_load_balancing_strategy_1.default;
|
|
21129
21131
|
|
|
@@ -23508,7 +23510,7 @@ var baseBuf = {};
|
|
|
23508
23510
|
* See the License for the specific language governing permissions and
|
|
23509
23511
|
* limitations under the License.
|
|
23510
23512
|
*/
|
|
23511
|
-
var __extends$
|
|
23513
|
+
var __extends$s = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
23512
23514
|
var extendStatics = function (d, b) {
|
|
23513
23515
|
extendStatics = Object.setPrototypeOf ||
|
|
23514
23516
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -23844,7 +23846,7 @@ baseBuf.default = BaseBuffer;
|
|
|
23844
23846
|
* @access private
|
|
23845
23847
|
*/
|
|
23846
23848
|
var SliceBuffer = /** @class */ (function (_super) {
|
|
23847
|
-
__extends$
|
|
23849
|
+
__extends$s(SliceBuffer, _super);
|
|
23848
23850
|
function SliceBuffer(start, length, inner) {
|
|
23849
23851
|
var _this = _super.call(this, length) || this;
|
|
23850
23852
|
_this._start = start;
|
|
@@ -23888,12 +23890,12 @@ var SliceBuffer = /** @class */ (function (_super) {
|
|
|
23888
23890
|
* See the License for the specific language governing permissions and
|
|
23889
23891
|
* limitations under the License.
|
|
23890
23892
|
*/
|
|
23891
|
-
var __importDefault$
|
|
23893
|
+
var __importDefault$J = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
23892
23894
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23893
23895
|
};
|
|
23894
23896
|
Object.defineProperty(buf, "__esModule", { value: true });
|
|
23895
23897
|
buf.BaseBuffer = void 0;
|
|
23896
|
-
var base_buf_1$1 = __importDefault$
|
|
23898
|
+
var base_buf_1$1 = __importDefault$J(baseBuf);
|
|
23897
23899
|
buf.BaseBuffer = base_buf_1$1.default;
|
|
23898
23900
|
buf.default = base_buf_1$1.default;
|
|
23899
23901
|
|
|
@@ -23913,7 +23915,7 @@ buf.default = base_buf_1$1.default;
|
|
|
23913
23915
|
* See the License for the specific language governing permissions and
|
|
23914
23916
|
* limitations under the License.
|
|
23915
23917
|
*/
|
|
23916
|
-
var __extends$
|
|
23918
|
+
var __extends$r = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
23917
23919
|
var extendStatics = function (d, b) {
|
|
23918
23920
|
extendStatics = Object.setPrototypeOf ||
|
|
23919
23921
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -23928,15 +23930,15 @@ var __extends$q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
23928
23930
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
23929
23931
|
};
|
|
23930
23932
|
})();
|
|
23931
|
-
var __importDefault$
|
|
23933
|
+
var __importDefault$I = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
23932
23934
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23933
23935
|
};
|
|
23934
23936
|
Object.defineProperty(channelBuf, "__esModule", { value: true });
|
|
23935
23937
|
channelBuf.alloc = void 0;
|
|
23936
|
-
var buffer_1$1 = __importDefault$
|
|
23937
|
-
var buf_1$1 = __importDefault$
|
|
23938
|
+
var buffer_1$1 = __importDefault$I(buffer);
|
|
23939
|
+
var buf_1$1 = __importDefault$I(buf);
|
|
23938
23940
|
var ChannelBuffer = /** @class */ (function (_super) {
|
|
23939
|
-
__extends$
|
|
23941
|
+
__extends$r(ChannelBuffer, _super);
|
|
23940
23942
|
function ChannelBuffer(arg) {
|
|
23941
23943
|
var _this = this;
|
|
23942
23944
|
var buffer = newChannelJSBuffer(arg);
|
|
@@ -24004,7 +24006,7 @@ function newChannelJSBuffer(arg) {
|
|
|
24004
24006
|
}
|
|
24005
24007
|
}
|
|
24006
24008
|
|
|
24007
|
-
var __importDefault$
|
|
24009
|
+
var __importDefault$H = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24008
24010
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24009
24011
|
};
|
|
24010
24012
|
Object.defineProperty(browserChannel, "__esModule", { value: true });
|
|
@@ -24025,9 +24027,9 @@ Object.defineProperty(browserChannel, "__esModule", { value: true });
|
|
|
24025
24027
|
* limitations under the License.
|
|
24026
24028
|
*/
|
|
24027
24029
|
/* eslint-env browser */
|
|
24028
|
-
var channel_buf_1$3 = __importDefault$
|
|
24029
|
-
var neo4j_driver_core_1$
|
|
24030
|
-
var _a$c = neo4j_driver_core_1$
|
|
24030
|
+
var channel_buf_1$3 = __importDefault$H(channelBuf);
|
|
24031
|
+
var neo4j_driver_core_1$H = lib$1;
|
|
24032
|
+
var _a$c = neo4j_driver_core_1$H.internal.util, ENCRYPTION_OFF$1 = _a$c.ENCRYPTION_OFF, ENCRYPTION_ON$1 = _a$c.ENCRYPTION_ON;
|
|
24031
24033
|
var WS_OPEN = 1;
|
|
24032
24034
|
var WS_CLOSED = 3;
|
|
24033
24035
|
/**
|
|
@@ -24093,7 +24095,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
24093
24095
|
WebSocketChannel.prototype._handleConnectionError = function () {
|
|
24094
24096
|
if (this._connectionTimeoutFired) {
|
|
24095
24097
|
// timeout fired - not connected within configured time
|
|
24096
|
-
this._error = (0, neo4j_driver_core_1$
|
|
24098
|
+
this._error = (0, neo4j_driver_core_1$H.newError)("Failed to establish connection in ".concat(this._config.connectionTimeout, "ms"), this._config.connectionErrorCode);
|
|
24097
24099
|
if (this.onerror) {
|
|
24098
24100
|
this.onerror(this._error);
|
|
24099
24101
|
}
|
|
@@ -24102,7 +24104,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
24102
24104
|
// onerror triggers on websocket close as well.. don't get me started.
|
|
24103
24105
|
if (this._open && !this._timedout) {
|
|
24104
24106
|
// http://stackoverflow.com/questions/25779831/how-to-catch-websocket-connection-to-ws-xxxnn-failed-connection-closed-be
|
|
24105
|
-
this._error = (0, neo4j_driver_core_1$
|
|
24107
|
+
this._error = (0, neo4j_driver_core_1$H.newError)('WebSocket connection failure. Due to security ' +
|
|
24106
24108
|
'constraints in your web browser, the reason for the failure is not available ' +
|
|
24107
24109
|
'to this Neo4j Driver. Please use your browsers development console to determine ' +
|
|
24108
24110
|
'the root cause of the failure. Common reasons include the database being ' +
|
|
@@ -24141,7 +24143,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
24141
24143
|
}
|
|
24142
24144
|
}
|
|
24143
24145
|
else {
|
|
24144
|
-
throw (0, neo4j_driver_core_1$
|
|
24146
|
+
throw (0, neo4j_driver_core_1$H.newError)("Don't know how to send buffer: " + buffer);
|
|
24145
24147
|
}
|
|
24146
24148
|
};
|
|
24147
24149
|
/**
|
|
@@ -24212,7 +24214,7 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
24212
24214
|
_this._receiveTimeoutId = null;
|
|
24213
24215
|
_this._timedout = true;
|
|
24214
24216
|
_this.stopReceiveTimeout();
|
|
24215
|
-
_this._error = (0, neo4j_driver_core_1$
|
|
24217
|
+
_this._error = (0, neo4j_driver_core_1$H.newError)("Connection lost. Server didn't respond in ".concat(_this._receiveTimeout, "ms"), _this._config.connectionErrorCode);
|
|
24216
24218
|
_this.close();
|
|
24217
24219
|
if (_this.onerror) {
|
|
24218
24220
|
_this.onerror(_this._error);
|
|
@@ -24321,7 +24323,7 @@ function determineWebSocketScheme(config, protocolSupplier) {
|
|
|
24321
24323
|
return { scheme: 'wss', error: null };
|
|
24322
24324
|
}
|
|
24323
24325
|
else {
|
|
24324
|
-
var error = (0, neo4j_driver_core_1$
|
|
24326
|
+
var error = (0, neo4j_driver_core_1$H.newError)('The browser version of this driver only supports one trust ' +
|
|
24325
24327
|
"strategy, 'TRUST_SYSTEM_CA_SIGNED_CERTIFICATES'. " +
|
|
24326
24328
|
trust +
|
|
24327
24329
|
' is not supported. Please ' +
|
|
@@ -24396,7 +24398,7 @@ var browserHostNameResolver = {};
|
|
|
24396
24398
|
* See the License for the specific language governing permissions and
|
|
24397
24399
|
* limitations under the License.
|
|
24398
24400
|
*/
|
|
24399
|
-
var __extends$
|
|
24401
|
+
var __extends$q = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24400
24402
|
var extendStatics = function (d, b) {
|
|
24401
24403
|
extendStatics = Object.setPrototypeOf ||
|
|
24402
24404
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24412,10 +24414,10 @@ var __extends$p = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
24412
24414
|
};
|
|
24413
24415
|
})();
|
|
24414
24416
|
Object.defineProperty(browserHostNameResolver, "__esModule", { value: true });
|
|
24415
|
-
var neo4j_driver_core_1$
|
|
24416
|
-
var BaseHostNameResolver = neo4j_driver_core_1$
|
|
24417
|
+
var neo4j_driver_core_1$G = lib$1;
|
|
24418
|
+
var BaseHostNameResolver = neo4j_driver_core_1$G.internal.resolver.BaseHostNameResolver;
|
|
24417
24419
|
var BrowserHostNameResolver = /** @class */ (function (_super) {
|
|
24418
|
-
__extends$
|
|
24420
|
+
__extends$q(BrowserHostNameResolver, _super);
|
|
24419
24421
|
function BrowserHostNameResolver() {
|
|
24420
24422
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
24421
24423
|
}
|
|
@@ -24507,14 +24509,14 @@ browserClientCertificatesLoader.default = {
|
|
|
24507
24509
|
* See the License for the specific language governing permissions and
|
|
24508
24510
|
* limitations under the License.
|
|
24509
24511
|
*/
|
|
24510
|
-
var __importDefault$
|
|
24512
|
+
var __importDefault$G = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24511
24513
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24512
24514
|
};
|
|
24513
24515
|
Object.defineProperty(browser, "__esModule", { value: true });
|
|
24514
24516
|
browser.ClientCertificatesLoader = browser.HostNameResolver = browser.Channel = void 0;
|
|
24515
|
-
var browser_channel_1 = __importDefault$
|
|
24516
|
-
var browser_host_name_resolver_1 = __importDefault$
|
|
24517
|
-
var browser_client_certificates_loader_1 = __importDefault$
|
|
24517
|
+
var browser_channel_1 = __importDefault$G(browserChannel);
|
|
24518
|
+
var browser_host_name_resolver_1 = __importDefault$G(browserHostNameResolver);
|
|
24519
|
+
var browser_client_certificates_loader_1 = __importDefault$G(browserClientCertificatesLoader);
|
|
24518
24520
|
/*
|
|
24519
24521
|
|
|
24520
24522
|
This module exports a set of components to be used in browser environment.
|
|
@@ -24549,7 +24551,7 @@ var combinedBuf = {};
|
|
|
24549
24551
|
* See the License for the specific language governing permissions and
|
|
24550
24552
|
* limitations under the License.
|
|
24551
24553
|
*/
|
|
24552
|
-
var __extends$
|
|
24554
|
+
var __extends$p = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24553
24555
|
var extendStatics = function (d, b) {
|
|
24554
24556
|
extendStatics = Object.setPrototypeOf ||
|
|
24555
24557
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24571,7 +24573,7 @@ var channel_buf_1$2 = channelBuf;
|
|
|
24571
24573
|
* Buffer that combines multiple buffers, exposing them as one single buffer.
|
|
24572
24574
|
*/
|
|
24573
24575
|
var CombinedBuffer = /** @class */ (function (_super) {
|
|
24574
|
-
__extends$
|
|
24576
|
+
__extends$p(CombinedBuffer, _super);
|
|
24575
24577
|
function CombinedBuffer(buffers) {
|
|
24576
24578
|
var _this = this;
|
|
24577
24579
|
var length = 0;
|
|
@@ -24637,7 +24639,7 @@ combinedBuf.default = CombinedBuffer;
|
|
|
24637
24639
|
* See the License for the specific language governing permissions and
|
|
24638
24640
|
* limitations under the License.
|
|
24639
24641
|
*/
|
|
24640
|
-
var __extends$
|
|
24642
|
+
var __extends$o = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
24641
24643
|
var extendStatics = function (d, b) {
|
|
24642
24644
|
extendStatics = Object.setPrototypeOf ||
|
|
24643
24645
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -24652,14 +24654,14 @@ var __extends$n = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
24652
24654
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
24653
24655
|
};
|
|
24654
24656
|
})();
|
|
24655
|
-
var __importDefault$
|
|
24657
|
+
var __importDefault$F = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
24656
24658
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24657
24659
|
};
|
|
24658
24660
|
Object.defineProperty(chunking, "__esModule", { value: true });
|
|
24659
24661
|
chunking.Dechunker = chunking.Chunker = void 0;
|
|
24660
|
-
var base_buf_1 = __importDefault$
|
|
24662
|
+
var base_buf_1 = __importDefault$F(baseBuf);
|
|
24661
24663
|
var channel_buf_1$1 = channelBuf;
|
|
24662
|
-
var combined_buf_1 = __importDefault$
|
|
24664
|
+
var combined_buf_1 = __importDefault$F(combinedBuf);
|
|
24663
24665
|
var _CHUNK_HEADER_SIZE = 2;
|
|
24664
24666
|
var _MESSAGE_BOUNDARY = 0x00;
|
|
24665
24667
|
var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/maximum-packet-size-for-a-tcp-connection
|
|
@@ -24668,7 +24670,7 @@ var _DEFAULT_BUFFER_SIZE = 1400; // http://stackoverflow.com/questions/2613734/m
|
|
|
24668
24670
|
* @access private
|
|
24669
24671
|
*/
|
|
24670
24672
|
var Chunker = /** @class */ (function (_super) {
|
|
24671
|
-
__extends$
|
|
24673
|
+
__extends$o(Chunker, _super);
|
|
24672
24674
|
function Chunker(channel, bufferSize) {
|
|
24673
24675
|
var _this = _super.call(this, 0) || this;
|
|
24674
24676
|
_this._bufferSize = bufferSize || _DEFAULT_BUFFER_SIZE;
|
|
@@ -24851,9 +24853,9 @@ var channelConfig = {};
|
|
|
24851
24853
|
* limitations under the License.
|
|
24852
24854
|
*/
|
|
24853
24855
|
Object.defineProperty(channelConfig, "__esModule", { value: true });
|
|
24854
|
-
var neo4j_driver_core_1$
|
|
24855
|
-
var _a$b = neo4j_driver_core_1$
|
|
24856
|
-
var SERVICE_UNAVAILABLE$4 = neo4j_driver_core_1$
|
|
24856
|
+
var neo4j_driver_core_1$F = lib$1;
|
|
24857
|
+
var _a$b = neo4j_driver_core_1$F.internal.util, ENCRYPTION_OFF = _a$b.ENCRYPTION_OFF, ENCRYPTION_ON = _a$b.ENCRYPTION_ON;
|
|
24858
|
+
var SERVICE_UNAVAILABLE$4 = neo4j_driver_core_1$F.error.SERVICE_UNAVAILABLE;
|
|
24857
24859
|
var ALLOWED_VALUES_ENCRYPTED = [
|
|
24858
24860
|
null,
|
|
24859
24861
|
undefined,
|
|
@@ -24893,14 +24895,14 @@ channelConfig.default = ChannelConfig;
|
|
|
24893
24895
|
function extractEncrypted(driverConfig) {
|
|
24894
24896
|
var value = driverConfig.encrypted;
|
|
24895
24897
|
if (ALLOWED_VALUES_ENCRYPTED.indexOf(value) === -1) {
|
|
24896
|
-
throw (0, neo4j_driver_core_1$
|
|
24898
|
+
throw (0, neo4j_driver_core_1$F.newError)("Illegal value of the encrypted setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_ENCRYPTED));
|
|
24897
24899
|
}
|
|
24898
24900
|
return value;
|
|
24899
24901
|
}
|
|
24900
24902
|
function extractTrust(driverConfig) {
|
|
24901
24903
|
var value = driverConfig.trust;
|
|
24902
24904
|
if (ALLOWED_VALUES_TRUST.indexOf(value) === -1) {
|
|
24903
|
-
throw (0, neo4j_driver_core_1$
|
|
24905
|
+
throw (0, neo4j_driver_core_1$F.newError)("Illegal value of the trust setting ".concat(value, ". Expected one of ").concat(ALLOWED_VALUES_TRUST));
|
|
24904
24906
|
}
|
|
24905
24907
|
return value;
|
|
24906
24908
|
}
|
|
@@ -25275,13 +25277,13 @@ function simpleEnd(buf) {
|
|
|
25275
25277
|
* See the License for the specific language governing permissions and
|
|
25276
25278
|
* limitations under the License.
|
|
25277
25279
|
*/
|
|
25278
|
-
var __importDefault$
|
|
25280
|
+
var __importDefault$E = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25279
25281
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25280
25282
|
};
|
|
25281
25283
|
Object.defineProperty(utf8, "__esModule", { value: true });
|
|
25282
|
-
var channel_buf_1 = __importDefault$
|
|
25283
|
-
var neo4j_driver_core_1$
|
|
25284
|
-
var buffer_1 = __importDefault$
|
|
25284
|
+
var channel_buf_1 = __importDefault$E(channelBuf);
|
|
25285
|
+
var neo4j_driver_core_1$E = lib$1;
|
|
25286
|
+
var buffer_1 = __importDefault$E(buffer);
|
|
25285
25287
|
var string_decoder_1 = string_decoder;
|
|
25286
25288
|
var decoder = new string_decoder_1.StringDecoder('utf8');
|
|
25287
25289
|
function encode(str) {
|
|
@@ -25295,7 +25297,7 @@ function decode(buffer, length) {
|
|
|
25295
25297
|
return decodeCombinedBuffer(buffer, length);
|
|
25296
25298
|
}
|
|
25297
25299
|
else {
|
|
25298
|
-
throw (0, neo4j_driver_core_1$
|
|
25300
|
+
throw (0, neo4j_driver_core_1$E.newError)("Don't know how to decode strings from '".concat(buffer, "'"));
|
|
25299
25301
|
}
|
|
25300
25302
|
}
|
|
25301
25303
|
function decodeChannelBuffer(buffer, length) {
|
|
@@ -25412,7 +25414,7 @@ Object.defineProperty(exports, "utf8", { enumerable: true, get: function () { re
|
|
|
25412
25414
|
*/
|
|
25413
25415
|
Object.defineProperty(handshake$1, "__esModule", { value: true });
|
|
25414
25416
|
var channel_1$4 = channel;
|
|
25415
|
-
var neo4j_driver_core_1$
|
|
25417
|
+
var neo4j_driver_core_1$D = lib$1;
|
|
25416
25418
|
var BOLT_MAGIC_PREAMBLE = 0x6060b017;
|
|
25417
25419
|
function version(major, minor) {
|
|
25418
25420
|
return {
|
|
@@ -25422,7 +25424,7 @@ function version(major, minor) {
|
|
|
25422
25424
|
}
|
|
25423
25425
|
function createHandshakeMessage(versions) {
|
|
25424
25426
|
if (versions.length > 4) {
|
|
25425
|
-
throw (0, neo4j_driver_core_1$
|
|
25427
|
+
throw (0, neo4j_driver_core_1$D.newError)('It should not have more than 4 versions of the protocol');
|
|
25426
25428
|
}
|
|
25427
25429
|
var handshakeBuffer = (0, channel_1$4.alloc)(5 * 4);
|
|
25428
25430
|
handshakeBuffer.writeInt32(BOLT_MAGIC_PREAMBLE);
|
|
@@ -25450,7 +25452,7 @@ function parseNegotiatedResponse(buffer, log) {
|
|
|
25450
25452
|
];
|
|
25451
25453
|
if (h[0] === 0x48 && h[1] === 0x54 && h[2] === 0x54 && h[3] === 0x50) {
|
|
25452
25454
|
log.error('Handshake failed since server responded with HTTP.');
|
|
25453
|
-
throw (0, neo4j_driver_core_1$
|
|
25455
|
+
throw (0, neo4j_driver_core_1$D.newError)('Server responded HTTP. Make sure you are not trying to connect to the http endpoint ' +
|
|
25454
25456
|
'(HTTP defaults to port 7474 whereas BOLT defaults to port 7687)');
|
|
25455
25457
|
}
|
|
25456
25458
|
return Number(h[3] + '.' + h[2]);
|
|
@@ -25461,7 +25463,7 @@ function parseNegotiatedResponse(buffer, log) {
|
|
|
25461
25463
|
*/
|
|
25462
25464
|
function newHandshakeBuffer() {
|
|
25463
25465
|
return createHandshakeMessage([
|
|
25464
|
-
[version(5,
|
|
25466
|
+
[version(5, 6), version(5, 0)],
|
|
25465
25467
|
[version(4, 4), version(4, 2)],
|
|
25466
25468
|
version(4, 1),
|
|
25467
25469
|
version(3, 0)
|
|
@@ -25526,7 +25528,7 @@ var streamObservers = {};
|
|
|
25526
25528
|
|
|
25527
25529
|
var routingTableRaw = {};
|
|
25528
25530
|
|
|
25529
|
-
var __extends$
|
|
25531
|
+
var __extends$n = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25530
25532
|
var extendStatics = function (d, b) {
|
|
25531
25533
|
extendStatics = Object.setPrototypeOf ||
|
|
25532
25534
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25541,7 +25543,7 @@ var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
25541
25543
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25542
25544
|
};
|
|
25543
25545
|
})();
|
|
25544
|
-
var __importDefault$
|
|
25546
|
+
var __importDefault$D = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25545
25547
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25546
25548
|
};
|
|
25547
25549
|
Object.defineProperty(routingTableRaw, "__esModule", { value: true });
|
|
@@ -25562,7 +25564,7 @@ Object.defineProperty(routingTableRaw, "__esModule", { value: true });
|
|
|
25562
25564
|
* limitations under the License.
|
|
25563
25565
|
*/
|
|
25564
25566
|
// eslint-disable-next-line no-unused-vars
|
|
25565
|
-
__importDefault$
|
|
25567
|
+
__importDefault$D(lib$1);
|
|
25566
25568
|
/**
|
|
25567
25569
|
* Represente the raw version of the routing table
|
|
25568
25570
|
*/
|
|
@@ -25657,7 +25659,7 @@ routingTableRaw.default = RawRoutingTable;
|
|
|
25657
25659
|
* Get the raw routing table information from route message response
|
|
25658
25660
|
*/
|
|
25659
25661
|
var ResponseRawRoutingTable = /** @class */ (function (_super) {
|
|
25660
|
-
__extends$
|
|
25662
|
+
__extends$n(ResponseRawRoutingTable, _super);
|
|
25661
25663
|
function ResponseRawRoutingTable(response) {
|
|
25662
25664
|
var _this = _super.call(this) || this;
|
|
25663
25665
|
_this._response = response;
|
|
@@ -25697,7 +25699,7 @@ var ResponseRawRoutingTable = /** @class */ (function (_super) {
|
|
|
25697
25699
|
* Null routing table
|
|
25698
25700
|
*/
|
|
25699
25701
|
var NullRawRoutingTable = /** @class */ (function (_super) {
|
|
25700
|
-
__extends$
|
|
25702
|
+
__extends$n(NullRawRoutingTable, _super);
|
|
25701
25703
|
function NullRawRoutingTable() {
|
|
25702
25704
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
25703
25705
|
}
|
|
@@ -25714,7 +25716,7 @@ var NullRawRoutingTable = /** @class */ (function (_super) {
|
|
|
25714
25716
|
* Get the raw routing table information from the record
|
|
25715
25717
|
*/
|
|
25716
25718
|
var RecordRawRoutingTable = /** @class */ (function (_super) {
|
|
25717
|
-
__extends$
|
|
25719
|
+
__extends$n(RecordRawRoutingTable, _super);
|
|
25718
25720
|
function RecordRawRoutingTable(record) {
|
|
25719
25721
|
var _this = _super.call(this) || this;
|
|
25720
25722
|
_this._record = record;
|
|
@@ -25773,7 +25775,7 @@ var functional = {};
|
|
|
25773
25775
|
*/
|
|
25774
25776
|
Object.defineProperty(functional, "__esModule", { value: true });
|
|
25775
25777
|
functional.reuseOngoingRequest = functional.identity = void 0;
|
|
25776
|
-
var neo4j_driver_core_1$
|
|
25778
|
+
var neo4j_driver_core_1$C = lib$1;
|
|
25777
25779
|
/**
|
|
25778
25780
|
* Identity function.
|
|
25779
25781
|
*
|
|
@@ -25801,7 +25803,7 @@ function reuseOngoingRequest(func, thisArg) {
|
|
|
25801
25803
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
25802
25804
|
args[_i] = arguments[_i];
|
|
25803
25805
|
}
|
|
25804
|
-
var key = neo4j_driver_core_1$
|
|
25806
|
+
var key = neo4j_driver_core_1$C.json.stringify(args);
|
|
25805
25807
|
if (ongoingRequests.has(key)) {
|
|
25806
25808
|
return ongoingRequests.get(key);
|
|
25807
25809
|
}
|
|
@@ -25924,7 +25926,7 @@ lang.object = lang.functional = void 0;
|
|
|
25924
25926
|
lang.functional = __importStar$5(functional);
|
|
25925
25927
|
lang.object = __importStar$5(object);
|
|
25926
25928
|
|
|
25927
|
-
var __extends$
|
|
25929
|
+
var __extends$m = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
25928
25930
|
var extendStatics = function (d, b) {
|
|
25929
25931
|
extendStatics = Object.setPrototypeOf ||
|
|
25930
25932
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -25939,7 +25941,7 @@ var __extends$l = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
25939
25941
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
25940
25942
|
};
|
|
25941
25943
|
})();
|
|
25942
|
-
var __importDefault$
|
|
25944
|
+
var __importDefault$C = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
25943
25945
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
25944
25946
|
};
|
|
25945
25947
|
Object.defineProperty(streamObservers, "__esModule", { value: true });
|
|
@@ -25960,11 +25962,11 @@ streamObservers.TelemetryObserver = streamObservers.ProcedureRouteObserver = str
|
|
|
25960
25962
|
* See the License for the specific language governing permissions and
|
|
25961
25963
|
* limitations under the License.
|
|
25962
25964
|
*/
|
|
25963
|
-
var neo4j_driver_core_1$
|
|
25964
|
-
var routing_table_raw_1 = __importDefault$
|
|
25965
|
+
var neo4j_driver_core_1$B = lib$1;
|
|
25966
|
+
var routing_table_raw_1 = __importDefault$C(routingTableRaw);
|
|
25965
25967
|
var lang_1$4 = lang;
|
|
25966
|
-
var FETCH_ALL$5 = neo4j_driver_core_1$
|
|
25967
|
-
var PROTOCOL_ERROR$5 = neo4j_driver_core_1$
|
|
25968
|
+
var FETCH_ALL$5 = neo4j_driver_core_1$B.internal.constants.FETCH_ALL;
|
|
25969
|
+
var PROTOCOL_ERROR$5 = neo4j_driver_core_1$B.error.PROTOCOL_ERROR;
|
|
25968
25970
|
var StreamObserver = /** @class */ (function () {
|
|
25969
25971
|
function StreamObserver() {
|
|
25970
25972
|
}
|
|
@@ -25985,7 +25987,7 @@ streamObservers.StreamObserver = StreamObserver;
|
|
|
25985
25987
|
* @access private
|
|
25986
25988
|
*/
|
|
25987
25989
|
var ResultStreamObserver = /** @class */ (function (_super) {
|
|
25988
|
-
__extends$
|
|
25990
|
+
__extends$m(ResultStreamObserver, _super);
|
|
25989
25991
|
/**
|
|
25990
25992
|
*
|
|
25991
25993
|
* @param {Object} param
|
|
@@ -26062,7 +26064,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
26062
26064
|
*/
|
|
26063
26065
|
ResultStreamObserver.prototype.onNext = function (rawRecord) {
|
|
26064
26066
|
this._haveRecordStreamed = true;
|
|
26065
|
-
var record = new neo4j_driver_core_1$
|
|
26067
|
+
var record = new neo4j_driver_core_1$B.Record(this._fieldKeys, rawRecord, this._fieldLookup);
|
|
26066
26068
|
if (this._observers.some(function (o) { return o.onNext; })) {
|
|
26067
26069
|
this._observers.forEach(function (o) {
|
|
26068
26070
|
if (o.onNext) {
|
|
@@ -26171,7 +26173,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
26171
26173
|
}
|
|
26172
26174
|
}, meta));
|
|
26173
26175
|
if (![undefined, null, 'r', 'w', 'rw', 's'].includes(completionMetadata.type)) {
|
|
26174
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26176
|
+
this.onError((0, neo4j_driver_core_1$B.newError)("Server returned invalid query type. Expected one of [undefined, null, \"r\", \"w\", \"rw\", \"s\"] but got '".concat(completionMetadata.type, "'"), PROTOCOL_ERROR$5));
|
|
26175
26177
|
return;
|
|
26176
26178
|
}
|
|
26177
26179
|
this._setState(_states.SUCCEEDED);
|
|
@@ -26316,7 +26318,7 @@ var ResultStreamObserver = /** @class */ (function (_super) {
|
|
|
26316
26318
|
}(StreamObserver));
|
|
26317
26319
|
streamObservers.ResultStreamObserver = ResultStreamObserver;
|
|
26318
26320
|
var LoginObserver = /** @class */ (function (_super) {
|
|
26319
|
-
__extends$
|
|
26321
|
+
__extends$m(LoginObserver, _super);
|
|
26320
26322
|
/**
|
|
26321
26323
|
*
|
|
26322
26324
|
* @param {Object} param -
|
|
@@ -26331,7 +26333,7 @@ var LoginObserver = /** @class */ (function (_super) {
|
|
|
26331
26333
|
return _this;
|
|
26332
26334
|
}
|
|
26333
26335
|
LoginObserver.prototype.onNext = function (record) {
|
|
26334
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26336
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when initializing ' + neo4j_driver_core_1$B.json.stringify(record)));
|
|
26335
26337
|
};
|
|
26336
26338
|
LoginObserver.prototype.onError = function (error) {
|
|
26337
26339
|
if (this._onError) {
|
|
@@ -26347,7 +26349,7 @@ var LoginObserver = /** @class */ (function (_super) {
|
|
|
26347
26349
|
}(StreamObserver));
|
|
26348
26350
|
streamObservers.LoginObserver = LoginObserver;
|
|
26349
26351
|
var LogoffObserver = /** @class */ (function (_super) {
|
|
26350
|
-
__extends$
|
|
26352
|
+
__extends$m(LogoffObserver, _super);
|
|
26351
26353
|
/**
|
|
26352
26354
|
*
|
|
26353
26355
|
* @param {Object} param -
|
|
@@ -26362,7 +26364,7 @@ var LogoffObserver = /** @class */ (function (_super) {
|
|
|
26362
26364
|
return _this;
|
|
26363
26365
|
}
|
|
26364
26366
|
LogoffObserver.prototype.onNext = function (record) {
|
|
26365
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26367
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when logging off ' + neo4j_driver_core_1$B.json.stringify(record)));
|
|
26366
26368
|
};
|
|
26367
26369
|
LogoffObserver.prototype.onError = function (error) {
|
|
26368
26370
|
if (this._onError) {
|
|
@@ -26378,7 +26380,7 @@ var LogoffObserver = /** @class */ (function (_super) {
|
|
|
26378
26380
|
}(StreamObserver));
|
|
26379
26381
|
streamObservers.LogoffObserver = LogoffObserver;
|
|
26380
26382
|
var ResetObserver = /** @class */ (function (_super) {
|
|
26381
|
-
__extends$
|
|
26383
|
+
__extends$m(ResetObserver, _super);
|
|
26382
26384
|
/**
|
|
26383
26385
|
*
|
|
26384
26386
|
* @param {Object} param -
|
|
@@ -26395,8 +26397,8 @@ var ResetObserver = /** @class */ (function (_super) {
|
|
|
26395
26397
|
return _this;
|
|
26396
26398
|
}
|
|
26397
26399
|
ResetObserver.prototype.onNext = function (record) {
|
|
26398
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26399
|
-
neo4j_driver_core_1$
|
|
26400
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when resetting: received record is: ' +
|
|
26401
|
+
neo4j_driver_core_1$B.json.stringify(record), PROTOCOL_ERROR$5));
|
|
26400
26402
|
};
|
|
26401
26403
|
ResetObserver.prototype.onError = function (error) {
|
|
26402
26404
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -26415,7 +26417,7 @@ var ResetObserver = /** @class */ (function (_super) {
|
|
|
26415
26417
|
}(StreamObserver));
|
|
26416
26418
|
streamObservers.ResetObserver = ResetObserver;
|
|
26417
26419
|
var TelemetryObserver = /** @class */ (function (_super) {
|
|
26418
|
-
__extends$
|
|
26420
|
+
__extends$m(TelemetryObserver, _super);
|
|
26419
26421
|
/**
|
|
26420
26422
|
*
|
|
26421
26423
|
* @param {Object} param -
|
|
@@ -26430,7 +26432,7 @@ var TelemetryObserver = /** @class */ (function (_super) {
|
|
|
26430
26432
|
return _this;
|
|
26431
26433
|
}
|
|
26432
26434
|
TelemetryObserver.prototype.onNext = function (record) {
|
|
26433
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26435
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when sending telemetry ' + neo4j_driver_core_1$B.json.stringify(record), PROTOCOL_ERROR$5));
|
|
26434
26436
|
};
|
|
26435
26437
|
TelemetryObserver.prototype.onError = function (error) {
|
|
26436
26438
|
if (this._onError) {
|
|
@@ -26446,7 +26448,7 @@ var TelemetryObserver = /** @class */ (function (_super) {
|
|
|
26446
26448
|
}(ResultStreamObserver));
|
|
26447
26449
|
streamObservers.TelemetryObserver = TelemetryObserver;
|
|
26448
26450
|
var FailedObserver = /** @class */ (function (_super) {
|
|
26449
|
-
__extends$
|
|
26451
|
+
__extends$m(FailedObserver, _super);
|
|
26450
26452
|
function FailedObserver(_a) {
|
|
26451
26453
|
var error = _a.error, onError = _a.onError;
|
|
26452
26454
|
var _this = _super.call(this, { beforeError: onError }) || this;
|
|
@@ -26457,7 +26459,7 @@ var FailedObserver = /** @class */ (function (_super) {
|
|
|
26457
26459
|
}(ResultStreamObserver));
|
|
26458
26460
|
streamObservers.FailedObserver = FailedObserver;
|
|
26459
26461
|
var CompletedObserver = /** @class */ (function (_super) {
|
|
26460
|
-
__extends$
|
|
26462
|
+
__extends$m(CompletedObserver, _super);
|
|
26461
26463
|
function CompletedObserver() {
|
|
26462
26464
|
var _this = _super.call(this) || this;
|
|
26463
26465
|
_super.prototype.markCompleted.call(_this);
|
|
@@ -26467,7 +26469,7 @@ var CompletedObserver = /** @class */ (function (_super) {
|
|
|
26467
26469
|
}(ResultStreamObserver));
|
|
26468
26470
|
streamObservers.CompletedObserver = CompletedObserver;
|
|
26469
26471
|
var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
26470
|
-
__extends$
|
|
26472
|
+
__extends$m(ProcedureRouteObserver, _super);
|
|
26471
26473
|
function ProcedureRouteObserver(_a) {
|
|
26472
26474
|
var resultObserver = _a.resultObserver, onProtocolError = _a.onProtocolError, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
26473
26475
|
var _this = _super.call(this) || this;
|
|
@@ -26492,10 +26494,10 @@ var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
|
26492
26494
|
};
|
|
26493
26495
|
ProcedureRouteObserver.prototype.onCompleted = function () {
|
|
26494
26496
|
if (this._records !== null && this._records.length !== 1) {
|
|
26495
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26497
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Illegal response from router. Received ' +
|
|
26496
26498
|
this._records.length +
|
|
26497
26499
|
' records but expected only one.\n' +
|
|
26498
|
-
neo4j_driver_core_1$
|
|
26500
|
+
neo4j_driver_core_1$B.json.stringify(this._records), PROTOCOL_ERROR$5));
|
|
26499
26501
|
return;
|
|
26500
26502
|
}
|
|
26501
26503
|
if (this._onCompleted) {
|
|
@@ -26506,7 +26508,7 @@ var ProcedureRouteObserver = /** @class */ (function (_super) {
|
|
|
26506
26508
|
}(StreamObserver));
|
|
26507
26509
|
streamObservers.ProcedureRouteObserver = ProcedureRouteObserver;
|
|
26508
26510
|
var RouteObserver = /** @class */ (function (_super) {
|
|
26509
|
-
__extends$
|
|
26511
|
+
__extends$m(RouteObserver, _super);
|
|
26510
26512
|
/**
|
|
26511
26513
|
*
|
|
26512
26514
|
* @param {Object} param -
|
|
@@ -26523,8 +26525,8 @@ var RouteObserver = /** @class */ (function (_super) {
|
|
|
26523
26525
|
return _this;
|
|
26524
26526
|
}
|
|
26525
26527
|
RouteObserver.prototype.onNext = function (record) {
|
|
26526
|
-
this.onError((0, neo4j_driver_core_1$
|
|
26527
|
-
neo4j_driver_core_1$
|
|
26528
|
+
this.onError((0, neo4j_driver_core_1$B.newError)('Received RECORD when resetting: received record is: ' +
|
|
26529
|
+
neo4j_driver_core_1$B.json.stringify(record), PROTOCOL_ERROR$5));
|
|
26528
26530
|
};
|
|
26529
26531
|
RouteObserver.prototype.onError = function (error) {
|
|
26530
26532
|
if (error.code === PROTOCOL_ERROR$5 && this._onProtocolError) {
|
|
@@ -26626,7 +26628,7 @@ boltProtocolUtil.assertNotificationFilterIsEmpty = boltProtocolUtil.assertImpers
|
|
|
26626
26628
|
* See the License for the specific language governing permissions and
|
|
26627
26629
|
* limitations under the License.
|
|
26628
26630
|
*/
|
|
26629
|
-
var neo4j_driver_core_1$
|
|
26631
|
+
var neo4j_driver_core_1$A = lib$1;
|
|
26630
26632
|
/**
|
|
26631
26633
|
* @param {TxConfig} txConfig the auto-commit transaction configuration.
|
|
26632
26634
|
* @param {function(error: string)} onProtocolError called when the txConfig is not empty.
|
|
@@ -26635,7 +26637,7 @@ var neo4j_driver_core_1$z = lib$1;
|
|
|
26635
26637
|
function assertTxConfigIsEmpty(txConfig, onProtocolError, observer) {
|
|
26636
26638
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
26637
26639
|
if (txConfig && !txConfig.isEmpty()) {
|
|
26638
|
-
var error = (0, neo4j_driver_core_1$
|
|
26640
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to the database that does not support transaction configuration. ' +
|
|
26639
26641
|
'Please upgrade to neo4j 3.5.0 or later in order to use this functionality');
|
|
26640
26642
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
26641
26643
|
onProtocolError(error.message);
|
|
@@ -26652,7 +26654,7 @@ boltProtocolUtil.assertTxConfigIsEmpty = assertTxConfigIsEmpty;
|
|
|
26652
26654
|
function assertDatabaseIsEmpty(database, onProtocolError, observer) {
|
|
26653
26655
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
26654
26656
|
if (database) {
|
|
26655
|
-
var error = (0, neo4j_driver_core_1$
|
|
26657
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to the database that does not support multiple databases. ' +
|
|
26656
26658
|
'Please upgrade to neo4j 4.0.0 or later in order to use this functionality');
|
|
26657
26659
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
26658
26660
|
onProtocolError(error.message);
|
|
@@ -26670,7 +26672,7 @@ boltProtocolUtil.assertDatabaseIsEmpty = assertDatabaseIsEmpty;
|
|
|
26670
26672
|
function assertImpersonatedUserIsEmpty(impersonatedUser, onProtocolError, observer) {
|
|
26671
26673
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
26672
26674
|
if (impersonatedUser) {
|
|
26673
|
-
var error = (0, neo4j_driver_core_1$
|
|
26675
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to the database that does not support user impersonation. ' +
|
|
26674
26676
|
'Please upgrade to neo4j 4.4.0 or later in order to use this functionality. ' +
|
|
26675
26677
|
"Trying to impersonate ".concat(impersonatedUser, "."));
|
|
26676
26678
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
@@ -26689,9 +26691,9 @@ boltProtocolUtil.assertImpersonatedUserIsEmpty = assertImpersonatedUserIsEmpty;
|
|
|
26689
26691
|
function assertNotificationFilterIsEmpty(notificationFilter, onProtocolError, observer) {
|
|
26690
26692
|
if (onProtocolError === void 0) { onProtocolError = function () { }; }
|
|
26691
26693
|
if (notificationFilter !== undefined) {
|
|
26692
|
-
var error = (0, neo4j_driver_core_1$
|
|
26694
|
+
var error = (0, neo4j_driver_core_1$A.newError)('Driver is connected to a database that does not support user notification filters. ' +
|
|
26693
26695
|
'Please upgrade to Neo4j 5.7.0 or later in order to use this functionality. ' +
|
|
26694
|
-
"Trying to set notifications to ".concat(neo4j_driver_core_1$
|
|
26696
|
+
"Trying to set notifications to ".concat(neo4j_driver_core_1$A.json.stringify(notificationFilter), "."));
|
|
26695
26697
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
26696
26698
|
onProtocolError(error.message);
|
|
26697
26699
|
observer.onError(error);
|
|
@@ -26724,8 +26726,8 @@ var structure$1 = {};
|
|
|
26724
26726
|
*/
|
|
26725
26727
|
Object.defineProperty(structure$1, "__esModule", { value: true });
|
|
26726
26728
|
structure$1.verifyStructSize = structure$1.Structure = void 0;
|
|
26727
|
-
var neo4j_driver_core_1$
|
|
26728
|
-
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$
|
|
26729
|
+
var neo4j_driver_core_1$z = lib$1;
|
|
26730
|
+
var PROTOCOL_ERROR$4 = neo4j_driver_core_1$z.error.PROTOCOL_ERROR;
|
|
26729
26731
|
/**
|
|
26730
26732
|
* A Structure have a signature and fields.
|
|
26731
26733
|
*/
|
|
@@ -26759,7 +26761,7 @@ var Structure = /** @class */ (function () {
|
|
|
26759
26761
|
structure$1.Structure = Structure;
|
|
26760
26762
|
function verifyStructSize(structName, expectedSize, actualSize) {
|
|
26761
26763
|
if (expectedSize !== actualSize) {
|
|
26762
|
-
throw (0, neo4j_driver_core_1$
|
|
26764
|
+
throw (0, neo4j_driver_core_1$z.newError)("Wrong struct size for ".concat(structName, ", expected ").concat(expectedSize, " but was ").concat(actualSize), PROTOCOL_ERROR$4);
|
|
26763
26765
|
}
|
|
26764
26766
|
}
|
|
26765
26767
|
structure$1.verifyStructSize = verifyStructSize;
|
|
@@ -26786,8 +26788,8 @@ packstreamV1.Unpacker = packstreamV1.Packer = void 0;
|
|
|
26786
26788
|
var channel_1$3 = channel;
|
|
26787
26789
|
var lang_1$3 = lang;
|
|
26788
26790
|
var structure_1 = structure$1;
|
|
26789
|
-
var neo4j_driver_core_1$
|
|
26790
|
-
var PROTOCOL_ERROR$3 = neo4j_driver_core_1$
|
|
26791
|
+
var neo4j_driver_core_1$y = lib$1;
|
|
26792
|
+
var PROTOCOL_ERROR$3 = neo4j_driver_core_1$y.error.PROTOCOL_ERROR;
|
|
26791
26793
|
var TINY_STRING = 0x80;
|
|
26792
26794
|
var TINY_LIST = 0x90;
|
|
26793
26795
|
var TINY_MAP = 0xa0;
|
|
@@ -26857,9 +26859,9 @@ var Packer$1 = /** @class */ (function () {
|
|
|
26857
26859
|
return function () { return _this.packString(x); };
|
|
26858
26860
|
}
|
|
26859
26861
|
else if (typeof x === 'bigint') {
|
|
26860
|
-
return function () { return _this.packInteger((0, neo4j_driver_core_1$
|
|
26862
|
+
return function () { return _this.packInteger((0, neo4j_driver_core_1$y.int)(x)); };
|
|
26861
26863
|
}
|
|
26862
|
-
else if ((0, neo4j_driver_core_1$
|
|
26864
|
+
else if ((0, neo4j_driver_core_1$y.isInt)(x)) {
|
|
26863
26865
|
return function () { return _this.packInteger(x); };
|
|
26864
26866
|
}
|
|
26865
26867
|
else if (x instanceof Int8Array) {
|
|
@@ -26913,7 +26915,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
26913
26915
|
}
|
|
26914
26916
|
catch (e) {
|
|
26915
26917
|
// handle errors from iterable to array conversion
|
|
26916
|
-
throw (0, neo4j_driver_core_1$
|
|
26918
|
+
throw (0, neo4j_driver_core_1$y.newError)("Cannot pack given iterable, ".concat(e.message, ": ").concat(iterable));
|
|
26917
26919
|
}
|
|
26918
26920
|
};
|
|
26919
26921
|
/**
|
|
@@ -26983,7 +26985,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
26983
26985
|
this._ch.writeBytes(bytes);
|
|
26984
26986
|
}
|
|
26985
26987
|
else {
|
|
26986
|
-
throw (0, neo4j_driver_core_1$
|
|
26988
|
+
throw (0, neo4j_driver_core_1$y.newError)('UTF-8 strings of size ' + size + ' are not supported');
|
|
26987
26989
|
}
|
|
26988
26990
|
};
|
|
26989
26991
|
Packer.prototype.packListHeader = function (size) {
|
|
@@ -27007,7 +27009,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27007
27009
|
this._ch.writeUInt8(size % 256);
|
|
27008
27010
|
}
|
|
27009
27011
|
else {
|
|
27010
|
-
throw (0, neo4j_driver_core_1$
|
|
27012
|
+
throw (0, neo4j_driver_core_1$y.newError)('Lists of size ' + size + ' are not supported');
|
|
27011
27013
|
}
|
|
27012
27014
|
};
|
|
27013
27015
|
Packer.prototype.packBytes = function (array) {
|
|
@@ -27018,7 +27020,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27018
27020
|
}
|
|
27019
27021
|
}
|
|
27020
27022
|
else {
|
|
27021
|
-
throw (0, neo4j_driver_core_1$
|
|
27023
|
+
throw (0, neo4j_driver_core_1$y.newError)('Byte arrays are not supported by the database this driver is connected to');
|
|
27022
27024
|
}
|
|
27023
27025
|
};
|
|
27024
27026
|
Packer.prototype.packBytesHeader = function (size) {
|
|
@@ -27039,7 +27041,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27039
27041
|
this._ch.writeUInt8(size % 256);
|
|
27040
27042
|
}
|
|
27041
27043
|
else {
|
|
27042
|
-
throw (0, neo4j_driver_core_1$
|
|
27044
|
+
throw (0, neo4j_driver_core_1$y.newError)('Byte arrays of size ' + size + ' are not supported');
|
|
27043
27045
|
}
|
|
27044
27046
|
};
|
|
27045
27047
|
Packer.prototype.packMapHeader = function (size) {
|
|
@@ -27063,7 +27065,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27063
27065
|
this._ch.writeUInt8(size % 256);
|
|
27064
27066
|
}
|
|
27065
27067
|
else {
|
|
27066
|
-
throw (0, neo4j_driver_core_1$
|
|
27068
|
+
throw (0, neo4j_driver_core_1$y.newError)('Maps of size ' + size + ' are not supported');
|
|
27067
27069
|
}
|
|
27068
27070
|
};
|
|
27069
27071
|
Packer.prototype.packStructHeader = function (size, signature) {
|
|
@@ -27082,7 +27084,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27082
27084
|
this._ch.writeUInt8(size % 256);
|
|
27083
27085
|
}
|
|
27084
27086
|
else {
|
|
27085
|
-
throw (0, neo4j_driver_core_1$
|
|
27087
|
+
throw (0, neo4j_driver_core_1$y.newError)('Structures of size ' + size + ' are not supported');
|
|
27086
27088
|
}
|
|
27087
27089
|
};
|
|
27088
27090
|
Packer.prototype.disableByteArrays = function () {
|
|
@@ -27090,7 +27092,7 @@ var Packer$1 = /** @class */ (function () {
|
|
|
27090
27092
|
};
|
|
27091
27093
|
Packer.prototype._nonPackableValue = function (message) {
|
|
27092
27094
|
return function () {
|
|
27093
|
-
throw (0, neo4j_driver_core_1$
|
|
27095
|
+
throw (0, neo4j_driver_core_1$y.newError)(message, PROTOCOL_ERROR$3);
|
|
27094
27096
|
};
|
|
27095
27097
|
};
|
|
27096
27098
|
return Packer;
|
|
@@ -27126,7 +27128,7 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
27126
27128
|
}
|
|
27127
27129
|
var numberOrInteger = this._unpackNumberOrInteger(marker, buffer);
|
|
27128
27130
|
if (numberOrInteger !== null) {
|
|
27129
|
-
if ((0, neo4j_driver_core_1$
|
|
27131
|
+
if ((0, neo4j_driver_core_1$y.isInt)(numberOrInteger)) {
|
|
27130
27132
|
if (this._useBigInt) {
|
|
27131
27133
|
return numberOrInteger.toBigInt();
|
|
27132
27134
|
}
|
|
@@ -27156,13 +27158,13 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
27156
27158
|
if (struct !== null) {
|
|
27157
27159
|
return struct;
|
|
27158
27160
|
}
|
|
27159
|
-
throw (0, neo4j_driver_core_1$
|
|
27161
|
+
throw (0, neo4j_driver_core_1$y.newError)('Unknown packed value with marker ' + marker.toString(16));
|
|
27160
27162
|
};
|
|
27161
27163
|
Unpacker.prototype.unpackInteger = function (buffer) {
|
|
27162
27164
|
var marker = buffer.readUInt8();
|
|
27163
27165
|
var result = this._unpackInteger(marker, buffer);
|
|
27164
27166
|
if (result == null) {
|
|
27165
|
-
throw (0, neo4j_driver_core_1$
|
|
27167
|
+
throw (0, neo4j_driver_core_1$y.newError)('Unable to unpack integer value with marker ' + marker.toString(16));
|
|
27166
27168
|
}
|
|
27167
27169
|
return result;
|
|
27168
27170
|
};
|
|
@@ -27187,25 +27189,25 @@ var Unpacker$1 = /** @class */ (function () {
|
|
|
27187
27189
|
};
|
|
27188
27190
|
Unpacker.prototype._unpackInteger = function (marker, buffer) {
|
|
27189
27191
|
if (marker >= 0 && marker < 128) {
|
|
27190
|
-
return (0, neo4j_driver_core_1$
|
|
27192
|
+
return (0, neo4j_driver_core_1$y.int)(marker);
|
|
27191
27193
|
}
|
|
27192
27194
|
else if (marker >= 240 && marker < 256) {
|
|
27193
|
-
return (0, neo4j_driver_core_1$
|
|
27195
|
+
return (0, neo4j_driver_core_1$y.int)(marker - 256);
|
|
27194
27196
|
}
|
|
27195
27197
|
else if (marker === INT_8) {
|
|
27196
|
-
return (0, neo4j_driver_core_1$
|
|
27198
|
+
return (0, neo4j_driver_core_1$y.int)(buffer.readInt8());
|
|
27197
27199
|
}
|
|
27198
27200
|
else if (marker === INT_16) {
|
|
27199
|
-
return (0, neo4j_driver_core_1$
|
|
27201
|
+
return (0, neo4j_driver_core_1$y.int)(buffer.readInt16());
|
|
27200
27202
|
}
|
|
27201
27203
|
else if (marker === INT_32) {
|
|
27202
27204
|
var b = buffer.readInt32();
|
|
27203
|
-
return (0, neo4j_driver_core_1$
|
|
27205
|
+
return (0, neo4j_driver_core_1$y.int)(b);
|
|
27204
27206
|
}
|
|
27205
27207
|
else if (marker === INT_64) {
|
|
27206
27208
|
var high = buffer.readInt32();
|
|
27207
27209
|
var low = buffer.readInt32();
|
|
27208
|
-
return new neo4j_driver_core_1$
|
|
27210
|
+
return new neo4j_driver_core_1$y.Integer(low, high);
|
|
27209
27211
|
}
|
|
27210
27212
|
else {
|
|
27211
27213
|
return null;
|
|
@@ -27348,7 +27350,7 @@ var packstreamV2 = {};
|
|
|
27348
27350
|
* See the License for the specific language governing permissions and
|
|
27349
27351
|
* limitations under the License.
|
|
27350
27352
|
*/
|
|
27351
|
-
var __extends$
|
|
27353
|
+
var __extends$l = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
27352
27354
|
var extendStatics = function (d, b) {
|
|
27353
27355
|
extendStatics = Object.setPrototypeOf ||
|
|
27354
27356
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -27390,7 +27392,7 @@ Object.defineProperty(packstreamV2, "__esModule", { value: true });
|
|
|
27390
27392
|
packstreamV2.Unpacker = packstreamV2.Packer = void 0;
|
|
27391
27393
|
var v1$1 = __importStar$4(packstreamV1);
|
|
27392
27394
|
var Packer = /** @class */ (function (_super) {
|
|
27393
|
-
__extends$
|
|
27395
|
+
__extends$l(Packer, _super);
|
|
27394
27396
|
function Packer() {
|
|
27395
27397
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
27396
27398
|
}
|
|
@@ -27401,7 +27403,7 @@ var Packer = /** @class */ (function (_super) {
|
|
|
27401
27403
|
}(v1$1.Packer));
|
|
27402
27404
|
packstreamV2.Packer = Packer;
|
|
27403
27405
|
var Unpacker = /** @class */ (function (_super) {
|
|
27404
|
-
__extends$
|
|
27406
|
+
__extends$l(Unpacker, _super);
|
|
27405
27407
|
/**
|
|
27406
27408
|
* @constructor
|
|
27407
27409
|
* @param {boolean} disableLosslessIntegers if this unpacker should convert all received integers to native JS numbers.
|
|
@@ -27485,8 +27487,8 @@ var requestMessage = {};
|
|
|
27485
27487
|
*/
|
|
27486
27488
|
Object.defineProperty(requestMessage, "__esModule", { value: true });
|
|
27487
27489
|
requestMessage.SIGNATURES = void 0;
|
|
27488
|
-
var neo4j_driver_core_1$
|
|
27489
|
-
var _a$a = neo4j_driver_core_1$
|
|
27490
|
+
var neo4j_driver_core_1$x = lib$1;
|
|
27491
|
+
var _a$a = neo4j_driver_core_1$x.internal.constants, ACCESS_MODE_READ = _a$a.ACCESS_MODE_READ, FETCH_ALL$4 = _a$a.FETCH_ALL, assertString = neo4j_driver_core_1$x.internal.util.assertString;
|
|
27490
27492
|
/* eslint-disable no-unused-vars */
|
|
27491
27493
|
// Signature bytes for each request message type
|
|
27492
27494
|
var INIT = 0x01; // 0000 0001 // INIT <user_agent> <authentication_token>
|
|
@@ -27547,7 +27549,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
27547
27549
|
* @return {RequestMessage} new RUN message.
|
|
27548
27550
|
*/
|
|
27549
27551
|
RequestMessage.run = function (query, parameters) {
|
|
27550
|
-
return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
27552
|
+
return new RequestMessage(RUN, [query, parameters], function () { return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$x.json.stringify(parameters)); });
|
|
27551
27553
|
};
|
|
27552
27554
|
/**
|
|
27553
27555
|
* Get a PULL_ALL message.
|
|
@@ -27611,7 +27613,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
27611
27613
|
if (routing) {
|
|
27612
27614
|
metadata.routing = routing;
|
|
27613
27615
|
}
|
|
27614
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
27616
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27615
27617
|
};
|
|
27616
27618
|
/**
|
|
27617
27619
|
* Create a new HELLO message.
|
|
@@ -27640,7 +27642,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
27640
27642
|
if (routing) {
|
|
27641
27643
|
metadata.routing = routing;
|
|
27642
27644
|
}
|
|
27643
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
27645
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27644
27646
|
};
|
|
27645
27647
|
/**
|
|
27646
27648
|
* Create a new HELLO message.
|
|
@@ -27669,7 +27671,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
27669
27671
|
if (routing) {
|
|
27670
27672
|
metadata.routing = routing;
|
|
27671
27673
|
}
|
|
27672
|
-
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$
|
|
27674
|
+
return new RequestMessage(HELLO, [metadata], function () { return "HELLO ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27673
27675
|
};
|
|
27674
27676
|
/**
|
|
27675
27677
|
* Create a new LOGON message.
|
|
@@ -27701,7 +27703,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
27701
27703
|
RequestMessage.begin = function (_a) {
|
|
27702
27704
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter;
|
|
27703
27705
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
27704
|
-
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$
|
|
27706
|
+
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27705
27707
|
};
|
|
27706
27708
|
/**
|
|
27707
27709
|
* Create a new BEGIN message.
|
|
@@ -27718,7 +27720,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
27718
27720
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter, {
|
|
27719
27721
|
appendNotificationFilter: appendGqlNotificationFilterToMetadata
|
|
27720
27722
|
});
|
|
27721
|
-
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$
|
|
27723
|
+
return new RequestMessage(BEGIN, [metadata], function () { return "BEGIN ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27722
27724
|
};
|
|
27723
27725
|
/**
|
|
27724
27726
|
* Get a COMMIT message.
|
|
@@ -27751,7 +27753,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
27751
27753
|
var _b = _a === void 0 ? {} : _a, bookmarks = _b.bookmarks, txConfig = _b.txConfig, database = _b.database, mode = _b.mode, impersonatedUser = _b.impersonatedUser, notificationFilter = _b.notificationFilter;
|
|
27752
27754
|
var metadata = buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser, notificationFilter);
|
|
27753
27755
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
27754
|
-
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
27756
|
+
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$x.json.stringify(parameters), " ").concat(neo4j_driver_core_1$x.json.stringify(metadata));
|
|
27755
27757
|
});
|
|
27756
27758
|
};
|
|
27757
27759
|
/**
|
|
@@ -27773,7 +27775,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
27773
27775
|
appendNotificationFilter: appendGqlNotificationFilterToMetadata
|
|
27774
27776
|
});
|
|
27775
27777
|
return new RequestMessage(RUN, [query, parameters, metadata], function () {
|
|
27776
|
-
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$
|
|
27778
|
+
return "RUN ".concat(query, " ").concat(neo4j_driver_core_1$x.json.stringify(parameters), " ").concat(neo4j_driver_core_1$x.json.stringify(metadata));
|
|
27777
27779
|
});
|
|
27778
27780
|
};
|
|
27779
27781
|
/**
|
|
@@ -27792,7 +27794,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
27792
27794
|
RequestMessage.pull = function (_a) {
|
|
27793
27795
|
var _b = _a === void 0 ? {} : _a, _c = _b.stmtId, stmtId = _c === void 0 ? NO_STATEMENT_ID : _c, _d = _b.n, n = _d === void 0 ? FETCH_ALL$4 : _d;
|
|
27794
27796
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$4);
|
|
27795
|
-
return new RequestMessage(PULL, [metadata], function () { return "PULL ".concat(neo4j_driver_core_1$
|
|
27797
|
+
return new RequestMessage(PULL, [metadata], function () { return "PULL ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27796
27798
|
};
|
|
27797
27799
|
/**
|
|
27798
27800
|
* Generates a new DISCARD message with additional metadata.
|
|
@@ -27803,11 +27805,11 @@ var RequestMessage = /** @class */ (function () {
|
|
|
27803
27805
|
RequestMessage.discard = function (_a) {
|
|
27804
27806
|
var _b = _a === void 0 ? {} : _a, _c = _b.stmtId, stmtId = _c === void 0 ? NO_STATEMENT_ID : _c, _d = _b.n, n = _d === void 0 ? FETCH_ALL$4 : _d;
|
|
27805
27807
|
var metadata = buildStreamMetadata(stmtId === null || stmtId === undefined ? NO_STATEMENT_ID : stmtId, n || FETCH_ALL$4);
|
|
27806
|
-
return new RequestMessage(DISCARD, [metadata], function () { return "DISCARD ".concat(neo4j_driver_core_1$
|
|
27808
|
+
return new RequestMessage(DISCARD, [metadata], function () { return "DISCARD ".concat(neo4j_driver_core_1$x.json.stringify(metadata)); });
|
|
27807
27809
|
};
|
|
27808
27810
|
RequestMessage.telemetry = function (_a) {
|
|
27809
27811
|
var api = _a.api;
|
|
27810
|
-
var parsedApi = (0, neo4j_driver_core_1$
|
|
27812
|
+
var parsedApi = (0, neo4j_driver_core_1$x.int)(api);
|
|
27811
27813
|
return new RequestMessage(TELEMETRY, [parsedApi], function () { return "TELEMETRY ".concat(parsedApi.toString()); });
|
|
27812
27814
|
};
|
|
27813
27815
|
/**
|
|
@@ -27823,7 +27825,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
27823
27825
|
if (bookmarks === void 0) { bookmarks = []; }
|
|
27824
27826
|
if (databaseName === void 0) { databaseName = null; }
|
|
27825
27827
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, databaseName], function () {
|
|
27826
|
-
return "ROUTE ".concat(neo4j_driver_core_1$
|
|
27828
|
+
return "ROUTE ".concat(neo4j_driver_core_1$x.json.stringify(routingContext), " ").concat(neo4j_driver_core_1$x.json.stringify(bookmarks), " ").concat(databaseName);
|
|
27827
27829
|
});
|
|
27828
27830
|
};
|
|
27829
27831
|
/**
|
|
@@ -27848,7 +27850,7 @@ var RequestMessage = /** @class */ (function () {
|
|
|
27848
27850
|
dbContext.imp_user = databaseContext.impersonatedUser;
|
|
27849
27851
|
}
|
|
27850
27852
|
return new RequestMessage(ROUTE, [routingContext, bookmarks, dbContext], function () {
|
|
27851
|
-
return "ROUTE ".concat(neo4j_driver_core_1$
|
|
27853
|
+
return "ROUTE ".concat(neo4j_driver_core_1$x.json.stringify(routingContext), " ").concat(neo4j_driver_core_1$x.json.stringify(bookmarks), " ").concat(neo4j_driver_core_1$x.json.stringify(dbContext));
|
|
27852
27854
|
});
|
|
27853
27855
|
};
|
|
27854
27856
|
return RequestMessage;
|
|
@@ -27899,9 +27901,9 @@ function buildTxMetadata(bookmarks, txConfig, database, mode, impersonatedUser,
|
|
|
27899
27901
|
* @returns {Object} a metadata object.
|
|
27900
27902
|
*/
|
|
27901
27903
|
function buildStreamMetadata(stmtId, n) {
|
|
27902
|
-
var metadata = { n: (0, neo4j_driver_core_1$
|
|
27904
|
+
var metadata = { n: (0, neo4j_driver_core_1$x.int)(n) };
|
|
27903
27905
|
if (stmtId !== NO_STATEMENT_ID) {
|
|
27904
|
-
metadata.qid = (0, neo4j_driver_core_1$
|
|
27906
|
+
metadata.qid = (0, neo4j_driver_core_1$x.int)(stmtId);
|
|
27905
27907
|
}
|
|
27906
27908
|
return metadata;
|
|
27907
27909
|
}
|
|
@@ -27961,8 +27963,8 @@ var transformer = {};
|
|
|
27961
27963
|
Object.defineProperty(transformer, "__esModule", { value: true });
|
|
27962
27964
|
transformer.TypeTransformer = void 0;
|
|
27963
27965
|
var packstream_1$6 = packstream;
|
|
27964
|
-
var neo4j_driver_core_1$
|
|
27965
|
-
var objectUtil = neo4j_driver_core_1$
|
|
27966
|
+
var neo4j_driver_core_1$w = lib$1;
|
|
27967
|
+
var objectUtil = neo4j_driver_core_1$w.internal.objectUtil;
|
|
27966
27968
|
/**
|
|
27967
27969
|
* Class responsible for applying the expected {@link TypeTransformer} to
|
|
27968
27970
|
* transform the driver types from and to {@link struct.Structure}
|
|
@@ -28105,10 +28107,10 @@ var __read$6 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
28105
28107
|
return ar;
|
|
28106
28108
|
};
|
|
28107
28109
|
Object.defineProperty(boltProtocolV1_transformer, "__esModule", { value: true });
|
|
28108
|
-
var neo4j_driver_core_1$
|
|
28110
|
+
var neo4j_driver_core_1$v = lib$1;
|
|
28109
28111
|
var packstream_1$5 = packstream;
|
|
28110
|
-
var transformer_1$
|
|
28111
|
-
var PROTOCOL_ERROR$2 = neo4j_driver_core_1$
|
|
28112
|
+
var transformer_1$g = transformer;
|
|
28113
|
+
var PROTOCOL_ERROR$2 = neo4j_driver_core_1$v.error.PROTOCOL_ERROR;
|
|
28112
28114
|
var NODE = 0x4e;
|
|
28113
28115
|
var NODE_STRUCT_SIZE$1 = 3;
|
|
28114
28116
|
var RELATIONSHIP = 0x52;
|
|
@@ -28122,16 +28124,16 @@ var PATH_STRUCT_SIZE = 3;
|
|
|
28122
28124
|
* @returns {TypeTransformer}
|
|
28123
28125
|
*/
|
|
28124
28126
|
function createNodeTransformer$1() {
|
|
28125
|
-
return new transformer_1$
|
|
28127
|
+
return new transformer_1$g.TypeTransformer({
|
|
28126
28128
|
signature: NODE,
|
|
28127
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
28129
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Node; },
|
|
28128
28130
|
toStructure: function (object) {
|
|
28129
|
-
throw (0, neo4j_driver_core_1$
|
|
28131
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass nodes in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28130
28132
|
},
|
|
28131
28133
|
fromStructure: function (struct) {
|
|
28132
28134
|
packstream_1$5.structure.verifyStructSize('Node', NODE_STRUCT_SIZE$1, struct.size);
|
|
28133
28135
|
var _a = __read$6(struct.fields, 3), identity = _a[0], labels = _a[1], properties = _a[2];
|
|
28134
|
-
return new neo4j_driver_core_1$
|
|
28136
|
+
return new neo4j_driver_core_1$v.Node(identity, labels, properties);
|
|
28135
28137
|
}
|
|
28136
28138
|
});
|
|
28137
28139
|
}
|
|
@@ -28140,16 +28142,16 @@ function createNodeTransformer$1() {
|
|
|
28140
28142
|
* @returns {TypeTransformer}
|
|
28141
28143
|
*/
|
|
28142
28144
|
function createRelationshipTransformer$1() {
|
|
28143
|
-
return new transformer_1$
|
|
28145
|
+
return new transformer_1$g.TypeTransformer({
|
|
28144
28146
|
signature: RELATIONSHIP,
|
|
28145
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
28147
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Relationship; },
|
|
28146
28148
|
toStructure: function (object) {
|
|
28147
|
-
throw (0, neo4j_driver_core_1$
|
|
28149
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass relationships in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28148
28150
|
},
|
|
28149
28151
|
fromStructure: function (struct) {
|
|
28150
28152
|
packstream_1$5.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
28151
28153
|
var _a = __read$6(struct.fields, 5), identity = _a[0], startNodeIdentity = _a[1], endNodeIdentity = _a[2], type = _a[3], properties = _a[4];
|
|
28152
|
-
return new neo4j_driver_core_1$
|
|
28154
|
+
return new neo4j_driver_core_1$v.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties);
|
|
28153
28155
|
}
|
|
28154
28156
|
});
|
|
28155
28157
|
}
|
|
@@ -28158,16 +28160,16 @@ function createRelationshipTransformer$1() {
|
|
|
28158
28160
|
* @returns {TypeTransformer}
|
|
28159
28161
|
*/
|
|
28160
28162
|
function createUnboundRelationshipTransformer$1() {
|
|
28161
|
-
return new transformer_1$
|
|
28163
|
+
return new transformer_1$g.TypeTransformer({
|
|
28162
28164
|
signature: UNBOUND_RELATIONSHIP,
|
|
28163
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
28165
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.UnboundRelationship; },
|
|
28164
28166
|
toStructure: function (object) {
|
|
28165
|
-
throw (0, neo4j_driver_core_1$
|
|
28167
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass unbound relationships in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28166
28168
|
},
|
|
28167
28169
|
fromStructure: function (struct) {
|
|
28168
28170
|
packstream_1$5.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE$1, struct.size);
|
|
28169
28171
|
var _a = __read$6(struct.fields, 3), identity = _a[0], type = _a[1], properties = _a[2];
|
|
28170
|
-
return new neo4j_driver_core_1$
|
|
28172
|
+
return new neo4j_driver_core_1$v.UnboundRelationship(identity, type, properties);
|
|
28171
28173
|
}
|
|
28172
28174
|
});
|
|
28173
28175
|
}
|
|
@@ -28176,11 +28178,11 @@ function createUnboundRelationshipTransformer$1() {
|
|
|
28176
28178
|
* @returns {TypeTransformer}
|
|
28177
28179
|
*/
|
|
28178
28180
|
function createPathTransformer() {
|
|
28179
|
-
return new transformer_1$
|
|
28181
|
+
return new transformer_1$g.TypeTransformer({
|
|
28180
28182
|
signature: PATH,
|
|
28181
|
-
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$
|
|
28183
|
+
isTypeInstance: function (object) { return object instanceof neo4j_driver_core_1$v.Path; },
|
|
28182
28184
|
toStructure: function (object) {
|
|
28183
|
-
throw (0, neo4j_driver_core_1$
|
|
28185
|
+
throw (0, neo4j_driver_core_1$v.newError)("It is not allowed to pass paths in query parameters, given: ".concat(object), PROTOCOL_ERROR$2);
|
|
28184
28186
|
},
|
|
28185
28187
|
fromStructure: function (struct) {
|
|
28186
28188
|
packstream_1$5.structure.verifyStructSize('Path', PATH_STRUCT_SIZE, struct.size);
|
|
@@ -28189,11 +28191,11 @@ function createPathTransformer() {
|
|
|
28189
28191
|
var prevNode = nodes[0];
|
|
28190
28192
|
for (var i = 0; i < sequence.length; i += 2) {
|
|
28191
28193
|
var nextNode = nodes[sequence[i + 1]];
|
|
28192
|
-
var relIndex = (0, neo4j_driver_core_1$
|
|
28194
|
+
var relIndex = (0, neo4j_driver_core_1$v.toNumber)(sequence[i]);
|
|
28193
28195
|
var rel = void 0;
|
|
28194
28196
|
if (relIndex > 0) {
|
|
28195
28197
|
rel = rels[relIndex - 1];
|
|
28196
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
28198
|
+
if (rel instanceof neo4j_driver_core_1$v.UnboundRelationship) {
|
|
28197
28199
|
// To avoid duplication, relationships in a path do not contain
|
|
28198
28200
|
// information about their start and end nodes, that's instead
|
|
28199
28201
|
// inferred from the path sequence. This is us inferring (and,
|
|
@@ -28203,16 +28205,16 @@ function createPathTransformer() {
|
|
|
28203
28205
|
}
|
|
28204
28206
|
else {
|
|
28205
28207
|
rel = rels[-relIndex - 1];
|
|
28206
|
-
if (rel instanceof neo4j_driver_core_1$
|
|
28208
|
+
if (rel instanceof neo4j_driver_core_1$v.UnboundRelationship) {
|
|
28207
28209
|
// See above
|
|
28208
28210
|
rels[-relIndex - 1] = rel = rel.bindTo(nextNode, prevNode);
|
|
28209
28211
|
}
|
|
28210
28212
|
}
|
|
28211
28213
|
// Done hydrating one path segment.
|
|
28212
|
-
segments.push(new neo4j_driver_core_1$
|
|
28214
|
+
segments.push(new neo4j_driver_core_1$v.PathSegment(prevNode, rel, nextNode));
|
|
28213
28215
|
prevNode = nextNode;
|
|
28214
28216
|
}
|
|
28215
|
-
return new neo4j_driver_core_1$
|
|
28217
|
+
return new neo4j_driver_core_1$v.Path(nodes[0], nodes[nodes.length - 1], segments);
|
|
28216
28218
|
}
|
|
28217
28219
|
});
|
|
28218
28220
|
}
|
|
@@ -28246,7 +28248,7 @@ var __importStar$2 = (commonjsGlobal && commonjsGlobal.__importStar) || function
|
|
|
28246
28248
|
__setModuleDefault$2(result, mod);
|
|
28247
28249
|
return result;
|
|
28248
28250
|
};
|
|
28249
|
-
var __importDefault$
|
|
28251
|
+
var __importDefault$B = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28250
28252
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28251
28253
|
};
|
|
28252
28254
|
Object.defineProperty(boltProtocolV1, "__esModule", { value: true });
|
|
@@ -28270,11 +28272,11 @@ var bolt_protocol_util_1$7 = boltProtocolUtil;
|
|
|
28270
28272
|
var packstream_1$4 = packstream;
|
|
28271
28273
|
var request_message_1$b = __importStar$2(requestMessage);
|
|
28272
28274
|
var stream_observers_1$b = streamObservers;
|
|
28273
|
-
var neo4j_driver_core_1$
|
|
28274
|
-
var bolt_protocol_v1_transformer_1$1 = __importDefault$
|
|
28275
|
-
var transformer_1$
|
|
28276
|
-
var Bookmarks$3 = neo4j_driver_core_1$
|
|
28277
|
-
var BoltProtocol$
|
|
28275
|
+
var neo4j_driver_core_1$u = lib$1;
|
|
28276
|
+
var bolt_protocol_v1_transformer_1$1 = __importDefault$B(boltProtocolV1_transformer);
|
|
28277
|
+
var transformer_1$f = __importDefault$B(transformer);
|
|
28278
|
+
var Bookmarks$3 = neo4j_driver_core_1$u.internal.bookmarks.Bookmarks, _a$9 = neo4j_driver_core_1$u.internal.constants, ACCESS_MODE_WRITE = _a$9.ACCESS_MODE_WRITE, BOLT_PROTOCOL_V1 = _a$9.BOLT_PROTOCOL_V1; neo4j_driver_core_1$u.internal.logger.Logger; var TxConfig$2 = neo4j_driver_core_1$u.internal.txConfig.TxConfig;
|
|
28279
|
+
var BoltProtocol$e = /** @class */ (function () {
|
|
28278
28280
|
/**
|
|
28279
28281
|
* @callback CreateResponseHandler Creates the response handler
|
|
28280
28282
|
* @param {BoltProtocol} protocol The bolt protocol
|
|
@@ -28313,7 +28315,7 @@ var BoltProtocol$d = /** @class */ (function () {
|
|
|
28313
28315
|
get: function () {
|
|
28314
28316
|
var _this = this;
|
|
28315
28317
|
if (this._transformer === undefined) {
|
|
28316
|
-
this._transformer = new transformer_1$
|
|
28318
|
+
this._transformer = new transformer_1$f.default(Object.values(bolt_protocol_v1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
28317
28319
|
}
|
|
28318
28320
|
return this._transformer;
|
|
28319
28321
|
},
|
|
@@ -28437,7 +28439,7 @@ var BoltProtocol$d = /** @class */ (function () {
|
|
|
28437
28439
|
onError: onError
|
|
28438
28440
|
});
|
|
28439
28441
|
// TODO: Verify the Neo4j version in the message
|
|
28440
|
-
var error = (0, neo4j_driver_core_1$
|
|
28442
|
+
var error = (0, neo4j_driver_core_1$u.newError)('Driver is connected to a database that does not support logoff. ' +
|
|
28441
28443
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
28442
28444
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
28443
28445
|
this._onProtocolError(error.message);
|
|
@@ -28463,7 +28465,7 @@ var BoltProtocol$d = /** @class */ (function () {
|
|
|
28463
28465
|
onError: function (error) { return _this._onLoginError(error, onError); }
|
|
28464
28466
|
});
|
|
28465
28467
|
// TODO: Verify the Neo4j version in the message
|
|
28466
|
-
var error = (0, neo4j_driver_core_1$
|
|
28468
|
+
var error = (0, neo4j_driver_core_1$u.newError)('Driver is connected to a database that does not support logon. ' +
|
|
28467
28469
|
'Please upgrade to Neo4j 5.5.0 or later in order to use this functionality.');
|
|
28468
28470
|
// unsupported API was used, consider this a fatal error for the current connection
|
|
28469
28471
|
this._onProtocolError(error.message);
|
|
@@ -28754,7 +28756,7 @@ var BoltProtocol$d = /** @class */ (function () {
|
|
|
28754
28756
|
};
|
|
28755
28757
|
return BoltProtocol;
|
|
28756
28758
|
}());
|
|
28757
|
-
boltProtocolV1.default = BoltProtocol$
|
|
28759
|
+
boltProtocolV1.default = BoltProtocol$e;
|
|
28758
28760
|
|
|
28759
28761
|
var boltProtocolV2 = {};
|
|
28760
28762
|
|
|
@@ -28780,17 +28782,17 @@ temporalFactory.epochSecondAndNanoToLocalDateTime = temporalFactory.nanoOfDayToL
|
|
|
28780
28782
|
* See the License for the specific language governing permissions and
|
|
28781
28783
|
* limitations under the License.
|
|
28782
28784
|
*/
|
|
28783
|
-
var neo4j_driver_core_1$
|
|
28784
|
-
var _a$8 = neo4j_driver_core_1$
|
|
28785
|
+
var neo4j_driver_core_1$t = lib$1;
|
|
28786
|
+
var _a$8 = neo4j_driver_core_1$t.internal.temporalUtil, DAYS_0000_TO_1970 = _a$8.DAYS_0000_TO_1970, DAYS_PER_400_YEAR_CYCLE = _a$8.DAYS_PER_400_YEAR_CYCLE, NANOS_PER_HOUR = _a$8.NANOS_PER_HOUR, NANOS_PER_MINUTE = _a$8.NANOS_PER_MINUTE, NANOS_PER_SECOND = _a$8.NANOS_PER_SECOND, SECONDS_PER_DAY = _a$8.SECONDS_PER_DAY, floorDiv = _a$8.floorDiv, floorMod = _a$8.floorMod;
|
|
28785
28787
|
/**
|
|
28786
28788
|
* Converts given epoch day to a local date.
|
|
28787
28789
|
* @param {Integer|number|string} epochDay the epoch day to convert.
|
|
28788
28790
|
* @return {Date} the date representing the epoch day in years, months and days.
|
|
28789
28791
|
*/
|
|
28790
28792
|
function epochDayToDate(epochDay) {
|
|
28791
|
-
epochDay = (0, neo4j_driver_core_1$
|
|
28793
|
+
epochDay = (0, neo4j_driver_core_1$t.int)(epochDay);
|
|
28792
28794
|
var zeroDay = epochDay.add(DAYS_0000_TO_1970).subtract(60);
|
|
28793
|
-
var adjust = (0, neo4j_driver_core_1$
|
|
28795
|
+
var adjust = (0, neo4j_driver_core_1$t.int)(0);
|
|
28794
28796
|
if (zeroDay.lessThan(0)) {
|
|
28795
28797
|
var adjustCycles = zeroDay
|
|
28796
28798
|
.add(1)
|
|
@@ -28833,7 +28835,7 @@ function epochDayToDate(epochDay) {
|
|
|
28833
28835
|
.div(10))
|
|
28834
28836
|
.add(1);
|
|
28835
28837
|
year = year.add(marchMonth.div(10));
|
|
28836
|
-
return new neo4j_driver_core_1$
|
|
28838
|
+
return new neo4j_driver_core_1$t.Date(year, month, day);
|
|
28837
28839
|
}
|
|
28838
28840
|
temporalFactory.epochDayToDate = epochDayToDate;
|
|
28839
28841
|
/**
|
|
@@ -28842,14 +28844,14 @@ temporalFactory.epochDayToDate = epochDayToDate;
|
|
|
28842
28844
|
* @return {LocalTime} the local time representing given nanoseconds of the day.
|
|
28843
28845
|
*/
|
|
28844
28846
|
function nanoOfDayToLocalTime(nanoOfDay) {
|
|
28845
|
-
nanoOfDay = (0, neo4j_driver_core_1$
|
|
28847
|
+
nanoOfDay = (0, neo4j_driver_core_1$t.int)(nanoOfDay);
|
|
28846
28848
|
var hour = nanoOfDay.div(NANOS_PER_HOUR);
|
|
28847
28849
|
nanoOfDay = nanoOfDay.subtract(hour.multiply(NANOS_PER_HOUR));
|
|
28848
28850
|
var minute = nanoOfDay.div(NANOS_PER_MINUTE);
|
|
28849
28851
|
nanoOfDay = nanoOfDay.subtract(minute.multiply(NANOS_PER_MINUTE));
|
|
28850
28852
|
var second = nanoOfDay.div(NANOS_PER_SECOND);
|
|
28851
28853
|
var nanosecond = nanoOfDay.subtract(second.multiply(NANOS_PER_SECOND));
|
|
28852
|
-
return new neo4j_driver_core_1$
|
|
28854
|
+
return new neo4j_driver_core_1$t.LocalTime(hour, minute, second, nanosecond);
|
|
28853
28855
|
}
|
|
28854
28856
|
temporalFactory.nanoOfDayToLocalTime = nanoOfDayToLocalTime;
|
|
28855
28857
|
/**
|
|
@@ -28864,7 +28866,7 @@ function epochSecondAndNanoToLocalDateTime(epochSecond, nano) {
|
|
|
28864
28866
|
var nanoOfDay = secondsOfDay.multiply(NANOS_PER_SECOND).add(nano);
|
|
28865
28867
|
var localDate = epochDayToDate(epochDay);
|
|
28866
28868
|
var localTime = nanoOfDayToLocalTime(nanoOfDay);
|
|
28867
|
-
return new neo4j_driver_core_1$
|
|
28869
|
+
return new neo4j_driver_core_1$t.LocalDateTime(localDate.year, localDate.month, localDate.day, localTime.hour, localTime.minute, localTime.second, localTime.nanosecond);
|
|
28868
28870
|
}
|
|
28869
28871
|
temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDateTime;
|
|
28870
28872
|
|
|
@@ -28884,8 +28886,8 @@ temporalFactory.epochSecondAndNanoToLocalDateTime = epochSecondAndNanoToLocalDat
|
|
|
28884
28886
|
* See the License for the specific language governing permissions and
|
|
28885
28887
|
* limitations under the License.
|
|
28886
28888
|
*/
|
|
28887
|
-
var __assign$
|
|
28888
|
-
__assign$
|
|
28889
|
+
var __assign$m = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
28890
|
+
__assign$m = Object.assign || function(t) {
|
|
28889
28891
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
28890
28892
|
s = arguments[i];
|
|
28891
28893
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -28893,7 +28895,7 @@ var __assign$l = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
28893
28895
|
}
|
|
28894
28896
|
return t;
|
|
28895
28897
|
};
|
|
28896
|
-
return __assign$
|
|
28898
|
+
return __assign$m.apply(this, arguments);
|
|
28897
28899
|
};
|
|
28898
28900
|
var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
28899
28901
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -28911,16 +28913,16 @@ var __read$5 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
28911
28913
|
}
|
|
28912
28914
|
return ar;
|
|
28913
28915
|
};
|
|
28914
|
-
var __importDefault$
|
|
28916
|
+
var __importDefault$A = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
28915
28917
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
28916
28918
|
};
|
|
28917
28919
|
Object.defineProperty(boltProtocolV2_transformer, "__esModule", { value: true });
|
|
28918
|
-
var neo4j_driver_core_1$
|
|
28920
|
+
var neo4j_driver_core_1$s = lib$1;
|
|
28919
28921
|
var packstream_1$3 = packstream;
|
|
28920
|
-
var transformer_1$
|
|
28922
|
+
var transformer_1$e = transformer;
|
|
28921
28923
|
var temporal_factory_1$1 = temporalFactory;
|
|
28922
|
-
var bolt_protocol_v1_transformer_1 = __importDefault$
|
|
28923
|
-
var _a$7 = neo4j_driver_core_1$
|
|
28924
|
+
var bolt_protocol_v1_transformer_1 = __importDefault$A(boltProtocolV1_transformer);
|
|
28925
|
+
var _a$7 = neo4j_driver_core_1$s.internal.temporalUtil, dateToEpochDay = _a$7.dateToEpochDay, localDateTimeToEpochSecond$1 = _a$7.localDateTimeToEpochSecond, localTimeToNanoOfDay = _a$7.localTimeToNanoOfDay;
|
|
28924
28926
|
var POINT_2D = 0x58;
|
|
28925
28927
|
var POINT_2D_STRUCT_SIZE = 3;
|
|
28926
28928
|
var POINT_3D = 0x59;
|
|
@@ -28944,18 +28946,18 @@ var DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1 = 3;
|
|
|
28944
28946
|
* @returns {TypeTransformer}
|
|
28945
28947
|
*/
|
|
28946
28948
|
function createPoint2DTransformer() {
|
|
28947
|
-
return new transformer_1$
|
|
28949
|
+
return new transformer_1$e.TypeTransformer({
|
|
28948
28950
|
signature: POINT_2D,
|
|
28949
|
-
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$
|
|
28951
|
+
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$s.isPoint)(point) && (point.z === null || point.z === undefined); },
|
|
28950
28952
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_2D, [
|
|
28951
|
-
(0, neo4j_driver_core_1$
|
|
28953
|
+
(0, neo4j_driver_core_1$s.int)(point.srid),
|
|
28952
28954
|
point.x,
|
|
28953
28955
|
point.y
|
|
28954
28956
|
]); },
|
|
28955
28957
|
fromStructure: function (struct) {
|
|
28956
28958
|
packstream_1$3.structure.verifyStructSize('Point2D', POINT_2D_STRUCT_SIZE, struct.size);
|
|
28957
28959
|
var _a = __read$5(struct.fields, 3), srid = _a[0], x = _a[1], y = _a[2];
|
|
28958
|
-
return new neo4j_driver_core_1$
|
|
28960
|
+
return new neo4j_driver_core_1$s.Point(srid, x, y, undefined // z
|
|
28959
28961
|
);
|
|
28960
28962
|
}
|
|
28961
28963
|
});
|
|
@@ -28965,11 +28967,11 @@ function createPoint2DTransformer() {
|
|
|
28965
28967
|
* @returns {TypeTransformer}
|
|
28966
28968
|
*/
|
|
28967
28969
|
function createPoint3DTransformer() {
|
|
28968
|
-
return new transformer_1$
|
|
28970
|
+
return new transformer_1$e.TypeTransformer({
|
|
28969
28971
|
signature: POINT_3D,
|
|
28970
|
-
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$
|
|
28972
|
+
isTypeInstance: function (point) { return (0, neo4j_driver_core_1$s.isPoint)(point) && point.z !== null && point.z !== undefined; },
|
|
28971
28973
|
toStructure: function (point) { return new packstream_1$3.structure.Structure(POINT_3D, [
|
|
28972
|
-
(0, neo4j_driver_core_1$
|
|
28974
|
+
(0, neo4j_driver_core_1$s.int)(point.srid),
|
|
28973
28975
|
point.x,
|
|
28974
28976
|
point.y,
|
|
28975
28977
|
point.z
|
|
@@ -28977,7 +28979,7 @@ function createPoint3DTransformer() {
|
|
|
28977
28979
|
fromStructure: function (struct) {
|
|
28978
28980
|
packstream_1$3.structure.verifyStructSize('Point3D', POINT_3D_STRUCT_SIZE, struct.size);
|
|
28979
28981
|
var _a = __read$5(struct.fields, 4), srid = _a[0], x = _a[1], y = _a[2], z = _a[3];
|
|
28980
|
-
return new neo4j_driver_core_1$
|
|
28982
|
+
return new neo4j_driver_core_1$s.Point(srid, x, y, z);
|
|
28981
28983
|
}
|
|
28982
28984
|
});
|
|
28983
28985
|
}
|
|
@@ -28986,20 +28988,20 @@ function createPoint3DTransformer() {
|
|
|
28986
28988
|
* @returns {TypeTransformer}
|
|
28987
28989
|
*/
|
|
28988
28990
|
function createDurationTransformer() {
|
|
28989
|
-
return new transformer_1$
|
|
28991
|
+
return new transformer_1$e.TypeTransformer({
|
|
28990
28992
|
signature: DURATION,
|
|
28991
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
28993
|
+
isTypeInstance: neo4j_driver_core_1$s.isDuration,
|
|
28992
28994
|
toStructure: function (value) {
|
|
28993
|
-
var months = (0, neo4j_driver_core_1$
|
|
28994
|
-
var days = (0, neo4j_driver_core_1$
|
|
28995
|
-
var seconds = (0, neo4j_driver_core_1$
|
|
28996
|
-
var nanoseconds = (0, neo4j_driver_core_1$
|
|
28995
|
+
var months = (0, neo4j_driver_core_1$s.int)(value.months);
|
|
28996
|
+
var days = (0, neo4j_driver_core_1$s.int)(value.days);
|
|
28997
|
+
var seconds = (0, neo4j_driver_core_1$s.int)(value.seconds);
|
|
28998
|
+
var nanoseconds = (0, neo4j_driver_core_1$s.int)(value.nanoseconds);
|
|
28997
28999
|
return new packstream_1$3.structure.Structure(DURATION, [months, days, seconds, nanoseconds]);
|
|
28998
29000
|
},
|
|
28999
29001
|
fromStructure: function (struct) {
|
|
29000
29002
|
packstream_1$3.structure.verifyStructSize('Duration', DURATION_STRUCT_SIZE, struct.size);
|
|
29001
29003
|
var _a = __read$5(struct.fields, 4), months = _a[0], days = _a[1], seconds = _a[2], nanoseconds = _a[3];
|
|
29002
|
-
return new neo4j_driver_core_1$
|
|
29004
|
+
return new neo4j_driver_core_1$s.Duration(months, days, seconds, nanoseconds);
|
|
29003
29005
|
}
|
|
29004
29006
|
});
|
|
29005
29007
|
}
|
|
@@ -29012,9 +29014,9 @@ function createDurationTransformer() {
|
|
|
29012
29014
|
*/
|
|
29013
29015
|
function createLocalTimeTransformer(_a) {
|
|
29014
29016
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29015
|
-
return new transformer_1$
|
|
29017
|
+
return new transformer_1$e.TypeTransformer({
|
|
29016
29018
|
signature: LOCAL_TIME,
|
|
29017
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29019
|
+
isTypeInstance: neo4j_driver_core_1$s.isLocalTime,
|
|
29018
29020
|
toStructure: function (value) {
|
|
29019
29021
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
29020
29022
|
return new packstream_1$3.structure.Structure(LOCAL_TIME, [nanoOfDay]);
|
|
@@ -29036,19 +29038,19 @@ function createLocalTimeTransformer(_a) {
|
|
|
29036
29038
|
*/
|
|
29037
29039
|
function createTimeTransformer(_a) {
|
|
29038
29040
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29039
|
-
return new transformer_1$
|
|
29041
|
+
return new transformer_1$e.TypeTransformer({
|
|
29040
29042
|
signature: TIME,
|
|
29041
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29043
|
+
isTypeInstance: neo4j_driver_core_1$s.isTime,
|
|
29042
29044
|
toStructure: function (value) {
|
|
29043
29045
|
var nanoOfDay = localTimeToNanoOfDay(value.hour, value.minute, value.second, value.nanosecond);
|
|
29044
|
-
var offsetSeconds = (0, neo4j_driver_core_1$
|
|
29046
|
+
var offsetSeconds = (0, neo4j_driver_core_1$s.int)(value.timeZoneOffsetSeconds);
|
|
29045
29047
|
return new packstream_1$3.structure.Structure(TIME, [nanoOfDay, offsetSeconds]);
|
|
29046
29048
|
},
|
|
29047
29049
|
fromStructure: function (struct) {
|
|
29048
29050
|
packstream_1$3.structure.verifyStructSize('Time', TIME_STRUCT_SIZE, struct.size);
|
|
29049
29051
|
var _a = __read$5(struct.fields, 2), nanoOfDay = _a[0], offsetSeconds = _a[1];
|
|
29050
29052
|
var localTime = (0, temporal_factory_1$1.nanoOfDayToLocalTime)(nanoOfDay);
|
|
29051
|
-
var result = new neo4j_driver_core_1$
|
|
29053
|
+
var result = new neo4j_driver_core_1$s.Time(localTime.hour, localTime.minute, localTime.second, localTime.nanosecond, offsetSeconds);
|
|
29052
29054
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29053
29055
|
}
|
|
29054
29056
|
});
|
|
@@ -29062,9 +29064,9 @@ function createTimeTransformer(_a) {
|
|
|
29062
29064
|
*/
|
|
29063
29065
|
function createDateTransformer(_a) {
|
|
29064
29066
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29065
|
-
return new transformer_1$
|
|
29067
|
+
return new transformer_1$e.TypeTransformer({
|
|
29066
29068
|
signature: DATE,
|
|
29067
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29069
|
+
isTypeInstance: neo4j_driver_core_1$s.isDate,
|
|
29068
29070
|
toStructure: function (value) {
|
|
29069
29071
|
var epochDay = dateToEpochDay(value.year, value.month, value.day);
|
|
29070
29072
|
return new packstream_1$3.structure.Structure(DATE, [epochDay]);
|
|
@@ -29086,12 +29088,12 @@ function createDateTransformer(_a) {
|
|
|
29086
29088
|
*/
|
|
29087
29089
|
function createLocalDateTimeTransformer(_a) {
|
|
29088
29090
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29089
|
-
return new transformer_1$
|
|
29091
|
+
return new transformer_1$e.TypeTransformer({
|
|
29090
29092
|
signature: LOCAL_DATE_TIME,
|
|
29091
|
-
isTypeInstance: neo4j_driver_core_1$
|
|
29093
|
+
isTypeInstance: neo4j_driver_core_1$s.isLocalDateTime,
|
|
29092
29094
|
toStructure: function (value) {
|
|
29093
29095
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29094
|
-
var nano = (0, neo4j_driver_core_1$
|
|
29096
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29095
29097
|
return new packstream_1$3.structure.Structure(LOCAL_DATE_TIME, [epochSecond, nano]);
|
|
29096
29098
|
},
|
|
29097
29099
|
fromStructure: function (struct) {
|
|
@@ -29111,12 +29113,12 @@ function createLocalDateTimeTransformer(_a) {
|
|
|
29111
29113
|
*/
|
|
29112
29114
|
function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
29113
29115
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29114
|
-
return new transformer_1$
|
|
29116
|
+
return new transformer_1$e.TypeTransformer({
|
|
29115
29117
|
signature: DATE_TIME_WITH_ZONE_ID$1,
|
|
29116
|
-
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$
|
|
29118
|
+
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$s.isDateTime)(object) && object.timeZoneId != null; },
|
|
29117
29119
|
toStructure: function (value) {
|
|
29118
29120
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29119
|
-
var nano = (0, neo4j_driver_core_1$
|
|
29121
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29120
29122
|
var timeZoneId = value.timeZoneId;
|
|
29121
29123
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_ID$1, [epochSecond, nano, timeZoneId]);
|
|
29122
29124
|
},
|
|
@@ -29124,7 +29126,7 @@ function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
|
29124
29126
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE$1, struct.size);
|
|
29125
29127
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
29126
29128
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
29127
|
-
var result = new neo4j_driver_core_1$
|
|
29129
|
+
var result = new neo4j_driver_core_1$s.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, null, timeZoneId);
|
|
29128
29130
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29129
29131
|
}
|
|
29130
29132
|
});
|
|
@@ -29138,20 +29140,20 @@ function createDateTimeWithZoneIdTransformer$1(_a) {
|
|
|
29138
29140
|
*/
|
|
29139
29141
|
function createDateTimeWithOffsetTransformer$1(_a) {
|
|
29140
29142
|
var disableLosslessIntegers = _a.disableLosslessIntegers, useBigInt = _a.useBigInt;
|
|
29141
|
-
return new transformer_1$
|
|
29143
|
+
return new transformer_1$e.TypeTransformer({
|
|
29142
29144
|
signature: DATE_TIME_WITH_ZONE_OFFSET$1,
|
|
29143
|
-
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$
|
|
29145
|
+
isTypeInstance: function (object) { return (0, neo4j_driver_core_1$s.isDateTime)(object) && object.timeZoneId == null; },
|
|
29144
29146
|
toStructure: function (value) {
|
|
29145
29147
|
var epochSecond = localDateTimeToEpochSecond$1(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
29146
|
-
var nano = (0, neo4j_driver_core_1$
|
|
29147
|
-
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$
|
|
29148
|
+
var nano = (0, neo4j_driver_core_1$s.int)(value.nanosecond);
|
|
29149
|
+
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$s.int)(value.timeZoneOffsetSeconds);
|
|
29148
29150
|
return new packstream_1$3.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET$1, [epochSecond, nano, timeZoneOffsetSeconds]);
|
|
29149
29151
|
},
|
|
29150
29152
|
fromStructure: function (struct) {
|
|
29151
29153
|
packstream_1$3.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE$1, struct.size);
|
|
29152
29154
|
var _a = __read$5(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
29153
29155
|
var localDateTime = (0, temporal_factory_1$1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
29154
|
-
var result = new neo4j_driver_core_1$
|
|
29156
|
+
var result = new neo4j_driver_core_1$s.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);
|
|
29155
29157
|
return convertIntegerPropsIfNeeded$1(result, disableLosslessIntegers, useBigInt);
|
|
29156
29158
|
}
|
|
29157
29159
|
});
|
|
@@ -29167,15 +29169,15 @@ function convertIntegerPropsIfNeeded$1(obj, disableLosslessIntegers, useBigInt)
|
|
|
29167
29169
|
for (var prop in obj) {
|
|
29168
29170
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
29169
29171
|
var value = obj[prop];
|
|
29170
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
29172
|
+
clone[prop] = (0, neo4j_driver_core_1$s.isInt)(value) ? convert(value) : value;
|
|
29171
29173
|
}
|
|
29172
29174
|
}
|
|
29173
29175
|
Object.freeze(clone);
|
|
29174
29176
|
return clone;
|
|
29175
29177
|
}
|
|
29176
|
-
boltProtocolV2_transformer.default = __assign$
|
|
29178
|
+
boltProtocolV2_transformer.default = __assign$m(__assign$m({}, bolt_protocol_v1_transformer_1.default), { createPoint2DTransformer: createPoint2DTransformer, createPoint3DTransformer: createPoint3DTransformer, createDurationTransformer: createDurationTransformer, createLocalTimeTransformer: createLocalTimeTransformer, createTimeTransformer: createTimeTransformer, createDateTransformer: createDateTransformer, createLocalDateTimeTransformer: createLocalDateTimeTransformer, createDateTimeWithZoneIdTransformer: createDateTimeWithZoneIdTransformer$1, createDateTimeWithOffsetTransformer: createDateTimeWithOffsetTransformer$1 });
|
|
29177
29179
|
|
|
29178
|
-
var __extends$
|
|
29180
|
+
var __extends$k = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29179
29181
|
var extendStatics = function (d, b) {
|
|
29180
29182
|
extendStatics = Object.setPrototypeOf ||
|
|
29181
29183
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29190,7 +29192,7 @@ var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
29190
29192
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29191
29193
|
};
|
|
29192
29194
|
})();
|
|
29193
|
-
var __importDefault$
|
|
29195
|
+
var __importDefault$z = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29194
29196
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29195
29197
|
};
|
|
29196
29198
|
Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
|
|
@@ -29210,14 +29212,14 @@ Object.defineProperty(boltProtocolV2, "__esModule", { value: true });
|
|
|
29210
29212
|
* See the License for the specific language governing permissions and
|
|
29211
29213
|
* limitations under the License.
|
|
29212
29214
|
*/
|
|
29213
|
-
var bolt_protocol_v1_1$1 = __importDefault$
|
|
29214
|
-
var packstream_1$2 = __importDefault$
|
|
29215
|
-
var neo4j_driver_core_1$
|
|
29216
|
-
var bolt_protocol_v2_transformer_1$1 = __importDefault$
|
|
29217
|
-
var transformer_1$
|
|
29218
|
-
var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$
|
|
29219
|
-
var BoltProtocol$
|
|
29220
|
-
__extends$
|
|
29215
|
+
var bolt_protocol_v1_1$1 = __importDefault$z(boltProtocolV1);
|
|
29216
|
+
var packstream_1$2 = __importDefault$z(packstream);
|
|
29217
|
+
var neo4j_driver_core_1$r = lib$1;
|
|
29218
|
+
var bolt_protocol_v2_transformer_1$1 = __importDefault$z(boltProtocolV2_transformer);
|
|
29219
|
+
var transformer_1$d = __importDefault$z(transformer);
|
|
29220
|
+
var BOLT_PROTOCOL_V2 = neo4j_driver_core_1$r.internal.constants.BOLT_PROTOCOL_V2;
|
|
29221
|
+
var BoltProtocol$d = /** @class */ (function (_super) {
|
|
29222
|
+
__extends$k(BoltProtocol, _super);
|
|
29221
29223
|
function BoltProtocol() {
|
|
29222
29224
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29223
29225
|
}
|
|
@@ -29231,7 +29233,7 @@ var BoltProtocol$c = /** @class */ (function (_super) {
|
|
|
29231
29233
|
get: function () {
|
|
29232
29234
|
var _this = this;
|
|
29233
29235
|
if (this._transformer === undefined) {
|
|
29234
|
-
this._transformer = new transformer_1$
|
|
29236
|
+
this._transformer = new transformer_1$d.default(Object.values(bolt_protocol_v2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29235
29237
|
}
|
|
29236
29238
|
return this._transformer;
|
|
29237
29239
|
},
|
|
@@ -29247,7 +29249,7 @@ var BoltProtocol$c = /** @class */ (function (_super) {
|
|
|
29247
29249
|
});
|
|
29248
29250
|
return BoltProtocol;
|
|
29249
29251
|
}(bolt_protocol_v1_1$1.default));
|
|
29250
|
-
boltProtocolV2.default = BoltProtocol$
|
|
29252
|
+
boltProtocolV2.default = BoltProtocol$d;
|
|
29251
29253
|
|
|
29252
29254
|
var boltProtocolV3 = {};
|
|
29253
29255
|
|
|
@@ -29269,8 +29271,8 @@ var boltProtocolV3_transformer = {};
|
|
|
29269
29271
|
* See the License for the specific language governing permissions and
|
|
29270
29272
|
* limitations under the License.
|
|
29271
29273
|
*/
|
|
29272
|
-
var __assign$
|
|
29273
|
-
__assign$
|
|
29274
|
+
var __assign$l = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29275
|
+
__assign$l = Object.assign || function(t) {
|
|
29274
29276
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29275
29277
|
s = arguments[i];
|
|
29276
29278
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29278,16 +29280,16 @@ var __assign$k = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
29278
29280
|
}
|
|
29279
29281
|
return t;
|
|
29280
29282
|
};
|
|
29281
|
-
return __assign$
|
|
29283
|
+
return __assign$l.apply(this, arguments);
|
|
29282
29284
|
};
|
|
29283
|
-
var __importDefault$
|
|
29285
|
+
var __importDefault$y = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29284
29286
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29285
29287
|
};
|
|
29286
29288
|
Object.defineProperty(boltProtocolV3_transformer, "__esModule", { value: true });
|
|
29287
|
-
var bolt_protocol_v2_transformer_1 = __importDefault$
|
|
29288
|
-
boltProtocolV3_transformer.default = __assign$
|
|
29289
|
+
var bolt_protocol_v2_transformer_1 = __importDefault$y(boltProtocolV2_transformer);
|
|
29290
|
+
boltProtocolV3_transformer.default = __assign$l({}, bolt_protocol_v2_transformer_1.default);
|
|
29289
29291
|
|
|
29290
|
-
var __extends$
|
|
29292
|
+
var __extends$j = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29291
29293
|
var extendStatics = function (d, b) {
|
|
29292
29294
|
extendStatics = Object.setPrototypeOf ||
|
|
29293
29295
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29302,8 +29304,8 @@ var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
29302
29304
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29303
29305
|
};
|
|
29304
29306
|
})();
|
|
29305
|
-
var __assign$
|
|
29306
|
-
__assign$
|
|
29307
|
+
var __assign$k = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29308
|
+
__assign$k = Object.assign || function(t) {
|
|
29307
29309
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29308
29310
|
s = arguments[i];
|
|
29309
29311
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29311,9 +29313,9 @@ var __assign$j = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
29311
29313
|
}
|
|
29312
29314
|
return t;
|
|
29313
29315
|
};
|
|
29314
|
-
return __assign$
|
|
29316
|
+
return __assign$k.apply(this, arguments);
|
|
29315
29317
|
};
|
|
29316
|
-
var __importDefault$
|
|
29318
|
+
var __importDefault$x = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29317
29319
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29318
29320
|
};
|
|
29319
29321
|
Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
|
|
@@ -29333,19 +29335,19 @@ Object.defineProperty(boltProtocolV3, "__esModule", { value: true });
|
|
|
29333
29335
|
* See the License for the specific language governing permissions and
|
|
29334
29336
|
* limitations under the License.
|
|
29335
29337
|
*/
|
|
29336
|
-
var bolt_protocol_v2_1$1 = __importDefault$
|
|
29337
|
-
var request_message_1$a = __importDefault$
|
|
29338
|
+
var bolt_protocol_v2_1$1 = __importDefault$x(boltProtocolV2);
|
|
29339
|
+
var request_message_1$a = __importDefault$x(requestMessage);
|
|
29338
29340
|
var bolt_protocol_util_1$6 = boltProtocolUtil;
|
|
29339
29341
|
var stream_observers_1$a = streamObservers;
|
|
29340
|
-
var bolt_protocol_v3_transformer_1$1 = __importDefault$
|
|
29341
|
-
var transformer_1$
|
|
29342
|
-
var neo4j_driver_core_1$
|
|
29343
|
-
neo4j_driver_core_1$
|
|
29342
|
+
var bolt_protocol_v3_transformer_1$1 = __importDefault$x(boltProtocolV3_transformer);
|
|
29343
|
+
var transformer_1$c = __importDefault$x(transformer);
|
|
29344
|
+
var neo4j_driver_core_1$q = lib$1;
|
|
29345
|
+
neo4j_driver_core_1$q.internal.bookmarks.Bookmarks; var BOLT_PROTOCOL_V3$2 = neo4j_driver_core_1$q.internal.constants.BOLT_PROTOCOL_V3, TxConfig$1 = neo4j_driver_core_1$q.internal.txConfig.TxConfig;
|
|
29344
29346
|
var CONTEXT$1 = 'context';
|
|
29345
29347
|
var CALL_GET_ROUTING_TABLE = "CALL dbms.cluster.routing.getRoutingTable($".concat(CONTEXT$1, ")");
|
|
29346
29348
|
var noOpObserver = new stream_observers_1$a.StreamObserver();
|
|
29347
|
-
var BoltProtocol$
|
|
29348
|
-
__extends$
|
|
29349
|
+
var BoltProtocol$c = /** @class */ (function (_super) {
|
|
29350
|
+
__extends$j(BoltProtocol, _super);
|
|
29349
29351
|
function BoltProtocol() {
|
|
29350
29352
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29351
29353
|
}
|
|
@@ -29360,7 +29362,7 @@ var BoltProtocol$b = /** @class */ (function (_super) {
|
|
|
29360
29362
|
get: function () {
|
|
29361
29363
|
var _this = this;
|
|
29362
29364
|
if (this._transformer === undefined) {
|
|
29363
|
-
this._transformer = new transformer_1$
|
|
29365
|
+
this._transformer = new transformer_1$c.default(Object.values(bolt_protocol_v3_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29364
29366
|
}
|
|
29365
29367
|
return this._transformer;
|
|
29366
29368
|
},
|
|
@@ -29487,7 +29489,7 @@ var BoltProtocol$b = /** @class */ (function (_super) {
|
|
|
29487
29489
|
BoltProtocol.prototype.requestRoutingInformation = function (_a) {
|
|
29488
29490
|
var _b;
|
|
29489
29491
|
var _c = _a.routingContext, routingContext = _c === void 0 ? {} : _c, _d = _a.sessionContext, sessionContext = _d === void 0 ? {} : _d, onError = _a.onError, onCompleted = _a.onCompleted;
|
|
29490
|
-
var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT$1] = routingContext, _b), __assign$
|
|
29492
|
+
var resultObserver = this.run(CALL_GET_ROUTING_TABLE, (_b = {}, _b[CONTEXT$1] = routingContext, _b), __assign$k(__assign$k({}, sessionContext), { txConfig: TxConfig$1.empty() }));
|
|
29491
29493
|
return new stream_observers_1$a.ProcedureRouteObserver({
|
|
29492
29494
|
resultObserver: resultObserver,
|
|
29493
29495
|
onProtocolError: this._onProtocolError,
|
|
@@ -29497,7 +29499,7 @@ var BoltProtocol$b = /** @class */ (function (_super) {
|
|
|
29497
29499
|
};
|
|
29498
29500
|
return BoltProtocol;
|
|
29499
29501
|
}(bolt_protocol_v2_1$1.default));
|
|
29500
|
-
boltProtocolV3.default = BoltProtocol$
|
|
29502
|
+
boltProtocolV3.default = BoltProtocol$c;
|
|
29501
29503
|
|
|
29502
29504
|
var boltProtocolV4x0 = {};
|
|
29503
29505
|
|
|
@@ -29519,8 +29521,8 @@ var boltProtocolV4x0_transformer = {};
|
|
|
29519
29521
|
* See the License for the specific language governing permissions and
|
|
29520
29522
|
* limitations under the License.
|
|
29521
29523
|
*/
|
|
29522
|
-
var __assign$
|
|
29523
|
-
__assign$
|
|
29524
|
+
var __assign$j = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29525
|
+
__assign$j = Object.assign || function(t) {
|
|
29524
29526
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29525
29527
|
s = arguments[i];
|
|
29526
29528
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29528,16 +29530,16 @@ var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
29528
29530
|
}
|
|
29529
29531
|
return t;
|
|
29530
29532
|
};
|
|
29531
|
-
return __assign$
|
|
29533
|
+
return __assign$j.apply(this, arguments);
|
|
29532
29534
|
};
|
|
29533
|
-
var __importDefault$
|
|
29535
|
+
var __importDefault$w = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29534
29536
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29535
29537
|
};
|
|
29536
29538
|
Object.defineProperty(boltProtocolV4x0_transformer, "__esModule", { value: true });
|
|
29537
|
-
var bolt_protocol_v3_transformer_1 = __importDefault$
|
|
29538
|
-
boltProtocolV4x0_transformer.default = __assign$
|
|
29539
|
+
var bolt_protocol_v3_transformer_1 = __importDefault$w(boltProtocolV3_transformer);
|
|
29540
|
+
boltProtocolV4x0_transformer.default = __assign$j({}, bolt_protocol_v3_transformer_1.default);
|
|
29539
29541
|
|
|
29540
|
-
var __extends$
|
|
29542
|
+
var __extends$i = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29541
29543
|
var extendStatics = function (d, b) {
|
|
29542
29544
|
extendStatics = Object.setPrototypeOf ||
|
|
29543
29545
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29552,8 +29554,8 @@ var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
29552
29554
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29553
29555
|
};
|
|
29554
29556
|
})();
|
|
29555
|
-
var __assign$
|
|
29556
|
-
__assign$
|
|
29557
|
+
var __assign$i = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29558
|
+
__assign$i = Object.assign || function(t) {
|
|
29557
29559
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29558
29560
|
s = arguments[i];
|
|
29559
29561
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29561,9 +29563,9 @@ var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
29561
29563
|
}
|
|
29562
29564
|
return t;
|
|
29563
29565
|
};
|
|
29564
|
-
return __assign$
|
|
29566
|
+
return __assign$i.apply(this, arguments);
|
|
29565
29567
|
};
|
|
29566
|
-
var __importDefault$
|
|
29568
|
+
var __importDefault$v = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29567
29569
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29568
29570
|
};
|
|
29569
29571
|
Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
|
|
@@ -29583,19 +29585,19 @@ Object.defineProperty(boltProtocolV4x0, "__esModule", { value: true });
|
|
|
29583
29585
|
* See the License for the specific language governing permissions and
|
|
29584
29586
|
* limitations under the License.
|
|
29585
29587
|
*/
|
|
29586
|
-
var bolt_protocol_v3_1$1 = __importDefault$
|
|
29587
|
-
var request_message_1$9 = __importDefault$
|
|
29588
|
+
var bolt_protocol_v3_1$1 = __importDefault$v(boltProtocolV3);
|
|
29589
|
+
var request_message_1$9 = __importDefault$v(requestMessage);
|
|
29588
29590
|
var bolt_protocol_util_1$5 = boltProtocolUtil;
|
|
29589
29591
|
var stream_observers_1$9 = streamObservers;
|
|
29590
|
-
var bolt_protocol_v4x0_transformer_1$1 = __importDefault$
|
|
29591
|
-
var transformer_1$
|
|
29592
|
-
var neo4j_driver_core_1$
|
|
29593
|
-
neo4j_driver_core_1$
|
|
29592
|
+
var bolt_protocol_v4x0_transformer_1$1 = __importDefault$v(boltProtocolV4x0_transformer);
|
|
29593
|
+
var transformer_1$b = __importDefault$v(transformer);
|
|
29594
|
+
var neo4j_driver_core_1$p = lib$1;
|
|
29595
|
+
neo4j_driver_core_1$p.internal.bookmarks.Bookmarks; var _a$6 = neo4j_driver_core_1$p.internal.constants, BOLT_PROTOCOL_V4_0$2 = _a$6.BOLT_PROTOCOL_V4_0, FETCH_ALL$3 = _a$6.FETCH_ALL, TxConfig = neo4j_driver_core_1$p.internal.txConfig.TxConfig;
|
|
29594
29596
|
var CONTEXT = 'context';
|
|
29595
29597
|
var DATABASE = 'database';
|
|
29596
29598
|
var CALL_GET_ROUTING_TABLE_MULTI_DB = "CALL dbms.routing.getRoutingTable($".concat(CONTEXT, ", $").concat(DATABASE, ")");
|
|
29597
|
-
var BoltProtocol$
|
|
29598
|
-
__extends$
|
|
29599
|
+
var BoltProtocol$b = /** @class */ (function (_super) {
|
|
29600
|
+
__extends$i(BoltProtocol, _super);
|
|
29599
29601
|
function BoltProtocol() {
|
|
29600
29602
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29601
29603
|
}
|
|
@@ -29610,7 +29612,7 @@ var BoltProtocol$a = /** @class */ (function (_super) {
|
|
|
29610
29612
|
get: function () {
|
|
29611
29613
|
var _this = this;
|
|
29612
29614
|
if (this._transformer === undefined) {
|
|
29613
|
-
this._transformer = new transformer_1$
|
|
29615
|
+
this._transformer = new transformer_1$b.default(Object.values(bolt_protocol_v4x0_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29614
29616
|
}
|
|
29615
29617
|
return this._transformer;
|
|
29616
29618
|
},
|
|
@@ -29695,7 +29697,7 @@ var BoltProtocol$a = /** @class */ (function (_super) {
|
|
|
29695
29697
|
var resultObserver = this.run(CALL_GET_ROUTING_TABLE_MULTI_DB, (_b = {},
|
|
29696
29698
|
_b[CONTEXT] = routingContext,
|
|
29697
29699
|
_b[DATABASE] = databaseName,
|
|
29698
|
-
_b), __assign$
|
|
29700
|
+
_b), __assign$i(__assign$i({}, sessionContext), { txConfig: TxConfig.empty() }));
|
|
29699
29701
|
return new stream_observers_1$9.ProcedureRouteObserver({
|
|
29700
29702
|
resultObserver: resultObserver,
|
|
29701
29703
|
onProtocolError: this._onProtocolError,
|
|
@@ -29705,7 +29707,7 @@ var BoltProtocol$a = /** @class */ (function (_super) {
|
|
|
29705
29707
|
};
|
|
29706
29708
|
return BoltProtocol;
|
|
29707
29709
|
}(bolt_protocol_v3_1$1.default));
|
|
29708
|
-
boltProtocolV4x0.default = BoltProtocol$
|
|
29710
|
+
boltProtocolV4x0.default = BoltProtocol$b;
|
|
29709
29711
|
|
|
29710
29712
|
var boltProtocolV4x1 = {};
|
|
29711
29713
|
|
|
@@ -29727,8 +29729,8 @@ var boltProtocolV4x1_transformer = {};
|
|
|
29727
29729
|
* See the License for the specific language governing permissions and
|
|
29728
29730
|
* limitations under the License.
|
|
29729
29731
|
*/
|
|
29730
|
-
var __assign$
|
|
29731
|
-
__assign$
|
|
29732
|
+
var __assign$h = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29733
|
+
__assign$h = Object.assign || function(t) {
|
|
29732
29734
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29733
29735
|
s = arguments[i];
|
|
29734
29736
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29736,16 +29738,16 @@ var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
29736
29738
|
}
|
|
29737
29739
|
return t;
|
|
29738
29740
|
};
|
|
29739
|
-
return __assign$
|
|
29741
|
+
return __assign$h.apply(this, arguments);
|
|
29740
29742
|
};
|
|
29741
|
-
var __importDefault$
|
|
29743
|
+
var __importDefault$u = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29742
29744
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29743
29745
|
};
|
|
29744
29746
|
Object.defineProperty(boltProtocolV4x1_transformer, "__esModule", { value: true });
|
|
29745
|
-
var bolt_protocol_v4x0_transformer_1 = __importDefault$
|
|
29746
|
-
boltProtocolV4x1_transformer.default = __assign$
|
|
29747
|
+
var bolt_protocol_v4x0_transformer_1 = __importDefault$u(boltProtocolV4x0_transformer);
|
|
29748
|
+
boltProtocolV4x1_transformer.default = __assign$h({}, bolt_protocol_v4x0_transformer_1.default);
|
|
29747
29749
|
|
|
29748
|
-
var __extends$
|
|
29750
|
+
var __extends$h = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29749
29751
|
var extendStatics = function (d, b) {
|
|
29750
29752
|
extendStatics = Object.setPrototypeOf ||
|
|
29751
29753
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29760,7 +29762,7 @@ var __extends$g = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
29760
29762
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29761
29763
|
};
|
|
29762
29764
|
})();
|
|
29763
|
-
var __importDefault$
|
|
29765
|
+
var __importDefault$t = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29764
29766
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29765
29767
|
};
|
|
29766
29768
|
Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
|
|
@@ -29780,16 +29782,16 @@ Object.defineProperty(boltProtocolV4x1, "__esModule", { value: true });
|
|
|
29780
29782
|
* See the License for the specific language governing permissions and
|
|
29781
29783
|
* limitations under the License.
|
|
29782
29784
|
*/
|
|
29783
|
-
var bolt_protocol_v4x0_1$1 = __importDefault$
|
|
29784
|
-
var request_message_1$8 = __importDefault$
|
|
29785
|
+
var bolt_protocol_v4x0_1$1 = __importDefault$t(boltProtocolV4x0);
|
|
29786
|
+
var request_message_1$8 = __importDefault$t(requestMessage);
|
|
29785
29787
|
var stream_observers_1$8 = streamObservers;
|
|
29786
|
-
var neo4j_driver_core_1$
|
|
29788
|
+
var neo4j_driver_core_1$o = lib$1;
|
|
29787
29789
|
var bolt_protocol_util_1$4 = boltProtocolUtil;
|
|
29788
|
-
var bolt_protocol_v4x1_transformer_1$1 = __importDefault$
|
|
29789
|
-
var transformer_1$
|
|
29790
|
-
var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$
|
|
29791
|
-
var BoltProtocol$
|
|
29792
|
-
__extends$
|
|
29790
|
+
var bolt_protocol_v4x1_transformer_1$1 = __importDefault$t(boltProtocolV4x1_transformer);
|
|
29791
|
+
var transformer_1$a = __importDefault$t(transformer);
|
|
29792
|
+
var BOLT_PROTOCOL_V4_1 = neo4j_driver_core_1$o.internal.constants.BOLT_PROTOCOL_V4_1;
|
|
29793
|
+
var BoltProtocol$a = /** @class */ (function (_super) {
|
|
29794
|
+
__extends$h(BoltProtocol, _super);
|
|
29793
29795
|
/**
|
|
29794
29796
|
* @constructor
|
|
29795
29797
|
* @param {Object} server the server informatio.
|
|
@@ -29819,7 +29821,7 @@ var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
|
29819
29821
|
get: function () {
|
|
29820
29822
|
var _this = this;
|
|
29821
29823
|
if (this._transformer === undefined) {
|
|
29822
|
-
this._transformer = new transformer_1$
|
|
29824
|
+
this._transformer = new transformer_1$a.default(Object.values(bolt_protocol_v4x1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29823
29825
|
}
|
|
29824
29826
|
return this._transformer;
|
|
29825
29827
|
},
|
|
@@ -29840,7 +29842,7 @@ var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
|
29840
29842
|
};
|
|
29841
29843
|
return BoltProtocol;
|
|
29842
29844
|
}(bolt_protocol_v4x0_1$1.default));
|
|
29843
|
-
boltProtocolV4x1.default = BoltProtocol$
|
|
29845
|
+
boltProtocolV4x1.default = BoltProtocol$a;
|
|
29844
29846
|
|
|
29845
29847
|
var boltProtocolV4x2 = {};
|
|
29846
29848
|
|
|
@@ -29862,8 +29864,8 @@ var boltProtocolV4x2_transformer = {};
|
|
|
29862
29864
|
* See the License for the specific language governing permissions and
|
|
29863
29865
|
* limitations under the License.
|
|
29864
29866
|
*/
|
|
29865
|
-
var __assign$
|
|
29866
|
-
__assign$
|
|
29867
|
+
var __assign$g = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29868
|
+
__assign$g = Object.assign || function(t) {
|
|
29867
29869
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29868
29870
|
s = arguments[i];
|
|
29869
29871
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29871,16 +29873,16 @@ var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
29871
29873
|
}
|
|
29872
29874
|
return t;
|
|
29873
29875
|
};
|
|
29874
|
-
return __assign$
|
|
29876
|
+
return __assign$g.apply(this, arguments);
|
|
29875
29877
|
};
|
|
29876
|
-
var __importDefault$
|
|
29878
|
+
var __importDefault$s = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29877
29879
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29878
29880
|
};
|
|
29879
29881
|
Object.defineProperty(boltProtocolV4x2_transformer, "__esModule", { value: true });
|
|
29880
|
-
var bolt_protocol_v4x1_transformer_1 = __importDefault$
|
|
29881
|
-
boltProtocolV4x2_transformer.default = __assign$
|
|
29882
|
+
var bolt_protocol_v4x1_transformer_1 = __importDefault$s(boltProtocolV4x1_transformer);
|
|
29883
|
+
boltProtocolV4x2_transformer.default = __assign$g({}, bolt_protocol_v4x1_transformer_1.default);
|
|
29882
29884
|
|
|
29883
|
-
var __extends$
|
|
29885
|
+
var __extends$g = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
29884
29886
|
var extendStatics = function (d, b) {
|
|
29885
29887
|
extendStatics = Object.setPrototypeOf ||
|
|
29886
29888
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -29895,7 +29897,7 @@ var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
29895
29897
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
29896
29898
|
};
|
|
29897
29899
|
})();
|
|
29898
|
-
var __importDefault$
|
|
29900
|
+
var __importDefault$r = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29899
29901
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29900
29902
|
};
|
|
29901
29903
|
Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
|
|
@@ -29915,13 +29917,13 @@ Object.defineProperty(boltProtocolV4x2, "__esModule", { value: true });
|
|
|
29915
29917
|
* See the License for the specific language governing permissions and
|
|
29916
29918
|
* limitations under the License.
|
|
29917
29919
|
*/
|
|
29918
|
-
var bolt_protocol_v4x1_1$1 = __importDefault$
|
|
29919
|
-
var neo4j_driver_core_1$
|
|
29920
|
-
var bolt_protocol_v4x2_transformer_1$1 = __importDefault$
|
|
29921
|
-
var transformer_1$
|
|
29922
|
-
var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$
|
|
29923
|
-
var BoltProtocol$
|
|
29924
|
-
__extends$
|
|
29920
|
+
var bolt_protocol_v4x1_1$1 = __importDefault$r(boltProtocolV4x1);
|
|
29921
|
+
var neo4j_driver_core_1$n = lib$1;
|
|
29922
|
+
var bolt_protocol_v4x2_transformer_1$1 = __importDefault$r(boltProtocolV4x2_transformer);
|
|
29923
|
+
var transformer_1$9 = __importDefault$r(transformer);
|
|
29924
|
+
var BOLT_PROTOCOL_V4_2 = neo4j_driver_core_1$n.internal.constants.BOLT_PROTOCOL_V4_2;
|
|
29925
|
+
var BoltProtocol$9 = /** @class */ (function (_super) {
|
|
29926
|
+
__extends$g(BoltProtocol, _super);
|
|
29925
29927
|
function BoltProtocol() {
|
|
29926
29928
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29927
29929
|
}
|
|
@@ -29936,7 +29938,7 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
29936
29938
|
get: function () {
|
|
29937
29939
|
var _this = this;
|
|
29938
29940
|
if (this._transformer === undefined) {
|
|
29939
|
-
this._transformer = new transformer_1$
|
|
29941
|
+
this._transformer = new transformer_1$9.default(Object.values(bolt_protocol_v4x2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
29940
29942
|
}
|
|
29941
29943
|
return this._transformer;
|
|
29942
29944
|
},
|
|
@@ -29945,7 +29947,7 @@ var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
|
29945
29947
|
});
|
|
29946
29948
|
return BoltProtocol;
|
|
29947
29949
|
}(bolt_protocol_v4x1_1$1.default));
|
|
29948
|
-
boltProtocolV4x2.default = BoltProtocol$
|
|
29950
|
+
boltProtocolV4x2.default = BoltProtocol$9;
|
|
29949
29951
|
|
|
29950
29952
|
var boltProtocolV4x3 = {};
|
|
29951
29953
|
|
|
@@ -29967,8 +29969,8 @@ var boltProtocolV4x3_transformer = {};
|
|
|
29967
29969
|
* See the License for the specific language governing permissions and
|
|
29968
29970
|
* limitations under the License.
|
|
29969
29971
|
*/
|
|
29970
|
-
var __assign$
|
|
29971
|
-
__assign$
|
|
29972
|
+
var __assign$f = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
29973
|
+
__assign$f = Object.assign || function(t) {
|
|
29972
29974
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
29973
29975
|
s = arguments[i];
|
|
29974
29976
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -29976,14 +29978,14 @@ var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
29976
29978
|
}
|
|
29977
29979
|
return t;
|
|
29978
29980
|
};
|
|
29979
|
-
return __assign$
|
|
29981
|
+
return __assign$f.apply(this, arguments);
|
|
29980
29982
|
};
|
|
29981
|
-
var __importDefault$
|
|
29983
|
+
var __importDefault$q = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
29982
29984
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
29983
29985
|
};
|
|
29984
29986
|
Object.defineProperty(boltProtocolV4x3_transformer, "__esModule", { value: true });
|
|
29985
|
-
var bolt_protocol_v4x2_transformer_1 = __importDefault$
|
|
29986
|
-
boltProtocolV4x3_transformer.default = __assign$
|
|
29987
|
+
var bolt_protocol_v4x2_transformer_1 = __importDefault$q(boltProtocolV4x2_transformer);
|
|
29988
|
+
boltProtocolV4x3_transformer.default = __assign$f({}, bolt_protocol_v4x2_transformer_1.default);
|
|
29987
29989
|
|
|
29988
29990
|
var boltProtocolV5x0_utc_transformer = {};
|
|
29989
29991
|
|
|
@@ -30005,8 +30007,8 @@ var boltProtocolV4x4_transformer = {};
|
|
|
30005
30007
|
* See the License for the specific language governing permissions and
|
|
30006
30008
|
* limitations under the License.
|
|
30007
30009
|
*/
|
|
30008
|
-
var __assign$
|
|
30009
|
-
__assign$
|
|
30010
|
+
var __assign$e = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30011
|
+
__assign$e = Object.assign || function(t) {
|
|
30010
30012
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30011
30013
|
s = arguments[i];
|
|
30012
30014
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30014,14 +30016,14 @@ var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30014
30016
|
}
|
|
30015
30017
|
return t;
|
|
30016
30018
|
};
|
|
30017
|
-
return __assign$
|
|
30019
|
+
return __assign$e.apply(this, arguments);
|
|
30018
30020
|
};
|
|
30019
|
-
var __importDefault$
|
|
30021
|
+
var __importDefault$p = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30020
30022
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30021
30023
|
};
|
|
30022
30024
|
Object.defineProperty(boltProtocolV4x4_transformer, "__esModule", { value: true });
|
|
30023
|
-
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$
|
|
30024
|
-
boltProtocolV4x4_transformer.default = __assign$
|
|
30025
|
+
var bolt_protocol_v4x3_transformer_1$1 = __importDefault$p(boltProtocolV4x3_transformer);
|
|
30026
|
+
boltProtocolV4x4_transformer.default = __assign$e({}, bolt_protocol_v4x3_transformer_1$1.default);
|
|
30025
30027
|
|
|
30026
30028
|
/**
|
|
30027
30029
|
* Copyright (c) "Neo4j"
|
|
@@ -30055,16 +30057,16 @@ var __read$4 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
30055
30057
|
}
|
|
30056
30058
|
return ar;
|
|
30057
30059
|
};
|
|
30058
|
-
var __importDefault$
|
|
30060
|
+
var __importDefault$o = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30059
30061
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30060
30062
|
};
|
|
30061
30063
|
Object.defineProperty(boltProtocolV5x0_utc_transformer, "__esModule", { value: true });
|
|
30062
30064
|
var packstream_1$1 = packstream;
|
|
30063
|
-
var neo4j_driver_core_1$
|
|
30064
|
-
var bolt_protocol_v4x4_transformer_1$2 = __importDefault$
|
|
30065
|
+
var neo4j_driver_core_1$m = lib$1;
|
|
30066
|
+
var bolt_protocol_v4x4_transformer_1$2 = __importDefault$o(boltProtocolV4x4_transformer);
|
|
30065
30067
|
var temporal_factory_1 = temporalFactory;
|
|
30066
30068
|
var functional_1 = functional;
|
|
30067
|
-
var localDateTimeToEpochSecond = neo4j_driver_core_1$
|
|
30069
|
+
var localDateTimeToEpochSecond = neo4j_driver_core_1$m.internal.temporalUtil.localDateTimeToEpochSecond;
|
|
30068
30070
|
var DATE_TIME_WITH_ZONE_OFFSET = 0x49;
|
|
30069
30071
|
var DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE = 3;
|
|
30070
30072
|
var DATE_TIME_WITH_ZONE_ID = 0x69;
|
|
@@ -30078,7 +30080,7 @@ function createDateTimeWithZoneIdTransformer(config, logger) {
|
|
|
30078
30080
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneId', DATE_TIME_WITH_ZONE_ID_STRUCT_SIZE, struct.size);
|
|
30079
30081
|
var _a = __read$4(struct.fields, 3), epochSecond = _a[0], nano = _a[1], timeZoneId = _a[2];
|
|
30080
30082
|
var localDateTime = getTimeInZoneId(timeZoneId, epochSecond, nano);
|
|
30081
|
-
var result = new neo4j_driver_core_1$
|
|
30083
|
+
var result = new neo4j_driver_core_1$m.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, (0, neo4j_driver_core_1$m.int)(nano), localDateTime.timeZoneOffsetSeconds, timeZoneId);
|
|
30082
30084
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
30083
30085
|
},
|
|
30084
30086
|
toStructure: function (value) {
|
|
@@ -30092,7 +30094,7 @@ function createDateTimeWithZoneIdTransformer(config, logger) {
|
|
|
30092
30094
|
'2022-10-30T2:30:00[Europe/Berlin] could be GMT+1 or GMT+2.');
|
|
30093
30095
|
}
|
|
30094
30096
|
var utc = epochSecond.subtract(offset);
|
|
30095
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30097
|
+
var nano = (0, neo4j_driver_core_1$m.int)(value.nanosecond);
|
|
30096
30098
|
var timeZoneId = value.timeZoneId;
|
|
30097
30099
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_ID, [utc, nano, timeZoneId]);
|
|
30098
30100
|
}
|
|
@@ -30154,9 +30156,9 @@ function getDateTimeFormatForZoneId(timeZoneId) {
|
|
|
30154
30156
|
}
|
|
30155
30157
|
function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
30156
30158
|
var formatter = getDateTimeFormatForZoneId(timeZoneId);
|
|
30157
|
-
var utc = (0, neo4j_driver_core_1$
|
|
30159
|
+
var utc = (0, neo4j_driver_core_1$m.int)(epochSecond)
|
|
30158
30160
|
.multiply(1000)
|
|
30159
|
-
.add((0, neo4j_driver_core_1$
|
|
30161
|
+
.add((0, neo4j_driver_core_1$m.int)(nano).div(1000000))
|
|
30160
30162
|
.toNumber();
|
|
30161
30163
|
var formattedUtcParts = formatter.formatToParts(utc);
|
|
30162
30164
|
var localDateTime = formattedUtcParts.reduce(function (obj, currentValue) {
|
|
@@ -30167,10 +30169,10 @@ function getTimeInZoneId(timeZoneId, epochSecond, nano) {
|
|
|
30167
30169
|
: functional_1.identity;
|
|
30168
30170
|
}
|
|
30169
30171
|
else if (currentValue.type === 'hour') {
|
|
30170
|
-
obj.hour = (0, neo4j_driver_core_1$
|
|
30172
|
+
obj.hour = (0, neo4j_driver_core_1$m.int)(currentValue.value).modulo(24);
|
|
30171
30173
|
}
|
|
30172
30174
|
else if (currentValue.type !== 'literal') {
|
|
30173
|
-
obj[currentValue.type] = (0, neo4j_driver_core_1$
|
|
30175
|
+
obj[currentValue.type] = (0, neo4j_driver_core_1$m.int)(currentValue.value);
|
|
30174
30176
|
}
|
|
30175
30177
|
return obj;
|
|
30176
30178
|
}, {});
|
|
@@ -30187,17 +30189,17 @@ function createDateTimeWithOffsetTransformer(config) {
|
|
|
30187
30189
|
signature: DATE_TIME_WITH_ZONE_OFFSET,
|
|
30188
30190
|
toStructure: function (value) {
|
|
30189
30191
|
var epochSecond = localDateTimeToEpochSecond(value.year, value.month, value.day, value.hour, value.minute, value.second, value.nanosecond);
|
|
30190
|
-
var nano = (0, neo4j_driver_core_1$
|
|
30191
|
-
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$
|
|
30192
|
+
var nano = (0, neo4j_driver_core_1$m.int)(value.nanosecond);
|
|
30193
|
+
var timeZoneOffsetSeconds = (0, neo4j_driver_core_1$m.int)(value.timeZoneOffsetSeconds);
|
|
30192
30194
|
var utcSecond = epochSecond.subtract(timeZoneOffsetSeconds);
|
|
30193
30195
|
return new packstream_1$1.structure.Structure(DATE_TIME_WITH_ZONE_OFFSET, [utcSecond, nano, timeZoneOffsetSeconds]);
|
|
30194
30196
|
},
|
|
30195
30197
|
fromStructure: function (struct) {
|
|
30196
30198
|
packstream_1$1.structure.verifyStructSize('DateTimeWithZoneOffset', DATE_TIME_WITH_ZONE_OFFSET_STRUCT_SIZE, struct.size);
|
|
30197
30199
|
var _a = __read$4(struct.fields, 3), utcSecond = _a[0], nano = _a[1], timeZoneOffsetSeconds = _a[2];
|
|
30198
|
-
var epochSecond = (0, neo4j_driver_core_1$
|
|
30200
|
+
var epochSecond = (0, neo4j_driver_core_1$m.int)(utcSecond).add(timeZoneOffsetSeconds);
|
|
30199
30201
|
var localDateTime = (0, temporal_factory_1.epochSecondAndNanoToLocalDateTime)(epochSecond, nano);
|
|
30200
|
-
var result = new neo4j_driver_core_1$
|
|
30202
|
+
var result = new neo4j_driver_core_1$m.DateTime(localDateTime.year, localDateTime.month, localDateTime.day, localDateTime.hour, localDateTime.minute, localDateTime.second, localDateTime.nanosecond, timeZoneOffsetSeconds, null);
|
|
30201
30203
|
return convertIntegerPropsIfNeeded(result, disableLosslessIntegers, useBigInt);
|
|
30202
30204
|
}
|
|
30203
30205
|
});
|
|
@@ -30213,7 +30215,7 @@ function convertIntegerPropsIfNeeded(obj, disableLosslessIntegers, useBigInt) {
|
|
|
30213
30215
|
for (var prop in obj) {
|
|
30214
30216
|
if (Object.prototype.hasOwnProperty.call(obj, prop) === true) {
|
|
30215
30217
|
var value = obj[prop];
|
|
30216
|
-
clone[prop] = (0, neo4j_driver_core_1$
|
|
30218
|
+
clone[prop] = (0, neo4j_driver_core_1$m.isInt)(value) ? convert(value) : value;
|
|
30217
30219
|
}
|
|
30218
30220
|
}
|
|
30219
30221
|
Object.freeze(clone);
|
|
@@ -30224,7 +30226,7 @@ boltProtocolV5x0_utc_transformer.default = {
|
|
|
30224
30226
|
createDateTimeWithOffsetTransformer: createDateTimeWithOffsetTransformer
|
|
30225
30227
|
};
|
|
30226
30228
|
|
|
30227
|
-
var __extends$
|
|
30229
|
+
var __extends$f = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30228
30230
|
var extendStatics = function (d, b) {
|
|
30229
30231
|
extendStatics = Object.setPrototypeOf ||
|
|
30230
30232
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30239,8 +30241,8 @@ var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
30239
30241
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30240
30242
|
};
|
|
30241
30243
|
})();
|
|
30242
|
-
var __assign$
|
|
30243
|
-
__assign$
|
|
30244
|
+
var __assign$d = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30245
|
+
__assign$d = Object.assign || function(t) {
|
|
30244
30246
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30245
30247
|
s = arguments[i];
|
|
30246
30248
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30248,9 +30250,9 @@ var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30248
30250
|
}
|
|
30249
30251
|
return t;
|
|
30250
30252
|
};
|
|
30251
|
-
return __assign$
|
|
30253
|
+
return __assign$d.apply(this, arguments);
|
|
30252
30254
|
};
|
|
30253
|
-
var __importDefault$
|
|
30255
|
+
var __importDefault$n = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30254
30256
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30255
30257
|
};
|
|
30256
30258
|
Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
|
|
@@ -30270,17 +30272,17 @@ Object.defineProperty(boltProtocolV4x3, "__esModule", { value: true });
|
|
|
30270
30272
|
* See the License for the specific language governing permissions and
|
|
30271
30273
|
* limitations under the License.
|
|
30272
30274
|
*/
|
|
30273
|
-
var bolt_protocol_v4x2_1$1 = __importDefault$
|
|
30274
|
-
var request_message_1$7 = __importDefault$
|
|
30275
|
+
var bolt_protocol_v4x2_1$1 = __importDefault$n(boltProtocolV4x2);
|
|
30276
|
+
var request_message_1$7 = __importDefault$n(requestMessage);
|
|
30275
30277
|
var stream_observers_1$7 = streamObservers;
|
|
30276
30278
|
var bolt_protocol_util_1$3 = boltProtocolUtil;
|
|
30277
|
-
var bolt_protocol_v4x3_transformer_1 = __importDefault$
|
|
30278
|
-
var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$
|
|
30279
|
-
var transformer_1$
|
|
30280
|
-
var neo4j_driver_core_1$
|
|
30281
|
-
var Bookmarks$2 = neo4j_driver_core_1$
|
|
30282
|
-
var BoltProtocol$
|
|
30283
|
-
__extends$
|
|
30279
|
+
var bolt_protocol_v4x3_transformer_1 = __importDefault$n(boltProtocolV4x3_transformer);
|
|
30280
|
+
var bolt_protocol_v5x0_utc_transformer_1$2 = __importDefault$n(boltProtocolV5x0_utc_transformer);
|
|
30281
|
+
var transformer_1$8 = __importDefault$n(transformer);
|
|
30282
|
+
var neo4j_driver_core_1$l = lib$1;
|
|
30283
|
+
var Bookmarks$2 = neo4j_driver_core_1$l.internal.bookmarks.Bookmarks, BOLT_PROTOCOL_V4_3 = neo4j_driver_core_1$l.internal.constants.BOLT_PROTOCOL_V4_3;
|
|
30284
|
+
var BoltProtocol$8 = /** @class */ (function (_super) {
|
|
30285
|
+
__extends$f(BoltProtocol, _super);
|
|
30284
30286
|
function BoltProtocol() {
|
|
30285
30287
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30286
30288
|
}
|
|
@@ -30295,7 +30297,7 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
30295
30297
|
get: function () {
|
|
30296
30298
|
var _this = this;
|
|
30297
30299
|
if (this._transformer === undefined) {
|
|
30298
|
-
this._transformer = new transformer_1$
|
|
30300
|
+
this._transformer = new transformer_1$8.default(Object.values(bolt_protocol_v4x3_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
30299
30301
|
}
|
|
30300
30302
|
return this._transformer;
|
|
30301
30303
|
},
|
|
@@ -30364,15 +30366,15 @@ var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
|
30364
30366
|
};
|
|
30365
30367
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
30366
30368
|
var _this = this;
|
|
30367
|
-
this._transformer = new transformer_1$
|
|
30369
|
+
this._transformer = new transformer_1$8.default(Object.values(__assign$d(__assign$d({}, bolt_protocol_v4x3_transformer_1.default), bolt_protocol_v5x0_utc_transformer_1$2.default)).map(function (create) { return create(_this._config, _this._log); }));
|
|
30368
30370
|
};
|
|
30369
30371
|
return BoltProtocol;
|
|
30370
30372
|
}(bolt_protocol_v4x2_1$1.default));
|
|
30371
|
-
boltProtocolV4x3.default = BoltProtocol$
|
|
30373
|
+
boltProtocolV4x3.default = BoltProtocol$8;
|
|
30372
30374
|
|
|
30373
30375
|
var boltProtocolV4x4 = {};
|
|
30374
30376
|
|
|
30375
|
-
var __extends$
|
|
30377
|
+
var __extends$e = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30376
30378
|
var extendStatics = function (d, b) {
|
|
30377
30379
|
extendStatics = Object.setPrototypeOf ||
|
|
30378
30380
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30387,8 +30389,8 @@ var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
30387
30389
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30388
30390
|
};
|
|
30389
30391
|
})();
|
|
30390
|
-
var __assign$
|
|
30391
|
-
__assign$
|
|
30392
|
+
var __assign$c = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30393
|
+
__assign$c = Object.assign || function(t) {
|
|
30392
30394
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30393
30395
|
s = arguments[i];
|
|
30394
30396
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30396,9 +30398,9 @@ var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30396
30398
|
}
|
|
30397
30399
|
return t;
|
|
30398
30400
|
};
|
|
30399
|
-
return __assign$
|
|
30401
|
+
return __assign$c.apply(this, arguments);
|
|
30400
30402
|
};
|
|
30401
|
-
var __importDefault$
|
|
30403
|
+
var __importDefault$m = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30402
30404
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30403
30405
|
};
|
|
30404
30406
|
Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
|
|
@@ -30418,17 +30420,17 @@ Object.defineProperty(boltProtocolV4x4, "__esModule", { value: true });
|
|
|
30418
30420
|
* See the License for the specific language governing permissions and
|
|
30419
30421
|
* limitations under the License.
|
|
30420
30422
|
*/
|
|
30421
|
-
var bolt_protocol_v4x3_1$1 = __importDefault$
|
|
30422
|
-
var neo4j_driver_core_1$
|
|
30423
|
-
var request_message_1$6 = __importDefault$
|
|
30423
|
+
var bolt_protocol_v4x3_1$1 = __importDefault$m(boltProtocolV4x3);
|
|
30424
|
+
var neo4j_driver_core_1$k = lib$1;
|
|
30425
|
+
var request_message_1$6 = __importDefault$m(requestMessage);
|
|
30424
30426
|
var stream_observers_1$6 = streamObservers;
|
|
30425
30427
|
var bolt_protocol_util_1$2 = boltProtocolUtil;
|
|
30426
|
-
var bolt_protocol_v4x4_transformer_1$1 = __importDefault$
|
|
30427
|
-
var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$
|
|
30428
|
-
var transformer_1$
|
|
30429
|
-
var _a$5 = neo4j_driver_core_1$
|
|
30430
|
-
var BoltProtocol$
|
|
30431
|
-
__extends$
|
|
30428
|
+
var bolt_protocol_v4x4_transformer_1$1 = __importDefault$m(boltProtocolV4x4_transformer);
|
|
30429
|
+
var bolt_protocol_v5x0_utc_transformer_1$1 = __importDefault$m(boltProtocolV5x0_utc_transformer);
|
|
30430
|
+
var transformer_1$7 = __importDefault$m(transformer);
|
|
30431
|
+
var _a$5 = neo4j_driver_core_1$k.internal.constants, BOLT_PROTOCOL_V4_4$2 = _a$5.BOLT_PROTOCOL_V4_4, FETCH_ALL$2 = _a$5.FETCH_ALL, Bookmarks$1 = neo4j_driver_core_1$k.internal.bookmarks.Bookmarks;
|
|
30432
|
+
var BoltProtocol$7 = /** @class */ (function (_super) {
|
|
30433
|
+
__extends$e(BoltProtocol, _super);
|
|
30432
30434
|
function BoltProtocol() {
|
|
30433
30435
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30434
30436
|
}
|
|
@@ -30443,7 +30445,7 @@ var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
|
30443
30445
|
get: function () {
|
|
30444
30446
|
var _this = this;
|
|
30445
30447
|
if (this._transformer === undefined) {
|
|
30446
|
-
this._transformer = new transformer_1$
|
|
30448
|
+
this._transformer = new transformer_1$7.default(Object.values(bolt_protocol_v4x4_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
30447
30449
|
}
|
|
30448
30450
|
return this._transformer;
|
|
30449
30451
|
},
|
|
@@ -30522,11 +30524,11 @@ var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
|
30522
30524
|
};
|
|
30523
30525
|
BoltProtocol.prototype._applyUtcPatch = function () {
|
|
30524
30526
|
var _this = this;
|
|
30525
|
-
this._transformer = new transformer_1$
|
|
30527
|
+
this._transformer = new transformer_1$7.default(Object.values(__assign$c(__assign$c({}, bolt_protocol_v4x4_transformer_1$1.default), bolt_protocol_v5x0_utc_transformer_1$1.default)).map(function (create) { return create(_this._config, _this._log); }));
|
|
30526
30528
|
};
|
|
30527
30529
|
return BoltProtocol;
|
|
30528
30530
|
}(bolt_protocol_v4x3_1$1.default));
|
|
30529
|
-
boltProtocolV4x4.default = BoltProtocol$
|
|
30531
|
+
boltProtocolV4x4.default = BoltProtocol$7;
|
|
30530
30532
|
|
|
30531
30533
|
var boltProtocolV5x0 = {};
|
|
30532
30534
|
|
|
@@ -30548,8 +30550,8 @@ var boltProtocolV5x0_transformer = {};
|
|
|
30548
30550
|
* See the License for the specific language governing permissions and
|
|
30549
30551
|
* limitations under the License.
|
|
30550
30552
|
*/
|
|
30551
|
-
var __assign$
|
|
30552
|
-
__assign$
|
|
30553
|
+
var __assign$b = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30554
|
+
__assign$b = Object.assign || function(t) {
|
|
30553
30555
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30554
30556
|
s = arguments[i];
|
|
30555
30557
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30557,7 +30559,7 @@ var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30557
30559
|
}
|
|
30558
30560
|
return t;
|
|
30559
30561
|
};
|
|
30560
|
-
return __assign$
|
|
30562
|
+
return __assign$b.apply(this, arguments);
|
|
30561
30563
|
};
|
|
30562
30564
|
var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
30563
30565
|
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
@@ -30575,14 +30577,14 @@ var __read$3 = (commonjsGlobal && commonjsGlobal.__read) || function (o, n) {
|
|
|
30575
30577
|
}
|
|
30576
30578
|
return ar;
|
|
30577
30579
|
};
|
|
30578
|
-
var __importDefault$
|
|
30580
|
+
var __importDefault$l = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30579
30581
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30580
30582
|
};
|
|
30581
30583
|
Object.defineProperty(boltProtocolV5x0_transformer, "__esModule", { value: true });
|
|
30582
30584
|
var packstream_1 = packstream;
|
|
30583
|
-
var neo4j_driver_core_1$
|
|
30584
|
-
var bolt_protocol_v4x4_transformer_1 = __importDefault$
|
|
30585
|
-
var bolt_protocol_v5x0_utc_transformer_1 = __importDefault$
|
|
30585
|
+
var neo4j_driver_core_1$j = lib$1;
|
|
30586
|
+
var bolt_protocol_v4x4_transformer_1 = __importDefault$l(boltProtocolV4x4_transformer);
|
|
30587
|
+
var bolt_protocol_v5x0_utc_transformer_1 = __importDefault$l(boltProtocolV5x0_utc_transformer);
|
|
30586
30588
|
var NODE_STRUCT_SIZE = 4;
|
|
30587
30589
|
var RELATIONSHIP_STRUCT_SIZE = 8;
|
|
30588
30590
|
var UNBOUND_RELATIONSHIP_STRUCT_SIZE = 4;
|
|
@@ -30597,7 +30599,7 @@ function createNodeTransformer(config) {
|
|
|
30597
30599
|
fromStructure: function (struct) {
|
|
30598
30600
|
packstream_1.structure.verifyStructSize('Node', NODE_STRUCT_SIZE, struct.size);
|
|
30599
30601
|
var _a = __read$3(struct.fields, 4), identity = _a[0], lables = _a[1], properties = _a[2], elementId = _a[3];
|
|
30600
|
-
return new neo4j_driver_core_1$
|
|
30602
|
+
return new neo4j_driver_core_1$j.Node(identity, lables, properties, elementId);
|
|
30601
30603
|
}
|
|
30602
30604
|
});
|
|
30603
30605
|
}
|
|
@@ -30612,7 +30614,7 @@ function createRelationshipTransformer(config) {
|
|
|
30612
30614
|
fromStructure: function (struct) {
|
|
30613
30615
|
packstream_1.structure.verifyStructSize('Relationship', RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
30614
30616
|
var _a = __read$3(struct.fields, 8), identity = _a[0], startNodeIdentity = _a[1], endNodeIdentity = _a[2], type = _a[3], properties = _a[4], elementId = _a[5], startNodeElementId = _a[6], endNodeElementId = _a[7];
|
|
30615
|
-
return new neo4j_driver_core_1$
|
|
30617
|
+
return new neo4j_driver_core_1$j.Relationship(identity, startNodeIdentity, endNodeIdentity, type, properties, elementId, startNodeElementId, endNodeElementId);
|
|
30616
30618
|
}
|
|
30617
30619
|
});
|
|
30618
30620
|
}
|
|
@@ -30627,13 +30629,13 @@ function createUnboundRelationshipTransformer(config) {
|
|
|
30627
30629
|
fromStructure: function (struct) {
|
|
30628
30630
|
packstream_1.structure.verifyStructSize('UnboundRelationship', UNBOUND_RELATIONSHIP_STRUCT_SIZE, struct.size);
|
|
30629
30631
|
var _a = __read$3(struct.fields, 4), identity = _a[0], type = _a[1], properties = _a[2], elementId = _a[3];
|
|
30630
|
-
return new neo4j_driver_core_1$
|
|
30632
|
+
return new neo4j_driver_core_1$j.UnboundRelationship(identity, type, properties, elementId);
|
|
30631
30633
|
}
|
|
30632
30634
|
});
|
|
30633
30635
|
}
|
|
30634
|
-
boltProtocolV5x0_transformer.default = __assign$
|
|
30636
|
+
boltProtocolV5x0_transformer.default = __assign$b(__assign$b(__assign$b({}, bolt_protocol_v4x4_transformer_1.default), bolt_protocol_v5x0_utc_transformer_1.default), { createNodeTransformer: createNodeTransformer, createRelationshipTransformer: createRelationshipTransformer, createUnboundRelationshipTransformer: createUnboundRelationshipTransformer });
|
|
30635
30637
|
|
|
30636
|
-
var __extends$
|
|
30638
|
+
var __extends$d = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30637
30639
|
var extendStatics = function (d, b) {
|
|
30638
30640
|
extendStatics = Object.setPrototypeOf ||
|
|
30639
30641
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30648,7 +30650,7 @@ var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
30648
30650
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30649
30651
|
};
|
|
30650
30652
|
})();
|
|
30651
|
-
var __importDefault$
|
|
30653
|
+
var __importDefault$k = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30652
30654
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30653
30655
|
};
|
|
30654
30656
|
Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
|
|
@@ -30668,16 +30670,16 @@ Object.defineProperty(boltProtocolV5x0, "__esModule", { value: true });
|
|
|
30668
30670
|
* See the License for the specific language governing permissions and
|
|
30669
30671
|
* limitations under the License.
|
|
30670
30672
|
*/
|
|
30671
|
-
var bolt_protocol_v4x4_1$1 = __importDefault$
|
|
30673
|
+
var bolt_protocol_v4x4_1$1 = __importDefault$k(boltProtocolV4x4);
|
|
30672
30674
|
var bolt_protocol_util_1$1 = boltProtocolUtil;
|
|
30673
|
-
var bolt_protocol_v5x0_transformer_1$1 = __importDefault$
|
|
30674
|
-
var transformer_1$
|
|
30675
|
-
var request_message_1$5 = __importDefault$
|
|
30675
|
+
var bolt_protocol_v5x0_transformer_1$1 = __importDefault$k(boltProtocolV5x0_transformer);
|
|
30676
|
+
var transformer_1$6 = __importDefault$k(transformer);
|
|
30677
|
+
var request_message_1$5 = __importDefault$k(requestMessage);
|
|
30676
30678
|
var stream_observers_1$5 = streamObservers;
|
|
30677
|
-
var neo4j_driver_core_1$
|
|
30678
|
-
var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$
|
|
30679
|
-
var BoltProtocol$
|
|
30680
|
-
__extends$
|
|
30679
|
+
var neo4j_driver_core_1$i = lib$1;
|
|
30680
|
+
var BOLT_PROTOCOL_V5_0 = neo4j_driver_core_1$i.internal.constants.BOLT_PROTOCOL_V5_0;
|
|
30681
|
+
var BoltProtocol$6 = /** @class */ (function (_super) {
|
|
30682
|
+
__extends$d(BoltProtocol, _super);
|
|
30681
30683
|
function BoltProtocol() {
|
|
30682
30684
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30683
30685
|
}
|
|
@@ -30692,7 +30694,7 @@ var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
|
30692
30694
|
get: function () {
|
|
30693
30695
|
var _this = this;
|
|
30694
30696
|
if (this._transformer === undefined) {
|
|
30695
|
-
this._transformer = new transformer_1$
|
|
30697
|
+
this._transformer = new transformer_1$6.default(Object.values(bolt_protocol_v5x0_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
30696
30698
|
}
|
|
30697
30699
|
return this._transformer;
|
|
30698
30700
|
},
|
|
@@ -30724,7 +30726,7 @@ var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
|
30724
30726
|
};
|
|
30725
30727
|
return BoltProtocol;
|
|
30726
30728
|
}(bolt_protocol_v4x4_1$1.default));
|
|
30727
|
-
boltProtocolV5x0.default = BoltProtocol$
|
|
30729
|
+
boltProtocolV5x0.default = BoltProtocol$6;
|
|
30728
30730
|
|
|
30729
30731
|
var boltProtocolV5x1 = {};
|
|
30730
30732
|
|
|
@@ -30746,8 +30748,8 @@ var boltProtocolV5x1_transformer = {};
|
|
|
30746
30748
|
* See the License for the specific language governing permissions and
|
|
30747
30749
|
* limitations under the License.
|
|
30748
30750
|
*/
|
|
30749
|
-
var __assign$
|
|
30750
|
-
__assign$
|
|
30751
|
+
var __assign$a = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30752
|
+
__assign$a = Object.assign || function(t) {
|
|
30751
30753
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30752
30754
|
s = arguments[i];
|
|
30753
30755
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30755,16 +30757,16 @@ var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30755
30757
|
}
|
|
30756
30758
|
return t;
|
|
30757
30759
|
};
|
|
30758
|
-
return __assign$
|
|
30760
|
+
return __assign$a.apply(this, arguments);
|
|
30759
30761
|
};
|
|
30760
|
-
var __importDefault$
|
|
30762
|
+
var __importDefault$j = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30761
30763
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30762
30764
|
};
|
|
30763
30765
|
Object.defineProperty(boltProtocolV5x1_transformer, "__esModule", { value: true });
|
|
30764
|
-
var bolt_protocol_v5x0_transformer_1 = __importDefault$
|
|
30765
|
-
boltProtocolV5x1_transformer.default = __assign$
|
|
30766
|
+
var bolt_protocol_v5x0_transformer_1 = __importDefault$j(boltProtocolV5x0_transformer);
|
|
30767
|
+
boltProtocolV5x1_transformer.default = __assign$a({}, bolt_protocol_v5x0_transformer_1.default);
|
|
30766
30768
|
|
|
30767
|
-
var __extends$
|
|
30769
|
+
var __extends$c = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30768
30770
|
var extendStatics = function (d, b) {
|
|
30769
30771
|
extendStatics = Object.setPrototypeOf ||
|
|
30770
30772
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30779,8 +30781,8 @@ var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
30779
30781
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30780
30782
|
};
|
|
30781
30783
|
})();
|
|
30782
|
-
var __assign$
|
|
30783
|
-
__assign$
|
|
30784
|
+
var __assign$9 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30785
|
+
__assign$9 = Object.assign || function(t) {
|
|
30784
30786
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30785
30787
|
s = arguments[i];
|
|
30786
30788
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30788,9 +30790,9 @@ var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30788
30790
|
}
|
|
30789
30791
|
return t;
|
|
30790
30792
|
};
|
|
30791
|
-
return __assign$
|
|
30793
|
+
return __assign$9.apply(this, arguments);
|
|
30792
30794
|
};
|
|
30793
|
-
var __importDefault$
|
|
30795
|
+
var __importDefault$i = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30794
30796
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30795
30797
|
};
|
|
30796
30798
|
Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
|
|
@@ -30810,16 +30812,16 @@ Object.defineProperty(boltProtocolV5x1, "__esModule", { value: true });
|
|
|
30810
30812
|
* See the License for the specific language governing permissions and
|
|
30811
30813
|
* limitations under the License.
|
|
30812
30814
|
*/
|
|
30813
|
-
var bolt_protocol_v5x0_1$1 = __importDefault$
|
|
30815
|
+
var bolt_protocol_v5x0_1$1 = __importDefault$i(boltProtocolV5x0);
|
|
30814
30816
|
var bolt_protocol_util_1 = boltProtocolUtil;
|
|
30815
|
-
var bolt_protocol_v5x1_transformer_1$1 = __importDefault$
|
|
30816
|
-
var transformer_1$
|
|
30817
|
-
var request_message_1$4 = __importDefault$
|
|
30817
|
+
var bolt_protocol_v5x1_transformer_1$1 = __importDefault$i(boltProtocolV5x1_transformer);
|
|
30818
|
+
var transformer_1$5 = __importDefault$i(transformer);
|
|
30819
|
+
var request_message_1$4 = __importDefault$i(requestMessage);
|
|
30818
30820
|
var stream_observers_1$4 = streamObservers;
|
|
30819
|
-
var neo4j_driver_core_1$
|
|
30820
|
-
var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$
|
|
30821
|
-
var BoltProtocol$
|
|
30822
|
-
__extends$
|
|
30821
|
+
var neo4j_driver_core_1$h = lib$1;
|
|
30822
|
+
var BOLT_PROTOCOL_V5_1$2 = neo4j_driver_core_1$h.internal.constants.BOLT_PROTOCOL_V5_1;
|
|
30823
|
+
var BoltProtocol$5 = /** @class */ (function (_super) {
|
|
30824
|
+
__extends$c(BoltProtocol, _super);
|
|
30823
30825
|
function BoltProtocol() {
|
|
30824
30826
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
30825
30827
|
}
|
|
@@ -30834,7 +30836,7 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
30834
30836
|
get: function () {
|
|
30835
30837
|
var _this = this;
|
|
30836
30838
|
if (this._transformer === undefined) {
|
|
30837
|
-
this._transformer = new transformer_1$
|
|
30839
|
+
this._transformer = new transformer_1$5.default(Object.values(bolt_protocol_v5x1_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
30838
30840
|
}
|
|
30839
30841
|
return this._transformer;
|
|
30840
30842
|
},
|
|
@@ -30875,7 +30877,7 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
30875
30877
|
this.write(request_message_1$4.default.hello5x1(userAgent, this._serversideRouting), observer, false);
|
|
30876
30878
|
return this.logon({
|
|
30877
30879
|
authToken: authToken,
|
|
30878
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
30880
|
+
onComplete: function (metadata) { return onComplete(__assign$9(__assign$9({}, metadata), state.metadata)); },
|
|
30879
30881
|
onError: onError,
|
|
30880
30882
|
flush: true
|
|
30881
30883
|
});
|
|
@@ -30922,7 +30924,7 @@ var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
|
30922
30924
|
};
|
|
30923
30925
|
return BoltProtocol;
|
|
30924
30926
|
}(bolt_protocol_v5x0_1$1.default));
|
|
30925
|
-
boltProtocolV5x1.default = BoltProtocol$
|
|
30927
|
+
boltProtocolV5x1.default = BoltProtocol$5;
|
|
30926
30928
|
|
|
30927
30929
|
var boltProtocolV5x2 = {};
|
|
30928
30930
|
|
|
@@ -30944,8 +30946,8 @@ var boltProtocolV5x2_transformer = {};
|
|
|
30944
30946
|
* See the License for the specific language governing permissions and
|
|
30945
30947
|
* limitations under the License.
|
|
30946
30948
|
*/
|
|
30947
|
-
var __assign$
|
|
30948
|
-
__assign$
|
|
30949
|
+
var __assign$8 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30950
|
+
__assign$8 = Object.assign || function(t) {
|
|
30949
30951
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30950
30952
|
s = arguments[i];
|
|
30951
30953
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30953,16 +30955,16 @@ var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30953
30955
|
}
|
|
30954
30956
|
return t;
|
|
30955
30957
|
};
|
|
30956
|
-
return __assign$
|
|
30958
|
+
return __assign$8.apply(this, arguments);
|
|
30957
30959
|
};
|
|
30958
|
-
var __importDefault$
|
|
30960
|
+
var __importDefault$h = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30959
30961
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30960
30962
|
};
|
|
30961
30963
|
Object.defineProperty(boltProtocolV5x2_transformer, "__esModule", { value: true });
|
|
30962
|
-
var bolt_protocol_v5x1_transformer_1 = __importDefault$
|
|
30963
|
-
boltProtocolV5x2_transformer.default = __assign$
|
|
30964
|
+
var bolt_protocol_v5x1_transformer_1 = __importDefault$h(boltProtocolV5x1_transformer);
|
|
30965
|
+
boltProtocolV5x2_transformer.default = __assign$8({}, bolt_protocol_v5x1_transformer_1.default);
|
|
30964
30966
|
|
|
30965
|
-
var __extends$
|
|
30967
|
+
var __extends$b = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
30966
30968
|
var extendStatics = function (d, b) {
|
|
30967
30969
|
extendStatics = Object.setPrototypeOf ||
|
|
30968
30970
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -30977,8 +30979,8 @@ var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
30977
30979
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
30978
30980
|
};
|
|
30979
30981
|
})();
|
|
30980
|
-
var __assign$
|
|
30981
|
-
__assign$
|
|
30982
|
+
var __assign$7 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
30983
|
+
__assign$7 = Object.assign || function(t) {
|
|
30982
30984
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
30983
30985
|
s = arguments[i];
|
|
30984
30986
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -30986,9 +30988,9 @@ var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
30986
30988
|
}
|
|
30987
30989
|
return t;
|
|
30988
30990
|
};
|
|
30989
|
-
return __assign$
|
|
30991
|
+
return __assign$7.apply(this, arguments);
|
|
30990
30992
|
};
|
|
30991
|
-
var __importDefault$
|
|
30993
|
+
var __importDefault$g = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
30992
30994
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30993
30995
|
};
|
|
30994
30996
|
Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
|
|
@@ -31008,15 +31010,15 @@ Object.defineProperty(boltProtocolV5x2, "__esModule", { value: true });
|
|
|
31008
31010
|
* See the License for the specific language governing permissions and
|
|
31009
31011
|
* limitations under the License.
|
|
31010
31012
|
*/
|
|
31011
|
-
var bolt_protocol_v5x1_1$1 = __importDefault$
|
|
31012
|
-
var bolt_protocol_v5x2_transformer_1$1 = __importDefault$
|
|
31013
|
-
var transformer_1$
|
|
31014
|
-
var request_message_1$3 = __importDefault$
|
|
31013
|
+
var bolt_protocol_v5x1_1$1 = __importDefault$g(boltProtocolV5x1);
|
|
31014
|
+
var bolt_protocol_v5x2_transformer_1$1 = __importDefault$g(boltProtocolV5x2_transformer);
|
|
31015
|
+
var transformer_1$4 = __importDefault$g(transformer);
|
|
31016
|
+
var request_message_1$3 = __importDefault$g(requestMessage);
|
|
31015
31017
|
var stream_observers_1$3 = streamObservers;
|
|
31016
|
-
var neo4j_driver_core_1$
|
|
31017
|
-
var _a$4 = neo4j_driver_core_1$
|
|
31018
|
-
var BoltProtocol$
|
|
31019
|
-
__extends$
|
|
31018
|
+
var neo4j_driver_core_1$g = lib$1;
|
|
31019
|
+
var _a$4 = neo4j_driver_core_1$g.internal.constants, BOLT_PROTOCOL_V5_2 = _a$4.BOLT_PROTOCOL_V5_2, FETCH_ALL$1 = _a$4.FETCH_ALL;
|
|
31020
|
+
var BoltProtocol$4 = /** @class */ (function (_super) {
|
|
31021
|
+
__extends$b(BoltProtocol, _super);
|
|
31020
31022
|
function BoltProtocol() {
|
|
31021
31023
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31022
31024
|
}
|
|
@@ -31031,7 +31033,7 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
31031
31033
|
get: function () {
|
|
31032
31034
|
var _this = this;
|
|
31033
31035
|
if (this._transformer === undefined) {
|
|
31034
|
-
this._transformer = new transformer_1$
|
|
31036
|
+
this._transformer = new transformer_1$4.default(Object.values(bolt_protocol_v5x2_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31035
31037
|
}
|
|
31036
31038
|
return this._transformer;
|
|
31037
31039
|
},
|
|
@@ -31073,7 +31075,7 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
31073
31075
|
request_message_1$3.default.hello5x2(userAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
31074
31076
|
return this.logon({
|
|
31075
31077
|
authToken: authToken,
|
|
31076
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
31078
|
+
onComplete: function (metadata) { return onComplete(__assign$7(__assign$7({}, metadata), state.metadata)); },
|
|
31077
31079
|
onError: onError,
|
|
31078
31080
|
flush: true
|
|
31079
31081
|
});
|
|
@@ -31124,7 +31126,7 @@ var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
|
31124
31126
|
};
|
|
31125
31127
|
return BoltProtocol;
|
|
31126
31128
|
}(bolt_protocol_v5x1_1$1.default));
|
|
31127
|
-
boltProtocolV5x2.default = BoltProtocol$
|
|
31129
|
+
boltProtocolV5x2.default = BoltProtocol$4;
|
|
31128
31130
|
|
|
31129
31131
|
var boltProtocolV5x3 = {};
|
|
31130
31132
|
|
|
@@ -31146,8 +31148,8 @@ var boltProtocolV5x3_transformer = {};
|
|
|
31146
31148
|
* See the License for the specific language governing permissions and
|
|
31147
31149
|
* limitations under the License.
|
|
31148
31150
|
*/
|
|
31149
|
-
var __assign$
|
|
31150
|
-
__assign$
|
|
31151
|
+
var __assign$6 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31152
|
+
__assign$6 = Object.assign || function(t) {
|
|
31151
31153
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31152
31154
|
s = arguments[i];
|
|
31153
31155
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31155,16 +31157,16 @@ var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31155
31157
|
}
|
|
31156
31158
|
return t;
|
|
31157
31159
|
};
|
|
31158
|
-
return __assign$
|
|
31160
|
+
return __assign$6.apply(this, arguments);
|
|
31159
31161
|
};
|
|
31160
|
-
var __importDefault$
|
|
31162
|
+
var __importDefault$f = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31161
31163
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31162
31164
|
};
|
|
31163
31165
|
Object.defineProperty(boltProtocolV5x3_transformer, "__esModule", { value: true });
|
|
31164
|
-
var bolt_protocol_v5x2_transformer_1 = __importDefault$
|
|
31165
|
-
boltProtocolV5x3_transformer.default = __assign$
|
|
31166
|
+
var bolt_protocol_v5x2_transformer_1 = __importDefault$f(boltProtocolV5x2_transformer);
|
|
31167
|
+
boltProtocolV5x3_transformer.default = __assign$6({}, bolt_protocol_v5x2_transformer_1.default);
|
|
31166
31168
|
|
|
31167
|
-
var __extends$
|
|
31169
|
+
var __extends$a = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31168
31170
|
var extendStatics = function (d, b) {
|
|
31169
31171
|
extendStatics = Object.setPrototypeOf ||
|
|
31170
31172
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31179,8 +31181,8 @@ var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31179
31181
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31180
31182
|
};
|
|
31181
31183
|
})();
|
|
31182
|
-
var __assign$
|
|
31183
|
-
__assign$
|
|
31184
|
+
var __assign$5 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31185
|
+
__assign$5 = Object.assign || function(t) {
|
|
31184
31186
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31185
31187
|
s = arguments[i];
|
|
31186
31188
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31188,9 +31190,9 @@ var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31188
31190
|
}
|
|
31189
31191
|
return t;
|
|
31190
31192
|
};
|
|
31191
|
-
return __assign$
|
|
31193
|
+
return __assign$5.apply(this, arguments);
|
|
31192
31194
|
};
|
|
31193
|
-
var __importDefault$
|
|
31195
|
+
var __importDefault$e = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31194
31196
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31195
31197
|
};
|
|
31196
31198
|
Object.defineProperty(boltProtocolV5x3, "__esModule", { value: true });
|
|
@@ -31210,15 +31212,15 @@ Object.defineProperty(boltProtocolV5x3, "__esModule", { value: true });
|
|
|
31210
31212
|
* See the License for the specific language governing permissions and
|
|
31211
31213
|
* limitations under the License.
|
|
31212
31214
|
*/
|
|
31213
|
-
var bolt_protocol_v5x2_1$1 = __importDefault$
|
|
31214
|
-
var bolt_protocol_v5x3_transformer_1$
|
|
31215
|
-
var transformer_1$
|
|
31216
|
-
var request_message_1$2 = __importDefault$
|
|
31215
|
+
var bolt_protocol_v5x2_1$1 = __importDefault$e(boltProtocolV5x2);
|
|
31216
|
+
var bolt_protocol_v5x3_transformer_1$1 = __importDefault$e(boltProtocolV5x3_transformer);
|
|
31217
|
+
var transformer_1$3 = __importDefault$e(transformer);
|
|
31218
|
+
var request_message_1$2 = __importDefault$e(requestMessage);
|
|
31217
31219
|
var stream_observers_1$2 = streamObservers;
|
|
31218
|
-
var neo4j_driver_core_1$
|
|
31219
|
-
var BOLT_PROTOCOL_V5_3 = neo4j_driver_core_1$
|
|
31220
|
-
var BoltProtocol$
|
|
31221
|
-
__extends$
|
|
31220
|
+
var neo4j_driver_core_1$f = lib$1;
|
|
31221
|
+
var BOLT_PROTOCOL_V5_3 = neo4j_driver_core_1$f.internal.constants.BOLT_PROTOCOL_V5_3;
|
|
31222
|
+
var BoltProtocol$3 = /** @class */ (function (_super) {
|
|
31223
|
+
__extends$a(BoltProtocol, _super);
|
|
31222
31224
|
function BoltProtocol() {
|
|
31223
31225
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31224
31226
|
}
|
|
@@ -31233,7 +31235,7 @@ var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
|
31233
31235
|
get: function () {
|
|
31234
31236
|
var _this = this;
|
|
31235
31237
|
if (this._transformer === undefined) {
|
|
31236
|
-
this._transformer = new transformer_1$
|
|
31238
|
+
this._transformer = new transformer_1$3.default(Object.values(bolt_protocol_v5x3_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31237
31239
|
}
|
|
31238
31240
|
return this._transformer;
|
|
31239
31241
|
},
|
|
@@ -31265,14 +31267,14 @@ var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
|
31265
31267
|
this.write(request_message_1$2.default.hello5x3(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
31266
31268
|
return this.logon({
|
|
31267
31269
|
authToken: authToken,
|
|
31268
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
31270
|
+
onComplete: function (metadata) { return onComplete(__assign$5(__assign$5({}, metadata), state.metadata)); },
|
|
31269
31271
|
onError: onError,
|
|
31270
31272
|
flush: true
|
|
31271
31273
|
});
|
|
31272
31274
|
};
|
|
31273
31275
|
return BoltProtocol;
|
|
31274
31276
|
}(bolt_protocol_v5x2_1$1.default));
|
|
31275
|
-
boltProtocolV5x3.default = BoltProtocol$
|
|
31277
|
+
boltProtocolV5x3.default = BoltProtocol$3;
|
|
31276
31278
|
|
|
31277
31279
|
var boltProtocolV5x4 = {};
|
|
31278
31280
|
|
|
@@ -31294,8 +31296,8 @@ var boltProtocolV5x4_transformer = {};
|
|
|
31294
31296
|
* See the License for the specific language governing permissions and
|
|
31295
31297
|
* limitations under the License.
|
|
31296
31298
|
*/
|
|
31297
|
-
var __assign$
|
|
31298
|
-
__assign$
|
|
31299
|
+
var __assign$4 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31300
|
+
__assign$4 = Object.assign || function(t) {
|
|
31299
31301
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31300
31302
|
s = arguments[i];
|
|
31301
31303
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31303,16 +31305,16 @@ var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31303
31305
|
}
|
|
31304
31306
|
return t;
|
|
31305
31307
|
};
|
|
31306
|
-
return __assign$
|
|
31308
|
+
return __assign$4.apply(this, arguments);
|
|
31307
31309
|
};
|
|
31308
|
-
var __importDefault$
|
|
31310
|
+
var __importDefault$d = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31309
31311
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31310
31312
|
};
|
|
31311
31313
|
Object.defineProperty(boltProtocolV5x4_transformer, "__esModule", { value: true });
|
|
31312
|
-
var bolt_protocol_v5x3_transformer_1
|
|
31313
|
-
boltProtocolV5x4_transformer.default = __assign$
|
|
31314
|
+
var bolt_protocol_v5x3_transformer_1 = __importDefault$d(boltProtocolV5x3_transformer);
|
|
31315
|
+
boltProtocolV5x4_transformer.default = __assign$4({}, bolt_protocol_v5x3_transformer_1.default);
|
|
31314
31316
|
|
|
31315
|
-
var __extends$
|
|
31317
|
+
var __extends$9 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31316
31318
|
var extendStatics = function (d, b) {
|
|
31317
31319
|
extendStatics = Object.setPrototypeOf ||
|
|
31318
31320
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31327,7 +31329,7 @@ var __extends$8 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31327
31329
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31328
31330
|
};
|
|
31329
31331
|
})();
|
|
31330
|
-
var __importDefault$
|
|
31332
|
+
var __importDefault$c = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31331
31333
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31332
31334
|
};
|
|
31333
31335
|
Object.defineProperty(boltProtocolV5x4, "__esModule", { value: true });
|
|
@@ -31347,15 +31349,15 @@ Object.defineProperty(boltProtocolV5x4, "__esModule", { value: true });
|
|
|
31347
31349
|
* See the License for the specific language governing permissions and
|
|
31348
31350
|
* limitations under the License.
|
|
31349
31351
|
*/
|
|
31350
|
-
var bolt_protocol_v5x3_1$1 = __importDefault$
|
|
31351
|
-
var bolt_protocol_v5x4_transformer_1 = __importDefault$
|
|
31352
|
-
var request_message_1$1 = __importDefault$
|
|
31352
|
+
var bolt_protocol_v5x3_1$1 = __importDefault$c(boltProtocolV5x3);
|
|
31353
|
+
var bolt_protocol_v5x4_transformer_1$1 = __importDefault$c(boltProtocolV5x4_transformer);
|
|
31354
|
+
var request_message_1$1 = __importDefault$c(requestMessage);
|
|
31353
31355
|
var stream_observers_1$1 = streamObservers;
|
|
31354
|
-
var transformer_1$
|
|
31355
|
-
var neo4j_driver_core_1$
|
|
31356
|
-
var BOLT_PROTOCOL_V5_4 = neo4j_driver_core_1$
|
|
31357
|
-
var BoltProtocol$
|
|
31358
|
-
__extends$
|
|
31356
|
+
var transformer_1$2 = __importDefault$c(transformer);
|
|
31357
|
+
var neo4j_driver_core_1$e = lib$1;
|
|
31358
|
+
var BOLT_PROTOCOL_V5_4 = neo4j_driver_core_1$e.internal.constants.BOLT_PROTOCOL_V5_4;
|
|
31359
|
+
var BoltProtocol$2 = /** @class */ (function (_super) {
|
|
31360
|
+
__extends$9(BoltProtocol, _super);
|
|
31359
31361
|
function BoltProtocol() {
|
|
31360
31362
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31361
31363
|
}
|
|
@@ -31370,7 +31372,7 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
31370
31372
|
get: function () {
|
|
31371
31373
|
var _this = this;
|
|
31372
31374
|
if (this._transformer === undefined) {
|
|
31373
|
-
this._transformer = new transformer_1$
|
|
31375
|
+
this._transformer = new transformer_1$2.default(Object.values(bolt_protocol_v5x4_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31374
31376
|
}
|
|
31375
31377
|
return this._transformer;
|
|
31376
31378
|
},
|
|
@@ -31396,7 +31398,7 @@ var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
|
31396
31398
|
};
|
|
31397
31399
|
return BoltProtocol;
|
|
31398
31400
|
}(bolt_protocol_v5x3_1$1.default));
|
|
31399
|
-
boltProtocolV5x4.default = BoltProtocol$
|
|
31401
|
+
boltProtocolV5x4.default = BoltProtocol$2;
|
|
31400
31402
|
|
|
31401
31403
|
var boltProtocolV5x5 = {};
|
|
31402
31404
|
|
|
@@ -31418,8 +31420,8 @@ var boltProtocolV5x5_transformer = {};
|
|
|
31418
31420
|
* See the License for the specific language governing permissions and
|
|
31419
31421
|
* limitations under the License.
|
|
31420
31422
|
*/
|
|
31421
|
-
var __assign$
|
|
31422
|
-
__assign$
|
|
31423
|
+
var __assign$3 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31424
|
+
__assign$3 = Object.assign || function(t) {
|
|
31423
31425
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31424
31426
|
s = arguments[i];
|
|
31425
31427
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31427,16 +31429,16 @@ var __assign$2 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31427
31429
|
}
|
|
31428
31430
|
return t;
|
|
31429
31431
|
};
|
|
31430
|
-
return __assign$
|
|
31432
|
+
return __assign$3.apply(this, arguments);
|
|
31431
31433
|
};
|
|
31432
|
-
var __importDefault$
|
|
31434
|
+
var __importDefault$b = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31433
31435
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31434
31436
|
};
|
|
31435
31437
|
Object.defineProperty(boltProtocolV5x5_transformer, "__esModule", { value: true });
|
|
31436
|
-
var
|
|
31437
|
-
boltProtocolV5x5_transformer.default = __assign$
|
|
31438
|
+
var bolt_protocol_v5x4_transformer_1 = __importDefault$b(boltProtocolV5x4_transformer);
|
|
31439
|
+
boltProtocolV5x5_transformer.default = __assign$3({}, bolt_protocol_v5x4_transformer_1.default);
|
|
31438
31440
|
|
|
31439
|
-
var __extends$
|
|
31441
|
+
var __extends$8 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31440
31442
|
var extendStatics = function (d, b) {
|
|
31441
31443
|
extendStatics = Object.setPrototypeOf ||
|
|
31442
31444
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -31451,8 +31453,8 @@ var __extends$7 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
|
31451
31453
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31452
31454
|
};
|
|
31453
31455
|
})();
|
|
31454
|
-
var __assign$
|
|
31455
|
-
__assign$
|
|
31456
|
+
var __assign$2 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31457
|
+
__assign$2 = Object.assign || function(t) {
|
|
31456
31458
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31457
31459
|
s = arguments[i];
|
|
31458
31460
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
@@ -31460,9 +31462,9 @@ var __assign$1 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
|
31460
31462
|
}
|
|
31461
31463
|
return t;
|
|
31462
31464
|
};
|
|
31463
|
-
return __assign$
|
|
31465
|
+
return __assign$2.apply(this, arguments);
|
|
31464
31466
|
};
|
|
31465
|
-
var __importDefault$
|
|
31467
|
+
var __importDefault$a = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31466
31468
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31467
31469
|
};
|
|
31468
31470
|
Object.defineProperty(boltProtocolV5x5, "__esModule", { value: true });
|
|
@@ -31482,20 +31484,20 @@ Object.defineProperty(boltProtocolV5x5, "__esModule", { value: true });
|
|
|
31482
31484
|
* See the License for the specific language governing permissions and
|
|
31483
31485
|
* limitations under the License.
|
|
31484
31486
|
*/
|
|
31485
|
-
var bolt_protocol_v5x4_1$1 = __importDefault$
|
|
31486
|
-
var bolt_protocol_v5x5_transformer_1 = __importDefault$
|
|
31487
|
-
var transformer_1 = __importDefault$
|
|
31488
|
-
var request_message_1 = __importDefault$
|
|
31487
|
+
var bolt_protocol_v5x4_1$1 = __importDefault$a(boltProtocolV5x4);
|
|
31488
|
+
var bolt_protocol_v5x5_transformer_1$1 = __importDefault$a(boltProtocolV5x5_transformer);
|
|
31489
|
+
var transformer_1$1 = __importDefault$a(transformer);
|
|
31490
|
+
var request_message_1 = __importDefault$a(requestMessage);
|
|
31489
31491
|
var stream_observers_1 = streamObservers;
|
|
31490
|
-
var neo4j_driver_core_1$
|
|
31491
|
-
var _a$3 = neo4j_driver_core_1$
|
|
31492
|
-
var DEFAULT_DIAGNOSTIC_RECORD = Object.freeze({
|
|
31492
|
+
var neo4j_driver_core_1$d = lib$1;
|
|
31493
|
+
var _a$3 = neo4j_driver_core_1$d.internal.constants, BOLT_PROTOCOL_V5_5 = _a$3.BOLT_PROTOCOL_V5_5, FETCH_ALL = _a$3.FETCH_ALL;
|
|
31494
|
+
var DEFAULT_DIAGNOSTIC_RECORD$1 = Object.freeze({
|
|
31493
31495
|
OPERATION: '',
|
|
31494
31496
|
OPERATION_CODE: '0',
|
|
31495
31497
|
CURRENT_SCHEMA: '/'
|
|
31496
31498
|
});
|
|
31497
|
-
var BoltProtocol = /** @class */ (function (_super) {
|
|
31498
|
-
__extends$
|
|
31499
|
+
var BoltProtocol$1 = /** @class */ (function (_super) {
|
|
31500
|
+
__extends$8(BoltProtocol, _super);
|
|
31499
31501
|
function BoltProtocol() {
|
|
31500
31502
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
31501
31503
|
}
|
|
@@ -31510,7 +31512,7 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
31510
31512
|
get: function () {
|
|
31511
31513
|
var _this = this;
|
|
31512
31514
|
if (this._transformer === undefined) {
|
|
31513
|
-
this._transformer = new transformer_1.default(Object.values(bolt_protocol_v5x5_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31515
|
+
this._transformer = new transformer_1$1.default(Object.values(bolt_protocol_v5x5_transformer_1$1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31514
31516
|
}
|
|
31515
31517
|
return this._transformer;
|
|
31516
31518
|
},
|
|
@@ -31542,7 +31544,7 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
31542
31544
|
this.write(request_message_1.default.hello5x5(userAgent, boltAgent, notificationFilter, this._serversideRouting), observer, false);
|
|
31543
31545
|
return this.logon({
|
|
31544
31546
|
authToken: authToken,
|
|
31545
|
-
onComplete: function (metadata) { return onComplete(__assign$
|
|
31547
|
+
onComplete: function (metadata) { return onComplete(__assign$2(__assign$2({}, metadata), state.metadata)); },
|
|
31546
31548
|
onError: onError,
|
|
31547
31549
|
flush: true
|
|
31548
31550
|
});
|
|
@@ -31576,7 +31578,7 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
31576
31578
|
afterComplete: afterComplete,
|
|
31577
31579
|
highRecordWatermark: highRecordWatermark,
|
|
31578
31580
|
lowRecordWatermark: lowRecordWatermark,
|
|
31579
|
-
enrichMetadata:
|
|
31581
|
+
enrichMetadata: this._enrichMetadata
|
|
31580
31582
|
});
|
|
31581
31583
|
var flushRun = reactive;
|
|
31582
31584
|
this.write(request_message_1.default.runWithMetadata5x5(query, parameters, {
|
|
@@ -31597,15 +31599,111 @@ var BoltProtocol = /** @class */ (function (_super) {
|
|
|
31597
31599
|
* @param {object} metadata
|
|
31598
31600
|
* @returns {object}
|
|
31599
31601
|
*/
|
|
31600
|
-
BoltProtocol._enrichMetadata = function (metadata) {
|
|
31602
|
+
BoltProtocol.prototype._enrichMetadata = function (metadata) {
|
|
31601
31603
|
if (Array.isArray(metadata.statuses)) {
|
|
31602
|
-
metadata.statuses = metadata.statuses.map(function (status) { return (__assign$
|
|
31604
|
+
metadata.statuses = metadata.statuses.map(function (status) { return (__assign$2(__assign$2({}, status), { description: status.neo4j_code != null ? status.status_description : status.description, diagnostic_record: status.diagnostic_record !== null ? __assign$2(__assign$2({}, DEFAULT_DIAGNOSTIC_RECORD$1), status.diagnostic_record) : null })); });
|
|
31603
31605
|
}
|
|
31604
31606
|
return metadata;
|
|
31605
31607
|
};
|
|
31606
31608
|
return BoltProtocol;
|
|
31607
31609
|
}(bolt_protocol_v5x4_1$1.default));
|
|
31608
|
-
boltProtocolV5x5.default = BoltProtocol;
|
|
31610
|
+
boltProtocolV5x5.default = BoltProtocol$1;
|
|
31611
|
+
|
|
31612
|
+
var boltProtocolV5x6 = {};
|
|
31613
|
+
|
|
31614
|
+
var __extends$7 = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
31615
|
+
var extendStatics = function (d, b) {
|
|
31616
|
+
extendStatics = Object.setPrototypeOf ||
|
|
31617
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
31618
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
31619
|
+
return extendStatics(d, b);
|
|
31620
|
+
};
|
|
31621
|
+
return function (d, b) {
|
|
31622
|
+
if (typeof b !== "function" && b !== null)
|
|
31623
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
31624
|
+
extendStatics(d, b);
|
|
31625
|
+
function __() { this.constructor = d; }
|
|
31626
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
31627
|
+
};
|
|
31628
|
+
})();
|
|
31629
|
+
var __assign$1 = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
31630
|
+
__assign$1 = Object.assign || function(t) {
|
|
31631
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
31632
|
+
s = arguments[i];
|
|
31633
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
31634
|
+
t[p] = s[p];
|
|
31635
|
+
}
|
|
31636
|
+
return t;
|
|
31637
|
+
};
|
|
31638
|
+
return __assign$1.apply(this, arguments);
|
|
31639
|
+
};
|
|
31640
|
+
var __importDefault$9 = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
31641
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
31642
|
+
};
|
|
31643
|
+
Object.defineProperty(boltProtocolV5x6, "__esModule", { value: true });
|
|
31644
|
+
/**
|
|
31645
|
+
* Copyright (c) "Neo4j"
|
|
31646
|
+
* Neo4j Sweden AB [https://neo4j.com]
|
|
31647
|
+
*
|
|
31648
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
31649
|
+
* you may not use this file except in compliance with the License.
|
|
31650
|
+
* You may obtain a copy of the License at
|
|
31651
|
+
*
|
|
31652
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
31653
|
+
*
|
|
31654
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
31655
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
31656
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
31657
|
+
* See the License for the specific language governing permissions and
|
|
31658
|
+
* limitations under the License.
|
|
31659
|
+
*/
|
|
31660
|
+
var bolt_protocol_v5x5_1$1 = __importDefault$9(boltProtocolV5x5);
|
|
31661
|
+
var bolt_protocol_v5x5_transformer_1 = __importDefault$9(boltProtocolV5x5_transformer);
|
|
31662
|
+
var transformer_1 = __importDefault$9(transformer);
|
|
31663
|
+
var neo4j_driver_core_1$c = lib$1;
|
|
31664
|
+
var BOLT_PROTOCOL_V5_6 = neo4j_driver_core_1$c.internal.constants.BOLT_PROTOCOL_V5_6;
|
|
31665
|
+
var DEFAULT_DIAGNOSTIC_RECORD = Object.freeze({
|
|
31666
|
+
OPERATION: '',
|
|
31667
|
+
OPERATION_CODE: '0',
|
|
31668
|
+
CURRENT_SCHEMA: '/'
|
|
31669
|
+
});
|
|
31670
|
+
var BoltProtocol = /** @class */ (function (_super) {
|
|
31671
|
+
__extends$7(BoltProtocol, _super);
|
|
31672
|
+
function BoltProtocol() {
|
|
31673
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
31674
|
+
}
|
|
31675
|
+
Object.defineProperty(BoltProtocol.prototype, "version", {
|
|
31676
|
+
get: function () {
|
|
31677
|
+
return BOLT_PROTOCOL_V5_6;
|
|
31678
|
+
},
|
|
31679
|
+
enumerable: false,
|
|
31680
|
+
configurable: true
|
|
31681
|
+
});
|
|
31682
|
+
Object.defineProperty(BoltProtocol.prototype, "transformer", {
|
|
31683
|
+
get: function () {
|
|
31684
|
+
var _this = this;
|
|
31685
|
+
if (this._transformer === undefined) {
|
|
31686
|
+
this._transformer = new transformer_1.default(Object.values(bolt_protocol_v5x5_transformer_1.default).map(function (create) { return create(_this._config, _this._log); }));
|
|
31687
|
+
}
|
|
31688
|
+
return this._transformer;
|
|
31689
|
+
},
|
|
31690
|
+
enumerable: false,
|
|
31691
|
+
configurable: true
|
|
31692
|
+
});
|
|
31693
|
+
/**
|
|
31694
|
+
*
|
|
31695
|
+
* @param {object} metadata
|
|
31696
|
+
* @returns {object}
|
|
31697
|
+
*/
|
|
31698
|
+
BoltProtocol.prototype._enrichMetadata = function (metadata) {
|
|
31699
|
+
if (Array.isArray(metadata.statuses)) {
|
|
31700
|
+
metadata.statuses = metadata.statuses.map(function (status) { return (__assign$1(__assign$1({}, status), { diagnostic_record: status.diagnostic_record !== null ? __assign$1(__assign$1({}, DEFAULT_DIAGNOSTIC_RECORD), status.diagnostic_record) : null })); });
|
|
31701
|
+
}
|
|
31702
|
+
return metadata;
|
|
31703
|
+
};
|
|
31704
|
+
return BoltProtocol;
|
|
31705
|
+
}(bolt_protocol_v5x5_1$1.default));
|
|
31706
|
+
boltProtocolV5x6.default = BoltProtocol;
|
|
31609
31707
|
|
|
31610
31708
|
var responseHandler = {};
|
|
31611
31709
|
|
|
@@ -31856,6 +31954,7 @@ var bolt_protocol_v5x2_1 = __importDefault$8(boltProtocolV5x2);
|
|
|
31856
31954
|
var bolt_protocol_v5x3_1 = __importDefault$8(boltProtocolV5x3);
|
|
31857
31955
|
var bolt_protocol_v5x4_1 = __importDefault$8(boltProtocolV5x4);
|
|
31858
31956
|
var bolt_protocol_v5x5_1 = __importDefault$8(boltProtocolV5x5);
|
|
31957
|
+
var bolt_protocol_v5x6_1 = __importDefault$8(boltProtocolV5x6);
|
|
31859
31958
|
var response_handler_1 = __importDefault$8(responseHandler);
|
|
31860
31959
|
/**
|
|
31861
31960
|
* Creates a protocol with a given version
|
|
@@ -31928,6 +32027,8 @@ function createProtocol(version, server, chunker, packingConfig, serversideRouti
|
|
|
31928
32027
|
return new bolt_protocol_v5x4_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
31929
32028
|
case 5.5:
|
|
31930
32029
|
return new bolt_protocol_v5x5_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
32030
|
+
case 5.6:
|
|
32031
|
+
return new bolt_protocol_v5x6_1.default(server, chunker, packingConfig, createResponseHandler, log, onProtocolError, serversideRouting);
|
|
31931
32032
|
default:
|
|
31932
32033
|
throw (0, neo4j_driver_core_1$a.newError)('Unknown Bolt protocol version: ' + version);
|
|
31933
32034
|
}
|